aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/drm/nouveau/nv84_fence.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/nouveau/nv84_fence.c b/drivers/gpu/drm/nouveau/nv84_fence.c
index a2f28082c272..1e5017f905db 100644
--- a/drivers/gpu/drm/nouveau/nv84_fence.c
+++ b/drivers/gpu/drm/nouveau/nv84_fence.c
@@ -120,6 +120,7 @@ nv84_fence_context_del(struct nouveau_channel *chan)
120 nouveau_bo_vma_del(bo, &fctx->dispc_vma[i]); 120 nouveau_bo_vma_del(bo, &fctx->dispc_vma[i]);
121 } 121 }
122 122
123 nouveau_bo_wr32(priv->bo, chan->chid * 16 / 4, fctx->base.sequence);
123 nouveau_bo_vma_del(priv->bo, &fctx->vma_gart); 124 nouveau_bo_vma_del(priv->bo, &fctx->vma_gart);
124 nouveau_bo_vma_del(priv->bo, &fctx->vma); 125 nouveau_bo_vma_del(priv->bo, &fctx->vma);
125 nouveau_fence_context_del(&fctx->base); 126 nouveau_fence_context_del(&fctx->base);
@@ -159,8 +160,6 @@ nv84_fence_context_new(struct nouveau_channel *chan)
159 ret = nouveau_bo_vma_add(bo, cli->vm, &fctx->dispc_vma[i]); 160 ret = nouveau_bo_vma_add(bo, cli->vm, &fctx->dispc_vma[i]);
160 } 161 }
161 162
162 nouveau_bo_wr32(priv->bo, chan->chid * 16/4, 0x00000000);
163
164 if (ret) 163 if (ret)
165 nv84_fence_context_del(chan); 164 nv84_fence_context_del(chan);
166 return ret; 165 return ret;