powerpc/64s/idle: POWER9 restore AMOR after deep sleep
Nicholas Piggin
reviewerPATCH 1/1 powerpc/64s/idle: POWER9 restore AMOR after deep sleep
POWER8 restores AMOR when waking from deep sleep, but POWER9 does not, because it does not go through the subcore restore.
Have POWER9 restore it in core restore.
Cc Vaidyanathan Srinivasan <[email protected]>
Signed-off-by Nicholas Piggin <[email protected]>
---
Do we need this guy after waking from deep sleep?
This code is a little messy at the moment, it can be a bit tricky to see exactly what we've restored. I'm doing a bit of work to tidy it up and make it clearer, but that's not going to make 4.17 or backports.
arch/powerpc/kernel/idle_book3s.S | 2 ++ 1 file changed, 2 insertions(+)
arch/powerpc/kernel/idle_book3s.S +2 -0
@@ -857,6 +857,8 @@ BEGIN_FTR_SECTION mtspr SPRN_PTCR,r4 ld r4,_RPR(r1) mtspr SPRN_RPR,r4 + ld r4,_AMOR(r1) + mtspr SPRN_AMOR,r4 END_FTR_SECTION_IFSET(CPU_FTR_ARCH_300) ld r4,_TSCR(r1)
Signature · 1 line
2.16.3
Michael Ellerman
AppliedQuoted 7 lines · Nicholas Piggin
POWER8 restores AMOR when waking from deep sleep, but POWER9 does not, because it does not go through the subcore restore.
Have POWER9 restore it in core restore.
Cc Vaidyanathan Srinivasan <[email protected]>Signed-off-by Nicholas Piggin <[email protected]>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/c1b25a17d24925b0961c319cfc3fd7
cheers