[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <0e665ec4-2449-4140-b1ad-41ae01bf3592@linux.microsoft.com>
Date: Thu, 11 Jul 2024 11:17:28 -0700
From: Easwar Hariharan <eahariha@...ux.microsoft.com>
To: Leon Romanovsky <leon@...nel.org>, Christoph Hellwig <hch@....de>,
Robin Murphy <robin.murphy@....com>, Joerg Roedel <joro@...tes.org>,
Will Deacon <will@...nel.org>, Marek Szyprowski <m.szyprowski@...sung.com>,
Jason Gunthorpe <jgg@...dia.com>
Cc: eahariha@...ux.microsoft.com, Leon Romanovsky <leonro@...dia.com>,
linux-kernel@...r.kernel.org, iommu@...ts.linux.dev
Subject: Re: [PATCH 2/2] dma: Add IOMMU static calls with clear default ops
On 7/11/2024 3:38 AM, Leon Romanovsky wrote:
> From: Leon Romanovsky <leonro@...dia.com>
>
> Most of the IOMMU drivers are using the same DMA operations, which are
> default ones implemented in drivers/iomem/dma-iomem.c. So it makes sense
s/iomem/iommu?
> to properly set them as a default with direct call without need to
> perform function pointer dereference.
>
> During system initialization, the IOMMU driver can set its own DMA and
> in such case, the default DMA operations will be overridden.
>
> Signed-off-by: Leon Romanovsky <leonro@...dia.com>
> ---
> MAINTAINERS | 1 +
> drivers/iommu/dma-iommu.c | 24 +++++++-------
> include/linux/iommu-dma.h | 50 +++++++++++++++++++++++++++++
> kernel/dma/iommu.h | 67 +++++++++++++++++++++++++++++++++++++++
> kernel/dma/mapping.c | 9 +++---
> 5 files changed, 134 insertions(+), 17 deletions(-)
> create mode 100644 include/linux/iommu-dma.h
> create mode 100644 kernel/dma/iommu.h
>
<snip>
Powered by blists - more mailing lists