[kvm-unit-tests PATCH v9 14/31] powerpc: Remove broken SMP exception stack setup

Thomas Huth thuth at redhat.com
Mon Jun 3 19:30:08 AEST 2024


On 04/05/2024 14.28, Nicholas Piggin wrote:
> The exception stack setup does not work correctly for SMP, because
> it is the boot processor that calls cpu_set() which sets SPRG2 to
> the exception stack, not the target CPU itself. So secondaries
> never got their SPRG2 set to a valid exception stack.

So secondary CPUs currently must not run into any exceptions?

> Remove the SMP code and just set an exception stack for the boot
> processor. Make the stack 64kB while we're here, to match the
> size of the regular stack.
> 
> Signed-off-by: Nicholas Piggin <npiggin at gmail.com>
> ---
>   lib/powerpc/setup.c | 16 ++++++++--------
>   1 file changed, 8 insertions(+), 8 deletions(-)

Reviewed-by: Thomas Huth <thuth at redhat.com>



More information about the Linuxppc-dev mailing list