From: Cédric Le Goater Date: Tue, 8 May 2018 07:05:16 +0000 (+0200) Subject: powerpc/xive: shutdown XIVE when kexec or kdump is performed X-Git-Tag: v5.15~8686^2~208 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=72224846fb1f066cc04dc0a38d910221b5719bdf;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: Michael Ellerman --- diff --git a/arch/powerpc/platforms/pseries/kexec.c b/arch/powerpc/platforms/pseries/kexec.c index 3fe1267..46fbaef 100644 --- a/arch/powerpc/platforms/pseries/kexec.c +++ b/arch/powerpc/platforms/pseries/kexec.c @@ -57,8 +57,11 @@ void pseries_kexec_cpu_down(int crash_shutdown, int secondary) } } - if (xive_enabled()) + if (xive_enabled()) { xive_kexec_teardown_cpu(secondary); - else + + if (!secondary) + xive_shutdown(); + } else xics_kexec_teardown_cpu(secondary); }