[Intel-gfx] [PATCH 17/48] drm/i915: Track which ring a context ran on
Chris Wilson
chris at chris-wilson.co.uk
Fri Apr 18 11:51:46 CEST 2014
On Fri, Dec 06, 2013 at 02:11:02PM -0800, Ben Widawsky wrote:
> From: Ben Widawsky <ben at bwidawsk.net>
>
> Previously we dropped the association of a context to a ring. It is
> however very important to know which ring a context ran on (we could
> have reused the other member, but I was nitpicky).
>
> This is very important when we switch address spaces, which unlike
> context objects, do change per ring.
>
> As an example, if we have:
>
> RCS BCS
> ctx A
> ctx A
> ctx B
> ctx B
>
> Without tracking the last ring B ran on, we wouldn't know to switch the
> address space on BCS in the last row.
>
> As a result, we no longer need to track which ring a context "belongs"
> to, as it never really made much sense anyway.
What about ring->last_context != to? That would force the update on BCS
from A to B.
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
More information about the Intel-gfx
mailing list