diff options
author | Gautham R. Shenoy <ego@linux.vnet.ibm.com> | 2016-11-22 23:36:40 +0530 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2016-11-25 14:37:04 +1100 |
commit | 378f96d3cd442d5cb8e2692d8767a4c036070594 (patch) | |
tree | bac7b3e5f13c3a6442b4a89eed0919c3596cb15c /arch/powerpc | |
parent | 56144ec7c93f6f18aa878560074633ac3ad16896 (diff) | |
download | blackbird-op-linux-378f96d3cd442d5cb8e2692d8767a4c036070594.tar.gz blackbird-op-linux-378f96d3cd442d5cb8e2692d8767a4c036070594.zip |
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>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/kernel/cpu_setup_power.S | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/cpu_setup_power.S b/arch/powerpc/kernel/cpu_setup_power.S index bdfc1c67eb38..fe35ef2efc28 100644 --- a/arch/powerpc/kernel/cpu_setup_power.S +++ b/arch/powerpc/kernel/cpu_setup_power.S @@ -96,6 +96,7 @@ _GLOBAL(__setup_cpu_power9) mtlr r11 beqlr li r0,0 + mtspr SPRN_PSSCR,r0 mtspr SPRN_LPID,r0 mfspr r3,SPRN_LPCR ori r3, r3, LPCR_PECEDH @@ -116,6 +117,7 @@ _GLOBAL(__restore_cpu_power9) mtlr r11 beqlr li r0,0 + mtspr SPRN_PSSCR,r0 mtspr SPRN_LPID,r0 mfspr r3,SPRN_LPCR ori r3, r3, LPCR_PECEDH |