From: Daniel Vetter <daniel@ffwll.ch>
To: Jesse Barnes <jbarnes@virtuousgeek.org>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: New async patch for resume
Date: Fri, 6 Jun 2014 18:36:46 +0200 [thread overview]
Message-ID: <20140606163646.GH7416@phenom.ffwll.local> (raw)
In-Reply-To: <1401983318-6347-1-git-send-email-jbarnes@virtuousgeek.org>
On Thu, Jun 05, 2014 at 08:48:37AM -0700, Jesse Barnes wrote:
> In digging into the async crtc stuff, I found it was going to be really
> difficult to prevent other functions from getting clobbered by a delayed
> crtc enable or disable. Daniel's work to remove a bunch of the
> ->mode_set callbacks is a good start, but we still end up doing some reg
> reads and writes in the mode set path today. Until those are cleared up
> and we somehow enforce a rule that all hw changes go through the crtc
> enable/disable paths with everything else staged in multithread safe structs,
> I don't think the async crtc approach will be solid.
Just a quick note: Once the runtim pm for dpms code is in, there's 0 hw
touching going on in mode_set callbacks. The only thing we still do in
there is computing the dpll config.
So if this is somehow annoying your feature work I think we should wait a
bit until that's landed.
> So, since resume is the biggest issue here anyway, I've tried making
> just the resume mode set asynchronous. Even this is a bit tricky, since
> we need to apply any pending mode set at certain points, then check
> whether the crtc we're operating on in any given path is still active.
> I think I've caught those cases here, but if we have more we can use the
> intel_sync_mode_set() call with appropriate post-call checks (after we
> re-acquire the corresponding crtc mutex).
>
> Feedback welcome. This has seen light testing on my BYT and really
> reduces the time spend in the i915 _thaw function, letting userspace
> start running much sooner than before.
I think we've very quickly discussed this on irc, so here's the recap. Rob
Clark's atomic modeset also has an async mode. And we have an awful lot of
code to port over to atomic modeset, and I'm vary of adding more i915
custom solutions which some poor schlock (Ville or me, most likely) needs
to convert.
So from that pov I'd really prefer we'd pour this effort into pushing
Rob's and Ville's patches forward. Of course the delaying probing can go
in, and also the other stuff you're working on I think.
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
next prev parent reply other threads:[~2014-06-06 16:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-05 15:48 New async patch for resume Jesse Barnes
2014-06-05 15:48 ` [PATCH] resume timings Jesse Barnes
2014-06-06 16:36 ` Daniel Vetter [this message]
2014-06-06 17:06 ` New async patch for resume Jesse Barnes
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=20140606163646.GH7416@phenom.ffwll.local \
--to=daniel@ffwll.ch \
--cc=intel-gfx@lists.freedesktop.org \
--cc=jbarnes@virtuousgeek.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox