Re: 2.6.30-git(16 and 17) system hangs after resume from suspend to disk, mce related?

Andi Kleen
2009-06-21T18:43:17Z

Maciej Rutecki wrote:
> Tested kernel version: 2.6.30-git16 and 2.6.30-git17
> Last known good: 2.6.30
>
> System hangs few minutes after resume from suspend to disk.

Thanks for the report.

I assume it runs stable for hours without resume from disk?
And you made sure you don't use stale data from
a different kernel for resume from disk?

It is strange that resume from disk affects machine check.
How is your resume setup?
Do you have any init scripts that change machine check state
before the resume from disk runs?

Is there any chance you could configure netconsole or similar
to get output during the hang?

> I have
> tried bisection and here is result:

I assume you have CONFIG_X86_NEW_MCE enabled, correct?
Does it still happen with CONFIG_X86_OLD_MCE instead?

Also a "a few minutes" suggest something might be going wrong
with the poll handler. Does the problem still happen
with you use CONFIG_X86_NEW_MCE again, but before
resume do

echo 0 > /sys/device/system/machinecheck/machinecheck0/check_interval

On the other hand you should get a crash very fast with

echo 1 > /sys/device/system/machinecheck/machinecheck0/check_interval

If we confirm it's the poll handler I can send you a debugging patch
to narrow it down further if I can't reproduce it.
But that would need console output during the crash.

Your dmesg also doesn't have anything related to resume from disk?

Thanks,

-Andi