Skip to content

powerpc/64s/exception: cleanup and macrofiy,

Nicholas Piggin linuxppc-dev 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest posting 2/244 patches 4 repliesIn review
  2. v2 posting 1/216 patches 0 repliesSuperseded
  3. v114 patches 0 repliesSuperseded

Patches in v2 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/44powerpc/64s/exception: machine check fwnmi remove HV casearch/powerpc/kernel/exceptions-64s.S+1 -21 reply
2/44powerpc/64s/exception: machine check remove bitrotted commentarch/powerpc/kernel/exceptions-64s.S+0 -40 replies
3/44powerpc/64s/exception: machine check fix KVM guest testarch/powerpc/kernel/exceptions-64s.S+13 -200 replies
4/44powerpc/64s/exception: machine check adjust RFI targetarch/powerpc/kernel/exceptions-64s.S+1 -10 replies
5/44powerpc/64s/exception: machine check pseries should always run the early handlerarch/powerpc/kernel/exceptions-64s.S+0 -40 replies
6/44powerpc/64s/exception: machine check remove machine_check_pSeries_0 brancharch/powerpc/kernel/exceptions-64s.S+10 -130 replies
7/44powerpc/64s/exception: machine check use correct cfar for late handlerarch/powerpc/kernel/exceptions-64s.S+4 -00 replies
8/44powerpc/64s/powernv: machine check dump SLB contentsarch/powerpc/kernel/mce.c arch/powerpc/kernel/mce_power.c arch/powerpc/platforms/powernv/setup.c +1 more+32 -110 replies
9/44powerpc/64s/pseries: machine check convert to use common event codearch/powerpc/include/asm/mce.h arch/powerpc/kernel/mce.c arch/powerpc/platforms/pseries/ras.c+230 -2672 replies
10/44powerpc/64s/exception: machine check pseries should skip the late handler for kernel MCEsarch/powerpc/kernel/exceptions-64s.S+2 -200 replies
11/44powerpc/64s/exception: machine check restructure to reuse common macrosarch/powerpc/kernel/exceptions-64s.S+36 -350 replies
12/44powerpc/64s/exception: machine check move tramp codearch/powerpc/kernel/exceptions-64s.S+11 -110 replies
13/44powerpc/64s/exception: simplify machine check early patharch/powerpc/kernel/exceptions-64s.S+22 -90 replies
14/44powerpc/64s/exception: machine check move unrecoverable handling out of linearch/powerpc/kernel/exceptions-64s.S+44 -430 replies
15/44powerpc/64s/exception: untangle early machine check handler brancharch/powerpc/kernel/exceptions-64s.S+62 -670 replies
16/44powerpc/64s/exception: machine check improve labels and commentsarch/powerpc/kernel/exceptions-64s.S+10 -40 replies
17/44powerpc/64s/exception: Fix DAR load for handle_page_fault error casearch/powerpc/kernel/exceptions-64s.S+1 -10 replies
18/44powerpc/64s/exception: move head-64.h exception code to exception-64s.Sarch/powerpc/include/asm/head-64.h arch/powerpc/kernel/exceptions-64s.S+41 -410 replies
19/44powerpc/64s/exception: Add EXC_HV_OR_STD, which selects HSRR if HVMODEarch/powerpc/kernel/exceptions-64s.S+79 -230 replies
20/44powerpc/64s/exception: Fix performance monitor virt handlerarch/powerpc/kernel/exceptions-64s.S+1 -10 replies
21/44powerpc/64s/exception: remove 0xb00 handlerarch/powerpc/kernel/exceptions-64s.S+2 -41 reply
22/44powerpc/64s/exception: Replace PROLOG macros and EXC helpers with a gas macroarch/powerpc/kernel/exceptions-64s.S+206 -2960 replies
23/44powerpc/64s/exception: remove EXCEPTION_PROLOG_0/1, rename _2arch/powerpc/kernel/exceptions-64s.S+73 -780 replies
24/44powerpc/64s/exception: Add the virt variant of the denorm interrupt handlerarch/powerpc/kernel/exceptions-64s.S+5 -10 replies
25/44powerpc/64s/exception: INT_HANDLER support HDAR/HDSISR and use it in HDSIarch/powerpc/kernel/exceptions-64s.S+10 -60 replies
26/44powerpc/64s/exception: Add INT_KVM_HANDLER gas macroarch/powerpc/kernel/exceptions-64s.S+40 -590 replies
27/44powerpc/64s/exception: KVM_HANDLER reorder arguments to match other macrosarch/powerpc/kernel/exceptions-64s.S+8 -80 replies
28/44powerpc/64s/exception: Merge EXCEPTION_PROLOG_COMMON_2/3arch/powerpc/kernel/exceptions-64s.S+6 -120 replies
29/44powerpc/64s/exception: Add INT_COMMON gas macro to generate common exception codearch/powerpc/kernel/exceptions-64s.S+32 -200 replies
30/44powerpc/64s/exception: Expand EXCEPTION_COMMON macro into callerarch/powerpc/kernel/exceptions-64s.S+27 -270 replies
31/44powerpc/64s/exception: Expand EXCEPTION_PROLOG_COMMON_1 and 2 into callerarch/powerpc/kernel/exceptions-64s.S+40 -450 replies
32/44powerpc/64s/exception: INT_COMMON add DAR, DSISR, reconcile optionsarch/powerpc/kernel/exceptions-64s.S+51 -600 replies
33/44powerpc/64s/exception: move interrupt entry code above the common handlerarch/powerpc/kernel/exceptions-64s.S+225 -2250 replies
34/44powerpc/64s/exception: program check handler do not branch into a macroarch/powerpc/kernel/exceptions-64s.S+8 -70 replies
35/44powerpc/64s/exception: Remove pointless KVM handler name bifurcationarch/powerpc/kernel/exceptions-64s.S+44 -580 replies
36/44powerpc/64s/exception: reduce page fault unnecessary loadsarch/powerpc/kernel/exceptions-64s.S arch/powerpc/mm/book3s64/hash_utils.c+19 -230 replies
37/44powerpc/64s/exception: Introduce INT_DEFINE parameter block for code generationarch/powerpc/kernel/exceptions-64s.S+83 -40 replies
38/44powerpc/64s/exception: Add GEN_COMMON macro that uses INT_DEFINE parametersarch/powerpc/kernel/exceptions-64s.S+20 -70 replies
39/44powerpc/64s/exception: Add GEN_KVM macro that uses INT_DEFINE parametersarch/powerpc/kernel/exceptions-64s.S+11 -10 replies
40/44powerpc/64s/exception: Expand EXC_COMMON and EXC_COMMON_ASYNC macrosarch/powerpc/kernel/exceptions-64s.S+117 -430 replies
41/44powerpc/64s/exception: Move all interrupt handlers to new style code gen macrosarch/powerpc/kernel/exceptions-64s.S+465 -1460 replies
42/44powerpc/64s/exception: Remove old INT_ENTRY macroarch/powerpc/kernel/exceptions-64s.S+34 -420 replies
43/44powerpc/64s/exception: Remove old INT_COMMON macroarch/powerpc/kernel/exceptions-64s.S+24 -270 replies
44/44powerpc/64s/exception: Remove old INT_KVM_HANDLERarch/powerpc/kernel/exceptions-64s.S+28 -290 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 00/44] powerpc/64s/exception: cleanup and macrofiy,

