linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] powerpc: Misc early boot fixes
@ 2022-12-16 11:59 Nicholas Piggin
  2022-12-16 11:59 ` [PATCH 1/4] powerpc/64s: Fix stress_hpt memblock alloc alignment Nicholas Piggin
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Nicholas Piggin @ 2022-12-16 11:59 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: Nicholas Piggin

The first patch is a fix for a commit that's in powerpc next which
is a pretty harmless dump_stack(). Except that we had some bugs with
doing stack unwinding that early when the boot CPU is not zero so
that ended up crashing badly.

First patch should be relatively safe and solve that problem, but
only needed if you're testing with stress_hpt. Second patch is a
relatively minimal fix that should close most of the large window
where we're running with the wrong task_cpu, but I would not call
it trivial because it could cause some weird breakage or expose
another bug. Third patch closes the rest of the window and makes
the paca allocation a lot better, but it has more possibility for
regressions. Last patch is independent of the rest and should be
quite straightforward.

Thanks,
Nick

Nicholas Piggin (4):
  powerpc/64s: Fix stress_hpt memblock alloc alignment
  powerpc/64: Fix task_cpu in early boot when booting non-zero cpuid
  powerpc/64: Move paca allocation to early_setup()
  powerpc: Skip stack validation checking alternate stacks if they are
    not allocated

 arch/powerpc/include/asm/paca.h       |  1 -
 arch/powerpc/include/asm/smp.h        |  1 +
 arch/powerpc/kernel/process.c         | 11 +++++++++++
 arch/powerpc/kernel/prom.c            | 12 ++----------
 arch/powerpc/kernel/setup-common.c    |  4 ++++
 arch/powerpc/kernel/setup_64.c        | 14 ++++++++------
 arch/powerpc/mm/book3s64/hash_utils.c |  3 ++-
 7 files changed, 28 insertions(+), 18 deletions(-)

-- 
2.37.2


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-02-15 12:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-16 11:59 [PATCH 0/4] powerpc: Misc early boot fixes Nicholas Piggin
2022-12-16 11:59 ` [PATCH 1/4] powerpc/64s: Fix stress_hpt memblock alloc alignment Nicholas Piggin
2022-12-16 11:59 ` [PATCH 2/4] powerpc/64: Fix task_cpu in early boot when booting non-zero cpuid Nicholas Piggin
2022-12-16 11:59 ` [PATCH 3/4] powerpc/64: Move paca allocation to early_setup() Nicholas Piggin
2022-12-17  5:10   ` kernel test robot
2022-12-16 11:59 ` [PATCH 4/4] powerpc: Skip stack validation checking alternate stacks if they are not allocated Nicholas Piggin
2023-02-15 12:40 ` [PATCH 0/4] powerpc: Misc early boot fixes Michael Ellerman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).