drm/msm/adreno: Use OPP for every GPU generation
authorKonrad Dybcio <konrad.dybcio@linaro.org>
Thu, 23 Feb 2023 10:51:59 +0000 (11:51 +0100)
committerRob Clark <robdclark@chromium.org>
Mon, 20 Mar 2023 18:04:59 +0000 (11:04 -0700)
commit9f251f934012bf07d31c695f770ecfeacbfdb296
tree70760b3c54efacaff5ded024b7aaa0637a14aa56
parentc11fa1204fe9405d2a82a714d021360b865cf8bc
drm/msm/adreno: Use OPP for every GPU generation

Some older GPUs (namely a2xx with no opp tables at all and a320 with
downstream-remnants gpu pwrlevels) used not to have OPP tables. They
both however had just one frequency defined, making it extremely easy
to construct such an OPP table from within the driver if need be.

Do so and switch all clk_set_rate calls on core_clk to their OPP
counterparts.

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/523784/
Link: https://lore.kernel.org/r/20230223-topic-opp-v3-3-5f22163cd1df@linaro.org
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/adreno/adreno_gpu.c
drivers/gpu/drm/msm/msm_gpu.c
drivers/gpu/drm/msm/msm_gpu_devfreq.c