Re: [PATCH] powerpc/32s: Fix CPU wake-up from sleep mode

2020-02-04 Thread Michael Ellerman
On Mon, 2020-01-27 at 10:42:04 UTC, Christophe Leroy wrote: > Commit f7354ccac844 ("powerpc/32: Remove CURRENT_THREAD_INFO and > rename TI_CPU") broke the CPU wake-up from sleep mode (i.e. when > _TLF_SLEEPING is set) by delaying the tovirt(r2, r2). > > This is because r2 is not restored by

[PATCH] powerpc/32s: Fix CPU wake-up from sleep mode

2020-01-27 Thread Christophe Leroy
Commit f7354ccac844 ("powerpc/32: Remove CURRENT_THREAD_INFO and rename TI_CPU") broke the CPU wake-up from sleep mode (i.e. when _TLF_SLEEPING is set) by delaying the tovirt(r2, r2). This is because r2 is not restored by fast_exception_return. It used to work (by chance ?) because CPU wake-up