Skip to content

powerpc/64: interrupts and syscalls series

Nicholas Piggin linux-fsdevel linuxppc-dev lkml oe-kbuild-all 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest32 patches 20 repliesIn review
  2. v220 patches 0 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/32powerpc/64s/exception: Introduce INT_DEFINE parameter block for code generationarch/powerpc/kernel/exceptions-64s.S+73 -41 reply
2/32powerpc/64s/exception: Add GEN_COMMON macro that uses INT_DEFINE parametersarch/powerpc/kernel/exceptions-64s.S+17 -70 replies
3/32powerpc/64s/exception: Add GEN_KVM macro that uses INT_DEFINE parametersarch/powerpc/kernel/exceptions-64s.S+11 -10 replies
4/32powerpc/64s/exception: Expand EXC_COMMON and EXC_COMMON_ASYNC macrosarch/powerpc/kernel/exceptions-64s.S+117 -430 replies
5/32powerpc/64s/exception: Move all interrupt handlers to new style code gen macrosarch/powerpc/kernel/exceptions-64s.S+418 -1380 replies
6/32powerpc/64s/exception: Remove old INT_ENTRY macroarch/powerpc/kernel/exceptions-64s.S+30 -380 replies
7/32powerpc/64s/exception: Remove old INT_COMMON macroarch/powerpc/kernel/exceptions-64s.S+24 -270 replies
8/32powerpc/64s/exception: Remove old INT_KVM_HANDLERarch/powerpc/kernel/exceptions-64s.S+26 -290 replies
9/32powerpc/64s/exception: Add ISIDE optionarch/powerpc/kernel/exceptions-64s.S+16 -70 replies
10/32powerpc/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/32powerpc/64s/exception: move soft-mask test to common codearch/powerpc/kernel/exceptions-64s.S+49 -570 replies
12/32powerpc/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/32powerpc/64s/exception: remove confusing IEARLY optionarch/powerpc/kernel/exceptions-64s.S+24 -240 replies
14/32powerpc/64s/exception: remove the SPR saving patch code macrosarch/powerpc/kernel/exceptions-64s.S+28 -540 replies
15/32powerpc/64s/exception: trim unused arguments from KVMTEST macroarch/powerpc/kernel/exceptions-64s.S+5 -50 replies
16/32powerpc/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/32powerpc/64s/exception: re-inline some handlersarch/powerpc/kernel/exceptions-64s.S+3 -30 replies
18/32powerpc/64s/exception: Clean up SRR specifiersarch/powerpc/kernel/exceptions-64s.S+32 -360 replies
19/32powerpc/64s/exception: add more comments for interrupt handlersarch/powerpc/kernel/exceptions-64s.S+353 -380 replies
20/32powerpc/64s/exception: only test KVM in SRR interrupts when PR KVM is supportedarch/powerpc/kernel/exceptions-64s.S+62 -30 replies
21/32powerpc/64s/exception: sreset interrupts reconcile fixarch/powerpc/kernel/exceptions-64s.S+10 -40 replies
22/32powerpc/64s/exception: soft nmi interrupt should not use ret_from_exceptarch/powerpc/kernel/exceptions-64s.S+28 -10 replies
23/32powerpc/64: system call remove non-volatile GPR save optimisationarch/powerpc/kernel/entry_64.S arch/powerpc/kernel/syscalls/syscall.tbl+28 -660 replies
24/32powerpc/64: sstep ifdef the deprecated fast endian switch syscallarch/powerpc/lib/sstep.c+3 -20 replies
25/32powerpc/64: system call implement entry/exit 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+328 -3152 replies
26/32powerpc/64: system call zero volatile registers when returningarch/powerpc/kernel/entry_64.S+12 -03 replies
27/32powerpc/64: implement soft interrupt replay in Carch/powerpc/include/asm/hw_irq.h arch/powerpc/kernel/exceptions-64e.S arch/powerpc/kernel/exceptions-64s.S +1 more+130 -1150 replies
28/32powerpc/64s: interrupt implement exit logic in Carch/powerpc/include/asm/book3s/64/kup-radix.h arch/powerpc/include/asm/hw_irq.h arch/powerpc/include/asm/switch_to.h +7 more+642 -52615 replies
29/32powerpc/64s/exception: remove lite interrupt returnarch/powerpc/kernel/entry_64.S arch/powerpc/kernel/exceptions-64s.S+14 -160 replies
30/32powerpc/64: system call reconcile interruptsarch/powerpc/kernel/entry_64.S arch/powerpc/kernel/syscall_64.c+24 -150 replies
31/32powerpc/64s/exception: treat NIA below __end_interrupts as soft-maskedarch/powerpc/kernel/exceptions-64s.S+24 -30 replies
32/32powerpc/64s: system call support for scv/rfscv instructionsDocumentation/powerpc/syscall64-abi.rst arch/powerpc/include/asm/asm-prototypes.h arch/powerpc/include/asm/exception-64s.h +12 more+295 -310 replies

