powerpc/xmon: check before calling xive functions

Michael Ellerman patch-notifications at ellerman.id.au
Tue Oct 24 19:09:11 AEDT 2017


On Tue, 2017-10-17 at 18:20:18 UTC, Breno Leitao wrote:
> Currently xmon could call XIVE functions from OPAL even if the XIVE is
> disabled or does not exist in the system, as in POWER8 machines.  This
> causes the following exception:
> 
>  1:mon> dx
>  cpu 0x1: Vector: 700 (Program Check) at [c000000423c93450]
>      pc: c00000000009cfa4: opal_xive_dump+0x50/0x68
>      lr: c0000000000997b8: opal_return+0x0/0x50
> 
> This patch simply checks if XIVE is enabled before calling XIVE
> functions.
> 
> Suggested-by: Guilherme G. Piccoli <gpiccoli at linux.vnet.ibm.com>
> Signed-off-by: Breno Leitao <leitao at debian.org>

Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/402e172a2ce76210f2fe921cf419d1

cheers


More information about the Linuxppc-dev mailing list