-
Christoph Hellwig authored
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: f5ff79fd ("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>
4fe87e81