Skip to contentSkip to conversation

Linux 3.0-rc4 intermittent failure to resume

DISCUSSION Brad Campbell 4 participants 8 messages Jun 23, 2011 – Jun 30, 2011

lore
Share & tools
lore
#0 lore raw

G'day all,

I've recently moved from tuxonice to mainline uswsusp. I'm getting intermittent failure to resume problems. No message in dmesg that I can find, it just boots clean. Is there something I can do to get some debug info on this? It's really, really annoying.

About 75% of the time it works perfectly, and I can find no rhyme or reason to why it suddenly just decides to ignore the saved state.

32 bit userspace with a statically linked 64 bit s2disk, s2both & resume. 64 bit kernel.

Brad

Signature · 3 lines
Dolphins are so intelligent that within a few weeks they can
train Americans to stand at the edge of the pool and throw them
fish.
#1 lore raw
Quoted 10 lines · Brad Campbell

G'day all,

I've recently moved from tuxonice to mainline uswsusp. I'm getting intermittent failure to resume problems. No message in dmesg that I can find, it just boots clean. Is there something I can do to get some debug info on this? It's really, really annoying.

About 75% of the time it works perfectly, and I can find no rhyme or reason to why it suddenly just decides to ignore the saved state.

32 bit userspace with a statically linked 64 bit s2disk, s2both & resume. 64 bit kernel.

Do you use the i915 driver?

Rafael

#2 lore raw
Quoted 7 lines · Rafael J. Wysocki
Quoted 6 lines · Brad Campbell

G'day all,

I've recently moved from tuxonice to mainline uswsusp. I'm getting intermittent failure to resume problems. No message in dmesg that I can find, it just boots clean. Is there something I can do to get some debug info on this? It's really, really annoying.

Quoted 7 lines
Quoted 4 lines

About 75% of the time it works perfectly, and I can find no rhyme or reason to why it suddenly just decides to ignore the saved state.

32 bit userspace with a statically linked 64 bit s2disk, s2both& resume. 64 bit kernel.

Do you use the i915 driver?

Indeed I do.

#3 lore raw
Quoted 8 lines · Brad Campbell
Quoted 7 lines · Rafael J. Wysocki
Quoted 6 lines · Brad Campbell

G'day all,

I've recently moved from tuxonice to mainline uswsusp. I'm getting intermittent failure to resume problems. No message in dmesg that I can find, it just boots clean. Is there something I can do to get some debug info on this? It's really, really annoying.

Quoted 7 lines
Quoted 6 lines
Quoted 4 lines

About 75% of the time it works perfectly, and I can find no rhyme or reason to why it suddenly just decides to ignore the saved state.

32 bit userspace with a statically linked 64 bit s2disk, s2both& resume. 64 bit kernel.

Do you use the i915 driver?

Indeed I do.

Just a follow up to this.
It looks like adding "early writeout = y" to my /etc/suspend.conf has worked around the problem.

If I had "shutdown method = reboot", then it would resume every time, but with "shutdown method = platform" it would fail to resume most of the time.
I'm running a Core 2 Duo with an Intel X18-M 160GB SSD on an intel AHCI controller.

Adding "early writeout = y" does not appear to change the progress statistics, or apparent speed of the suspend, but it has now survived 7 suspend/power off/resume cycles that it would never had survived before.

Odd ??

#4 lore raw
Quoted 12 lines · Brad Campbell
Quoted 11 lines · Brad Campbell
Quoted 10 lines · Rafael J. Wysocki
Quoted 9 lines · Brad Campbell

G'day all,

I've recently moved from tuxonice to mainline uswsusp. I'm getting intermittent failure to resume problems. No message in dmesg that I can find, it just boots clean. Is there something I can do to get some debug info on this? It's really, really annoying.

About 75% of the time it works perfectly, and I can find no rhyme or reason to why it suddenly just decides to ignore the saved state.

Quoted 7 lines
Quoted 4 lines
Quoted 3 lines
Quoted 1 line

32 bit userspace with a statically linked 64 bit s2disk, s2both& resume. 64 bit kernel.

Do you use the i915 driver?

Indeed I do.

Just a follow up to this.
It looks like adding "early writeout = y" to my /etc/suspend.conf has worked around the problem.

Ok, so after _lots_ of investigating it was not early writeout. The culprit was/is the Ubuntu initramfs scripts.

On the occasions it failed to resume (which were many) it turns out /bin/resume was being called prior to udev having created /dev/snapshot.

I put a simple wait loop in the resume script to wait for the creation of /dev/snapshot and I've not had a fail to resume since.

Curse you asynchronous dynamic device creation <shakes fist>

Regards,
Brad

#5 lore raw
In reply to Brad Campbell
Quoted 12 lines · Brad Campbell
Quoted 11 lines · Brad Campbell
Quoted 10 lines · Rafael J. Wysocki
Quoted 9 lines · Brad Campbell

G'day all,

I've recently moved from tuxonice to mainline uswsusp. I'm getting intermittent failure to resume problems. No message in dmesg that I can find, it just boots clean. Is there something I can do to get some debug info on this? It's really, really annoying.

About 75% of the time it works perfectly, and I can find no rhyme or reason to why it suddenly just decides to ignore the saved state.

Quoted 7 lines
Quoted 4 lines
Quoted 3 lines
Quoted 1 line

32 bit userspace with a statically linked 64 bit s2disk, s2both& resume. 64 bit kernel.

Do you use the i915 driver?

Indeed I do.

Just a follow up to this.
It looks like adding "early writeout = y" to my /etc/suspend.conf has worked around the problem.

Ok, so after _lots_ of investigating it was not early writeout. The culprit was/is the Ubuntu initramfs scripts.

On the occasions it failed to resume (which were many) it turns out /bin/resume was being called prior to udev having created /dev/snapshot.

I put a simple wait loop in the resume script to wait for the creation of /dev/snapshot and I've not had a fail to resume since.

Curse you asynchronous dynamic device creation <shakes fist>

Regards,
Brad

#6 lore raw
Quoted 24 lines · Brad Campbell
Quoted 12 lines · Brad Campbell
Quoted 11 lines · Brad Campbell
Quoted 10 lines · Rafael J. Wysocki
Quoted 9 lines · Brad Campbell

G'day all,

I've recently moved from tuxonice to mainline uswsusp. I'm getting intermittent failure to resume problems. No message in dmesg that I can find, it just boots clean. Is there something I can do to get some debug info on this? It's really, really annoying.

About 75% of the time it works perfectly, and I can find no rhyme or reason to why it suddenly just decides to ignore the saved state.

Quoted 7 lines
Quoted 4 lines
Quoted 3 lines
Quoted 1 line

32 bit userspace with a statically linked 64 bit s2disk, s2both& resume. 64 bit kernel.

Do you use the i915 driver?

Indeed I do.

Just a follow up to this.
It looks like adding "early writeout = y" to my /etc/suspend.conf has worked around the problem.

Ok, so after _lots_ of investigating it was not early writeout. The culprit was/is the Ubuntu initramfs scripts.

Quoted 7 lines

On the occasions it failed to resume (which were many) it turns out /bin/resume was being called prior to udev having created /dev/snapshot.

I put a simple wait loop in the resume script to wait for the creation of /dev/snapshot and I've not had a fail to resume since.

Curse you asynchronous dynamic device creation <shakes fist>

Thank you very much for nailing this down, I was afraid there were some obscure bug lurking in the kernel code.

Take care,
Rafael

#7 lore raw
Quoted 5 lines · Rafael J. Wysocki
Quoted 3 lines · Brad Campbell

On the occasions it failed to resume (which were many) it turns out /bin/resume was being called prior to udev having created /dev/snapshot.

Quoted 7 lines
Quoted 4 lines

I put a simple wait loop in the resume script to wait for the creation of /dev/snapshot and I've not had a fail to resume since.

Curse you asynchronous dynamic device creation<shakes fist>

Thank you very much for nailing this down, I was afraid there were some obscure bug lurking in the kernel code.

Yeah, no worries.

I set up a loop to do automated suspend/resume cycles.
I managed over 100 cycles while compiling 2 kernels in the background.

Over the 100 cycles the kernel locked up twice, but both times were in very early boot. I power cycled the machine and it resumed with no problems, so the issue is not with the suspend/resume code.