powernv: Clear SPRN_PSSCR when a POWER9 CPU comes online
authorGautham R. Shenoy <ego@linux.vnet.ibm.com>
Tue, 22 Nov 2016 18:06:40 +0000 (23:36 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 25 Nov 2016 03:37:04 +0000 (14:37 +1100)
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>
arch/powerpc/kernel/cpu_setup_power.S

index bdfc1c67eb38af30c34b57fe70ac85c4b65001fe..fe35ef2efc280c8deaf83ac8197139e424770950 100644 (file)
@@ -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