projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fadcc3a
)
drm/msm/gpu: Add default devfreq thresholds
author
Rob Clark
<robdclark@chromium.org>
Tue, 10 Jan 2023 23:14:44 +0000
(15:14 -0800)
committer
Rob Clark
<robdclark@chromium.org>
Mon, 16 Jan 2023 19:03:25 +0000
(11:03 -0800)
Setup more appropriate devfreq tuning thresholds.
Signed-off-by: Rob Clark <robdclark@chromium.org>
Patchwork: https://patchwork.freedesktop.org/patch/517788/
Link:
https://lore.kernel.org/r/20230110231447.1939101-4-robdclark@gmail.com
Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
drivers/gpu/drm/msm/msm_gpu_devfreq.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/msm/msm_gpu_devfreq.c
b/drivers/gpu/drm/msm/msm_gpu_devfreq.c
index ae5380e2abf768c63c1bbd9e90f2fdf336ab6046..e27dbf12b5e8cbddf137468146324b17e277c7eb 100644
(file)
--- a/
drivers/gpu/drm/msm/msm_gpu_devfreq.c
+++ b/
drivers/gpu/drm/msm/msm_gpu_devfreq.c
@@
-145,6
+145,15
@@
void msm_devfreq_init(struct msm_gpu *gpu)
if (!gpu->funcs->gpu_busy)
return;
+ /*
+ * Setup default values for simple_ondemand governor tuning. We
+ * want to throttle up at 50% load for the double-buffer case,
+ * where due to stalling waiting for vblank we could get stuck
+ * at (for ex) 30fps at 50% utilization.
+ */
+ priv->gpu_devfreq_config.upthreshold = 50;
+ priv->gpu_devfreq_config.downdifferential = 10;
+
mutex_init(&df->lock);
dev_pm_qos_add_request(&gpu->pdev->dev, &df->boost_freq,