All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Vetter <daniel@ffwll.ch>
To: Chris Wilson <chris@chris-wilson.co.uk>,
	Daniel Vetter <daniel.vetter@ffwll.ch>,
	Intel Graphics Development <intel-gfx@lists.freedesktop.org>
Subject: Re: [PATCH 00/15] Accurate frontbuffer tracking and psr conversion
Date: Tue, 17 Jun 2014 11:30:56 +0200	[thread overview]
Message-ID: <20140617093056.GH5821@phenom.ffwll.local> (raw)
In-Reply-To: <20140617070947.GL17744@nuc-i3427.alporthouse.com>

On Tue, Jun 17, 2014 at 08:09:47AM +0100, Chris Wilson wrote:
> On Mon, Jun 16, 2014 at 07:51:20PM +0200, Daniel Vetter wrote:
> > Hi all,
> > 
> > This patch series adds accurate frontbuffer tracking to i915 and then converts
> > psr over to use. Bunch of things still need to be done.
> > 
> > - PSR needs to be re-tested. I lack the hardware for that. The frontbuffer
> >   tracking itself is tested.
> > 
> > - PSR igt testcase needs to be extended so that we cover all upload methods on
> >   all plane types.
> > 
> > - DRRS/downclocking needs to be unified and put into this framework properly.
> >   Also needs proper locking for all of the DRRS state.
> > 
> > - fbc also needs to be fixed up, with state handling properly split between
> >   crtc_enable/disable, primary fb updates and the fb tracking for nuking. A bit
> >   unclear how we want to integrate gtt cpu write tracking through the hw, since
> >   that seems to be the hw tracking piece that actually works.
> > 
> > General blueprint for display runtime power saving features:
> > - Have all your state in either intel_crtc or dev_priv, protected by its own
> >   lock.
> > 
> > - Do state setup in crtc_enable, cleanup in crtc_disable with a pair of
> >   enable/disable fuctions. Optionally update everywhere else you want (e.g.
> >   primary plane updates for fbc). Not state setup anywhere else allowed, except
> >   maybe an _init for setting up work items, locks, ...
> > 
> > - Intercept the invalidation/flush signals you need like
> >   psr_invalidate/psr_flush. Track internally which frontbuffer bits you're
> >   interested in and invalidate/flush accordingly. You can also use these for
> >   workarounds (e.g. on hsw we force-flush for sprite changes since the flip
> >   signal doesn't result in a hw image upload).
> > 
> > 
> > Note that currently the gtt tracking has a bit a gap: We never exit it. Bunch of
> > fixes are possible:
> > - Wire up the core dirty_fb ioctl to flush framebuffers. This is used by generic
> >   userspace to flush dummy buffers, which in our case means gtt mmaps. So maps
> >   perfectly.
> > 
> > - Do a delayed gtt pte teardown and force-flush. Probably too ugly to care
> >   really.
> > 
> > - Try to integrate hw gtt write tracking logic. Note that current psr code
> >   doesn't rely on this - I've killed the X-tiled checks completely.
> > 
> > Big thanks to Chris for some great ideas for the fb tracking scheme and the
> > precise placement of the invalidate/flush functions.
> > 
> > Comments, flames and especially testing on psr hardware highly welcome.
> 
> I like it. I think this is a big step in the right direction, and
> doesn't look too intrusive to normal operations. I would like to get
> Ville's FBC tracking on top so we check for any idiosynacracies we may
> have missed.

My plan is to check out how this works with byt psr (since the hw tracking
there is completely broken) and then get this all in. More polish might be
needed on top for fbc, but fixing fbc will be a lot of work (and Ville's
going on summer vacation soonish). Also with that we could fix up fbc and
drrs in parallel.

I hope that byt psr is a nasty enough case to validate the framework
overall.

Anyway, tons of changes in the patches from Chris' and Rodrigo's review
plus fixing a bunch of things when debugging psr with Rodrigo yesterday.
Unfortunately the psr sink crc tests are broken currently (for unrelated
reasons) so the verdict's still out on whether it works.

New patch series pushed to

http://cgit.freedesktop.org/~danvet/drm/log/?h=psr-stuff

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

      reply	other threads:[~2014-06-17  9:31 UTC|newest]

Thread overview: 66+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-16 17:51 [PATCH 00/15] Accurate frontbuffer tracking and psr conversion Daniel Vetter
2014-06-16 17:51 ` [PATCH 01/15] drm/i915: Add missing statics to recent psr functions Daniel Vetter
2014-06-16 23:57   ` Rodrigo Vivi
2014-06-17  8:22     ` Daniel Vetter
2014-06-16 17:51 ` [PATCH 02/15] drm/i915: Drop unecessary complexity from psr_inactivate Daniel Vetter
2014-06-16 23:58   ` Rodrigo Vivi
2014-06-16 17:51 ` [PATCH 03/15] drm/i915: Ditch intel_edp_psr_update Daniel Vetter
2014-06-17  0:00   ` Rodrigo Vivi
2014-06-16 17:51 ` [PATCH 04/15] drm/i915: Run psr_setup unconditionally Daniel Vetter
2014-06-17  0:03   ` Rodrigo Vivi
2014-06-17  6:43     ` Chris Wilson
2014-06-17  7:23       ` Daniel Vetter
2014-06-17  8:26         ` Daniel Vetter
2014-06-16 17:51 ` [PATCH 05/15] drm/i915: Drop schedule_back from psr_exit Daniel Vetter
2014-06-17  0:06   ` Rodrigo Vivi
2014-06-17  7:25     ` Daniel Vetter
2014-06-16 17:51 ` [PATCH 06/15] drm/i915: Add a FIXME about drrs/psr interactions Daniel Vetter
2014-06-16 17:51 ` [PATCH 07/15] drm/i915: Track the psr dp connector in dev_priv->psr.enabled Daniel Vetter
2014-06-17  0:10   ` Rodrigo Vivi
2014-06-17  7:26     ` Daniel Vetter
2014-06-16 17:51 ` [PATCH 08/15] drm/i915: Don't try to disable psr harder from the work item Daniel Vetter
2014-06-17  0:20   ` Rodrigo Vivi
2014-06-17  7:29     ` Daniel Vetter
2014-06-16 17:51 ` [PATCH 09/15] drm/i915: Lock down psr sw/hw state tracking Daniel Vetter
2014-06-16 17:51 ` [PATCH 10/15] drm/i915: More checks for psr.enabled Daniel Vetter
2014-06-16 17:51 ` [PATCH 11/15] drm/i915: Add locking to psr code Daniel Vetter
2014-06-16 17:51 ` [PATCH 12/15] drm/i915: Introduce accurate frontbuffer tracking Daniel Vetter
2014-06-16 17:51 ` [PATCH 13/15] drm/i915: Use new frontbuffer bits to increase pll clock Daniel Vetter
2014-06-16 17:51 ` [PATCH 14/15] drm/i915: Track frontbuffer invalidation/flushing Daniel Vetter
2014-06-17  6:41   ` Chris Wilson
2014-06-17  7:32     ` Daniel Vetter
2014-06-17  7:36       ` Chris Wilson
2014-06-17  9:01         ` Daniel Vetter
2014-06-17  6:46   ` Chris Wilson
2014-06-17  7:33     ` Daniel Vetter
2014-06-17  6:49   ` Chris Wilson
2014-06-17  7:36     ` Daniel Vetter
2014-06-17  6:50   ` Chris Wilson
2014-06-17  7:37     ` Daniel Vetter
2014-06-17  7:40       ` Chris Wilson
2014-06-17  7:42         ` Chris Wilson
2014-06-17  6:52   ` Chris Wilson
2014-06-17  7:39     ` Daniel Vetter
2014-06-17  6:54   ` Chris Wilson
2014-06-17  7:45     ` Daniel Vetter
2014-06-17  7:53       ` Chris Wilson
2014-06-17  9:17         ` Daniel Vetter
2014-06-17  6:57   ` Chris Wilson
2014-06-17  7:48     ` Daniel Vetter
2014-06-17  7:55       ` Chris Wilson
2014-06-17  7:00   ` Chris Wilson
2014-06-17  7:52     ` Daniel Vetter
2014-06-17  8:10       ` Chris Wilson
2014-06-17  9:33         ` Daniel Vetter
2014-06-17  9:42           ` Chris Wilson
2014-06-17  9:54             ` Daniel Vetter
2014-06-17 10:00               ` Chris Wilson
2014-06-16 17:51 ` [PATCH 15/15] drm/i915: Fix up PSR frontbuffer tracking Daniel Vetter
2014-06-17  7:02   ` Chris Wilson
2014-06-17  8:06     ` Daniel Vetter
2014-06-17  7:07   ` Chris Wilson
2014-06-17  8:08     ` Daniel Vetter
2014-06-16 19:37 ` [PATCH 00/15] Accurate frontbuffer tracking and psr conversion Chris Wilson
2014-06-16 20:37   ` Daniel Vetter
2014-06-17  7:09 ` Chris Wilson
2014-06-17  9:30   ` 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=20140617093056.GH5821@phenom.ffwll.local \
    --to=daniel@ffwll.ch \
    --cc=chris@chris-wilson.co.uk \
    --cc=daniel.vetter@ffwll.ch \
    --cc=intel-gfx@lists.freedesktop.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.