]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/gem-shmem: Add import attachment warning to locked pin function
authorAdrián Larumbe <adrian.larumbe@collabora.com>
Thu, 23 May 2024 11:32:19 +0000 (12:32 +0100)
committerBoris Brezillon <boris.brezillon@collabora.com>
Wed, 29 May 2024 07:30:44 +0000 (09:30 +0200)
commit3b8407e81ed76c0d84d710c2a177a8fe24292702
tree70d607291fcf348b6c11353c5eda435f27c9f985
parent8c2f5dd0c362ec036f0217da1d413ce2b8361080
drm/gem-shmem: Add import attachment warning to locked pin function

Commit ec144244a43f ("drm/gem-shmem: Acquire reservation lock in GEM
pin/unpin callbacks") moved locking DRM object's dma reservation to
drm_gem_shmem_object_pin, and made drm_gem_shmem_pin_locked public, so
we need to make sure the not-imported check warning is also added to
the latter.

Cc: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Cc: Boris Brezillon <boris.brezillon@collabora.com>
Fixes: a78027847226 ("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>
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240523113236.432585-4-adrian.larumbe@collabora.com
drivers/gpu/drm/drm_gem_shmem_helper.c