mirror_ubuntu-kernels/drivers/gpu/drm/msm
Konrad Dybcio 75cb60d4f5 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 c928a05e44 ("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: c928a05e44 ("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>
2023-10-09 11:22:05 -07:00
..
adreno drm/msm/a6xx: Fix unknown speedbin case 2023-10-09 11:22:05 -07:00
disp drm/msm/dpu: move INTF tearing checks to dpu_encoder_phys_cmd_init 2023-10-09 12:17:47 +03:00
dp drm/msm/dp: support setting the DP subconnector type 2023-10-09 12:17:47 +03:00
dsi drm/msm/dsi: Enable widebus for DSI 2023-10-09 12:17:46 +03:00
hdmi drm: Explicitly include correct DT includes 2023-07-21 09:12:43 +02:00
Kconfig fbdev: Use _SYSMEM_ infix for system-memory helpers 2023-07-31 20:07:15 +02:00
Makefile drm/msm/dpu: add support for DSC encoder v1.2 engine 2023-06-15 13:05:05 +03:00
msm_atomic_trace.h
msm_atomic_tracepoints.c
msm_atomic.c drm/msm/atomic: Don't try async if crtc not active 2023-04-24 13:18:36 -07:00
msm_debugfs.c drm/msm: Remove unnecessary (void*) conversions 2023-06-04 05:23:39 +03:00
msm_debugfs.h
msm_drv.c Merge tag 'drm-msm-next-2023-08-20' of https://gitlab.freedesktop.org/drm/msm into drm-next 2023-08-24 10:15:59 +10:00
msm_drv.h drm/msm/dpu: Enable widebus for DSI INTF 2023-10-09 12:17:46 +03:00
msm_dsc_helper.h drm/msm: Add MSM-specific DSC helper methods 2023-06-15 12:58:56 +03:00
msm_fb.c
msm_fbdev.c fbdev: Align deferred I/O with naming of helpers 2023-07-31 20:07:24 +02:00
msm_fence.c drm/msm: Fix hw_fence error path cleanup 2023-07-17 12:54:20 -07:00
msm_fence.h drm/msm: Add deadline based boost support 2023-03-28 15:46:15 -07:00
msm_gem_prime.c drm: Remove struct drm_driver.gem_prime_mmap 2023-06-19 13:56:40 +02:00
msm_gem_shrinker.c drm/msm/gem: Prevent blocking within shrinker loop 2023-02-27 07:06:56 +03:00
msm_gem_submit.c drm/msm: Remove vma use tracking 2023-08-10 13:08:03 -07:00
msm_gem_vma.c drm/msm: Remove vma use tracking 2023-08-10 13:08:03 -07:00
msm_gem.c Merge tag 'drm-msm-next-2023-08-20' of https://gitlab.freedesktop.org/drm/msm into drm-next 2023-08-24 10:15:59 +10:00
msm_gem.h drm/msm: Remove vma use tracking 2023-08-10 13:08:03 -07:00
msm_gpu_devfreq.c drm/msm/adreno: Use OPP for every GPU generation 2023-03-20 11:04:59 -07:00
msm_gpu_trace.h
msm_gpu_tracepoints.c
msm_gpu.c drm/msm/gpu: Push gpu lock down past runpm 2023-08-15 10:09:30 -07:00
msm_gpu.h drm/msm: Disallow relocs on a6xx+ 2023-08-07 14:51:21 -07:00
msm_gpummu.c
msm_io_utils.c drm/msm: Include <linux/io.h> 2023-04-06 20:29:40 +03:00
msm_iommu.c drm/msm: Be more shouty if per-process pgtables aren't working 2023-05-17 08:53:47 -07:00
msm_kms.h drm/msm/atomic: Switch to vblank_start helper 2023-03-28 15:46:15 -07:00
msm_mdss.c drm/msm/mdss: fix highest-bank-bit for msm8998 2023-09-20 16:22:22 -07:00
msm_mdss.h drm/msm/mdss: export UBWC data 2023-08-02 12:37:36 +03:00
msm_mmu.h drm/msm/adreno: stall translation on fault for all GPU families 2023-03-28 15:49:09 -07:00
msm_perf.c
msm_rd.c drm/msm: Use drm_gem_object in submit bos table 2023-08-10 10:44:02 -07:00
msm_ringbuffer.c drm/msm/gpu: Push gpu lock down past runpm 2023-08-15 10:09:30 -07:00
msm_ringbuffer.h drm/msm/a6xx: Add skeleton A7xx support 2023-10-09 11:22:05 -07:00
msm_submitqueue.c drm/msm: Switch idr_lock to spinlock 2023-03-25 16:31:44 -07:00
NOTES