From: Mukesh Kumar Chaurasiya <mkchauras@linux.ibm.com>
To: maddy@linux.ibm.com, mpe@ellerman.id.au, npiggin@gmail.com,
chleroy@kernel.org, oleg@redhat.com, kees@kernel.org,
luto@amacapital.net, wad@chromium.org, mchauras@linux.ibm.com,
thuth@redhat.com, sshegde@linux.ibm.com,
akpm@linux-foundation.org, macro@orcam.me.uk, deller@gmx.de,
ldv@strace.io, charlie@rivosinc.com, segher@kernel.crashing.org,
bigeasy@linutronix.de, peterz@infradead.org,
namcao@linutronix.de, tglx@linutronix.de,
kan.liang@linux.intel.com, mark.barnett@arm.com,
linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org
Cc: Mukesh Kumar Chaurasiya <mkchauras@linux.ibm.com>
Subject: [PATCH v3 0/8] Generic IRQ entry/exit support for powerpc
Date: Mon, 29 Dec 2025 10:24:08 +0530 [thread overview]
Message-ID: <20251229045416.3193779-1-mkchauras@linux.ibm.com> (raw)
Adding support for the generic irq entry/exit handling for PowerPC. The
goal is to bring PowerPC in line with other architectures that already
use the common irq entry infrastructure, reducing duplicated code and
making it easier to share future changes in entry/exit paths.
This is slightly tested of ppc64le and ppc32.
The performance benchmarks are below:
perf bench syscall usec/op
| Syscall | Base | New | change % |
| ------- | ---------- | ---------- | -------- |
| basic | 0.173212 | 0.133294 | -23.05 |
| execve | 363.176190 | 357.148150 | -1.66 |
| fork | 853.657880 | 840.268800 | -1.57 |
| getpgid | 0.174832 | 0.135372 | -22.57 |
perf bench syscall ops/sec
| Syscall | Base | New | change % |
| ------- | ------- | ------- | -------- |
| basic | 6006021 | 7502236 | +24.91 |
| execve | 2753 | 2800 | +1.71 |
| fork | 1171 | 1190 | +1.62 |
| getpgid | 5942117 | 7387040 | +24.32 |
IPI latency benchmark
| Metric | Base (ns) | Test (ns) | change % |
| -------------- | ------------- | ------------- | -------- |
| Dry-run | 206652.45 | 209317.37 | +1.29 |
| Self-IPI | 3567895.23 | 3590444.77 | +0.63 |
| Normal IPI | 148570416.17 | 148564173.40 | -0.00 |
| Broadcast IPI | 4033489673.38 | 4007319512.62 | -0.65 |
| Broadcast lock | 4011023005.48 | 4010267885.93 | -0.02 |
Thats very close to performance earlier with arch specific handling.
Tests done:
- Build and boot on ppc64le pseries.
- Build and boot on ppc64le powernv8 powernv9 powernv10.
- Build and boot on ppc32.
- Performance benchmark done with perf syscall basic on pseries.
Changelog:
V2 -> V3
- #ifdef CONFIG_GENERIC_IRQ_ENTRY removed from unnecessary places
- Some functions made __always_inline
- pt_regs padding changed to match 16byte interrupt stack alignment
- And some cosmetic changes from reviews from earlier patch
V2: https://lore.kernel.org/all/20251214130245.43664-1-mkchauras@linux.ibm.com/
V1 -> V2
- Fix an issue where context tracking was showing warnings for
incorrect context
V1: https://lore.kernel.org/all/20251102115358.1744304-1-mkchauras@linux.ibm.com/
RFC -> PATCH V1
- Fix for ppc32 spitting out kuap lock warnings.
- ppc64le powernv8 crash fix.
- Review comments incorporated from previous RFC.
RFC https://lore.kernel.org/all/20250908210235.137300-2-mchauras@linux.ibm.com/
Mukesh Kumar Chaurasiya (8):
powerpc: rename arch_irq_disabled_regs
powerpc: Prepare to build with generic entry/exit framework
powerpc: introduce arch_enter_from_user_mode
powerpc: Introduce syscall exit arch functions
powerpc: add exit_flags field in pt_regs
powerpc: Prepare for IRQ entry exit
powerpc: Enable IRQ generic entry/exit path.
powerpc: Enable Generic Entry/Exit for syscalls.
arch/powerpc/Kconfig | 2 +
arch/powerpc/include/asm/entry-common.h | 533 ++++++++++++++++++++++++
arch/powerpc/include/asm/hw_irq.h | 4 +-
arch/powerpc/include/asm/interrupt.h | 386 +++--------------
arch/powerpc/include/asm/ptrace.h | 6 +-
arch/powerpc/include/asm/signal.h | 1 -
arch/powerpc/include/asm/stacktrace.h | 6 +
arch/powerpc/include/asm/syscall.h | 5 +
arch/powerpc/include/asm/thread_info.h | 1 +
arch/powerpc/include/uapi/asm/ptrace.h | 14 +-
arch/powerpc/kernel/interrupt.c | 255 ++----------
arch/powerpc/kernel/ptrace/ptrace.c | 142 +------
arch/powerpc/kernel/signal.c | 25 +-
arch/powerpc/kernel/syscall.c | 119 +-----
arch/powerpc/kernel/traps.c | 2 +-
arch/powerpc/kernel/watchdog.c | 2 +-
arch/powerpc/perf/core-book3s.c | 2 +-
17 files changed, 681 insertions(+), 824 deletions(-)
create mode 100644 arch/powerpc/include/asm/entry-common.h
--
2.52.0
next reply other threads:[~2025-12-29 4:56 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-29 4:54 Mukesh Kumar Chaurasiya [this message]
2025-12-29 4:54 ` [PATCH v3 1/8] powerpc: rename arch_irq_disabled_regs Mukesh Kumar Chaurasiya
2025-12-29 4:54 ` [PATCH v3 2/8] powerpc: Prepare to build with generic entry/exit framework Mukesh Kumar Chaurasiya
2025-12-29 4:54 ` [PATCH v3 3/8] powerpc: introduce arch_enter_from_user_mode Mukesh Kumar Chaurasiya
2025-12-29 4:54 ` [PATCH v3 4/8] powerpc: Introduce syscall exit arch functions Mukesh Kumar Chaurasiya
2025-12-29 4:54 ` [PATCH v3 5/8] powerpc: add exit_flags field in pt_regs Mukesh Kumar Chaurasiya
2025-12-29 4:54 ` [PATCH v3 6/8] powerpc: Prepare for IRQ entry exit Mukesh Kumar Chaurasiya
2025-12-29 4:54 ` [PATCH v3 7/8] powerpc: Enable IRQ generic entry/exit path Mukesh Kumar Chaurasiya
2026-01-01 17:31 ` Shrikanth Hegde
2026-01-06 4:59 ` Mukesh Kumar Chaurasiya
2025-12-29 4:54 ` [PATCH v3 8/8] powerpc: Enable Generic Entry/Exit for syscalls Mukesh Kumar Chaurasiya
2026-01-01 9:07 ` [PATCH v3 0/8] Generic IRQ entry/exit support for powerpc Shrikanth Hegde
2026-01-06 5:01 ` Mukesh Kumar Chaurasiya
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251229045416.3193779-1-mkchauras@linux.ibm.com \
--to=mkchauras@linux.ibm.com \
--cc=akpm@linux-foundation.org \
--cc=bigeasy@linutronix.de \
--cc=charlie@rivosinc.com \
--cc=chleroy@kernel.org \
--cc=deller@gmx.de \
--cc=kan.liang@linux.intel.com \
--cc=kees@kernel.org \
--cc=ldv@strace.io \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=luto@amacapital.net \
--cc=macro@orcam.me.uk \
--cc=maddy@linux.ibm.com \
--cc=mark.barnett@arm.com \
--cc=mchauras@linux.ibm.com \
--cc=mpe@ellerman.id.au \
--cc=namcao@linutronix.de \
--cc=npiggin@gmail.com \
--cc=oleg@redhat.com \
--cc=peterz@infradead.org \
--cc=segher@kernel.crashing.org \
--cc=sshegde@linux.ibm.com \
--cc=tglx@linutronix.de \
--cc=thuth@redhat.com \
--cc=wad@chromium.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).