diff options
author | Christoph Hellwig <hch@lst.de> | 2022-03-31 08:01:21 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2022-04-01 06:46:51 +0200 |
commit | 4fe87e818ea492ade079cc01a31d088e445f8539 (patch) | |
tree | 25a20702eebea21692e61ed758b287f2efa4267d /include | |
parent | 05b0ebd06ae6b9e72b747362e52abb400a175080 (diff) | |
download | linux-4fe87e818ea492ade079cc01a31d088e445f8539.tar.bz2 |
dma-mapping: move pgprot_decrypted out of dma_pgprot
pgprot_decrypted is used by AMD SME systems to allow access to memory
that was set to not encrypted using set_memory_decrypted. That only
happens for dma-direct memory as the IOMMU solves the addressing
challenges for the encryption bit using its own remapping.
Move the pgprot_decrypted call out of dma_pgprot which is also used
by the IOMMU mappings and into dma-direct so that it is only used with
memory that was set decrypted.
Fixes: f5ff79fddf0e ("dma-mapping: remove CONFIG_DMA_REMAP")
Reported-by: Alex Xu (Hello71) <alex_y_xu@yahoo.ca>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Tested-by: Alex Xu (Hello71) <alex_y_xu@yahoo.ca>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions