powerpc/xive: Fix dump of XIVE interrupt under pseries
authorCédric Le Goater <clg@kaod.org>
Wed, 14 Aug 2019 15:47:53 +0000 (17:47 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 19 Aug 2019 03:20:24 +0000 (13:20 +1000)
commitb4868ff55d082bc66b0c287a41e4888f6d3e5f87
tree1433205cf4e23a07497bebeacac7ec7b599822ca
parentc3e0dbd7f780a58c4695f1cd8fc8afde80376737
powerpc/xive: Fix dump of XIVE interrupt under pseries

The xmon 'dxi' command calls OPAL to query the XIVE configuration of a
interrupt. This can only be done on baremetal (PowerNV) and it will
crash a pseries machine.

Introduce a new XIVE get_irq_config() operation which implements a
different query depending on the platform, PowerNV or pseries, and
modify xmon to use a top level wrapper.

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/20190814154754.23682-3-clg@kaod.org
arch/powerpc/include/asm/xive.h
arch/powerpc/sysdev/xive/common.c
arch/powerpc/sysdev/xive/native.c
arch/powerpc/sysdev/xive/spapr.c
arch/powerpc/sysdev/xive/xive-internal.h
arch/powerpc/xmon/xmon.c