Skip to content

RFC current interrupt series plus scv syscall

Nicholas Piggin linuxppc-dev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest27 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/27powerpc/64s/exception: Introduce INT_DEFINE parameter block for code generationarch/powerpc/kernel/exceptions-64s.S+73 -40 replies
2/27powerpc/64s/exception: Add GEN_COMMON macro that uses INT_DEFINE parametersarch/powerpc/kernel/exceptions-64s.S+17 -70 replies
3/27powerpc/64s/exception: Add GEN_KVM macro that uses INT_DEFINE parametersarch/powerpc/kernel/exceptions-64s.S+11 -10 replies
4/27powerpc/64s/exception: Expand EXC_COMMON and EXC_COMMON_ASYNC macrosarch/powerpc/kernel/exceptions-64s.S+117 -430 replies
5/27powerpc/64s/exception: Move all interrupt handlers to new style code gen macrosarch/powerpc/kernel/exceptions-64s.S+418 -1380 replies
6/27powerpc/64s/exception: Remove old INT_ENTRY macroarch/powerpc/kernel/exceptions-64s.S+30 -380 replies
7/27powerpc/64s/exception: Remove old INT_COMMON macroarch/powerpc/kernel/exceptions-64s.S+24 -270 replies
8/27powerpc/64s/exception: Remove old INT_KVM_HANDLERarch/powerpc/kernel/exceptions-64s.S+26 -290 replies
9/27powerpc/64s/exception: Add ISIDE optionarch/powerpc/kernel/exceptions-64s.S+16 -70 replies
10/27powerpc/64s/exception: move real->virt switch into the common handlerarch/powerpc/include/asm/exception-64s.h arch/powerpc/kernel/exceptions-64s.S+109 -1460 replies
11/27powerpc/64s/exception: move soft-mask test to common codearch/powerpc/kernel/exceptions-64s.S+49 -570 replies
12/27powerpc/64s/exception: move KVM test to common codearch/powerpc/kernel/exceptions-64s.S arch/powerpc/kvm/book3s_hv_rmhandlers.S arch/powerpc/kvm/book3s_segment.S+119 -1380 replies
13/27powerpc/64s/exception: remove confusing IEARLY optionarch/powerpc/kernel/exceptions-64s.S+24 -240 replies
14/27powerpc/64s/exception: remove the SPR saving patch code macrosarch/powerpc/kernel/exceptions-64s.S+28 -540 replies
15/27powerpc/64s/exception: trim unused arguments from KVMTEST macroarch/powerpc/kernel/exceptions-64s.S+5 -50 replies
16/27powerpc/64s/exception: hdecrementer avoid touching the stackarch/powerpc/include/asm/time.h arch/powerpc/kernel/exceptions-64s.S arch/powerpc/kernel/time.c+20 -150 replies
17/27powerpc/64s/exception: re-inline some handlersarch/powerpc/kernel/exceptions-64s.S+3 -30 replies
18/27powerpc/64s/exception: Clean up SRR specifiersarch/powerpc/kernel/exceptions-64s.S+32 -360 replies
19/27powerpc/64s/exception: add more comments for interrupt handlersarch/powerpc/kernel/exceptions-64s.S+353 -380 replies
20/27powerpc/64s/exception: only test KVM in SRR interrupts when PR KVM is supportedarch/powerpc/kernel/exceptions-64s.S+62 -30 replies
21/27powerpc/64s/exception: soft nmi interrupt should not use ret_from_exceptarch/powerpc/kernel/exceptions-64s.S+5 -10 replies
22/27powerpc/64: system call remove non-volatile GPR save optimisationarch/powerpc/kernel/entry_64.S arch/powerpc/kernel/syscalls/syscall.tbl+28 -660 replies
23/27powerpc/64: system call implement the bulk of the logic in Carch/powerpc/include/asm/asm-prototypes.h arch/powerpc/include/asm/book3s/64/kup-radix.h arch/powerpc/include/asm/cputime.h +10 more+300 -3132 replies
24/27powerpc/64s: interrupt return in Carch/powerpc/include/asm/book3s/64/kup-radix.h arch/powerpc/include/asm/switch_to.h arch/powerpc/kernel/entry_64.S +5 more+576 -4491 reply
25/27powerpc/64s/exception: remove lite interrupt returnarch/powerpc/kernel/entry_64.S arch/powerpc/kernel/exceptions-64s.S+11 -140 replies
26/27powerpc/64s/exception: treat NIA below __end_interrupts as soft-maskedarch/powerpc/kernel/exceptions-64s.S+31 -30 replies
27/27powerpc/64s: system call support for scv/rfscv instructionsarch/powerpc/include/asm/head-64.h arch/powerpc/include/asm/ppc_asm.h arch/powerpc/include/asm/processor.h +5 more+245 -71 reply

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/27] current interrupt series plus scv syscall

