commit | 97b8bf04fec6047c0bbf8d5d4e201a1999624f6d | [log] [tgz] |
---|---|---|
author | Mark Kettenis <kettenis@openbsd.org> | Sat Jan 21 20:27:56 2023 +0100 |
committer | Tom Rini <trini@konsulko.com> | Fri Jan 27 14:47:58 2023 -0500 |
tree | ee4df73bbc089002e5ed6abcb3a6626984d0eeb2 | |
parent | fac410c7039346c95de25c8457f0430b0053f3db [diff] |
iommu: Implement mapping IOMMUs for PCI devices Systems such as Apple's M1 and M2 SoCs may have separate IOMMUs for each PCIe root port. In this case the right IOMMU for a PCI device behind a particular root port is described by an "iommu-map" property in the device tree. Parse this property and use it to find the right IOMMU device for PCI devices. Signed-off-by: Mark Kettenis <kettenis@openbsd.org>