public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Daniel Vetter <daniel@ffwll.ch>
To: "Chris Wilson" <chris@chris-wilson.co.uk>,
	"Daniel Vetter" <daniel@ffwll.ch>,
	"Ville Syrjälä" <ville.syrjala@linux.intel.com>,
	intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 1/2] rendercopy/bdw: Enable hw-generated binding tables
Date: Fri, 16 May 2014 17:07:24 +0200	[thread overview]
Message-ID: <20140516150724.GM8790@phenom.ffwll.local> (raw)
In-Reply-To: <20140516144524.GF3473@nuc-i3427.alporthouse.com>

On Fri, May 16, 2014 at 03:45:24PM +0100, Chris Wilson wrote:
> On Fri, May 16, 2014 at 04:27:34PM +0200, Daniel Vetter wrote:
> > On Fri, May 16, 2014 at 12:36:09PM +0100, Chris Wilson wrote:
> > > On Mon, May 12, 2014 at 06:40:43PM +0200, Daniel Vetter wrote:
> > > > I think as soon as we have the golden context stuff from Mika we could
> > > > drop our usage of restore_inhibit. We only need that to avoid the hw
> > > > getting angry if the context state is illegal afaik.
> > > 
> > > Apart from the contexts being over 100x larger than the state required
> > > to switch between clients, and that the current code regressed to always
> > > update the context between every batch.
> > 
> > We still have the from == to early return in do_switch. That doesn't do
> > what it should any more?
> 
> No.
> 
> 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.
>     
>     As a result, we no longer need to track which ring a context "belongs"
>     to, as it never really made much sense anyway.
>     
>     Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
>     Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
> 
> was just baloney.

Oh, totally forgotten about that fun. I'll add it as a new subtask to the
big full ppgtt jira :(

Thanks digging this out again.
-Daniel
-- 
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch

  reply	other threads:[~2014-05-16 15:07 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-06 19:48 igt tests/rendercopy: Add option to test resource streamer functionality Abdiel Janulgue
2014-05-06 19:48 ` [PATCH 1/2] rendercopy/bdw: Enable hw-generated binding tables Abdiel Janulgue
2014-05-06 21:38   ` Ville Syrjälä
2014-05-06 22:09     ` Abdiel Janulgue
2014-05-07 11:49   ` Ville Syrjälä
2014-05-07 11:55     ` Chris Wilson
2014-05-07 20:59     ` Abdiel Janulgue
2014-05-08  9:54       ` Ville Syrjälä
2014-05-08 10:18         ` Ville Syrjälä
2014-05-12 16:40           ` Daniel Vetter
2014-05-16 11:36             ` Chris Wilson
2014-05-16 14:27               ` Daniel Vetter
2014-05-16 14:45                 ` Chris Wilson
2014-05-16 15:07                   ` Daniel Vetter [this message]
2014-05-06 19:48 ` [PATCH 2/2] tests/gem_render_copy: Add option to test resource streamer Abdiel Janulgue
2014-05-06 20:19 ` igt tests/rendercopy: Add option to test resource streamer functionality Daniel Vetter

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=20140516150724.GM8790@phenom.ffwll.local \
    --to=daniel@ffwll.ch \
    --cc=chris@chris-wilson.co.uk \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=ville.syrjala@linux.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