Re: [PATCH v2] powerpc/smp: do not decrement idle task preempt count in CPU offline

2021-10-21 Thread Michael Ellerman
On Fri, 15 Oct 2021 12:39:02 -0500, Nathan Lynch wrote: > With PREEMPT_COUNT=y, when a CPU is offlined and then onlined again, we > get: > > BUG: scheduling while atomic: swapper/1/0/0x > no locks held by swapper/1/0. > CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.15.0-rc2+ #100 > Call Trac

Re: [PATCH v2] powerpc/smp: do not decrement idle task preempt count in CPU offline

2021-10-18 Thread Srikar Dronamraju
* Nathan Lynch [2021-10-15 12:39:02]: > With PREEMPT_COUNT=y, when a CPU is offlined and then onlined again, we > get: > > BUG: scheduling while atomic: swapper/1/0/0x > no locks held by swapper/1/0. > CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.15.0-rc2+ #100 > Call Trace: > dump_stack

[PATCH v2] powerpc/smp: do not decrement idle task preempt count in CPU offline

2021-10-15 Thread Nathan Lynch
With PREEMPT_COUNT=y, when a CPU is offlined and then onlined again, we get: BUG: scheduling while atomic: swapper/1/0/0x no locks held by swapper/1/0. CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.15.0-rc2+ #100 Call Trace: dump_stack_lvl+0xac/0x108 __schedule_bug+0xac/0xe0 __schedule+0x