[PATCH v4 0/2] ARM and ARM V7M generic entry

Linus Walleij posted 2 patches 11 hours ago
arch/arm/Kconfig                    |   1 +
arch/arm/include/asm/entry-common.h |  16 +++++
arch/arm/include/asm/entry.h        |  16 +++++
arch/arm/include/asm/ptrace.h       |   7 +-
arch/arm/kernel/Makefile            |   2 +-
arch/arm/kernel/entry-armv.S        |  78 ++++++---------------
arch/arm/kernel/entry-common.S      |   8 ++-
arch/arm/kernel/entry-header.S      |   7 +-
arch/arm/kernel/entry-v7m.S         |  49 +++----------
arch/arm/kernel/entry.c             | 133 ++++++++++++++++++++++++++++++++++++
arch/arm/kernel/irq.c               |   6 ++
arch/arm/kernel/irq.h               |   2 +
arch/arm/kernel/signal.c            |   6 ++
13 files changed, 227 insertions(+), 104 deletions(-)
[PATCH v4 0/2] ARM and ARM V7M generic entry
Posted by Linus Walleij 11 hours ago
An earlier attempt at generic entry for everything (like syscalls)
was too invasive. Let's begin with just IRQ entry.

On QEMU Cortex-A15, perf bench syscall basic and perf bench sched
messaging (sockets and pipes) showed no statistically significant
slowdown in 12 paired runs against v7.4-rc1.

V7M is now handled by way of Yoshifumi SHU:s patch.

An LLM assisted with this patch series.

Signed-off-by: Linus Walleij <linusw@kernel.org>
---
Changes in v4:
- Rebased on v7.4-rc1.
- Fix rseq aborts on V7M preemption.
- Add Yoshifumi SHU's V7M generic IRQ entry patch.
- Link to v3: https://patch.msgid.link/20260910-arm-generic-irq-entry-v7-1-v3-1-5fd90f6859e1@kernel.org

Changes in v3:
- Rebased on v7.3-rc1.
- Fix rseq abort handling for synchronous userspace exceptions.
- Link to v2: https://patch.msgid.link/20260806-arm-generic-irq-entry-v7-1-v2-1-3dd7747b2567@kernel.org

Changes in v2:
- Rebase on v7.2-rc1
- Select GENERIC_IRQ_ENTRY also for V7M even if this platform is not
  using it, in order to properly link the image.
- Link to v1: https://patch.msgid.link/20260623-arm-generic-irq-entry-v7-1-v1-1-f25ca7079e3b@kernel.org

---
Linus Walleij (1):
      ARM: entry: Convert IRQ handling to generic IRQ entry

Yoshifumi SHU (1):
      ARM: v7m: entry: Convert IRQ handling to generic IRQ entry

 arch/arm/Kconfig                    |   1 +
 arch/arm/include/asm/entry-common.h |  16 +++++
 arch/arm/include/asm/entry.h        |  16 +++++
 arch/arm/include/asm/ptrace.h       |   7 +-
 arch/arm/kernel/Makefile            |   2 +-
 arch/arm/kernel/entry-armv.S        |  78 ++++++---------------
 arch/arm/kernel/entry-common.S      |   8 ++-
 arch/arm/kernel/entry-header.S      |   7 +-
 arch/arm/kernel/entry-v7m.S         |  49 +++----------
 arch/arm/kernel/entry.c             | 133 ++++++++++++++++++++++++++++++++++++
 arch/arm/kernel/irq.c               |   6 ++
 arch/arm/kernel/irq.h               |   2 +
 arch/arm/kernel/signal.c            |   6 ++
 13 files changed, 227 insertions(+), 104 deletions(-)
---
base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4
change-id: 20260622-arm-generic-irq-entry-v7-1-ff6c1d6c9c48

Best regards,
--  
Linus Walleij <linusw@kernel.org>