Skip to content

RFC interrupt entry wrappers

Nicholas Piggin linuxppc-dev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest12 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12powerpc/64s: move the last of the page fault handling logic to Carch/powerpc/include/asm/bug.h arch/powerpc/kernel/exceptions-64s.S arch/powerpc/mm/book3s64/hash_utils.c +1 more+124 -1400 replies
2/12powerpc: remove arguments from interrupt handler functionsarch/powerpc/include/asm/asm-prototypes.h arch/powerpc/include/asm/bug.h arch/powerpc/kernel/exceptions-64e.S +4 more+27 -326 replies
3/12powerpc: interrupt handler wrapper functionsarch/powerpc/include/asm/asm-prototypes.h arch/powerpc/include/asm/bug.h arch/powerpc/include/asm/hw_irq.h +15 more+290 -800 replies
4/12powerpc: add interrupt_cond_local_irq_enable helperarch/powerpc/include/asm/interrupt.h arch/powerpc/kernel/traps.c arch/powerpc/mm/fault.c+15 -200 replies
5/12powerpc/64s: Do context tracking in interrupt entry wrapperarch/powerpc/Kconfig arch/powerpc/include/asm/interrupt.h arch/powerpc/kernel/ptrace/ptrace.c +5 more+55 -710 replies
6/12powerpc/64s: reconcile interrupts in Carch/powerpc/include/asm/interrupt.h arch/powerpc/kernel/exceptions-64s.S+4 -260 replies
7/12powerpc/64: move account_stolen_time into its own functionarch/powerpc/include/asm/cputime.h arch/powerpc/kernel/syscall_64.c+16 -90 replies
8/12powerpc/64: entry cpu time accounting in Carch/powerpc/include/asm/interrupt.h arch/powerpc/include/asm/ppc_asm.h arch/powerpc/kernel/exceptions-64e.S +1 more+4 -300 replies
9/12powerpc: move NMI entry/exit code into wrapperarch/powerpc/include/asm/interrupt.h arch/powerpc/kernel/mce.c arch/powerpc/kernel/traps.c +1 more+37 -491 reply
10/12powerpc/64s: move NMI soft-mask handling to Carch/powerpc/include/asm/interrupt.h arch/powerpc/kernel/exceptions-64s.S+25 -600 replies
11/12powerpc/64s: runlatch interrupt handling in Carch/powerpc/include/asm/interrupt.h arch/powerpc/kernel/exceptions-64s.S+14 -200 replies
12/12powerpc/64s: power4 nap fixup in Carch/powerpc/include/asm/interrupt.h arch/powerpc/include/asm/processor.h arch/powerpc/include/asm/thread_info.h +2 more+25 -454 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC PATCH 00/12] interrupt entry wrappers

This series moves more stuff to C, and fixes context tracking on 64s.

Nicholas Piggin (12):
powerpc/64s: move the last of the page fault handling logic to C
powerpc: remove arguments from interrupt handler functions
powerpc: interrupt handler wrapper functions
powerpc: add interrupt_cond_local_irq_enable helper powerpc/64s: Do context tracking in interrupt entry wrapper powerpc/64s: reconcile interrupts in C
powerpc/64: move account_stolen_time into its own function powerpc/64: entry cpu time accounting in C
powerpc: move NMI entry/exit code into wrapper powerpc/64s: move NMI soft-mask handling to C powerpc/64s: runlatch interrupt handling in C powerpc/64s: power4 nap fixup in C

 arch/powerpc/Kconfig                      |   2 +-
 arch/powerpc/include/asm/asm-prototypes.h |  28 --
 arch/powerpc/include/asm/bug.h            |   2 +-
 arch/powerpc/include/asm/cputime.h        |  15 +
 arch/powerpc/include/asm/hw_irq.h         |   9 -
 arch/powerpc/include/asm/interrupt.h      | 316 ++++++++++++++++++++++
 arch/powerpc/include/asm/ppc_asm.h        |  24 --
 arch/powerpc/include/asm/processor.h      |   1 +
 arch/powerpc/include/asm/thread_info.h    |   6 +
 arch/powerpc/include/asm/time.h           |   2 +
 arch/powerpc/kernel/dbell.c               |   3 +-
 arch/powerpc/kernel/exceptions-64e.S      |   3 -
 arch/powerpc/kernel/exceptions-64s.S      | 307 ++-------------------
 arch/powerpc/kernel/idle_book3s.S         |   4 +
 arch/powerpc/kernel/irq.c                 |   3 +-
 arch/powerpc/kernel/mce.c                 |  17 +-
 arch/powerpc/kernel/ptrace/ptrace.c       |   4 -
 arch/powerpc/kernel/signal.c              |   4 -
 arch/powerpc/kernel/syscall_64.c          |  24 +-
 arch/powerpc/kernel/tau_6xx.c             |   2 +-
 arch/powerpc/kernel/time.c                |   3 +-
 arch/powerpc/kernel/traps.c               | 198 ++++++--------
 arch/powerpc/kernel/watchdog.c            |  15 +-
 arch/powerpc/kvm/book3s_hv_builtin.c      |   1 +
 arch/powerpc/mm/book3s64/hash_utils.c     |  82 ++++--
 arch/powerpc/mm/book3s64/slb.c            |  12 +-
 arch/powerpc/mm/fault.c                   |  74 ++++-
 arch/powerpc/platforms/powernv/idle.c     |   1 +
 28 files changed, 608 insertions(+), 554 deletions(-)
 create mode 100644 arch/powerpc/include/asm/interrupt.h
Signature · 1 line
2.23.0