Commit 756cc94d authored by Christian König's avatar Christian König
Browse files

drm/nouveau: stop using dma_resv_excl_fence



Instead use the new dma_resv_get_singleton function.

Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
Reviewed-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Cc: Ben Skeggs <bskeggs@redhat.com>
Cc: Karol Herbst <kherbst@redhat.com>
Cc: Lyude Paul <lyude@redhat.com>
Cc: nouveau@lists.freedesktop.org
Link: https://patchwork.freedesktop.org/patch/msgid/20220321135856.1331-6-christian.koenig@amd.com
parent 1c3b2a27
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -959,7 +959,14 @@ nouveau_bo_vm_cleanup(struct ttm_buffer_object *bo,
{
	struct nouveau_drm *drm = nouveau_bdev(bo->bdev);
	struct drm_device *dev = drm->dev;
	struct dma_fence *fence = dma_resv_excl_fence(bo->base.resv);
	struct dma_fence *fence;
	int ret;

	/* TODO: This is actually a memory management dependency */
	ret = dma_resv_get_singleton(bo->base.resv, false, &fence);
	if (ret)
		dma_resv_wait_timeout(bo->base.resv, false, false,
				      MAX_SCHEDULE_TIMEOUT);

	nv10_bo_put_tile_region(dev, *old_tile, fence);
	*old_tile = new_tile;