Skip to content

Commit 5191e0b

Browse files
legoatermpe
authored andcommitted
powerpc/xmon: Add source flags to output of XIVE interrupts
Some firmwares or hypervisors can advertise different source characteristics. Track their value under XMON. What we are mostly interested in is the StoreEOI flag. 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 97ef275 commit 5191e0b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

arch/powerpc/sysdev/xive/common.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,10 @@ int xmon_xive_get_irq_config(u32 hw_irq, struct irq_data *d)
280280
struct xive_irq_data *xd = irq_data_get_irq_handler_data(d);
281281
u64 val = xive_esb_read(xd, XIVE_ESB_GET);
282282

283-
xmon_printf("PQ=%c%c",
283+
xmon_printf("flags=%c%c%c PQ=%c%c",
284+
xd->flags & XIVE_IRQ_FLAG_STORE_EOI ? 'S' : ' ',
285+
xd->flags & XIVE_IRQ_FLAG_LSI ? 'L' : ' ',
286+
xd->flags & XIVE_IRQ_FLAG_H_INT_ESB ? 'H' : ' ',
284287
val & XIVE_ESB_VAL_P ? 'P' : '-',
285288
val & XIVE_ESB_VAL_Q ? 'Q' : '-');
286289
}

0 commit comments

Comments
 (0)