[PATCH] nouveau: nouveau_set_bo_placement takes TTM flags

Ben Skeggs skeggsb at gmail.com
Mon May 21 01:07:17 PDT 2012


On Fri, May 18, 2012 at 03:32:02PM +0100, Dave Airlie wrote:
> From: Dave Airlie <airlied at redhat.com>
> 
> This seems to be wrong to me, spotted while thinking about dma-buf.
> 
> Signed-off-by: Dave Airlie <airlied at redhat.com>
Reviewed-by: Ben Skeggs <bskeggs at redhat.com>
Cc: stable at vger.kernel.org
> ---
>  drivers/gpu/drm/nouveau/nouveau_bo.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/gpu/drm/nouveau/nouveau_bo.c b/drivers/gpu/drm/nouveau/nouveau_bo.c
> index 7d15a77..12ce044 100644
> --- a/drivers/gpu/drm/nouveau/nouveau_bo.c
> +++ b/drivers/gpu/drm/nouveau/nouveau_bo.c
> @@ -1030,7 +1030,7 @@ nouveau_ttm_fault_reserve_notify(struct ttm_buffer_object *bo)
>  
>  	nvbo->placement.fpfn = 0;
>  	nvbo->placement.lpfn = dev_priv->fb_mappable_pages;
> -	nouveau_bo_placement_set(nvbo, TTM_PL_VRAM, 0);
> +	nouveau_bo_placement_set(nvbo, TTM_PL_FLAG_VRAM, 0);
>  	return nouveau_bo_validate(nvbo, false, true, false);
>  }
>  
> -- 
> 1.7.7.6
> 
> _______________________________________________
> dri-devel mailing list
> dri-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel


More information about the dri-devel mailing list