Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit f1aad9df authored by Laurentiu Tudor's avatar Laurentiu Tudor Committed by Joerg Roedel
Browse files

iommu: Map reserved memory as cacheable if device is coherent

Check if the device is marked as DMA coherent in the DT and if so,
map its reserved memory as cacheable in the IOMMU.
This fixes the recently added IOMMU reserved memory support which
uses IOMMU_RESV_DIRECT without properly building the PROT for the
mapping.

Fixes: a5bf3cfc

 ("iommu: Implement of_iommu_get_resv_regions()")
Signed-off-by: default avatarLaurentiu Tudor <laurentiu.tudor@nxp.com>
Reviewed-by: default avatarJason Gunthorpe <jgg@nvidia.com>
Acked-by: default avatarThierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/r/20230926152600.8749-1-laurentiu.tudor@nxp.com


Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent 2cc14f52
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment