[Intel-gfx] [PATCH v4] drm/i915: Clean up associated VMAs on context destruction

Chris Wilson chris at chris-wilson.co.uk
Fri Oct 23 06:27:03 PDT 2015


On Mon, Oct 05, 2015 at 01:26:36PM +0100, Tvrtko Ursulin wrote:
> +static void i915_gem_context_clean(struct intel_context *ctx)
> +{
> +	struct i915_hw_ppgtt *ppgtt = ctx->ppgtt;
> +	struct i915_vma *vma, *next;
> +
> +	if (WARN_ON_ONCE(!ppgtt))
> +		return;
> +
> +	WARN_ON(!list_empty(&ppgtt->base.active_list));

This warning is invalid becase at the time during retire__read an active
request is freed, the vma has yet to be moved to the inactive list, and
hence the vma is still leaked.
https://bugs.freedesktop.org/show_bug.cgi?id=92638
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the Intel-gfx mailing list