This series is the combined outstanding series posted previously, plus a change to a new way to define parameters for interrupt code generation macros (which is a bit clunky but works better than alternatives).

This is mostly the end result. There is still a few minor things that could be done, and possibly we could add a "standard form" macro for well behaved handlers that don't require any custom code, which blats out everything (the real and virt vectors, KVM handler, and common handler stuff) in one line after the definition block. But that's not really important now.

After this we can start on actually improving the generated code.

Thanks,
Nick

Nicholas Piggin (44):
powerpc/64s/exception: machine check fwnmi remove HV case powerpc/64s/exception: machine check remove bitrotted comment powerpc/64s/exception: machine check fix KVM guest test powerpc/64s/exception: machine check adjust RFI target powerpc/64s/exception: machine check pseries should always run the
early handler
powerpc/64s/exception: machine check remove machine_check_pSeries_0
branch
powerpc/64s/exception: machine check use correct cfar for late handler powerpc/64s/powernv: machine check dump SLB contents powerpc/64s/pseries: machine check convert to use common event code powerpc/64s/exception: machine check pseries should skip the late
handler for kernel MCEs
powerpc/64s/exception: machine check restructure to reuse common
macros
powerpc/64s/exception: machine check move tramp code powerpc/64s/exception: simplify machine check early path powerpc/64s/exception: machine check move unrecoverable handling out
of line
powerpc/64s/exception: untangle early machine check handler branch powerpc/64s/exception: machine check improve labels and comments powerpc/64s/exception: Fix DAR load for handle_page_fault error case powerpc/64s/exception: move head-64.h exception code to

    exception-64s.S

