Skip to content

Commit 2c1b774

Browse files
committed
drm/msm: Enable clamp_to_idle for 7c3
This was overlooked. Signed-off-by: Rob Clark <robdclark@chromium.org> Reviewed-by: Douglas Anderson <dianders@chromium.org> Reviewed-by: Chia-I Wu <olvaffe@gmail.com> Patchwork: https://patchwork.freedesktop.org/patch/511693/ Link: https://lore.kernel.org/r/20221115155535.1615278-1-robdclark@gmail.com
1 parent f6d1918 commit 2c1b774

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

drivers/gpu/drm/msm/adreno/a6xx_gpu.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2003,13 +2003,6 @@ struct msm_gpu *a6xx_gpu_init(struct drm_device *dev)
20032003
adreno_cmp_rev(ADRENO_REV(6, 3, 5, ANY_ID), info->rev)))
20042004
adreno_gpu->base.hw_apriv = true;
20052005

2006-
/*
2007-
* For now only clamp to idle freq for devices where this is known not
2008-
* to cause power supply issues:
2009-
*/
2010-
if (info && (info->revn == 618))
2011-
gpu->clamp_to_idle = true;
2012-
20132006
a6xx_llc_slices_init(pdev, a6xx_gpu);
20142007

20152008
ret = a6xx_set_supported_hw(&pdev->dev, config->rev);
@@ -2024,6 +2017,13 @@ struct msm_gpu *a6xx_gpu_init(struct drm_device *dev)
20242017
return ERR_PTR(ret);
20252018
}
20262019

2020+
/*
2021+
* For now only clamp to idle freq for devices where this is known not
2022+
* to cause power supply issues:
2023+
*/
2024+
if (adreno_is_a618(adreno_gpu) || adreno_is_7c3(adreno_gpu))
2025+
gpu->clamp_to_idle = true;
2026+
20272027
/* Check if there is a GMU phandle and set it up */
20282028
node = of_parse_phandle(pdev->dev.of_node, "qcom,gmu", 0);
20292029

0 commit comments

Comments
 (0)