Re: [PATCH v2] cpufreq, powernv: Disable preemption while checking CPU throttling state throttling state

2016-11-22 Thread Rafael J. Wysocki
On Tue, Nov 22, 2016 at 2:07 PM, Denis Kirjanov wrote: > With preemption turned on we can read incorrect throttling state while being > switched > to CPU on a different chip. > The following BUG_() was hit while running the 4.8-rc5 kernel compiled > with

[PATCH v2] cpufreq, powernv: Disable preemption while checking CPU throttling state throttling state

2016-11-22 Thread Denis Kirjanov
With preemption turned on we can read incorrect throttling state while being switched to CPU on a different chip. The following BUG_() was hit while running the 4.8-rc5 kernel compiled with CONFIG_PREEMPT_DEBUG on a POWER machine. [ 67.700897] BUG: using smp_processor_id() in preemptible

[PATCH v2] cpufreq, powernv: Disable preemption while checking CPU throttling state throttling state

2016-11-08 Thread Denis Kirjanov
With preemption turned on we can read incorrect throttling state while being switched to CPU on a different chip. [ 67.700897] BUG: using smp_processor_id() in preemptible [] code: cat/7343 [ 67.700988] caller is .powernv_cpufreq_throttle_check+0x2c/0x710 [ 67.700998]