diff options
author | Akhil P Oommen <akhilpo@codeaurora.org> | 2021-11-18 13:20:29 +0300 |
---|---|---|
committer | Rob Clark <robdclark@chromium.org> | 2021-11-28 21:00:20 +0300 |
commit | 2a1ac5ba9080d4e86e597fb287f6992a9511b90c (patch) | |
tree | 2aacec4932c35c4f58ccb64ccc8ad621c3d33a38 | |
parent | 8b9af498a0f7609f683650e53d9a81b2cbdb0ee3 (diff) | |
download | linux-2a1ac5ba9080d4e86e597fb287f6992a9511b90c.tar.xz |
drm/msm: Increase gpu boost interval
Currently, we boost gpu freq after 25ms of inactivity. This regresses
some of the 30 fps usecases where the workload on gpu (at 33ms internval)
is very small which it can finish at the lowest OPP before the deadline.
Lets increase this inactivity threshold to 50ms (same as the current
devfreq interval) to fix this.
Signed-off-by: Akhil P Oommen <akhilpo@codeaurora.org>
Link: https://lore.kernel.org/r/20211118154903.1.I2ed37cd8ad45a5a94d9de53330f973a62bd1fb29@changeid
Signed-off-by: Rob Clark <robdclark@chromium.org>
-rw-r--r-- | drivers/gpu/drm/msm/msm_gpu_devfreq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/msm/msm_gpu_devfreq.c b/drivers/gpu/drm/msm/msm_gpu_devfreq.c index 384e90c4b2a7..d232f74d2346 100644 --- a/drivers/gpu/drm/msm/msm_gpu_devfreq.c +++ b/drivers/gpu/drm/msm/msm_gpu_devfreq.c @@ -183,7 +183,7 @@ void msm_devfreq_active(struct msm_gpu *gpu) * interval, then we won't meet the threshold of busyness for * the governor to ramp up the freq.. so give some boost */ - if (idle_time > msm_devfreq_profile.polling_ms/2) { + if (idle_time > msm_devfreq_profile.polling_ms) { target_freq *= 2; } |