[Intel-gfx] [PATCH] drm/i915: Show who pinned the pages when a leak is hit

Chris Wilson chris at chris-wilson.co.uk
Mon Jul 2 11:55:00 UTC 2018


Quoting Chris Wilson (2018-07-02 12:44:52)
> @@ -451,6 +460,31 @@ i915_gem_object_get_tile_row_size(struct drm_i915_gem_object *obj)
>  int i915_gem_object_set_tiling(struct drm_i915_gem_object *obj,
>                                unsigned int tiling, unsigned int stride);
>  
> +#if IS_ENABLED(CONFIG_DRM_I915_DEBUG_GEM)
> +
> +void track_i915_gem_object_pin_pages(struct drm_i915_gem_object *obj);
> +void untrack_i915_gem_object_pin_pages(struct drm_i915_gem_object *obj);
> +void show_i915_gem_object_pin_pages(struct drm_i915_gem_object *obj);
> +
> +#else
> +
> +static inline void
> +track_i915_gem_object_pin_pages(struct drm_i915_gem_object *obj)
> +{
> +}
> +
> +static inline void
> +untrack_i915_gem_object_pin_pages(struct drm_i915_gem_object *obj)
> +{
> +}
> +
> +static inline void
> +show_i915_gem_object_pin_pages(struct drm_i915_gem_object *obj)
> +{
> +}
> +
> +#endif

Grr, didn't notice in the rebase that i915_gem_object_pin_pages was no
longer here.
-Chris


More information about the Intel-gfx mailing list