powerpc/64s/exception: Add EXC_HV_OR_STD, which selects HSRR if HVMODE powerpc/64s/exception: Fix performance monitor virt handler powerpc/64s/exception: remove 0xb00 handler powerpc/64s/exception: Replace PROLOG macros and EXC helpers with a
gas macro
powerpc/64s/exception: remove EXCEPTION_PROLOG_0/1, rename _2 powerpc/64s/exception: Add the virt variant of the denorm interrupt
handler
powerpc/64s/exception: INT_HANDLER support HDAR/HDSISR and use it in
HDSI
powerpc/64s/exception: Add INT_KVM_HANDLER gas macro powerpc/64s/exception: KVM_HANDLER reorder arguments to match other
macros
powerpc/64s/exception: Merge EXCEPTION_PROLOG_COMMON_2/3 powerpc/64s/exception: Add INT_COMMON gas macro to generate common
exception code
powerpc/64s/exception: Expand EXCEPTION_COMMON macro into caller powerpc/64s/exception: Expand EXCEPTION_PROLOG_COMMON_1 and 2 into
caller
powerpc/64s/exception: INT_COMMON add DAR, DSISR, reconcile options powerpc/64s/exception: move interrupt entry code above the common
handler
powerpc/64s/exception: program check handler do not branch into a
macro
powerpc/64s/exception: Remove pointless KVM handler name bifurcation powerpc/64s/exception: reduce page fault unnecessary loads powerpc/64s/exception: Introduce INT_DEFINE parameter block for code
generation
powerpc/64s/exception: Add GEN_COMMON macro that uses INT_DEFINE
parameters
powerpc/64s/exception: Add GEN_KVM macro that uses INT_DEFINE
parameters
powerpc/64s/exception: Expand EXC_COMMON and EXC_COMMON_ASYNC macros powerpc/64s/exception: Move all interrupt handlers to new style code
gen macros
powerpc/64s/exception: Remove old INT_ENTRY macro powerpc/64s/exception: Remove old INT_COMMON macro powerpc/64s/exception: Remove old INT_KVM_HANDLER

 arch/powerpc/include/asm/head-64.h     |   41 -
 arch/powerpc/include/asm/mce.h         |    6 +
 arch/powerpc/kernel/exceptions-64s.S   | 2242 ++++++++++++++----------
 arch/powerpc/kernel/mce.c              |   40 +-
 arch/powerpc/kernel/mce_power.c        |    4 +
 arch/powerpc/mm/book3s64/hash_utils.c  |    4 +-
 arch/powerpc/platforms/powernv/setup.c |    9 +
 arch/powerpc/platforms/pseries/ras.c   |  457 ++---
 arch/powerpc/platforms/pseries/setup.c |   24 +-
 9 files changed, 1600 insertions(+), 1227 deletions(-)
Signature · 1 line
2.22.0