Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/msm/gpu: Add default devfreq thresholds

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>

+9
+9
drivers/gpu/drm/msm/msm_gpu_devfreq.c
··· 145 145 if (!gpu->funcs->gpu_busy) 146 146 return; 147 147 148 + /* 149 + * Setup default values for simple_ondemand governor tuning. We 150 + * want to throttle up at 50% load for the double-buffer case, 151 + * where due to stalling waiting for vblank we could get stuck 152 + * at (for ex) 30fps at 50% utilization. 153 + */ 154 + priv->gpu_devfreq_config.upthreshold = 50; 155 + priv->gpu_devfreq_config.downdifferential = 10; 156 + 148 157 mutex_init(&df->lock); 149 158 150 159 dev_pm_qos_add_request(&gpu->pdev->dev, &df->boost_freq,