From: Daniel Vetter <daniel@ffwll.ch>
To: Chris Wilson <chris@chris-wilson.co.uk>,
oscar.mateo@intel.com, intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/i915: Remove ctx->last_ring
Date: Wed, 18 Jun 2014 21:43:19 +0200 [thread overview]
Message-ID: <20140618194319.GP5821@phenom.ffwll.local> (raw)
In-Reply-To: <20140618163449.GW31023@nuc-i3427.alporthouse.com>
On Wed, Jun 18, 2014 at 05:34:49PM +0100, Chris Wilson wrote:
> On Wed, Jun 18, 2014 at 05:16:03PM +0100, oscar.mateo@intel.com wrote:
> > From: Oscar Mateo <oscar.mateo@intel.com>
> >
> > The original comment that introduced it said:
> >
> > commit 0009e46cd54324c4af20b0b52b89973b1b914167
> > Author: Ben Widawsky <ben@bwidawsk.net>
> > Date: Fri Dec 6 14:11:02 2013 -0800
> >
> > drm/i915: Track which ring a context ran on
> >
> > 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.
> >
> > But this is not really true, because we are already checking to != from (with
> > "from" being = ring->last_context) and that should be enough to make sure we
> > switch to the right address space.
> >
> > We would have a problem if we switched the context object for every ring (since
> > then we would fail to do it in some situations) but we only switch it for the
> > render ring, so we don't care.
> >
> > Signed-off-by: Oscar Mateo <oscar.mateo@intel.com>
>
> I have sent the very same patch, so
> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Queued for -next, thanks for the patch.
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
prev parent reply other threads:[~2014-06-18 19:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-18 16:16 [PATCH] drm/i915: Remove ctx->last_ring oscar.mateo
2014-06-18 16:34 ` Chris Wilson
2014-06-18 19:43 ` Daniel Vetter [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140618194319.GP5821@phenom.ffwll.local \
--to=daniel@ffwll.ch \
--cc=chris@chris-wilson.co.uk \
--cc=intel-gfx@lists.freedesktop.org \
--cc=oscar.mateo@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox