Re: [PATCH 17/48] drm/i915: Track which ring a context ran on

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Dec 06, 2013 at 02:11:02PM -0800, Ben Widawsky wrote:
> From: Ben Widawsky <ben@xxxxxxxxxxxx>
> 
> 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
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux