Skip to content

Commit 378f96d

Browse files
Gautham R. Shenoympe
authored andcommitted
powernv: Clear SPRN_PSSCR when a POWER9 CPU comes online
Ensure that PSSCR is set to a safe value corresponding to no state-loss each time a POWER9 CPU comes online. Signed-off-by: Gautham R. Shenoy <ego@linux.vnet.ibm.com> Acked-By: Michael Neuling <mikey@neuling.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
1 parent 56144ec commit 378f96d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/powerpc/kernel/cpu_setup_power.S

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ _GLOBAL(__setup_cpu_power9)
9696
mtlr r11
9797
beqlr
9898
li r0,0
99+
mtspr SPRN_PSSCR,r0
99100
mtspr SPRN_LPID,r0
100101
mfspr r3,SPRN_LPCR
101102
ori r3, r3, LPCR_PECEDH
@@ -116,6 +117,7 @@ _GLOBAL(__restore_cpu_power9)
116117
mtlr r11
117118
beqlr
118119
li r0,0
120+
mtspr SPRN_PSSCR,r0
119121
mtspr SPRN_LPID,r0
120122
mfspr r3,SPRN_LPCR
121123
ori r3, r3, LPCR_PECEDH

0 commit comments

Comments
 (0)