drm/shmem-helper: Don't use vmap_use_count for dma-bufs
authorDmitry Osipenko <dmitry.osipenko@collabora.com>
Wed, 4 May 2022 23:06:00 +0000 (02:06 +0300)
committerDmitry Osipenko <dmitry.osipenko@collabora.com>
Mon, 27 Feb 2023 04:10:38 +0000 (07:10 +0300)
commit67fe7487fe8946f33009c7b5a7eafec535a7826b
tree096b7ea9dae3564eeafa6d2e3c2b9054346de0f2
parent3f6a1e22fae95a50a2e4815305931ed1da5c9a12
drm/shmem-helper: Don't use vmap_use_count for dma-bufs

DMA-buf core has its own refcounting of vmaps, use it instead of drm-shmem
counting. This change prepares drm-shmem for addition of memory shrinker
support where drm-shmem will use a single dma-buf reservation lock for
all operations performed over dma-bufs.

Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Link: https://lore.kernel.org/all/20230108210445.3948344-7-dmitry.osipenko@collabora.com/
drivers/gpu/drm/drm_gem_shmem_helper.c