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

Tom Rini trini at konsulko.com
Fri Jan 27 23:48:32 CET 2023


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.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20230127/d8f01613/attachment.sig>


More information about the U-Boot mailing list