drm/nouveau: Move the fence wait before migration resource clean-up.
Avoids an oops in the fence wait failure path (bug 26521). Signed-off-by: Francisco Jerez <currojerez@riseup.net> Tested-by: Marcin Slusarz <marcin.slusarz@gmail.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
d3f12da1c5
commit
311ab6943f
|
@ -461,9 +461,9 @@ nouveau_bo_move_accel_cleanup(struct nouveau_channel *chan,
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
ret = ttm_bo_move_accel_cleanup(&nvbo->bo, fence, NULL,
|
ret = ttm_bo_move_accel_cleanup(&nvbo->bo, fence, NULL,
|
||||||
evict, no_wait_reserve, no_wait_gpu, new_mem);
|
evict || (nvbo->channel &&
|
||||||
if (nvbo->channel && nvbo->channel != chan)
|
nvbo->channel != chan),
|
||||||
ret = nouveau_fence_wait(fence, NULL, false, false);
|
no_wait_reserve, no_wait_gpu, new_mem);
|
||||||
nouveau_fence_unref((void *)&fence);
|
nouveau_fence_unref((void *)&fence);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue