* T60 not coming out of suspend to RAM
@ 2006-08-22 10:37 Michael S. Tsirkin
2006-08-25 11:04 ` Pavel Machek
0 siblings, 1 reply; 9+ messages in thread
From: Michael S. Tsirkin @ 2006-08-22 10:37 UTC (permalink / raw)
To: pavel, linux-pm, Linux Kernel Mailing List
Hi!
I'm running Linus' git tree on my thinkpad T60.
It generally seems to work fine after suspend to disk.
However, the system does not come out of suspend to ram,
with screen staying blank. I'm looking for hints for debugging this.
If I set suspend/resume event tracing, I see this in dmesg
after reboot:
dmesg -s 1000000 | grep 'hash matches'
hash matches drivers/base/power/resume.c:42
hash matches device serio2
serio2 seems to be the psmouse device:
ls /sys/bus/serio/drivers/psmouse/
bind bind_mode description serio0 serio2 unbind
Does this mean the mouse driver blocks the resume?
I've rebuilt psmouse as a module, unloaded it before suspend, and now
I see the same behaviour but after reboot:
dmesg -s 1000000 | grep 'hash matches'
hash matches drivers/base/power/resume.c:42
hash matches device i2c-9191
Which is somewhat weird because
ls /sys/bus/i2c/devices
does not list any i2c devices
I could continue disabling stuff - but I am looking in the
correct place even? How do you debug resume issues?
Thanks,
--
MST
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: T60 not coming out of suspend to RAM
2006-08-22 10:37 T60 not coming out of suspend to RAM Michael S. Tsirkin
@ 2006-08-25 11:04 ` Pavel Machek
2006-08-28 13:53 ` Michael S. Tsirkin
0 siblings, 1 reply; 9+ messages in thread
From: Pavel Machek @ 2006-08-25 11:04 UTC (permalink / raw)
To: Michael S. Tsirkin; +Cc: linux-pm, Linux Kernel Mailing List
Hi!
> I'm running Linus' git tree on my thinkpad T60.
> It generally seems to work fine after suspend to disk.
> However, the system does not come out of suspend to ram,
> with screen staying blank. I'm looking for hints for debugging this.
>
> If I set suspend/resume event tracing, I see this in dmesg
> after reboot:
>
> dmesg -s 1000000 | grep 'hash matches'
> hash matches drivers/base/power/resume.c:42
> hash matches device serio2
>
> serio2 seems to be the psmouse device:
> ls /sys/bus/serio/drivers/psmouse/
> bind bind_mode description serio0 serio2 unbind
>
> Does this mean the mouse driver blocks the resume?
>
> I've rebuilt psmouse as a module, unloaded it before suspend, and now
> I see the same behaviour but after reboot:
> dmesg -s 1000000 | grep 'hash matches'
> hash matches drivers/base/power/resume.c:42
> hash matches device i2c-9191
>
> Which is somewhat weird because
> ls /sys/bus/i2c/devices
> does not list any i2c devices
>
> I could continue disabling stuff - but I am looking in the
> correct place even? How do you debug resume issues?
Yes, disabling stuff is way to go. Just disable everything, and binary
search from there :-).
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: T60 not coming out of suspend to RAM
2006-08-25 11:04 ` Pavel Machek
@ 2006-08-28 13:53 ` Michael S. Tsirkin
2006-08-28 15:42 ` Pavel Machek
0 siblings, 1 reply; 9+ messages in thread
From: Michael S. Tsirkin @ 2006-08-28 13:53 UTC (permalink / raw)
To: Pavel Machek; +Cc: linux-pm, Thomas Glanzmann, Linux Kernel Mailing List
OK, it turns out the problem was with running SATA drive in AHCI mode.
After applying the following patch from Forrest Zhao
http://lkml.org/lkml/2006/7/20/56
both suspend to disk and suspend to ram work fine now.
This patch is going into 2.6.18, isn't it?
Huge thanks to Thomas Glanzman for help in tracking this down.
You rock.
--
MST
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: T60 not coming out of suspend to RAM
2006-08-28 13:53 ` Michael S. Tsirkin
@ 2006-08-28 15:42 ` Pavel Machek
2006-08-28 17:19 ` Michael S. Tsirkin
0 siblings, 1 reply; 9+ messages in thread
From: Pavel Machek @ 2006-08-28 15:42 UTC (permalink / raw)
To: Michael S. Tsirkin; +Cc: linux-pm, Thomas Glanzmann, Linux Kernel Mailing List
On Mon 2006-08-28 16:53:58, Michael S. Tsirkin wrote:
> OK, it turns out the problem was with running SATA drive in AHCI mode.
>
> After applying the following patch from Forrest Zhao
> http://lkml.org/lkml/2006/7/20/56
> both suspend to disk and suspend to ram work fine now.
> This patch is going into 2.6.18, isn't it?
Not sure, check latest -rc5, and if it is not there, ask akpm...
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: T60 not coming out of suspend to RAM
2006-08-28 15:42 ` Pavel Machek
@ 2006-08-28 17:19 ` Michael S. Tsirkin
2006-08-28 19:25 ` Andrew Morton
0 siblings, 1 reply; 9+ messages in thread
From: Michael S. Tsirkin @ 2006-08-28 17:19 UTC (permalink / raw)
To: Pavel Machek; +Cc: akpm, linux-pm, Thomas Glanzmann, Linux Kernel Mailing List
Quoting r. Pavel Machek <pavel@ucw.cz>:
> Subject: Re: T60 not coming out of suspend to RAM
>
> On Mon 2006-08-28 16:53:58, Michael S. Tsirkin wrote:
> > OK, it turns out the problem was with running SATA drive in AHCI mode.
> >
> > After applying the following patch from Forrest Zhao
> > http://lkml.org/lkml/2006/7/20/56
> > both suspend to disk and suspend to ram work fine now.
> > This patch is going into 2.6.18, isn't it?
>
> Not sure, check latest -rc5, and if it is not there, ask akpm...
>
Andrew, this is going into 2.6.18, isn't it? I don't see it in -rc5.
--
MST
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: T60 not coming out of suspend to RAM
2006-08-28 17:19 ` Michael S. Tsirkin
@ 2006-08-28 19:25 ` Andrew Morton
2006-08-28 20:19 ` Michael S. Tsirkin
0 siblings, 1 reply; 9+ messages in thread
From: Andrew Morton @ 2006-08-28 19:25 UTC (permalink / raw)
To: Michael S. Tsirkin, Jeff Garzik
Cc: linux-pm, Thomas Glanzmann, Linux Kernel Mailing List,
Pavel Machek
On Mon, 28 Aug 2006 20:19:26 +0300
"Michael S. Tsirkin" <mst@mellanox.co.il> wrote:
> Quoting r. Pavel Machek <pavel@ucw.cz>:
> > Subject: Re: T60 not coming out of suspend to RAM
> >
> > On Mon 2006-08-28 16:53:58, Michael S. Tsirkin wrote:
> > > OK, it turns out the problem was with running SATA drive in AHCI mode.
> > >
> > > After applying the following patch from Forrest Zhao
> > > http://lkml.org/lkml/2006/7/20/56
> > > both suspend to disk and suspend to ram work fine now.
> > > This patch is going into 2.6.18, isn't it?
> >
> > Not sure, check latest -rc5, and if it is not there, ask akpm...
> >
>
> Andrew, this is going into 2.6.18, isn't it? I don't see it in -rc5.
>
It looks like Forrest's stuff is all queued up in the libata devel tree,
although in a significantly different-looking form.
So no, right now it doesn't look good for 2.6.18.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: T60 not coming out of suspend to RAM
2006-08-28 19:25 ` Andrew Morton
@ 2006-08-28 20:19 ` Michael S. Tsirkin
2006-08-30 14:46 ` Pavel Machek
0 siblings, 1 reply; 9+ messages in thread
From: Michael S. Tsirkin @ 2006-08-28 20:19 UTC (permalink / raw)
To: Andrew Morton
Cc: Jeff Garzik, Pavel Machek, linux-pm, Thomas Glanzmann,
Linux Kernel Mailing List
Quoting r. Andrew Morton <akpm@osdl.org>:
> Subject: Re: T60 not coming out of suspend to RAM
>
> On Mon, 28 Aug 2006 20:19:26 +0300
> "Michael S. Tsirkin" <mst@mellanox.co.il> wrote:
>
> > Quoting r. Pavel Machek <pavel@ucw.cz>:
> > > Subject: Re: T60 not coming out of suspend to RAM
> > >
> > > On Mon 2006-08-28 16:53:58, Michael S. Tsirkin wrote:
> > > > OK, it turns out the problem was with running SATA drive in AHCI mode.
> > > >
> > > > After applying the following patch from Forrest Zhao
> > > > http://lkml.org/lkml/2006/7/20/56
> > > > both suspend to disk and suspend to ram work fine now.
> > > > This patch is going into 2.6.18, isn't it?
> > >
> > > Not sure, check latest -rc5, and if it is not there, ask akpm...
> > >
> >
> > Andrew, this is going into 2.6.18, isn't it? I don't see it in -rc5.
> >
>
> It looks like Forrest's stuff is all queued up in the libata devel tree,
> although in a significantly different-looking form.
>
> So no, right now it doesn't look good for 2.6.18.
>
Ugh, more's the pity :(
How about merging this one patch? T60 is only half as useful without it (no disk
after resume), and the rate of changes in libata is high so just using a patch
is gonnu be painful in the long run.
--
MST
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: T60 not coming out of suspend to RAM
2006-08-28 20:19 ` Michael S. Tsirkin
@ 2006-08-30 14:46 ` Pavel Machek
2006-08-30 15:05 ` Michael S. Tsirkin
0 siblings, 1 reply; 9+ messages in thread
From: Pavel Machek @ 2006-08-30 14:46 UTC (permalink / raw)
To: Michael S. Tsirkin
Cc: Andrew Morton, linux-pm, Thomas Glanzmann,
Linux Kernel Mailing List, Jeff Garzik
Hi!
> > > > > OK, it turns out the problem was with running SATA drive in AHCI mode.
> > > > >
> > > > > After applying the following patch from Forrest Zhao
> > > > > http://lkml.org/lkml/2006/7/20/56
> > > > > both suspend to disk and suspend to ram work fine now.
> > > > > This patch is going into 2.6.18, isn't it?
> > > >
> > > > Not sure, check latest -rc5, and if it is not there, ask akpm...
> > > >
> > >
> > > Andrew, this is going into 2.6.18, isn't it? I don't see it in -rc5.
> > >
> >
> > It looks like Forrest's stuff is all queued up in the libata devel tree,
> > although in a significantly different-looking form.
> >
> > So no, right now it doesn't look good for 2.6.18.
> >
>
> Ugh, more's the pity :(
> How about merging this one patch? T60 is only half as useful without it (no disk
> after resume), and the rate of changes in libata is high so just using a patch
> is gonnu be painful in the long run.
I guess you need to convince SATA maintainer that patch is safe before
it can go in...
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: T60 not coming out of suspend to RAM
2006-08-30 14:46 ` Pavel Machek
@ 2006-08-30 15:05 ` Michael S. Tsirkin
0 siblings, 0 replies; 9+ messages in thread
From: Michael S. Tsirkin @ 2006-08-30 15:05 UTC (permalink / raw)
To: Pavel Machek
Cc: Andrew Morton, Jeff Garzik, linux-pm, Thomas Glanzmann,
Linux Kernel Mailing List, linux-ide
Quoting r. Pavel Machek <pavel@suse.cz>:
> Subject: Re: T60 not coming out of suspend to RAM
>
> Hi!
>
> > > > > > OK, it turns out the problem was with running SATA drive in AHCI mode.
> > > > > >
> > > > > > After applying the following patch from Forrest Zhao
> > > > > > http://lkml.org/lkml/2006/7/20/56
> > > > > > both suspend to disk and suspend to ram work fine now.
> > > > > > This patch is going into 2.6.18, isn't it?
> > > > >
> > > > > Not sure, check latest -rc5, and if it is not there, ask akpm...
> > > > >
> > > >
> > > > Andrew, this is going into 2.6.18, isn't it? I don't see it in -rc5.
> > > >
> > >
> > > It looks like Forrest's stuff is all queued up in the libata devel tree,
> > > although in a significantly different-looking form.
> > >
> > > So no, right now it doesn't look good for 2.6.18.
> > >
> >
> > Ugh, more's the pity :( How about merging this one patch? T60 is only half
> > as useful without it (no disk after resume), and the rate of changes in
> > libata is high so just using a patch is gonnu be painful in the long run.
>
> I guess you need to convince SATA maintainer that patch is safe before
> it can go in...
Right.
Jeff, could you please ack whether the following patch from Forrest Zhao
is safe for 2.6.18?
http://lkml.org/lkml/2006/7/20/56
Without it, no disk access is possible after resume from suspend-to-ram
on my T60.
--
MST
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2006-08-30 15:05 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-22 10:37 T60 not coming out of suspend to RAM Michael S. Tsirkin
2006-08-25 11:04 ` Pavel Machek
2006-08-28 13:53 ` Michael S. Tsirkin
2006-08-28 15:42 ` Pavel Machek
2006-08-28 17:19 ` Michael S. Tsirkin
2006-08-28 19:25 ` Andrew Morton
2006-08-28 20:19 ` Michael S. Tsirkin
2006-08-30 14:46 ` Pavel Machek
2006-08-30 15:05 ` Michael S. Tsirkin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox