[Skiboot] [PATCH] fast-reboot: fix TLB cleanup after fast reboot
Nicholas Piggin
npiggin at gmail.com
Mon Dec 20 22:08:52 AEDT 2021
POWER9/10 are missing TLB flushing after fast reboot. Add it back to
cpu_fast_reboot_complete(), which is where fast-reboot code thinks it
should be.
Suggested-by: Cédric Le Goater <clg at fr.ibm.com>
Fixes: 53ef0db6e2 ("asm/head.S: set POWER9 radix HID bit at entry")
Signed-off-by: Nicholas Piggin <npiggin at gmail.com>
---
core/cpu.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/core/cpu.c b/core/cpu.c
index 6f37358a9..016c52375 100644
--- a/core/cpu.c
+++ b/core/cpu.c
@@ -1563,6 +1563,10 @@ void cpu_fast_reboot_complete(void)
/* and set HID0:RADIX */
if (proc_gen == proc_gen_p9)
current_radix_mode = true;
+
+ /* P8 clears TLBs in cleanup_cpu_state() */
+ if (proc_gen >= proc_gen_p9)
+ cleanup_global_tlb();
}
static int64_t opal_reinit_cpus(uint64_t flags)
--
2.23.0
More information about the Skiboot
mailing list