Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/xive: shutdown XIVE when kexec or kdump is performed

The hcall H_INT_RESET should be called to make sure XIVE is fully
reseted.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>

authored by

Cédric Le Goater and committed by
Michael Ellerman
72224846 028555a5

+5 -2
+5 -2
arch/powerpc/platforms/pseries/kexec.c
··· 57 57 } 58 58 } 59 59 60 - if (xive_enabled()) 60 + if (xive_enabled()) { 61 61 xive_kexec_teardown_cpu(secondary); 62 - else 62 + 63 + if (!secondary) 64 + xive_shutdown(); 65 + } else 63 66 xics_kexec_teardown_cpu(secondary); 64 67 }