Re: [PATCH v2] rt: x86: enable preemption in IST exception for x86-32

2015-12-22 Thread Shi, Yang
On 12/22/2015 4:06 AM, Sebastian Andrzej Siewior wrote: * Yang Shi | 2015-12-14 15:06:44 [-0800]: Mainline kernel commit 959274753857efe9c5f1ba35fe727f51e9aa128d ("x86, traps: Track entry into and exit from IST context"), introduced ist_enter which disables preemption uncondiontionally for both

Re: [PATCH v2] rt: x86: enable preemption in IST exception for x86-32

2015-12-22 Thread Sebastian Andrzej Siewior
* Yang Shi | 2015-12-14 15:06:44 [-0800]: >Mainline kernel commit 959274753857efe9c5f1ba35fe727f51e9aa128d >("x86, traps: Track entry into and exit from IST context"), introduced >ist_enter which disables preemption uncondiontionally for both x86-64 and >x86-32. However, x86-32 does not have an IS

[PATCH v2] rt: x86: enable preemption in IST exception for x86-32

2015-12-14 Thread Yang Shi
When running some ptrace single step tests on x86-32 machine, the below problem is triggered: BUG: sleeping function called from invalid context at linux-rt/kernel/locking/rtmutex.c:917 in_atomic(): 1, irqs_disabled(): 0, pid: 1041, name: dummy2 INFO: lockdep is turned off. Preemption disabled at