diff options
author | Konrad Dybcio <konrad.dybcio@linaro.org> | 2023-02-23 11:52:03 +0100 |
---|---|---|
committer | Rob Clark <robdclark@chromium.org> | 2023-03-20 19:04:59 +0100 |
commit | 8d2600470e9e3bee448216438941c9106d2bcec8 (patch) | |
tree | 2ed9f433703f3cb5849dd22f401263b340fc4000 /drivers/gpu/drm/msm/adreno/adreno_device.c | |
parent | drm/msm/a4xx: Implement .gpu_busy (diff) | |
download | linux-8d2600470e9e3bee448216438941c9106d2bcec8.tar.xz linux-8d2600470e9e3bee448216438941c9106d2bcec8.zip |
drm/msm/adreno: Enable optional icc voting from OPP tables
Add the dev_pm_opp_of_find_icc_paths() call to let the OPP framework
handle bus voting as part of power level setting.
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/523787/
Link: https://lore.kernel.org/r/20230223-topic-opp-v3-7-5f22163cd1df@linaro.org
Signed-off-by: Rob Clark <robdclark@chromium.org>
Diffstat (limited to 'drivers/gpu/drm/msm/adreno/adreno_device.c')
-rw-r--r-- | drivers/gpu/drm/msm/adreno/adreno_device.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/msm/adreno/adreno_device.c b/drivers/gpu/drm/msm/adreno/adreno_device.c index c5c4c93b3689..f35392c034f7 100644 --- a/drivers/gpu/drm/msm/adreno/adreno_device.c +++ b/drivers/gpu/drm/msm/adreno/adreno_device.c @@ -548,6 +548,10 @@ static int adreno_bind(struct device *dev, struct device *master, void *data) return PTR_ERR(gpu); } + ret = dev_pm_opp_of_find_icc_paths(dev, NULL); + if (ret) + return ret; + return 0; } |