]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
xen/arm: vITS: add #msi-cells property
authorStewart Hildebrand <stewart.hildebrand@amd.com>
Fri, 2 Aug 2024 18:26:52 +0000 (14:26 -0400)
committerJulien Grall <jgrall@amazon.com>
Tue, 6 Aug 2024 18:11:50 +0000 (19:11 +0100)
Non-PCI platform devices may use the ITS. Dom0 Linux drivers for such
devices are failing to register IRQs due to a missing #msi-cells
property. Add the missing #msi-cells property.

Signed-off-by: Stewart Hildebrand <stewart.hildebrand@amd.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Reviewed-by: Rahul Singh <rahul.singh@arm.com>
xen/arch/arm/gic-v3-its.c

index 8afcd9783bc8a9d328b0b4a8933d108b5dc02735..55bed3fe87d066f6336566405e05eb4b537a1485 100644 (file)
@@ -951,6 +951,10 @@ int gicv3_its_make_hwdom_dt_nodes(const struct domain *d,
         if ( res )
             return res;
 
+        res = fdt_property_cell(fdt, "#msi-cells", 1);
+        if ( res )
+            return res;
+
         if ( its->phandle )
         {
             res = fdt_property_cell(fdt, "phandle", its->phandle);