Skip to content

Commit 97ef275

Browse files
legoatermpe
authored andcommitted
powerpc/xive: Fix xmon support on the PowerNV platform
The PowerNV platform has multiple IRQ chips and the xmon command dumping the state of the XIVE interrupt should only operate on the XIVE IRQ chip. Fixes: 5896163 ("powerpc/xmon: Improve output of XIVE interrupts") Cc: [email protected] # v5.4+ Signed-off-by: Cédric Le Goater <[email protected]> Reviewed-by: Greg Kurz <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent b1a504a commit 97ef275

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

arch/powerpc/sysdev/xive/common.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,11 +258,15 @@ notrace void xmon_xive_do_dump(int cpu)
258258

259259
int xmon_xive_get_irq_config(u32 hw_irq, struct irq_data *d)
260260
{
261+
struct irq_chip *chip = irq_data_get_irq_chip(d);
261262
int rc;
262263
u32 target;
263264
u8 prio;
264265
u32 lirq;
265266

267+
if (!is_xive_irq(chip))
268+
return -EINVAL;
269+
266270
rc = xive_ops->get_irq_config(hw_irq, &target, &prio, &lirq);
267271
if (rc) {
268272
xmon_printf("IRQ 0x%08x : no config rc=%d\n", hw_irq, rc);

0 commit comments

Comments
 (0)