提交 72224846 编写于 作者: C Cédric Le Goater 提交者: Michael Ellerman

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: NCédric Le Goater <clg@kaod.org>
Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
上级 028555a5
...@@ -57,8 +57,11 @@ void pseries_kexec_cpu_down(int crash_shutdown, int secondary) ...@@ -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); xive_kexec_teardown_cpu(secondary);
else
if (!secondary)
xive_shutdown();
} else
xics_kexec_teardown_cpu(secondary); xics_kexec_teardown_cpu(secondary);
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册