Re: [PATCH 4/8] drm/msm/devfreq: Record idle_time at GPU idle onset

From: Konrad Dybcio

Date: Mon Oct 26 2026 - 05:58:50 EST


On 10/24/26 12:30 PM, Akhil P Oommen wrote:
> From: Jie Zhang <jie.zhang@xxxxxxxxxxxxxxxx>
>
> Setting df->idle_time in msm_devfreq_idle_work() means a cancelled
> idle_work leaves a stale timestamp, causing idle_time to accumulate
> across idle cycles and potentially trigger a spurious devfreq boost.
>
> Move the assignment to msm_devfreq_idle() so the timestamp always
> reflects the actual GPU idle onset.
>
> Fixes: 658f4c829688 ("drm/msm/devfreq: Add 1ms delay before clamping freq")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Jie Zhang <jie.zhang@xxxxxxxxxxxxxxxx>
> Signed-off-by: Akhil P Oommen <akhilpo@xxxxxxxxxxxxxxxx>
> ---

Reviewed-by: Konrad Dybcio <konrad.dybcio@xxxxxxxxxxxxxxxx>

Konrad