Skip to contentSkip to conversation

xen/arm: vITS: add #msi-cells property

PATCH In review Stewart Hildebrand 4 participants 4 messages Aug 2, 2024 – Aug 6, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen/arm: vITS: add #msi-cells property

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.

---
See Linux dc4dae00d82f ("Docs: dt: add #msi-cells to GICv3 ITS binding")

---
 xen/arch/arm/gic-v3-its.c | 4 ++++
 1 file changed, 4 insertions(+)
xen/arch/arm/gic-v3-its.c +4 -0
index 8afcd9783bc8..55bed3fe87d0 100644
@@ -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);

base-commit: 984cb316cb27b53704c607e640a7dd2763b898ab

Signature · 1 line
2.45.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Stewart Hildebrand

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.

Quoted 26 lines

---
See Linux dc4dae00d82f ("Docs: dt: add #msi-cells to GICv3 ITS binding")

---
 xen/arch/arm/gic-v3-its.c | 4 ++++
 1 file changed, 4 insertions(+)
xen/arch/arm/gic-v3-its.c +4 -0
index 8afcd9783bc8..55bed3fe87d0 100644
@@ -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);

base-commit: 984cb316cb27b53704c607e640a7dd2763b898ab

Signature · 1 line
2.45.2
Reviewed-by on v1 1/1
#3 lore raw
In reply to Stewart Hildebrand

Hi Stewart,

Quoted 7 lines · Stewart Hildebrand

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.

Regards,
Rahul

Quoted 27 lines

---
See Linux dc4dae00d82f ("Docs: dt: add #msi-cells to GICv3 ITS binding")
---
xen/arch/arm/gic-v3-its.c | 4 ++++

1 file changed, 4 insertions(+)
xen/arch/arm/gic-v3-its.c +4 -0
index 8afcd9783bc8..55bed3fe87d0 100644
@@ -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);

base-commit: 984cb316cb27b53704c607e640a7dd2763b898ab

Signature · 1 line
2.45.2