diff options
author | Konrad Dybcio <konrad.dybcio@linaro.org> | 2023-09-26 20:24:36 +0200 |
---|---|---|
committer | Rob Clark <robdclark@chromium.org> | 2023-10-09 11:22:05 -0700 |
commit | 75cb60d4f5f762b12643b67cbefefcf05ecfd7eb (patch) | |
tree | 272ed995f08e1e4ecc9c93206a1cb6e3f64e3ecf /scripts/gdb/linux/utils.py | |
parent | beb3542320479cd59a08273be0b19dfea0b36042 (diff) |
drm/msm/a6xx: Fix unknown speedbin case
When opp-supported-hw is present under an OPP node, but no form of
opp_set_supported_hw() has been called, that OPP is ignored by the API
and marked as unsupported.
Before Commit c928a05e4415 ("drm/msm/adreno: Move speedbin mapping to
device table"), an unknown speedbin would result in marking all OPPs
as available, but it's better to avoid potentially overclocking the
silicon - the GMU will simply refuse to power up the chip.
Currently, the Adreno speedbin code does just that (AND returns an
invalid error, (int)UINT_MAX). Fix that by defaulting to speedbin 0
(which is conveniently always bound to fuseval == 0).
Fixes: c928a05e4415 ("drm/msm/adreno: Move speedbin mapping to device table")
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/559604/
Signed-off-by: Rob Clark <robdclark@chromium.org>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions