]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/vmwgfx: stop using dma_resv_excl_fence v2
authorChristian König <christian.koenig@amd.com>
Wed, 3 Nov 2021 09:40:20 +0000 (10:40 +0100)
committerChristian König <christian.koenig@amd.com>
Sun, 3 Apr 2022 15:55:23 +0000 (17:55 +0200)
Instead use the new dma_resv_get_singleton function.

v2: drop the TODO comment.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Zack Rusin <zackr@vmware.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220321135856.1331-7-christian.koenig@amd.com
drivers/gpu/drm/vmwgfx/vmwgfx_resource.c

index 6542f14986510b8b20c3d3d0ec989858ae56a93f..6260671047516d2dd2b57a2c6fff8052729cd0ae 100644 (file)
@@ -1163,8 +1163,9 @@ int vmw_resources_clean(struct vmw_buffer_object *vbo, pgoff_t start,
                vmw_bo_fence_single(bo, NULL);
                if (bo->moving)
                        dma_fence_put(bo->moving);
-               bo->moving = dma_fence_get
-                       (dma_resv_excl_fence(bo->base.resv));
+
+               return dma_resv_get_singleton(bo->base.resv, false,
+                                             &bo->moving);
        }
 
        return 0;