[Intel-gfx] [PATCH] drm/i915: Fix for reserved space WARN_ON when ring begin fails

Chris Wilson chris at chris-wilson.co.uk
Wed Jan 13 05:09:04 PST 2016


On Wed, Jan 13, 2016 at 12:52:40PM +0000, John.C.Harrison at Intel.com wrote:
> From: John Harrison <John.C.Harrison at Intel.com>
> 
> The reserved space code was not cleaning up properly in the case where
> the intel_ring_begin() call failed. This led to WARN_ONs firing about
> a double reserve call when running the gem_reset_stats IGT test.

*reserve_space() failure leads to a i915_gem_request_cancel() which
calls intel_ring_reserved_space_cancel().
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the Intel-gfx mailing list