Re: [PATCH AUTOSEL 5.9 28/39] intel_idle: Fix intel_idle() vs tracing

From: Sasha Levin
Date: Sun Dec 13 2020 - 09:12:43 EST


On Thu, Dec 03, 2020 at 06:10:35PM +0100, Peter Zijlstra wrote:
On Thu, Dec 03, 2020 at 08:28:22AM -0500, Sasha Levin wrote:
From: Peter Zijlstra <peterz@xxxxxxxxxxxxx>

[ Upstream commit 6e1d2bc675bd57640f5658a4a657ae488db4c204 ]

cpuidle->enter() callbacks should not call into tracing because RCU
has already been disabled. Instead of doing the broadcast thing
itself, simply advertise to the cpuidle core that those states stop
the timer.

Signed-off-by: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx>
Link: https://lkml.kernel.org/r/20201123143510.GR3021@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

This patch has a known compile issue, fix is pending.

I've also grabbed 4d916140bf28 ("intel_idle: Build fix"). Thanks!

--
Thanks,
Sasha