My interrupt entry patches have finally collided with syscall and interrupt exit patches, so I'll merge the series. Most patches have been seen already, however there have been a number of small changes and fixes throughout the series.

The final two patches add support for 'scv' and 'rfscv' instructions.

I'm posting this out now so we can start considering ABI and userspace support. We have the PPC_FEATURE2_SCV hwcap for this.

Thanks,
Nick

Nicholas Piggin (27):
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 powerpc/64s/exception: Add ISIDE option powerpc/64s/exception: move real->virt switch into the common handler powerpc/64s/exception: move soft-mask test to common code powerpc/64s/exception: move KVM test to common code powerpc/64s/exception: remove confusing IEARLY option powerpc/64s/exception: remove the SPR saving patch code macros powerpc/64s/exception: trim unused arguments from KVMTEST macro powerpc/64s/exception: hdecrementer avoid touching the stack powerpc/64s/exception: re-inline some handlers powerpc/64s/exception: Clean up SRR specifiers powerpc/64s/exception: add more comments for interrupt handlers powerpc/64s/exception: only test KVM in SRR interrupts when PR KVM is
supported
powerpc/64s/exception: soft nmi interrupt should not use
ret_from_except
powerpc/64: system call remove non-volatile GPR save optimisation powerpc/64: system call implement the bulk of the logic in C powerpc/64s: interrupt return in C
powerpc/64s/exception: remove lite interrupt return powerpc/64s/exception: treat NIA below __end_interrupts as soft-masked powerpc/64s: system call support for scv/rfscv instructions

 arch/powerpc/include/asm/asm-prototypes.h     |   11 -
 .../powerpc/include/asm/book3s/64/kup-radix.h |   24 +-
 arch/powerpc/include/asm/cputime.h            |   24 +
 arch/powerpc/include/asm/exception-64s.h      |    4 -
 arch/powerpc/include/asm/head-64.h            |    2 +-
 arch/powerpc/include/asm/hw_irq.h             |    4 +
 arch/powerpc/include/asm/ppc_asm.h            |    2 +
 arch/powerpc/include/asm/processor.h          |    2 +-
 arch/powerpc/include/asm/ptrace.h             |    3 +
 arch/powerpc/include/asm/signal.h             |    3 +
 arch/powerpc/include/asm/switch_to.h          |   11 +
 arch/powerpc/include/asm/time.h               |    4 +-
 arch/powerpc/kernel/Makefile                  |    3 +-
 arch/powerpc/kernel/cpu_setup_power.S         |    2 +-
 arch/powerpc/kernel/dt_cpu_ftrs.c             |    1 +
 arch/powerpc/kernel/entry_64.S                |  964 ++------
 arch/powerpc/kernel/exceptions-64e.S          |  254 +-
 arch/powerpc/kernel/exceptions-64s.S          | 2046 ++++++++++++-----
 arch/powerpc/kernel/process.c                 |    2 +
 arch/powerpc/kernel/signal.h                  |    2 -
 arch/powerpc/kernel/syscall_64.c              |  422 ++++
 arch/powerpc/kernel/syscalls/syscall.tbl      |   22 +-
 arch/powerpc/kernel/systbl.S                  |    9 +-
 arch/powerpc/kernel/time.c                    |    9 -
 arch/powerpc/kernel/vector.S                  |    2 +-
 arch/powerpc/kvm/book3s_hv_rmhandlers.S       |   11 -
 arch/powerpc/kvm/book3s_segment.S             |    7 -
 27 files changed, 2458 insertions(+), 1392 deletions(-)
 create mode 100644 arch/powerpc/kernel/syscall_64.c
Signature · 1 line
2.23.0