Skip to contentSkip to conversation

arm64: use SOFTIRQ_ON_OWN_STACK for enabling softirq stack

PATCH Superseded Ryo Takakura 3 participants 4 messages Oct 13, 2025 – Nov 5, 2025

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: use SOFTIRQ_ON_OWN_STACK for enabling softirq stack

For those architectures with HAVE_SOFTIRQ_ON_OWN_STACK use their dedicated softirq stack when !PREEMPT_RT. This condition is ensured by SOFTIRQ_ON_OWN_STACK.

Let arm64 use SOFTIRQ_ON_OWN_STACK as well to select its usage of the stack.

---
 arch/arm64/kernel/irq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/kernel/irq.c +1 -1
index c0065a1d77cf..15dedb385b9e 100644
@@ -62,7 +62,7 @@ static void __init init_irq_stacks(void)
 	}
 }
 
-#ifndef CONFIG_PREEMPT_RT
+#ifdef CONFIG_SOFTIRQ_ON_OWN_STACK
 static void ____do_softirq(struct pt_regs *regs)
 {
 	__do_softirq();
Signature · 1 line
2.34.1
maintainer Acked-by on v1 1/1
#2 lore raw
In reply to Ryo Takakura
Quoted 17 lines · Ryo Takakura

For those architectures with HAVE_SOFTIRQ_ON_OWN_STACK use their dedicated softirq stack when !PREEMPT_RT. This condition is ensured by SOFTIRQ_ON_OWN_STACK.

Let arm64 use SOFTIRQ_ON_OWN_STACK as well to select its usage of the stack.

---
 arch/arm64/kernel/irq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/kernel/irq.c +0 -0
index c0065a1d77cf..15dedb385b9e 100644

arch/arm64/kernel/irq.c static void __init init_irq_stacks(void) · line 68

Quoted 8 lines
arch/arm64/kernel/irq.c +1 -1
@@ -62,7 +62,7 @@ static void __init init_irq_stacks(void)
 	}
 }
 
-#ifndef CONFIG_PREEMPT_RT
+#ifdef CONFIG_SOFTIRQ_ON_OWN_STACK
 static void ____do_softirq(struct pt_regs *regs)
 {
 	__do_softirq();

Will

#3 lore raw

Hi!

Quoted 21 lines · Will Deacon
Quoted 20 lines · Ryo Takakura

For those architectures with HAVE_SOFTIRQ_ON_OWN_STACK use their dedicated softirq stack when !PREEMPT_RT. This condition is ensured by SOFTIRQ_ON_OWN_STACK.

Let arm64 use SOFTIRQ_ON_OWN_STACK as well to select its usage of the stack.

---
 arch/arm64/kernel/irq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/kernel/irq.c +0 -0
index c0065a1d77cf..15dedb385b9e 100644
@@ -62,7 +62,7 @@ static void __init init_irq_stacks(void)
 	}
 }
 
Quoted 7 lines

arch/arm64/kernel/irq.c static void __init init_irq_stacks(void) · line 68

Quoted 5 lines
arch/arm64/kernel/irq.c +1 -1
-#ifndef CONFIG_PREEMPT_RT
+#ifdef CONFIG_SOFTIRQ_ON_OWN_STACK
 static void ____do_softirq(struct pt_regs *regs)
 {
 	__do_softirq();

Thanks Sebastian and Will for checking!
I'll shortly send v2 with the tags.

Sincerely,
Ryo Takakura

Quoted 1 line

Will