watchdog: hpwdt: Update nmi_panic message.
Include the nmistat in the nmi_panic message to give support an indication why the NMI was called (e.g. a timeout or generate nmi button.) Signed-off-by: Jerry Hoemann <jerry.hoemann@hpe.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
This commit is contained in:
parent
9a46fc4ec9
commit
a042229a18
1 changed files with 12 additions and 8 deletions
|
@ -113,19 +113,23 @@ static int hpwdt_my_nmi(void)
|
||||||
*/
|
*/
|
||||||
static int hpwdt_pretimeout(unsigned int ulReason, struct pt_regs *regs)
|
static int hpwdt_pretimeout(unsigned int ulReason, struct pt_regs *regs)
|
||||||
{
|
{
|
||||||
if ((ulReason == NMI_UNKNOWN) && !hpwdt_my_nmi())
|
unsigned int mynmi = hpwdt_my_nmi();
|
||||||
|
static char panic_msg[] =
|
||||||
|
"00: An NMI occurred. Depending on your system the reason "
|
||||||
|
"for the NMI is logged in any one of the following resources:\n"
|
||||||
|
"1. Integrated Management Log (IML)\n"
|
||||||
|
"2. OA Syslog\n"
|
||||||
|
"3. OA Forward Progress Log\n"
|
||||||
|
"4. iLO Event Log";
|
||||||
|
|
||||||
|
if ((ulReason == NMI_UNKNOWN) && mynmi)
|
||||||
return NMI_DONE;
|
return NMI_DONE;
|
||||||
|
|
||||||
if (allow_kdump)
|
if (allow_kdump)
|
||||||
hpwdt_stop();
|
hpwdt_stop();
|
||||||
|
|
||||||
nmi_panic(regs, "An NMI occurred. Depending on your system the reason "
|
hex_byte_pack(panic_msg, mynmi);
|
||||||
"for the NMI is logged in any one of the following "
|
nmi_panic(regs, panic_msg);
|
||||||
"resources:\n"
|
|
||||||
"1. Integrated Management Log (IML)\n"
|
|
||||||
"2. OA Syslog\n"
|
|
||||||
"3. OA Forward Progress Log\n"
|
|
||||||
"4. iLO Event Log");
|
|
||||||
|
|
||||||
return NMI_HANDLED;
|
return NMI_HANDLED;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue