[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ZQrGyqQ7K96PFXQ1@orome>
Date: Wed, 20 Sep 2023 12:17:46 +0200
From: Thierry Reding <treding@...dia.com>
To: Laurentiu Tudor <laurentiu.tudor@....com>
Cc: joro@...tes.org, will@...nel.org, robin.murphy@....com,
jgg@...dia.com, iommu@...ts.linux.dev, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] iommu: map reserved memory as cacheable if device is
coherent
On Thu, Sep 14, 2023 at 03:52:58PM +0300, Laurentiu Tudor wrote:
> 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: a5bf3cfce8cb ("iommu: Implement of_iommu_get_resv_regions()")
> Signed-off-by: Laurentiu Tudor <laurentiu.tudor@....com>
> Reviewed-by: Jason Gunthorpe <jgg@...dia.com>
> ---
> Changes in v2:
> - added Reviewed-by tag
>
> drivers/iommu/of_iommu.c | 3 +++
> 1 file changed, 3 insertions(+)
Acked-by: Thierry Reding <treding@...dia.com>
Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)
Powered by blists - more mailing lists