From: Christian König Date: Wed, 3 Nov 2021 09:40:20 +0000 (+0100) Subject: drm/vmwgfx: stop using dma_resv_excl_fence v2 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=2029a6d0281c584bd8c92b7c34ae4da10b803b65;p=linux.git drm/vmwgfx: stop using dma_resv_excl_fence v2 Instead use the new dma_resv_get_singleton function. v2: drop the TODO comment. Signed-off-by: Christian König Reviewed-by: Daniel Vetter Reviewed-by: Zack Rusin Link: https://patchwork.freedesktop.org/patch/msgid/20220321135856.1331-7-christian.koenig@amd.com --- diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c b/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c index 6542f14986510..6260671047516 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c @@ -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;