Skip to content

Commit

Permalink
powerpc/xive: Use XIVE domain under xmon and debugfs
Browse files Browse the repository at this point in the history
The default domain of the PCI/MSIs is not the XIVE domain anymore. To
list the IRQ mappings under XMON and debugfs, query the IRQ data from
the low level XIVE domain.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210701132750.1475580-32-clg@kaod.org
  • Loading branch information
Cédric Le Goater authored and Michael Ellerman committed Aug 10, 2021
1 parent 1753081 commit 59b2bc1
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions arch/powerpc/sysdev/xive/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -312,11 +312,10 @@ void xmon_xive_get_irq_all(void)
struct irq_desc *desc;

for_each_irq_desc(i, desc) {
struct irq_data *d = irq_desc_get_irq_data(desc);
unsigned int hwirq = (unsigned int)irqd_to_hwirq(d);
struct irq_data *d = irq_domain_get_irq_data(xive_irq_domain, i);

if (d->domain == xive_irq_domain)
xmon_xive_get_irq_config(hwirq, d);
if (d)
xmon_xive_get_irq_config(irqd_to_hwirq(d), d);
}
}

Expand Down Expand Up @@ -1757,9 +1756,9 @@ static int xive_core_debug_show(struct seq_file *m, void *private)
xive_debug_show_cpu(m, cpu);

for_each_irq_desc(i, desc) {
struct irq_data *d = irq_desc_get_irq_data(desc);
struct irq_data *d = irq_domain_get_irq_data(xive_irq_domain, i);

if (d->domain == xive_irq_domain)
if (d)
xive_debug_show_irq(m, d);
}
return 0;
Expand Down

0 comments on commit 59b2bc1

Please sign in to comment.