Re: [PATCH v3] cpu_pm: replace raw_notifier to atomic_notifier

2017-07-28 Thread Alex Shi
On 07/28/2017 02:44 PM, Tony Lindgren wrote: > * Alex Shi [170727 18:42]: >> Tony Lezcano found a miss use that rcu_read_lock used after rcu_idle_enter >> Paul E. McKenney suggested trying RCU_NONIDLE. > > Hmm I think you have a hybrid name typo above in case you mean me :) Sorry. Resent. >

Re: [PATCH v3] cpu_pm: replace raw_notifier to atomic_notifier

2017-07-27 Thread Tony Lindgren
* Alex Shi [170727 18:42]: > Tony Lezcano found a miss use that rcu_read_lock used after rcu_idle_enter > Paul E. McKenney suggested trying RCU_NONIDLE. Hmm I think you have a hybrid name typo above in case you mean me :) Tony

[PATCH v3] cpu_pm: replace raw_notifier to atomic_notifier

2017-07-27 Thread Alex Shi
This patch replace a rwlock and raw notifier by atomic notifier which protected by spin_lock and rcu. The first to reason to have this replace is due to a 'scheduling while atomic' bug of RT kernel on arm/arm64 platform. On arm/arm64, rwlock cpu_pm_notifier_lock in cpu_pm cause a potential schedu