2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/drivers/gpu/drm/lima
Adrián Larumbe 8c2f5dd0c3 drm/lima: Fix dma_resv deadlock at drm object pin time
Commit a780278472 ("drm/gem: Acquire reservation lock in
drm_gem_{pin/unpin}()") moved locking the DRM object's dma reservation to
drm_gem_pin(), but Lima's pin callback kept calling drm_gem_shmem_pin,
which also tries to lock the same dma_resv, leading to a double lock
situation.

As was already done for Panfrost in the previous commit, fix it by
replacing drm_gem_shmem_pin() with its locked variant.

Cc: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Cc: Boris Brezillon <boris.brezillon@collabora.com>
Cc: Steven Price <steven.price@arm.com>
Fixes: a780278472 ("drm/gem: Acquire reservation lock in drm_gem_{pin/unpin}()")
Signed-off-by: Adrián Larumbe <adrian.larumbe@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Tested-by: Val Packett <val@packett.cool>
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240523113236.432585-3-adrian.larumbe@collabora.com
2024-05-29 09:30:39 +02:00
..
Kconfig
lima_bcast.c drm/lima: add mask irq callback to gp and pp 2024-04-15 09:05:38 +08:00
lima_bcast.h drm/lima: add mask irq callback to gp and pp 2024-04-15 09:05:38 +08:00
lima_ctx.c drm/lima: remove guilty drm_sched context handling 2024-02-12 16:27:28 +08:00
lima_ctx.h drm/lima: remove guilty drm_sched context handling 2024-02-12 16:27:28 +08:00
lima_devfreq.c drm/lima: Fix opp clkname setting in case of missing regulator 2022-11-14 19:08:21 +08:00
lima_devfreq.h drm for 5.13-rc1 2021-04-28 10:01:40 -07:00
lima_device.c drm/sched: implement dynamic job-flow control 2023-11-10 02:54:29 +01:00
lima_device.h Revert "drm/lima: allocate unique id per drm_file" 2023-04-05 08:40:06 +08:00
lima_dlbu.c
lima_dlbu.h
lima_drv.c drm/lima: fix void pointer to enum lima_gpu_id cast warning 2024-04-15 09:06:27 +08:00
lima_drv.h drm/lima: fix void pointer to enum lima_gpu_id cast warning 2024-04-15 09:06:27 +08:00
lima_dump.h
lima_gem.c drm/lima: Fix dma_resv deadlock at drm object pin time 2024-05-29 09:30:39 +02:00
lima_gem.h
lima_gp.c drm/lima: fix shared irq handling on driver remove 2024-04-15 09:06:18 +08:00
lima_gp.h
lima_l2_cache.c drm/lima: standardize debug messages by ip name 2024-02-12 16:27:48 +08:00
lima_l2_cache.h
lima_mmu.c drm/lima: fix shared irq handling on driver remove 2024-04-15 09:06:18 +08:00
lima_mmu.h
lima_pmu.c drm/lima: standardize debug messages by ip name 2024-02-12 16:27:48 +08:00
lima_pmu.h
lima_pp.c drm/lima: fix shared irq handling on driver remove 2024-04-15 09:06:18 +08:00
lima_pp.h
lima_regs.h
lima_sched.c drm/lima: mask irqs in timeout path before hard reset 2024-04-15 09:06:04 +08:00
lima_sched.h drm/lima: add mask irq callback to gp and pp 2024-04-15 09:05:38 +08:00
lima_trace.c
lima_trace.h tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04:00
lima_vm.c
lima_vm.h
Makefile