public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Imre Deak <imre.deak@intel.com>
To: Lukas Wunner <lukas@wunner.de>,
	Chris Wilson <chris@chris-wilson.co.uk>,
	Takashi Iwai <tiwai@suse.de>, Daniel Vetter <daniel@ffwll.ch>,
	Daniel Vetter <daniel.vetter@ffwll.ch>,
	intel-gfx@lists.freedesktop.org
Subject: Re: S4 resume breakage with i915 driver
Date: Tue, 30 Aug 2016 14:43:58 +0300	[thread overview]
Message-ID: <1472557438.11341.35.camel@intel.com> (raw)
In-Reply-To: <20160829164658.GA24724@wunner.de>

On ma, 2016-08-29 at 18:46 +0200, Lukas Wunner wrote:
> On Mon, Aug 29, 2016 at 04:25:25PM +0100, Chris Wilson wrote:
> > On Mon, Aug 29, 2016 at 05:54:45PM +0300, Imre Deak wrote:
> > > On ma, 2016-08-29 at 16:24 +0200, Takashi Iwai wrote:
> > > > Hmm, this always confuses me.  Is the freeze callback called to the
> > > > loader kernel?
> > > 
> > > It's called both in loader and target kernel, before creating or
> > > restoring the image.
> > 
> > So the right answer for hiberation is?
> 
> According to Documentation/power/devices.txt:
> 
> "After the image has been loaded, the devices managed by the boot kernel
> need to be prepared for passing control back to the image kernel.  This
> is very similar to the initial steps involved in creating a system image,
> and it is accomplished in the same way, using prepare, freeze, and
> freeze_noirq phases.  However the devices affected by these phases are
> only those having drivers in the boot kernel; other devices will still be
> in whatever state the boot loader left them."
> 
> "Most often the pre-hibernation memory contents are restored successfully
> and control is passed to the image kernel, which then becomes responsible
> for bringing the system back to the working state.
> To achieve this, the image kernel must restore the devices' pre-hibernation
> functionality.  The operation is much like waking up from the memory sleep
> state, although it involves different phases:
>         restore_noirq, restore_early, restore, complete"
> 
> 
> If a missing i915.ko in the boot kernel's initrd causes problems, perhaps
> this can be solved by amending intel_graphics_quirks() to reset the GPU?

The problem at hand seems to happen with the driver present in the
loader kernel, so it needs to be fixed in the above PM callbacks. If
the missing driver is really a problem - no proof for this, I only
mentioned it as a possible scenario - then we'd need a separate fix.

--Imre
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2016-08-30 11:48 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-25 13:11 S4 resume breakage with i915 driver Takashi Iwai
2016-08-25 15:32 ` Chris Wilson
2016-08-25 15:54   ` Takashi Iwai
2016-08-25 16:12     ` Chris Wilson
2016-08-25 16:15       ` Takashi Iwai
2016-08-26  9:18         ` Takashi Iwai
2016-08-26 10:25           ` Takashi Iwai
2016-08-26 10:39             ` Chris Wilson
2016-08-26 11:10               ` Imre Deak
2016-08-26 11:42                 ` Imre Deak
2016-08-29 13:32                   ` Daniel Vetter
2016-08-29 14:09                     ` Imre Deak
2016-08-29 14:24                       ` Takashi Iwai
2016-08-29 14:54                         ` Imre Deak
2016-08-29 15:25                           ` Chris Wilson
2016-08-29 16:46                             ` Lukas Wunner
2016-08-30 11:43                               ` Imre Deak [this message]
2016-08-30 11:33                             ` Imre Deak
2016-09-02 18:34                     ` Dave Gordon
2016-08-26 12:29   ` David Weinehall
2016-08-26 12:38     ` Chris Wilson
2016-08-26 12:54       ` David Weinehall

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=1472557438.11341.35.camel@intel.com \
    --to=imre.deak@intel.com \
    --cc=chris@chris-wilson.co.uk \
    --cc=daniel.vetter@ffwll.ch \
    --cc=daniel@ffwll.ch \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=lukas@wunner.de \
    --cc=tiwai@suse.de \
    /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