All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Rafael J. Wysocki" <rjw-KKrjLPT3xs0@public.gmane.org>
To: Alan Jenkins <alan-jenkins-cCz0Lq7MMjm9FHfhHBbuYA@public.gmane.org>
Cc: kernel-testers-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-pm-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org,
	Pavel Machek <pavel-AlSwsSmVLrQ@public.gmane.org>,
	Jesse Barnes <jbarnes-Y1mF5jBUw70BENJcbMCuUQ@public.gmane.org>
Subject: Re: BISECTED: 2.6.29-rc2 regression: hibernation hang on eeepc-701
Date: Thu, 22 Jan 2009 13:44:15 +0100	[thread overview]
Message-ID: <200901221344.16178.rjw@sisk.pl> (raw)
In-Reply-To: <497858E1.5070303-cCz0Lq7MMjm9FHfhHBbuYA@public.gmane.org>

On Thursday 22 January 2009, Alan Jenkins wrote:
> Alan Jenkins wrote:
> > Hibernation hangs just after writing the image.  With s2disk I can see
> > this from the console messages.  The same hang happens with kernel
> > swsusp ('echo disk | sudo tee /sys/power/state'), and I can see that
> > the image has been written from the HDD led.
> >
> > In either case, I can still hard-power-off and resume from hibernation.
> >
> > It doesn't hang if I use the shutdown method (either 'echo shutdown |
> > sudo tee /sys/power/disk' or  's2disk -P "shutdown method=shutdown"').
> >   
> 
> I've bisected this to commit 571ff7584bb9e05fca0eb79752ae55a46faf3a98. 
> It doesn't revert cleanly from RC2.
> 
> I think it's distinct from the other two reported suspend regressions. 
> I'm not using acpi-cpufreq, and the issue doesn't affect resume.

It looks distinct.

Do you suspend this box to RAM and does it work?

Please retest with the appended patch applied.

Thanks,
Rafael


---
 drivers/pci/pci-driver.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Index: linux-2.6/drivers/pci/pci-driver.c
