powerpc/xive: shutdown XIVE when kexec or kdump is performed
authorCédric Le Goater <clg@kaod.org>
Tue, 8 May 2018 07:05:16 +0000 (09:05 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 10 May 2018 13:25:09 +0000 (23:25 +1000)
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>
arch/powerpc/platforms/pseries/kexec.c

index 3fe1267..46fbaef 100644 (file)
@@ -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);
 }