On Wed, 14 Oct 2020 18:28:36 +1100, Jordan Niethe wrote: > Currently in generic_secondary_smp_init(), cur_cpu_spec->cpu_restore() > is called before a stack has been set up in r1. This was previously fine > as the cpu_restore() functions were implemented in assembly and did not > use a stack. However commit 5a61ef74f269 ("powerpc/64s: Support new > device tree binding for discovering CPU features") used > __restore_cpu_cpufeatures() as the cpu_restore() function for a > device-tree features based cputable entry. This is a C function and > hence uses a stack in r1. > > [...]
Applied to powerpc/next. [1/2] powerpc/64: Set up a kernel stack for secondaries before cpu_restore() https://git.kernel.org/powerpc/c/3c0b976bf20d236c57adcefa80f86a0a1d737727 [2/2] powerpc/64s: Convert some cpu_setup() and cpu_restore() functions to C https://git.kernel.org/powerpc/c/344fbab991a568dc33ad90711b489d870e18d26d cheers