powernv: Clear SPRN_PSSCR when a POWER9 CPU comes online
PATCH 1/1 powernv: Clear SPRN_PSSCR when a POWER9 CPU comes online
From: "Gautham R. Shenoy" <[email protected]>
Ensure that PSSCR is set to a safe value corresponding to no state-loss each time a POWER9 CPU comes online.
--- arch/powerpc/kernel/cpu_setup_power.S | 2 ++ 1 file changed, 2 insertions(+)
arch/powerpc/kernel/cpu_setup_power.S +2 -0
@@ -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
Signature · 1 line
1.9.4
Michael Ellerman
reviewerQuoted 4 lines · Gautham R. Shenoy
From: "Gautham R. Shenoy" <[email protected]>
Ensure that PSSCR is set to a safe value corresponding to no state-loss each time a POWER9 CPU comes online.
Is this a bug fix? I can't tell from the change log.
cheers
Quoted 8 lines · Michael Ellerman
"Gautham R. Shenoy" <[email protected]> writes:
=20Quoted 4 lines
From: "Gautham R. Shenoy" <[email protected]> =20
Ensure that PSSCR is set to a safe value corresponding to no state-loss each time a POWER9 CPU comes online.=20
Is this a bug fix? I can't tell from the change log.
There are no known bugs it's fixing. =C2=A0
It's just safer to run with a known default value, rather than what we rand= omly
inherit from previous firmware.
Mikey
Quoted 6 lines · Gautham R. Shenoy
From: "Gautham R. Shenoy" <[email protected]> =20
Ensure that PSSCR is set to a safe value corresponding to no state-loss each time a POWER9 CPU comes online. =20Signed-off-by Gautham R. Shenoy <[email protected]>
Tested here on my configuration... FWIW
Quoted 25 lines
---
=C2=A0arch/powerpc/kernel/cpu_setup_power.S | 2 ++ =C2=A01 file changed, 2 insertions(+)
=20arch/powerpc/kernel/cpu_setup_power.S +0
-0@@ -96,6 +96,7 @@ _GLOBAL(__setup_cpu_power9)=C2=A0 mtlr r11
=C2=A0 beqlr
=C2=A0 li r0,0arch/powerpc/kernel/cpu_setup_power.S +1
-0+ mtspr SPRN_PSSCR,r0=C2=A0 mtspr SPRN_LPID,r0
=C2=A0 mfspr r3,SPRN_LPCR
=C2=A0 ori r3, r3,LPCR_PECEDHarch/powerpc/kernel/cpu_setup_power.S +0
-0@@ -116,6 +117,7 @@ _GLOBAL(__restore_cpu_power9)=C2=A0 mtlr r11
=C2=A0 beqlr
=C2=A0 li r0,0arch/powerpc/kernel/cpu_setup_power.S +1
-0+ mtspr SPRN_PSSCR,r0=C2=A0 mtspr SPRN_LPID,r0
=C2=A0 mfspr=C2=A0=C2=A0=C2=A0r3,SPRN_LPCR
=C2=A0 ori r3, r3,LPCR_PECEDH
Michael Ellerman
AppliedQuoted 7 lines · Gautham R. Shenoy
From: "Gautham R. Shenoy" <[email protected]>
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 <[email protected]>Acked-by Michael Neuling <[email protected]>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/378f96d3cd442d5cb8e2692d8767a4
cheers