Re: [PATCH 1/7] iommu: Add DMA mapping operations

2023-01-21 Thread Mark Kettenis
> From: Simon Glass > Date: Wed, 18 Jan 2023 12:42:19 -0700 > > Hi Mark, > > On Tue, 17 Jan 2023 at 15:04, Mark Kettenis wrote: > > > > In order to support IOMMUs in non-bypass mode we need device ops > > to map and unmap DMA memory. The map operation enters a mapping > > for a region specifie

Re: [PATCH 1/7] iommu: Add DMA mapping operations

2023-01-18 Thread Simon Glass
Hi Mark, On Tue, 17 Jan 2023 at 15:04, Mark Kettenis wrote: > > In order to support IOMMUs in non-bypass mode we need device ops > to map and unmap DMA memory. The map operation enters a mapping > for a region specified by CPU address and size into the translation > table of the IOMMU and return

[PATCH 1/7] iommu: Add DMA mapping operations

2023-01-17 Thread Mark Kettenis
In order to support IOMMUs in non-bypass mode we need device ops to map and unmap DMA memory. The map operation enters a mapping for a region specified by CPU address and size into the translation table of the IOMMU and returns a DMA address suitable for programming the device to do DMA. The unma