===================================================================
--- linux-2.6.orig/drivers/pci/pci-driver.c
+++ linux-2.6/drivers/pci/pci-driver.c
@@ -660,7 +660,10 @@ static int pci_pm_poweroff(struct device
 	if (pci_has_legacy_pm_support(pci_dev))
 		return pci_legacy_suspend(dev, PMSG_HIBERNATE);
 
-	if (drv && drv->pm && drv->pm->poweroff) {
+	if (!drv || !drv->pm)
+		return 0;
+
+	if (drv->pm->poweroff) {
 		error = drv->pm->poweroff(dev);
 		suspend_report_result(drv->pm->poweroff, error);
 	}

WARNING: multiple messages have this Message-ID (diff)
From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
Cc: kernel-testers@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-pm@lists.linux-foundation.org, Pavel Machek <pavel@suse.cz>,
	Jesse Barnes <jbarnes@virtuousgeek.org>
Subject: Re: BISECTED: 2.6.29-rc2 regression: hibernation hang on eeepc-701
Date: Thu, 22 Jan 2009 13:44:15 +0100	[thread overview]
Message-ID: <200901221344.16178.rjw@sisk.pl> (raw)
In-Reply-To: <497858E1.5070303@tuffmail.co.uk>

On Thursday 22 January 2009, Alan Jenkins wrote:
> Alan Jenkins wrote:
> > Hibernation hangs just after writing the image.  With s2disk I can see
> > this from the console messages.  The same hang happens with kernel
> > swsusp ('echo disk | sudo tee /sys/power/state'), and I can see that
> > the image has been written from the HDD led.
> >
> > In either case, I can still hard-power-off and resume from hibernation.
> >
> > It doesn't hang if I use the shutdown method (either 'echo shutdown |
> > sudo tee /sys/power/disk' or  's2disk -P "shutdown method=shutdown"').
> >   
> 
> I've bisected this to commit 571ff7584bb9e05fca0eb79752ae55a46faf3a98. 
> It doesn't revert cleanly from RC2.
> 
> I think it's distinct from the other two reported suspend regressions. 
> I'm not using acpi-cpufreq, and the issue doesn't affect resume.

It looks distinct.

Do you suspend this box to RAM and does it work?

Please retest with the appended patch applied.

Thanks,
Rafael


---
 drivers/pci/pci-driver.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Index: linux-2.6/drivers/pci/pci-driver.c
===================================================================
--- linux-2.6.orig/drivers/pci/pci-driver.c
+++ linux-2.6/drivers/pci/pci-driver.c
@@ -660,7 +660,10 @@ static int pci_pm_poweroff(struct device
 	if (pci_has_legacy_pm_support(pci_dev))
 		return pci_legacy_suspend(dev, PMSG_HIBERNATE);
 
-	if (drv && drv->pm && drv->pm->poweroff) {
+	if (!drv || !drv->pm)
+		return 0;
+
+	if (drv->pm->poweroff) {
 		error = drv->pm->poweroff(dev);
 		suspend_report_result(drv->pm->poweroff, error);
 	}


  parent reply	other threads:[~2009-01-22 12:44 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-18 11:45 2.6.29-rc2 regression: hibernation hang on eeepc-701 (method "platform" only) Alan Jenkins
2009-01-18 11:45 ` Alan Jenkins
2009-01-18 11:45 ` Alan Jenkins
2009-01-18 19:19 ` Alan Jenkins
     [not found] ` <9b2b86520901180345j434eacbdn7386958991ee50b-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-01-18 19:19   ` Alan Jenkins
2009-01-18 19:19     ` Alan Jenkins
2009-01-18 19:19     ` Alan Jenkins
2009-01-22 11:30   ` BISECTED: 2.6.29-rc2 regression: hibernation hang on eeepc-701 Alan Jenkins
2009-01-22 11:30     ` Alan Jenkins
2009-01-22 12:44     ` Rafael J. Wysocki
     [not found]     ` <497858E1.5070303-cCz0Lq7MMjm9FHfhHBbuYA@public.gmane.org>
2009-01-22 12:44       ` Rafael J. Wysocki [this message]
2009-01-22 12:44         ` Rafael J. Wysocki
     [not found]         ` <200901221344.16178.rjw-KKrjLPT3xs0@public.gmane.org>
2009-01-22 13:23           ` Alan Jenkins
2009-01-22 13:23             ` Alan Jenkins
     [not found]             ` <49787339.7080900-cCz0Lq7MMjm9FHfhHBbuYA@public.gmane.org>
2009-01-22 22:05               ` Rafael J. Wysocki
2009-01-22 22:05                 ` Rafael J. Wysocki
     [not found]                 ` <200901222305.25824.rjw-KKrjLPT3xs0@public.gmane.org>
2009-01-23  9:45                   ` Alan Jenkins
2009-01-23  9:45                     ` Alan Jenkins
     [not found]                     ` <497991CC.9030200-cCz0Lq7MMjm9FHfhHBbuYA@public.gmane.org>
2009-01-23 22:06                       ` Rafael J. Wysocki
2009-01-23 22:06                         ` Rafael J. Wysocki
2009-01-24 11:15                         ` Alan Jenkins
     [not found]                           ` <497AF845.2000002-cCz0Lq7MMjm9FHfhHBbuYA@public.gmane.org>
2009-01-24 13:43                             ` Rafael J. Wysocki
2009-01-24 13:43                               ` Rafael J. Wysocki
2009-01-24 14:01                               ` Alan Jenkins
     [not found]                               ` <200901241443.14930.rjw-KKrjLPT3xs0@public.gmane.org>
2009-01-24 14:01                                 ` Alan Jenkins
2009-01-24 14:01                                   ` Alan Jenkins
2009-01-24 14:24                                   ` Alan Jenkins
     [not found]                                   ` <497B1F21.3080908-cCz0Lq7MMjm9FHfhHBbuYA@public.gmane.org>
2009-01-24 14:24                                     ` Alan Jenkins
2009-01-24 14:24                                       ` Alan Jenkins
2009-01-24 13:43                           ` Rafael J. Wysocki
2009-01-24 16:27                           ` Jesse Barnes
     [not found]                             ` <200901240827.05557.jbarnes-Y1mF5jBUw70BENJcbMCuUQ@public.gmane.org>
2009-01-24 20:53                               ` Rafael J. Wysocki
2009-01-24 20:53                                 ` Rafael J. Wysocki
2009-01-24 20:53                             ` Rafael J. Wysocki
2009-01-24 16:27                           ` Jesse Barnes
2009-01-24 11:15                         ` Alan Jenkins
2009-01-23 22:06                     ` Rafael J. Wysocki
2009-01-23  9:45                 ` Alan Jenkins
2009-01-22 22:05             ` Rafael J. Wysocki
2009-01-22 13:23         ` Alan Jenkins
2009-01-22 11:30 ` Alan Jenkins

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=200901221344.16178.rjw@sisk.pl \
    --to=rjw-kkrjlpt3xs0@public.gmane.org \
    --cc=alan-jenkins-cCz0Lq7MMjm9FHfhHBbuYA@public.gmane.org \
    --cc=jbarnes-Y1mF5jBUw70BENJcbMCuUQ@public.gmane.org \
    --cc=kernel-testers-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-pm-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
    --cc=pavel-AlSwsSmVLrQ@public.gmane.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.