提交 33f868db 编写于 作者: R Rob Clark

drm/msm/gpu: Add default devfreq thresholds

Setup more appropriate devfreq tuning thresholds.
Signed-off-by: NRob Clark <robdclark@chromium.org>
Patchwork: https://patchwork.freedesktop.org/patch/517788/
Link: https://lore.kernel.org/r/20230110231447.1939101-4-robdclark@gmail.comReviewed-by: NChia-I Wu <olvaffe@gmail.com>
上级 fadcc3ab
...@@ -145,6 +145,15 @@ void msm_devfreq_init(struct msm_gpu *gpu) ...@@ -145,6 +145,15 @@ void msm_devfreq_init(struct msm_gpu *gpu)
if (!gpu->funcs->gpu_busy) if (!gpu->funcs->gpu_busy)
return; 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); mutex_init(&df->lock);
dev_pm_qos_add_request(&gpu->pdev->dev, &df->boost_freq, dev_pm_qos_add_request(&gpu->pdev->dev, &df->boost_freq,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册