Skip to content

arm64: boot cleanups

Mark Rutland linux-arm-kernel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6arm64: Implement stack trace termination recordarch/arm64/kernel/entry.S arch/arm64/kernel/head.S arch/arm64/kernel/process.c +1 more+32 -160 replies
2/6arm64: assembler: add set_this_cpu_offsetarch/arm64/include/asm/assembler.h arch/arm64/mm/proc.S+15 -150 replies
3/6arm64: smp: remove pointless secondary_data maintenancearch/arm64/kernel/smp.c+0 -20 replies
4/6arm64: smp: remove stack from secondary_dataarch/arm64/include/asm/smp.h arch/arm64/kernel/asm-offsets.c arch/arm64/kernel/head.S +1 more+4 -80 replies
5/6arm64: smp: unify task and sp setuparch/arm64/kernel/head.S+15 -180 replies
6/6arm64: smp: initialize cpu offset earlierarch/arm64/kernel/asm-offsets.c arch/arm64/kernel/head.S arch/arm64/kernel/setup.c +1 more+18 -160 replies

Reviews trailers per patch

1 of 6 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMark BrownArd Biesheuvel
SeriesR-b
1/6R-b
2/6
3/6
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/6] arm64: boot cleanups

This series (based on v5.13-rc1) reworks the way we initialize some state at boot time, simplifying and unifying the logic for primary and secondary CPUs. This allows us to initalize the per-cpu offsets earlier (which will help to enable KCSAN), and reduces the data we need to pass to a secondary. In future, this should allow us to transfer the secondary data atomically and make the secondary boot paths more robust to arbitrarily long delays.

I've based this on Mahdavan's stacktrace termination patch [1] (duplicated here unchanged), since it made sense to combine the unwind initialization along with the other CPU state, and otherwise there would be non-trivial merge conflicts.

I've given the series some boot testing with a variety of configurations, checking that stacktraces work correctly, etc.

The series can be found on my arm64/boot/rework branch on kernel.org:

https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git/log/?h=arm64/boot/rework
git://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git arm64/boot/rework

Thanks,
Mark.

[1] https://lore.kernel.org/r/[email protected]

Madhavan T. Venkataraman (1):
arm64: Implement stack trace termination record

Mark Rutland (5):
arm64: assembler: add set_this_cpu_offset
arm64: smp: remove pointless secondary_data maintenance
arm64: smp: remove stack from secondary_data
arm64: smp: unify task and sp setup
arm64: smp: initialize cpu offset earlier

 arch/arm64/include/asm/assembler.h | 18 ++++++++----
 arch/arm64/include/asm/smp.h       |  2 --
 arch/arm64/kernel/asm-offsets.c    |  2 +-
 arch/arm64/kernel/entry.S          |  2 +-
 arch/arm64/kernel/head.S           | 58 ++++++++++++++++++++++++--------------
 arch/arm64/kernel/process.c        |  5 ++++
 arch/arm64/kernel/setup.c          |  6 ----
 arch/arm64/kernel/smp.c            | 14 ++++-----
 arch/arm64/kernel/stacktrace.c     | 16 +++++------
 arch/arm64/mm/proc.S               | 12 ++------
 10 files changed, 72 insertions(+), 63 deletions(-)
Signature · 7 lines
2.11.0


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel