diff options
author | Thomas Zimmermann <tzimmermann@suse.de> | 2024-02-27 11:14:52 +0100 |
---|---|---|
committer | Thomas Zimmermann <tzimmermann@suse.de> | 2024-03-11 13:33:50 +0100 |
commit | 1cc16f1dd223d7c212bc04ec210773c9bd1111a5 (patch) | |
tree | aa83eb57f8272a0c605712c4c3060e4d593d86d1 /drivers/gpu/drm/nouveau/nouveau_prime.c | |
parent | drm/msm: Acquire reservation lock in GEM pin/unpin callback (diff) | |
download | linux-1cc16f1dd223d7c212bc04ec210773c9bd1111a5.tar.xz linux-1cc16f1dd223d7c212bc04ec210773c9bd1111a5.zip |
drm/nouveau: Provide nouveau_bo_{pin,unpin}_locked()
Implement pinning without locking in nouveau_bo_pin_locked(). Keep
nouveau_bo_pin() for acquiring the buffer object's reservation lock.
The new helper will be useful for implementing the GEM pin callback
with correct semantics. Same for unpin.
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Tested-by: Dmitry Osipenko <dmitry.osipenko@collabora.com> # virtio-gpu
Acked-by: Christian König <christian.koenig@amd.com>
Acked-by: Zack Rusin <zack.rusin@broadcom.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240227113853.8464-6-tzimmermann@suse.de
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions