drm/nouveau: fix oops on pre-semaphore hardware
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
ffbc559b06
commit
cfd8be088e
|
@ -530,7 +530,8 @@ nouveau_fence_channel_init(struct nouveau_channel *chan)
|
||||||
nouveau_gpuobj_ref(NULL, &obj);
|
nouveau_gpuobj_ref(NULL, &obj);
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
} else {
|
} else
|
||||||
|
if (USE_SEMA(dev)) {
|
||||||
/* map fence bo into channel's vm */
|
/* map fence bo into channel's vm */
|
||||||
ret = nouveau_bo_vma_add(dev_priv->fence.bo, chan->vm,
|
ret = nouveau_bo_vma_add(dev_priv->fence.bo, chan->vm,
|
||||||
&chan->fence.vma);
|
&chan->fence.vma);
|
||||||
|
|
Loading…
Reference in New Issue