[PATCH 2/2] powerpc/cpuhotplug: print psscr and srr1 value for debug

Vaidyanathan Srinivasan svaidy at linux.vnet.ibm.com
Fri Feb 24 17:34:16 AEDT 2017


This is a debug patch that helps trace various STOP
state transitions and look at srr1 and psscr at wakeup.

Signed-off-by: Vaidyanathan Srinivasan <svaidy at linux.vnet.ibm.com>
---
 arch/powerpc/platforms/powernv/smp.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/powerpc/platforms/powernv/smp.c b/arch/powerpc/platforms/powernv/smp.c
index e39e6c4..5b3f002 100644
--- a/arch/powerpc/platforms/powernv/smp.c
+++ b/arch/powerpc/platforms/powernv/smp.c
@@ -185,8 +185,12 @@ static void pnv_smp_cpu_kill_self(void)
 		ppc64_runlatch_off();
 
 		if (cpu_has_feature(CPU_FTR_ARCH_300)) {
+			pr_info("CPU%d going offline with request psscr %016llx\n",
+				cpu, pnv_deepest_stop_psscr_val);
 			srr1 = power9_idle_stop(pnv_deepest_stop_psscr_val,
 						pnv_deepest_stop_psscr_mask);
+			pr_info("CPU%d coming online with psscr %016lx, srr1 %016lx\n",
+						cpu, mfspr(SPRN_PSSCR), srr1);
 		} else if (idle_states & OPAL_PM_WINKLE_ENABLED) {
 			srr1 = power7_winkle();
 		} else if ((idle_states & OPAL_PM_SLEEP_ENABLED) ||
-- 
2.9.3



More information about the Linuxppc-dev mailing list