[PATCH v2 1/9] iommu: Add DMA mapping operations

Mark Kettenis mark.kettenis at xs4all.nl
Sat Jan 28 00:12:54 CET 2023


> Date: Fri, 27 Jan 2023 17:48:32 -0500
> From: Tom Rini <trini at konsulko.com>
> 
> On Sat, Jan 21, 2023 at 08:27:52PM +0100, 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 returns a DMA address suitable for
> > programming the device to do DMA.  The unmap operation removes
> > this mapping from the translation table of the IOMMU.
> > 
> > Signed-off-by: Mark Kettenis <kettenis at openbsd.org>
> 
> For the series, applied to u-boot/master, thanks!
> 
> Note that in this specific patch I also added the following comment to
> include/dm/device.h:
>  * @iommu: IOMMU device associated with this device
> as the doc targets were noting that this was not described. If my
> description here is wrong / insufficient, please follow-up with a
> correction.

That reads absolutely fine.

Thanks!

Mark



More information about the U-Boot mailing list