WSL2-Linux-Kernel/drivers/gpu/drm/msm
Johan Hovold b524b41806 drm/msm/hdmi: fix IRQ lifetime
[ Upstream commit 152d394842 ]

Device-managed resources allocated post component bind must be tied to
the lifetime of the aggregate DRM device or they will not necessarily be
released when binding of the aggregate device is deferred.

This is specifically true for the HDMI IRQ, which will otherwise remain
requested so that the next bind attempt fails when requesting the IRQ a
second time.

Fix this by tying the device-managed lifetime of the HDMI IRQ to the DRM
device so that it is released when bind fails.

Fixes: 067fef372c ("drm/msm/hdmi: refactor bind/init")
Cc: stable@vger.kernel.org      # 3.19
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Tested-by: Kuogee Hsieh <quic_khsieh@quicinc.com>
Reviewed-by: Kuogee Hsieh <quic_khsieh@quicinc.com>
Patchwork: https://patchwork.freedesktop.org/patch/502666/
Link: https://lore.kernel.org/r/20220913085320.8577-9-johan+linaro@kernel.org
Signed-off-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-11-10 18:15:32 +01:00
..
adreno drm/msm: Fix double pm_runtime_disable() call 2022-06-29 09:03:21 +02:00
disp drm/msm: Fix return type of mdp4_lvds_connector_mode_valid 2022-11-03 23:59:14 +09:00
dp drm/msm/dp: fix IRQ lifetime 2022-11-03 23:59:12 +09:00
dsi drm/msm/dsi: fix memory corruption with too many bridges 2022-11-03 23:59:12 +09:00
edp drm/msm: Fix null pointer dereference on pointer edp 2021-10-11 17:30:53 -07:00
hdmi drm/msm/hdmi: fix IRQ lifetime 2022-11-10 18:15:32 +01:00
Kconfig drm/msm/dp: displayPort driver need algorithm rational 2022-01-27 11:03:32 +01:00
Makefile drm/msm/hdmi: switch to drm_bridge_connector 2022-06-09 10:22:50 +02:00
NOTES
msm_atomic.c drm/msm: Avoid dirtyfb stalls on video mode displays (v2) 2022-08-17 14:23:28 +02:00
msm_atomic_trace.h
msm_atomic_tracepoints.c
msm_debugfs.c drm/msm: Do hw_init() before capturing GPU state 2021-12-08 09:04:50 +01:00
msm_debugfs.h
msm_drv.c drm/msm: Ensure mmap offset is initialized 2022-06-29 09:03:21 +02:00
msm_drv.h drm/msm: Avoid dirtyfb stalls on video mode displays (v2) 2022-08-17 14:23:28 +02:00
msm_fb.c drm/msm: Fix dirtyfb refcounting 2022-08-17 14:24:30 +02:00
msm_fbdev.c Merge tag 'drm-msm-next-2021-08-12' of https://gitlab.freedesktop.org/drm/msm into drm-next 2021-08-17 10:53:52 +10:00
msm_fence.c drm/msm: Track "seqno" fences by idr 2021-07-27 18:09:18 -07:00
msm_fence.h drm/msm: Track "seqno" fences by idr 2021-07-27 18:09:18 -07:00
msm_gem.c drm/msm: Add missing put_task_struct() in debugfs path 2022-04-20 09:34:09 +02:00
msm_gem.h drm/msm: Implement mmap as GEM object function 2021-08-07 11:48:37 -07:00
msm_gem_prime.c drm/msm: Ensure mmap offset is initialized 2022-06-29 09:03:21 +02:00
msm_gem_shrinker.c drm/msm: Add debugfs to trigger shrinker 2021-06-23 07:33:55 -07:00
msm_gem_submit.c drm/msm/gem: Fix error return on fence id alloc fail 2022-07-07 17:53:33 +02:00
msm_gem_vma.c
msm_gpu.c drm/msm: Switch ordering of runpm put vs devfreq_idle 2022-06-29 09:03:21 +02:00
msm_gpu.h drm/msm: Restore error return on invalid fence 2021-12-08 09:04:52 +01:00
msm_gpu_devfreq.c drm/msm/devfreq: Fix OPP refcnt leak 2021-12-08 09:04:52 +01:00
msm_gpu_trace.h drm/msm: Support evicting GEM objects to swap 2021-04-07 11:05:48 -07:00
msm_gpu_tracepoints.c
msm_gpummu.c drm/msm: devcoredump iommu fault support 2021-06-23 07:33:55 -07:00
msm_iommu.c drm/msm: use for_each_sgtable_sg to iterate over scatterlist 2022-06-29 09:03:21 +02:00
msm_kms.h drm/msm: don't free the IRQ if it was not requested 2022-06-09 10:23:00 +02:00
msm_mmu.h drm/msm: devcoredump iommu fault support 2021-06-23 07:33:55 -07:00
msm_perf.c
msm_rd.c drm/msm/rd: Fix FIFO-full deadlock 2022-09-20 12:39:44 +02:00
msm_ringbuffer.c Merge tag 'drm-msm-next-2021-07-28' of https://gitlab.freedesktop.org/drm/msm into drm-next 2021-07-30 16:24:01 +10:00
msm_ringbuffer.h drm/msm: Conversion to drm scheduler 2021-07-28 09:19:00 -07:00
msm_submitqueue.c drm/msm: unlock on error in get_sched_entity() 2021-11-18 19:16:33 +01:00