aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorFrederic Barrat <fbarrat@linux.ibm.com>2021-10-20 12:28:26 +0200
committerVasant Hegde <hegdevasant@linux.vnet.ibm.com>2021-10-21 08:13:57 +0530
commitd93ddbd39b4eeac0bc11dacbdadea76df2996c13 (patch)
tree281bcbde4cfa8cc342e944a308a2451f6afeddf9 /hw
parent4c1add1fb20fe07b827227ca34f63f176774d51c (diff)
downloadskiboot-d93ddbd39b4eeac0bc11dacbdadea76df2996c13.zip
skiboot-d93ddbd39b4eeac0bc11dacbdadea76df2996c13.tar.gz
skiboot-d93ddbd39b4eeac0bc11dacbdadea76df2996c13.tar.bz2
xive/p10:: Declare xive2 DT node as an interrupt-controller
This patch fixes errors seen when linux looks for the interrupt to use for a device LSI: pci X:Y:Z of_irq_parse_pci: failed with rc=-22 The of/irq parsing code requires those new properties to be able to map the interrupt specifier correctly. It was not needed before comitting cd12ea6d8e1 ("interrupts: Do not advertise XICS support on P10"), because the LSI mapping code was defaulting to the XICS interrupt controller node, which is now removed (and had those properties). Fixes: cd12ea6d8e1 ("interrupts: Do not advertise XICS support on P10") Signed-off-by: Frederic Barrat <fbarrat@linux.ibm.com> Reviewed-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/xive2.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/hw/xive2.c b/hw/xive2.c
index 0254175..30293cd 100644
--- a/hw/xive2.c
+++ b/hw/xive2.c
@@ -1955,7 +1955,12 @@ static void xive_create_mmio_dt_node(struct xive *x)
tb + 3 * stride, stride);
dt_add_property_strings(xive_dt_node, "compatible",
- "ibm,opal-xive-pe", "ibm,opal-intc");
+ "ibm,opal-xive-pe", "ibm,opal-xive-vc",
+ "ibm,opal-intc");
+
+ dt_add_property(xive_dt_node, "interrupt-controller", NULL, 0);
+ dt_add_property_cells(xive_dt_node, "#address-cells", 0);
+ dt_add_property_cells(xive_dt_node, "#interrupt-cells", 2);
dt_add_property_cells(xive_dt_node, "ibm,xive-eq-sizes",
12, 16, 21, 24);