Reviews trailers per patch

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

PatchArnd BergmannChristophe Leroy
SeriesR-b R-b R-b R-b R-b R-b R-b R-b
1/32
2/32
3/32
4/32
5/32
6/32
7/32
8/32
9/32
10/32
11/32
12/32
13/32
14/32
15/32
16/32
17/32
18/32
19/32
20/32
21/32
22/32
23/32
24/32
25/32
26/32
27/32
28/32
29/32
30/32
31/32
32/32

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

Read the v3 thread

Cover letter [PATCH v3 00/32] powerpc/64: interrupts and syscalls series

This is a long overdue update of the series, with fixes from me Michal and Michael. Does not include Michal's syscall compat series.

Patches 1-22 are changes to low level 64s interrupt entry assembly which has been posted before, no change except adding patch 21 and fixing patch 22 to reconcile irq state in the soft-nmi handler to avoid preempt warnings.

Patches 23-26 are to turn system call entry/exit code into C. Bunch of irq and preempt and TM warnings and bugs caught by selftests etc fixed, plus a few peripheral patches added (sstep and zeroing regs).

Patches 27-29 are to turn interrupt exit code into C. This had a bit more change, most significantly a change to how interrupt exit soft irq replay works.

Patches 30-32 are for scv system call support. Lot of changes here to turn it into something a bit better than RFC quality. Discussion about ABI seems to be settling and not very controversial.

Thanks,
Nick

Nicholas Piggin (32):
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: sreset interrupts reconcile fix powerpc/64s/exception: soft nmi interrupt should not use
ret_from_except
powerpc/64: system call remove non-volatile GPR save optimisation powerpc/64: sstep ifdef the deprecated fast endian switch syscall powerpc/64: system call implement entry/exit logic in C powerpc/64: system call zero volatile registers when returning powerpc/64: implement soft interrupt replay in C powerpc/64s: interrupt implement exit logic in C powerpc/64s/exception: remove lite interrupt return powerpc/64: system call reconcile interrupts powerpc/64s/exception: treat NIA below __end_interrupts as soft-masked powerpc/64s: system call support for scv/rfscv instructions

 Documentation/powerpc/syscall64-abi.rst       |   42 +-
 arch/powerpc/include/asm/asm-prototypes.h     |   17 +-
 .../powerpc/include/asm/book3s/64/kup-radix.h |   24 +-
 arch/powerpc/include/asm/cputime.h            |   29 +
 arch/powerpc/include/asm/exception-64s.h      |   10 +-
 arch/powerpc/include/asm/head-64.h            |    2 +-
 arch/powerpc/include/asm/hw_irq.h             |    6 +-
 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/setup.h              |    4 +-
 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/cputable.c                |    3 +-
 arch/powerpc/kernel/dt_cpu_ftrs.c             |    1 +
 arch/powerpc/kernel/entry_64.S                | 1017 +++-----
 arch/powerpc/kernel/exceptions-64e.S          |  287 ++-
 arch/powerpc/kernel/exceptions-64s.S          | 2168 ++++++++++++-----
 arch/powerpc/kernel/irq.c                     |  183 +-
 arch/powerpc/kernel/process.c                 |   89 +-
 arch/powerpc/kernel/setup_64.c                |    5 +-
 arch/powerpc/kernel/signal.h                  |    2 -
 arch/powerpc/kernel/syscall_64.c              |  379 +++
 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 -
 arch/powerpc/lib/sstep.c                      |    5 +-
 arch/powerpc/platforms/pseries/setup.c        |    8 +-
 34 files changed, 2769 insertions(+), 1602 deletions(-)
 create mode 100644 arch/powerpc/kernel/syscall_64.c
Signature · 1 line
2.23.0