From: ebiederm@xmission.com (Eric W. Biederman)
To: Keith Chew <keith.chew@gmail.com>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: Hang on "echo b > /proc/sysrq-trigger"
Date: Wed, 29 Feb 2012 12:49:03 -0800 [thread overview]
Message-ID: <87obshxt4w.fsf@xmission.com> (raw)
In-Reply-To: <CAKaWdxbuwV6yQnX=4zcBZncL8f+7cXPFwx8ejw=6d=dX8NoZsw@mail.gmail.com> (Keith Chew's message of "Thu, 1 Mar 2012 07:28:07 +1300")
Keith Chew <keith.chew@gmail.com> writes:
> Hi Eric
>
> <snip>
>
>>> Some interesting results (which can be reproduced consistently):
>>> "echo b > /proc/sysrq-trigger" via DVI-D - after 2-3 days, it hangs
>>> (freezes) before reboot (dmesg only shows "Resetting...", nothing
>>
>> My blind guess would be that it is the BIOS on the machine that is hung.
>>
>
> We have contacted the manufacturer, and they do not believe this is
> the case as the BIOS does not really do much during the reboot.
> Unfortunately, we do not have enough knowledge on the inner workings
> of the BIOS to help or diagnose further. Any pointers here will be
> helpful.
Historically a lot of issues have had to do with which cpu you are
entering the bios from. So you might try pinning your process
to differen cpus and see if you can make the failure more deterministic.
>>> I would like to make the "echo b" successfully reboot the machine, but
>>> this would appear to be a hardware bug? Is there anything that can be
>>> done in the kernel to make the "echo b" successfully work 100%?
>>
>> echo b > /proc/sysrq-trigger triggers the emergency_restart path which
>> tries but skips some steps so that it has a reasonable chance of working
>> when the kernel is wedged, it looks like some of those steps it skips
>> are needed on your hardware.
>>
>
> Yes, I have looked into the kernel code and it does not do much,
> except to tell the hardware to reboot (either via BIOS, keyboard,
> ACPI, etc). I have also tried the reboot=b, reboot=k and reboot=a
> options, and all of them can cause a hang, with reboot=b lasting the
> longest.
>
> We have extended our testing time, and have some more worrying
> results. The command "reboot -fn" which runs > 1 week, got a hang
> after 2 weeks of running. We are now testing with just "reboot" to see
> how long that last.
Ugh. The other possibility is that there is an intermittent failure in
the hardware, that prevents the boot/reboot. Wrong values on pull-up
resistors have been known to cause that kind of thing.
Eric
next prev parent reply other threads:[~2012-02-29 20:49 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-17 22:54 Hang on "echo b > /proc/sysrq-trigger" Keith Chew
2012-02-29 18:07 ` Eric W. Biederman
2012-02-29 18:28 ` Keith Chew
2012-02-29 20:49 ` Eric W. Biederman [this message]
2012-02-29 22:06 ` Keith Chew
2012-02-29 23:34 ` Eric W. Biederman
2012-03-01 0:12 ` Keith Chew
2012-03-10 23:45 ` Keith Chew
2012-03-19 6:34 ` Jon Masters
2012-03-19 6:45 ` Keith Chew
2012-03-24 1:11 ` Ray Lee
2012-03-28 20:25 ` Keith Chew
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87obshxt4w.fsf@xmission.com \
--to=ebiederm@xmission.com \
--cc=keith.chew@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox