2009-04-10 06:03:33

by Theodore Ts'o

[permalink] [raw]
Subject: suspend-to-ram broken on X61 thinkpads in 2.6.30-rc1?

Hi, has anyone else noticed that suspend-to-ram seems to have gotten
broken in 2.6.30-rc1, sometime during last half of the merge window?
I've been at a conference all of this past week, so I haven't had time
to bisect it yet. I was wondering if anyone else had noticed and
figured out what was going wrong. Symptoms are that the suspend "moon"
starts flashing and the system never manages to put itself to sleep.

- Ted


2009-04-10 12:48:38

by Rafael J. Wysocki

[permalink] [raw]
Subject: Re: suspend-to-ram broken on X61 thinkpads in 2.6.30-rc1?

On Friday 10 April 2009, Theodore Ts'o wrote:
> Hi, has anyone else noticed that suspend-to-ram seems to have gotten
> broken in 2.6.30-rc1, sometime during last half of the merge window?
> I've been at a conference all of this past week, so I haven't had time
> to bisect it yet. I was wondering if anyone else had noticed and
> figured out what was going wrong. Symptoms are that the suspend "moon"
> starts flashing and the system never manages to put itself to sleep.

There was one similar report, but that issue should be fixed in 2.6.30-rc1
if I remember correctly.

Can you test commit 0a0c5168df270a50e3518e4f12bddb31f8f5f38f
(PM: Introduce functions for suspending and resuming device interrupts), plaese?

Rafael

2009-04-10 13:00:28

by Jeff Chua

[permalink] [raw]
Subject: Re: suspend-to-ram broken on X61 thinkpads in 2.6.30-rc1?

2009/4/10 Rafael J. Wysocki <[email protected]>:
> On Friday 10 April 2009, Theodore Ts'o wrote:
>> Hi, has anyone else noticed that suspend-to-ram seems to have gotten
>> broken in 2.6.30-rc1, sometime during last half of the merge window?

My X61 STR is broken as well.

> There was one similar report, but that issue should be fixed in 2.6.30-rc1
> if I remember correctly.
>
> Can you test commit 0a0c5168df270a50e3518e4f12bddb31f8f5f38f
> (PM: Introduce functions for suspending and resuming device interrupts), plaese?

This commit is in the latest git, but it's does not seem to fix the
problem. 2.6.29 STR works very well. And all the Think "Fn" keys are
no longer working (LID close still functioning though ... but that
could a configuration issue moving from 2.6.29 to 2.6.30-rc1.

Shall I do the bisecting? I think this is the only one not working for
me other than the slow iptables that I reported earlier.

Thanks,
Jeff.

2009-04-10 17:16:12

by Theodore Ts'o

[permalink] [raw]
Subject: Re: suspend-to-ram broken on X61 thinkpads in 2.6.30-rc1?

On Fri, Apr 10, 2009 at 09:00:08PM +0800, Jeff Chua wrote:
> 2009/4/10 Rafael J. Wysocki <[email protected]>:
> > On Friday 10 April 2009, Theodore Ts'o wrote:
> >> Hi, has anyone else noticed that suspend-to-ram seems to have gotten
> >> broken in 2.6.30-rc1, sometime during last half of the merge window?
>
> My X61 STR is broken as well.
>
> This commit is in the latest git, but it's does not seem to fix the
> problem. 2.6.29 STR works very well. And all the Think "Fn" keys are
> no longer working (LID close still functioning though ... but that
> could a configuration issue moving from 2.6.29 to 2.6.30-rc1.

I'm seeing this problem as well.

> Shall I do the bisecting? I think this is the only one not working for
> me other than the slow iptables that I reported earlier.

Well, I can save you at least one or two reboots, based on some
test kernels I had been building.

git bisect bad v2.6.30-rc1-git2
git bisect bad v2.6.30-rc1
git bisect bad e0724bf6 (v2.6.29-git14 circa April 6th)
git bisect good 5d80f8e5 (v2.6.29-git3 circa March 27th)

Only 3,074 revisions to go. :-)

- Ted

2009-04-10 17:54:32

by Pavel Machek

[permalink] [raw]
Subject: Re: suspend-to-ram broken on X61 thinkpads in 2.6.30-rc1?

On Fri 2009-04-10 02:03:13, Theodore Ts'o wrote:
> Hi, has anyone else noticed that suspend-to-ram seems to have gotten
> broken in 2.6.30-rc1, sometime during last half of the merge window?
> I've been at a conference all of this past week, so I haven't had time
> to bisect it yet. I was wondering if anyone else had noticed and
> figured out what was going wrong. Symptoms are that the suspend "moon"
> starts flashing and the system never manages to put itself to sleep.

s2ram seems to work ok for me on thinkpad x60... Maybe it is
hw-dependend, mut maybe it is just a kernel config...

Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

2009-04-10 17:59:18

by Rafael J. Wysocki

[permalink] [raw]
Subject: Re: suspend-to-ram broken on X61 thinkpads in 2.6.30-rc1?

On Friday 10 April 2009, Jeff Chua wrote:
> 2009/4/10 Rafael J. Wysocki <[email protected]>:
> > On Friday 10 April 2009, Theodore Ts'o wrote:
> >> Hi, has anyone else noticed that suspend-to-ram seems to have gotten
> >> broken in 2.6.30-rc1, sometime during last half of the merge window?
>
> My X61 STR is broken as well.
>
> > There was one similar report, but that issue should be fixed in 2.6.30-rc1
> > if I remember correctly.
> >
> > Can you test commit 0a0c5168df270a50e3518e4f12bddb31f8f5f38f
> > (PM: Introduce functions for suspending and resuming device interrupts), plaese?
>
> This commit is in the latest git, but it's does not seem to fix the
> problem. 2.6.29 STR works very well. And all the Think "Fn" keys are
> no longer working (LID close still functioning though ... but that
> could a configuration issue moving from 2.6.29 to 2.6.30-rc1.

I meant please test the kernel where commit
0a0c5168df270a50e3518e4f12bddb31f8f5f38f is the head. It is possible that one
of the commits immediately following it broke things. If that's the case, this
kernel will work for you.

> Shall I do the bisecting? I think this is the only one not working for
> me other than the slow iptables that I reported earlier.

Please first do the test above.

Thanks,
Rafael

2009-04-10 18:09:31

by Rafael J. Wysocki

[permalink] [raw]
Subject: Re: suspend-to-ram broken on X61 thinkpads in 2.6.30-rc1?

On Friday 10 April 2009, Pavel Machek wrote:
> On Fri 2009-04-10 02:03:13, Theodore Ts'o wrote:
> > Hi, has anyone else noticed that suspend-to-ram seems to have gotten
> > broken in 2.6.30-rc1, sometime during last half of the merge window?
> > I've been at a conference all of this past week, so I haven't had time
> > to bisect it yet. I was wondering if anyone else had noticed and
> > figured out what was going wrong. Symptoms are that the suspend "moon"
> > starts flashing and the system never manages to put itself to sleep.
>
> s2ram seems to work ok for me on thinkpad x60... Maybe it is
> hw-dependend, mut maybe it is just a kernel config...

Can you attach yours, so that we could compare, please?

Rafael

2009-04-11 01:12:41

by Jeff Chua

[permalink] [raw]
Subject: Re: suspend-to-ram broken on X61 thinkpads in 2.6.30-rc1?

On Sat, Apr 11, 2009 at 2:08 AM, Rafael J. Wysocki <[email protected]> wrote:

> Can you attach yours, so that we could compare, please?

Attached is my .config.

> I meant please test the kernel where commit
> 0a0c5168df270a50e3518e4f12bddb31f8f5f38f is the head. It is possible
> that one of the commits immediately following it broke things. If that's
> the case, this kernel will work for you.

I'll do that now.

Thanks,
Jeff.


Attachments:
.config (63.04 kB)

2009-04-11 04:15:44

by Theodore Ts'o

[permalink] [raw]
Subject: Re: suspend-to-ram broken on X61 thinkpads in 2.6.30-rc1?

So I tried to do a bisect using a reduced config, and I wasn't able to reproduce. So I went back to 2.6.30-rc1 and started playing with configurations. I was able to finally get a reproduction, and I found that the af_packet module seems to be responsible. If I move the modules directory out of the way and reboot, then manually insmod the af_packet module, then suspend, it fails by hanging with the flashing moon LED. If I reboot and don't load the af_packet module, the suspend works. Needless to say this falls into the WTF category. I will do more testing to see what's up...

- Ted

-----Original Message-----
From: Jeff Chua <[email protected]>

Date: Sat, 11 Apr 2009 09:12:28
To: Rafael J. Wysocki<[email protected]>
Cc: Pavel Machek<[email protected]>; Theodore Ts'o<[email protected]>; <[email protected]>
Subject: Re: suspend-to-ram broken on X61 thinkpads in 2.6.30-rc1?


On Sat, Apr 11, 2009 at 2:08 AM, Rafael J. Wysocki <[email protected]> wrote:

> Can you attach yours, so that we could compare, please?

Attached is my .config.

> I meant please test the kernel where commit
> 0a0c5168df270a50e3518e4f12bddb31f8f5f38f is the head. It is possible
> that one of the commits immediately following it broke things. If that's
> the case, this kernel will work for you.

I'll do that now.

Thanks,
Jeff.

????{.n?+???????+%?????ݶ??w??{.n?+????{??G?????{ay?ʇڙ?,j??f???h?????????z_??(?階?ݢj"???m??????G????????????&???~???iO???z??v?^?m???? ????????I?

2009-04-11 04:59:05

by Jeff Chua

[permalink] [raw]
Subject: Re: suspend-to-ram broken on X61 thinkpads in 2.6.30-rc1?

On Sat, Apr 11, 2009 at 12:04 PM, Theodore Tso <[email protected]> wrote:
> So I tried to do a bisect using a reduced config, and I wasn't able to reproduce. ?So I went back to 2.6.30-rc1 and started playing with configurations. ? I was able to finally get a reproduction, and I found that the af_packet module seems to be responsible. ? If I move the modules directory out of the way and reboot, then manually insmod the af_packet module, then suspend, it fails by hanging with the flashing moon LED. ?If I reboot and don't load the af_packet module, the suspend works. ? Needless to say this falls into the WTF category. ? I will do more testing to see what's up...

Latest linux git-pull seems to fix the problem. Suspend-to-ram and
resume now works. I've tried a few times and it works. Reverting the
patch makes it hang during suspend.

Latest git pull from 62b8e680e61d3f48f2a12ee248ca03ea8f376926 to
d848223808c5d21e1b3cea090047e34722c6254b

Thanks,
Jeff.

2009-04-11 10:52:36

by Rafael J. Wysocki

[permalink] [raw]
Subject: Re: suspend-to-ram broken on X61 thinkpads in 2.6.30-rc1?

On Saturday 11 April 2009, Jeff Chua wrote:
> On Sat, Apr 11, 2009 at 12:04 PM, Theodore Tso <[email protected]> wrote:
> > So I tried to do a bisect using a reduced config, and I wasn't able to reproduce. So I went back to 2.6.30-rc1 and started playing with configurations. I was able to finally get a reproduction, and I found that the af_packet module seems to be responsible. If I move the modules directory out of the way and reboot, then manually insmod the af_packet module, then suspend, it fails by hanging with the flashing moon LED. If I reboot and don't load the af_packet module, the suspend works. Needless to say this falls into the WTF category. I will do more testing to see what's up...
>
> Latest linux git-pull seems to fix the problem. Suspend-to-ram and
> resume now works. I've tried a few times and it works. Reverting the
> patch makes it hang during suspend.
>
> Latest git pull from 62b8e680e61d3f48f2a12ee248ca03ea8f376926 to
> d848223808c5d21e1b3cea090047e34722c6254b

Great, thanks for checking this.

Ted, can you please see if the current -git fixed the problem for you too?

Rafael

2009-04-11 23:15:55

by Theodore Ts'o

[permalink] [raw]
Subject: Re: suspend-to-ram broken on X61 thinkpads in 2.6.30-rc1?

On Sat, Apr 11, 2009 at 12:51:48PM +0200, Rafael J. Wysocki wrote:
>
> Great, thanks for checking this.
>
> Ted, can you please see if the current -git fixed the problem for you too?
>

Confirmed, it seems to be fixed.

- Ted

2009-04-12 16:49:32

by Rafael J. Wysocki

[permalink] [raw]
Subject: Re: suspend-to-ram broken on X61 thinkpads in 2.6.30-rc1?

On Sunday 12 April 2009, Theodore Tso wrote:
> On Sat, Apr 11, 2009 at 12:51:48PM +0200, Rafael J. Wysocki wrote:
> >
> > Great, thanks for checking this.
> >
> > Ted, can you please see if the current -git fixed the problem for you too?
> >
>
> Confirmed, it seems to be fixed.

Great, thanks!

Rafael