mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jesse Barnes <jbarnes@virtuousgeek.org>
To: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: Linux PCI <linux-pci@vger.kernel.org>,
	pm list <linux-pm@lists.linux-foundation.org>,
	LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] PCI PM: Fix suspend error paths and testing facility breakage
Date: Tue, 27 Jan 2009 09:48:35 -0800	[thread overview]
Message-ID: <200901270948.36109.jbarnes@virtuousgeek.org> (raw)
In-Reply-To: <200901262143.10434.rjw@sisk.pl>

On Monday, January 26, 2009 12:43 pm Rafael J. Wysocki wrote:
> From: Rafael J. Wysocki <rjw@sisk.pl>
>
> If one of device drivers refuses to suspend by returning error code
> from its ->suspend() callback, the devices that have already been
> suspended are resumed by executing their drivers' ->resume()
> callbacks.  Some of these callbacks expect the device's
> configuration space to be restored if the device has been put into
> D3 before they are called.  Unfortunately, this mechanism has been
> broken by recent changes moving the restoration of config spaces
> of some devices (most importantly, USB controllers and HDA Intel)
> into the resume callbacks executed with interrupts off.  Obviously,
> these callbacks are not invoked in the suspend error path and, as a
> result, the system cannot be successfully brought back into the
> working state in case of a suspend error.  The same thing happens
> in the hibernation error path right before putting the system into
> S4.
>
> Similarly, the suspend testing facility associated with the
> /sys/power/pm_test file is broken, because it uses the very same
> mechanism that is used in the suspend and hibernation error paths.
>
> Fix the breakage by making the PCI core restore the configuration
> spaces of PCI devices that haven't been restored already before
> pci_pm_resume() is called for those devices by the PM core.

Applied to my for-linus branch, thanks.

-- 
Jesse Barnes, Intel Open Source Technology Center

      reply	other threads:[~2009-01-27 17:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-26 20:43 Rafael J. Wysocki
2009-01-27 17:48 ` Jesse Barnes [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=200901270948.36109.jbarnes@virtuousgeek.org \
    --to=jbarnes@virtuousgeek.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=linux-pm@lists.linux-foundation.org \
    --cc=rjw@sisk.pl \
    /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

Powered by JetHome