History

sparc64: Eliminate obsolete __handle_softirq() function

The invocation of softirq is now handled by irq_exit(), so there is no need for sparc64 to invoke it on the trap-return path. In fact, doing so is a bug because if the trap occurred in the idle loop, this invocation can result in lockdep-RCU failures. The problem is that RCU ignores idle CPUs, and the sparc64 trap-return path to the softirq handlers fails to tell RCU that the CPU must be considered non-idle while those handlers are executing. This means that RCU is ignoring any RCU read-side critical sections in those handlers, which in turn means that RCU-protected data can be yanked out from under those read-side critical sections. The shiny new lockdep-RCU ability to detect RCU read-side critical sections that RCU is ignoring located this problem. The fix is straightforward: Make sparc64 stop manually invoking the softirq handlers.

Paul E. McKenney committed 14 years ago

Commit 3d3eeb21 parent 9e0daff1 file · +0 −7Browse files

Unified · Split

arch/sparc/kernel/rtrap_64.S+0−7
@@ -20,11 +20,6 @@ · 19 unmodified lines
2020
2121 .text
2222 .align 32
23−__handle_softirq:
24− call do_softirq
25− nop
26− ba,a,pt %xcc, __handle_softirq_continue
27− nop
2823 __handle_preemption:
2924 call schedule
3025 wrpr %g0, RTRAP_PSTATE, %pstate
@@ -89,9 +84,7 @@ rtrap: · 58 unmodified lines
8984 cmp %l1, 0
9085
9186 /* mm/ultra.S:xcall_report_regs KNOWS about this load. */
92− bne,pn %icc, __handle_softirq
9387 ldx [%sp + PTREGS_OFF + PT_V9_TSTATE], %l1
94−__handle_softirq_continue:
9588 rtrap_xcall:
9689 sethi %hi(0xf << 20), %l4
9790 and %l1, %l4, %l4