Re: [Regression] 2.6.24-git3: Major annoyance during suspend/hibernation on x86-64 (bisected)



On Saturday, 2 of February 2008, Dmitry Adamushko wrote:
On 01/02/2008, Ingo Molnar <mingo@xxxxxxx> wrote:

* Dmitry Adamushko <dmitry.adamushko@xxxxxxxxx> wrote:

I've observed delays from ~3 s. up to ~8 s. (out of ~20 tests) so
the 10s. delay of msleep_interruptible() might be related but I'm
still looking for the reason why this fix helps (and what goes wrong
with the current code).

heh... it's pretty obvious indeed. What's msleep_interruptible() is
all about? :-)

"sleep waiting for signals"

so the 'watchdog' thread gets woken up

[ as a result of cpu_callback(action = CPU_DEAD) --> kthread_stop() ]

just to be immediately scheduled out again for as long as the
remaining timeout > 0.

So it should work if we substitute msleep_interruptible() with
schedule_timeout_interruptible().

Doh. Could someone with ths problem please test the patch below, does it
do the trick?

yeah, I was already on a half-way to check it out.

It does fix a problem for me.

Don't forget to take along these 2 fixes from Peter's patch:

- fix break usage in do_each_thread() { } while_each_thread().
- fix the hotplug switch stmt, a fall-through case was broken.


Rafael, does your system still hangs? I'd expect, yes -- as
effectively this fix is not that different from Peter's one when it
comes to suspend-case.

I haven't tested it yet, but I don't expect it to hang, as the Peter's patch
started to work for me. I'm going to test it in a while.

Thanks,
Rafael
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: freebsd-current Digest, Vol 398, Issue 3
    ... For the list: Attached patch works. ... Nothing gets me a system that will actually boot. ... This may not be easy to fix properly for the time being as it ... that this is all to work around your BIOS being very broken. ...
    (freebsd-current)
  • Linux 2.6.19
    ... knowing that it's all your own d*mn fault, and you should just fix your ... [SCSI] ... [PATCH] ... USB: ipaq: Add HTC Modem Support ...
    (Linux-Kernel)
  • Re: Linux 2.6.19
    ... knowing that it's all your own d*mn fault, and you should just fix your ... [SCSI] ... [PATCH] ... USB: ipaq: Add HTC Modem Support ...
    (Linux-Kernel)
  • Re: The update is a downgrade!
    ... Cannot browse with IE by manually entering a URL. ... IE hangs. ... or as I call it "the fix for the fix" ... is the direct download link to Version 2 of the KB908531 patch, ...
    (microsoft.public.windowsxp.general)
  • Re: problem with 200GB hard drive
    ... > the partition and then run mkfs.ext3 and format the partition, ... - add patch from Dave Jones ... - fix error message, do block size checking on s390 only ... - automated rebuild ...
    (Fedora)