diff options
author | Rob Clark <robdclark@chromium.org> | 2021-09-28 02:04:54 +0300 |
---|---|---|
committer | Rob Clark <robdclark@chromium.org> | 2021-10-16 02:35:40 +0300 |
commit | 658f4c8296888c135e394cc21f94386958c36ac7 (patch) | |
tree | a1c33893b35f8a862112206d8933720923938c13 /drivers/gpu/drm/msm/msm_gpu.h | |
parent | ddb6e37a50e02736f3c9f1a9f8f873989b22af54 (diff) | |
download | linux-658f4c8296888c135e394cc21f94386958c36ac7.tar.xz |
drm/msm/devfreq: Add 1ms delay before clamping freq
Add a short delay before clamping to idle frequency on active->idle
transition. It takes ~0.5ms to increase the freq again on the next
idle->active transition, so this helps avoid extra freq transitions
on workloads that bounce between CPU and GPU.
Signed-off-by: Rob Clark <robdclark@chromium.org>
Link: https://lore.kernel.org/r/20210927230455.1066297-2-robdclark@gmail.com
Signed-off-by: Rob Clark <robdclark@chromium.org>
Diffstat (limited to 'drivers/gpu/drm/msm/msm_gpu.h')
-rw-r--r-- | drivers/gpu/drm/msm/msm_gpu.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/msm/msm_gpu.h b/drivers/gpu/drm/msm/msm_gpu.h index 030f82f149c2..59870095ea41 100644 --- a/drivers/gpu/drm/msm/msm_gpu.h +++ b/drivers/gpu/drm/msm/msm_gpu.h @@ -112,6 +112,13 @@ struct msm_gpu_devfreq { * it is inactive. */ unsigned long idle_freq; + + /** + * idle_work: + * + * Used to delay clamping to idle freq on active->idle transition. + */ + struct msm_hrtimer_work idle_work; }; struct msm_gpu { |