[Intel-gfx] [PATCH] drm/i915/guc: Defer LRC context unpin or release

Chris Wilson chris at chris-wilson.co.uk
Fri Nov 6 14:09:29 PST 2015


On Fri, Nov 06, 2015 at 01:56:59PM -0800, yu.dai at intel.com wrote:
> From: Alex Dai <yu.dai at intel.com>
> 
> Can't immediately free LRC context (neither unpin it) even all
> its referenced requests are completed, because HW still need a
> short period of time to save data to LRC status page. It is safe
> to free LRC when HW completes a request from a different LRC.

See the legacy context switch mechanism for code to reuse - at least
reuse the pointers rather than add yet another almost identically named
one to intel_engine_cs.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the Intel-gfx mailing list