[Intel-gfx] [PATCH 1/2] drm/i915: Make stolen use pin pages

Ben Widawsky ben at bwidawsk.net
Fri May 31 23:44:00 CEST 2013


This should have been in reply to patch 2, sorry...

On Fri, May 31, 2013 at 02:46:19PM -0700, Ben Widawsky wrote:
> This makes it easier to catch leaks.
> 
> Signed-off-by: Ben Widawsky <ben at bwidawsk.net>
> ---
>  drivers/gpu/drm/i915/i915_gem_stolen.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/i915/i915_gem_stolen.c b/drivers/gpu/drm/i915/i915_gem_stolen.c
> index 89cbfab..bc593e3 100644
> --- a/drivers/gpu/drm/i915/i915_gem_stolen.c
> +++ b/drivers/gpu/drm/i915/i915_gem_stolen.c
> @@ -279,7 +279,7 @@ _i915_gem_object_create_stolen(struct drm_device *dev,
>  		goto cleanup;
>  
>  	obj->has_dma_mapping = true;
> -	obj->pages_pin_count = 1;
> +	i915_gem_object_pin_pages(obj);
>  	obj->stolen = stolen;
>  
>  	obj->base.write_domain = I915_GEM_DOMAIN_GTT;
> -- 
> 1.8.3
> 

-- 
Ben Widawsky, Intel Open Source Technology Center



More information about the Intel-gfx mailing list