From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Wilson Subject: Re: [PATCH 17/48] drm/i915: Track which ring a context ran on Date: Fri, 18 Apr 2014 10:51:46 +0100 Message-ID: <20140418095146.GA7270@nuc-i3427.alporthouse.com> References: <20131206215521.GA6922@bwidawsk.net> <1386367941-7131-1-git-send-email-benjamin.widawsky@intel.com> <1386367941-7131-17-git-send-email-benjamin.widawsky@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from fireflyinternet.com (mail.fireflyinternet.com [87.106.93.118]) by gabe.freedesktop.org (Postfix) with ESMTP id 1D2846EC45 for ; Fri, 18 Apr 2014 02:51:57 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1386367941-7131-17-git-send-email-benjamin.widawsky@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: Ben Widawsky Cc: Intel GFX , Ben Widawsky List-Id: intel-gfx@lists.freedesktop.org On Fri, Dec 06, 2013 at 02:11:02PM -0800, Ben Widawsky wrote: > From: Ben Widawsky > > 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