Skip to content

rework bad stack, sreset, hmi handling

Nicholas Piggin linuxppc-dev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5powerpc/64s/exception: remove bad stack brancharch/powerpc/include/asm/exception-64s.h arch/powerpc/include/asm/paca.h arch/powerpc/kernel/asm-offsets.c +2 more+22 -871 reply
2/5powerpc/64s/exception: optimise system_reset for idle, clean up non-idle casearch/powerpc/kernel/exceptions-64s.S+38 -310 replies
3/5powerpc/64s/exception: sreset move trampoline ahead of common codearch/powerpc/kernel/exceptions-64s.S+12 -120 replies
4/5powerpc/64s/exception: hmi remove special case macroarch/powerpc/kernel/exceptions-64s.S+4 -120 replies
5/5powerpc/64s/exception: simplify hmi control flowarch/powerpc/kernel/exceptions-64s.S+10 -160 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] rework bad stack, sreset, hmi handling

These are some significant changes to generated code here, again with the aim of simplifying and improving code sharing.

Patches 1, 2-3, and 4-5 are independent in case any run into problems.

Last big thing to do is machine check I'll try to send out tonight. After that we can start more unwinding of macros.

[ BTW, the end game here is that each handler should be able to more or
less specify _what_ it wants to do in macro flags, and the generation that takes care of _how_ will mostly be in a single place. e.g., Rather than some magic combination of EXCEPTION_<number>, it will just specify that it wants an early realmode handler with an alternate stack. ]

Nicholas Piggin (5):
powerpc/64s/exception: remove bad stack branch powerpc/64s/exception: optimise system_reset for idle, clean up
non-idle case
powerpc/64s/exception: sreset move trampoline ahead of common code powerpc/64s/exception: hmi remove special case macro powerpc/64s/exception: simplify hmi control flow

 arch/powerpc/include/asm/exception-64s.h |   7 -
 arch/powerpc/include/asm/paca.h          |   2 +
 arch/powerpc/kernel/asm-offsets.c        |   2 +
 arch/powerpc/kernel/exceptions-64s.S     | 231 ++++++++---------------
 arch/powerpc/xmon/xmon.c                 |   2 +
 5 files changed, 86 insertions(+), 158 deletions(-)
Signature · 1 line
2.20.1