[RFC PATCH] iommu: map reserved memory as cacheable if device is coherent

Jason Gunthorpe jgg at ziepe.ca
Wed Jul 26 05:22:10 PDT 2023


On Tue, Jul 25, 2023 at 05:00:55PM +0300, laurentiu.tudor at nxp.com wrote:
> From: Laurentiu Tudor <laurentiu.tudor at nxp.com>
> 
> Check if the device is marked as DMA coherent in the DT and if so,
> map its reserved memory as cacheable in the IOMMU.
> 
> Signed-off-by: Laurentiu Tudor <laurentiu.tudor at nxp.com>
> ---
>  drivers/iommu/of_iommu.c | 3 +++
>  1 file changed, 3 insertions(+)

This only makes sense for IOMMU_RESV_DIRECT - is that your use case?
Maybe mention that in the commit message

And add a fixes for the commit that introduces IOMMU_RESV_DIRECT into
of_iommu.c

Jason



More information about the linux-arm-kernel mailing list