public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Daniel Vetter <daniel@ffwll.ch>
To: Imre Deak <imre.deak@intel.com>
Cc: rodrigo.vivi@intel.com, intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] i915 suspend/resume_noirq instead of suspend_late/resume_early
Date: Thu, 28 Apr 2016 10:32:55 +0200	[thread overview]
Message-ID: <20160428083255.GS2558@phenom.ffwll.local> (raw)
In-Reply-To: <1461792989.15174.4.camel@intel.com>

On Thu, Apr 28, 2016 at 12:36:29AM +0300, Imre Deak wrote:
> On Wed, 2016-04-27 at 22:33 +0200, Lukas Wunner wrote:
> > Hi,
> > 
> > On Wed, Apr 27, 2016 at 11:46:22AM -0700, Todd Brandt wrote:
> > >  I'd like to propose that we push the i915
> > > suspend_late/resume_early code
> > >  into suspend_noirq/resume_noirq in order to reduce the total
> > > suspend time
> > >  by ~15ms. According to the comments, when i915_pm_suspend_late was
> > > first
> > >  added to the kernel back in April 2014, it was done so to ensure
> > > that it
> > >  was called after the snd_hda_intel driver had finished its
> > > suspend.
> > 
> > Ordering issues like this one should be solved with
> > device_pm_wait_for_dev(),
> > not by shuffling code around among the callbacks.
> 
> We considered using device_pm_wait_for_dev() but decided not to, since
> it may dead lock in case of suspend/resume:
> https://lists.freedesktop.org/archives/intel-gfx/2014-December/057113.html

device_pm_wait_for_dev sounds like the exact counterpart to
EDEFERRED_PROBE for solving load-time ordering issues. It makes sense, and
I think we should use it. Somehow I missed in that entire discussion that
this exists.

In both cases you can fry/deadlock your kernel if you disable the async
queues, and imo that shouldn't be a concern for us.

Of course cc Rafael, in case something changed in this area.
-Daniel
-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2016-04-28  8:33 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-27 18:46 [PATCH] i915 suspend/resume_noirq instead of suspend_late/resume_early Todd Brandt
2016-04-27 19:31 ` Ville Syrjälä
2016-04-27 20:17   ` Todd Brandt
2016-04-27 20:49     ` Ville Syrjälä
2016-04-27 21:27       ` Todd Brandt
2016-04-27 20:33 ` Lukas Wunner
2016-04-27 20:49   ` Todd Brandt
2016-04-27 20:51     ` Todd Brandt
2016-04-27 21:36   ` Imre Deak
2016-04-28  8:32     ` Daniel Vetter [this message]
2016-04-28  6:46 ` ✓ Fi.CI.BAT: success for " Patchwork
2016-04-29  9:38 ` [PATCH] " Ville Syrjälä

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=20160428083255.GS2558@phenom.ffwll.local \
    --to=daniel@ffwll.ch \
    --cc=imre.deak@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=rodrigo.vivi@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