summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorMark Kettenis <[email protected]>2023-01-21 20:27:57 +0100
committerTom Rini <[email protected]>2023-01-27 14:47:58 -0500
commit08386da0c65c5669a447f763ab4cd91d9efc7cd1 (patch)
tree222d72a09c35031b7cee499ffda32240d5cdc506 /arch
parent1fc2329121e403a4d7dbffa4c4fda5a756043e4a (diff)
test: Add test for mapping IOMMUs for PCI devices
Test that we correctly probe an IOMMU that is mapped by an "iommu-map" device tree property of a PCIe controller node. Signed-off-by: Mark Kettenis <[email protected]> Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'arch')
-rw-r--r--arch/sandbox/dts/test.dts2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/sandbox/dts/test.dts b/arch/sandbox/dts/test.dts
index 9d96e479ca8..8c059276702 100644
--- a/arch/sandbox/dts/test.dts
+++ b/arch/sandbox/dts/test.dts
@@ -1036,6 +1036,8 @@
#size-cells = <2>;
ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000000
0x01000000 0 0x20000000 0x20000000 0 0x2000>;
+ iommu-map = <0x0010 &iommu 0 1>;
+ iommu-map-mask = <0xfffffff8>;
pci@0,0 {
compatible = "pci-generic";
reg = <0x0000 0 0 0 0>;