On Wed, Apr 06, 2022 at 09:51:25AM +0200, Christian König wrote:
> Don't wait for user space submissions. I'm not 100% sure if that is
> correct, but it seems to match what the code initially intended.
> 
> Signed-off-by: Christian König <christian.koe...@amd.com>

I'll let nouveau folks review/test this one.
-Daniel
> ---
>  drivers/gpu/drm/nouveau/nouveau_bo.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/nouveau/nouveau_bo.c 
> b/drivers/gpu/drm/nouveau/nouveau_bo.c
> index 05076e530e7d..13deb6c70ba6 100644
> --- a/drivers/gpu/drm/nouveau/nouveau_bo.c
> +++ b/drivers/gpu/drm/nouveau/nouveau_bo.c
> @@ -962,10 +962,10 @@ nouveau_bo_vm_cleanup(struct ttm_buffer_object *bo,
>       struct dma_fence *fence;
>       int ret;
>  
> -     ret = dma_resv_get_singleton(bo->base.resv, DMA_RESV_USAGE_WRITE,
> +     ret = dma_resv_get_singleton(bo->base.resv, DMA_RESV_USAGE_KERNEL,
>                                    &fence);
>       if (ret)
> -             dma_resv_wait_timeout(bo->base.resv, DMA_RESV_USAGE_WRITE,
> +             dma_resv_wait_timeout(bo->base.resv, DMA_RESV_USAGE_KERNEL,
>                                     false, MAX_SCHEDULE_TIMEOUT);
>  
>       nv10_bo_put_tile_region(dev, *old_tile, fence);
> -- 
> 2.25.1
> 

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch

Reply via email to