drm/shmem-helper: Add lockdep asserts to vmap/vunmap
authorAsahi Lina <lina@asahilina.net>
Tue, 18 Mar 2025 19:22:35 +0000 (16:22 -0300)
committerLyude Paul <lyude@redhat.com>
Tue, 13 May 2025 20:27:51 +0000 (16:27 -0400)
commit64a8d0aa55e98bf2c9b7e1a3df3e8acbfecba619
tree99e07b5fc21237ee28507843e582ac9ef01f3090
parente33c3f4d935454a6f8a18a5913189f060b9140ef
drm/shmem-helper: Add lockdep asserts to vmap/vunmap

Since commit 21aa27ddc582 ("drm/shmem-helper: Switch to reservation
lock"), the drm_gem_shmem_vmap and drm_gem_shmem_vunmap functions
require that the caller holds the DMA reservation lock for the object.
Add lockdep assertions to help validate this.

Signed-off-by: Asahi Lina <lina@asahilina.net>
Signed-off-by: Daniel Almeida <daniel.almeida@collabora.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Lyude Paul <lyude@redhat.com>
Link: https://lore.kernel.org/r/20250318-drm-gem-shmem-v1-1-64b96511a84f@collabora.com
drivers/gpu/drm/drm_gem_shmem_helper.c