mirror_ubuntu-kernels/drivers/gpu/drm/msm
Johan Hovold 0d997f95b7 drm/msm/adreno: fix runtime PM imbalance at gpu load
A recent commit moved enabling of runtime PM to GPU load time (first
open()) but failed to update the error paths so that runtime PM is
disabled if initialisation of the GPU fails. This would trigger a
warning about the unbalanced disable count on the next open() attempt.

Note that pm_runtime_put_noidle() is sufficient to balance the usage
count when pm_runtime_put_sync() fails (and is chosen over
pm_runtime_resume_and_get() for consistency reasons).

Fixes: 4b18299b33 ("drm/msm/adreno: Defer enabling runpm until hw_init()")
Cc: stable@vger.kernel.org      # 6.0
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Patchwork: https://patchwork.freedesktop.org/patch/524971/
Link: https://lore.kernel.org/r/20230303164807.13124-3-johan+linaro@kernel.org
Signed-off-by: Rob Clark <robdclark@chromium.org>
2023-03-20 13:54:15 -07:00
..
adreno drm/msm/adreno: fix runtime PM imbalance at gpu load 2023-03-20 13:54:15 -07:00
disp Merge remote-tracking branch 'drm/drm-next' into msm-next 2023-03-20 10:31:25 -07:00
dp drm/msm/dp: set self refresh aware based on PSR support 2023-03-13 04:43:50 +03:00
dsi drm/msm/dsi: properly handle the case of empty OPP table in dsi_mgr_bridge_mode_valid 2023-01-26 20:51:32 +02:00
hdmi ARM: SoC drivers for 6.3 2023-02-27 10:04:49 -08:00
Kconfig drm/msm/a6xx: Use genpd notifier to ensure cx-gdsc collapse 2023-03-20 10:54:22 -07:00
Makefile drm/msm/dp: rewrite dss_module_power to use bulk clock functions 2022-07-04 21:05:28 +03:00
msm_atomic_trace.h
msm_atomic_tracepoints.c
msm_atomic.c
msm_debugfs.c drm/msm/gpu: Add devfreq tuning debugfs 2023-01-16 10:40:18 -08:00
msm_debugfs.h
msm_drv.c Merge branch 'msm-next-lumag' into HEAD 2023-01-22 22:43:59 +02:00
msm_drv.h Merge branch 'msm-next-lumag' into HEAD 2023-01-22 22:43:59 +02:00
msm_fb.c
msm_fbdev.c msm/fbdev: fix unused variable warning with clang. 2023-02-23 09:48:05 +10:00
msm_fence.c drm/msm: use strscpy instead of strncpy 2023-01-24 10:11:52 +02:00
msm_fence.h
msm_gem_prime.c drm/msm/gem: Rename to pin/unpin_pages 2022-08-27 09:32:44 -07:00
msm_gem_shrinker.c drm/msm: Enable unpin/eviction by default 2022-11-17 10:39:12 -08:00
msm_gem_submit.c drm/msm: Fix potential invalid ptr free 2023-02-22 11:22:03 -08:00
msm_gem_vma.c
msm_gem.c mm: replace vma->vm_flags direct modifications with modifier calls 2023-02-09 16:51:39 -08:00
msm_gem.h drm/msm/gem: Convert to lockdep assert 2022-08-28 08:31:49 -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 drm/msm/gem: Evict active GEM objects when necessary 2022-08-27 09:32:45 -07:00
msm_gpu_tracepoints.c
msm_gpu.c drm/msm/adreno: Use OPP for every GPU generation 2023-03-20 11:04:59 -07:00
msm_gpu.h drm/msm/a6xx: Remove cx gdsc polling using 'reset' 2023-03-20 10:53:47 -07:00
msm_gpummu.c
msm_io_utils.c drm/msm: lookup the ICC paths in both mdp5/dpu and mdss devices 2022-09-18 09:38:02 -07:00
msm_iommu.c drm/msm: move domain allocation into msm_iommu_new() 2022-11-03 02:23:45 +03:00
msm_kms.h
msm_mdss.c drm/msm: mdss: add support for SM8550 2023-01-12 21:45:17 +02:00
msm_mmu.h drm/msm: move domain allocation into msm_iommu_new() 2022-11-03 02:23:45 +03:00
msm_perf.c
msm_rd.c drm/msm/rd: Fix FIFO-full deadlock 2022-09-18 09:37:55 -07:00
msm_ringbuffer.c drm/msm/gem: Unpin objects slightly later 2022-09-30 09:01:33 -07:00
msm_ringbuffer.h drm/msm: Hangcheck progress detection 2022-11-17 10:39:12 -08:00
msm_submitqueue.c drm/msm: Split out idr_lock 2022-08-27 09:32:44 -07:00
NOTES