[lkml]   [2005]   [Aug]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Fw: suspicious behaviour in pcwd driver.
Hi Dave,

> drivers/char/watchdog/pcwd.c does this if it detects
> a temperature out of range..
> if (temp_panic) {
> printk (KERN_INFO PFX "Temperature overheat trip!\n");
> machine_power_off();
> }
> Two problems here are..
> 1. machine_power_off() isn't exported on ppc64. (patch below)
> 2. that printk will never hit the logs, so the admin will just find
> a powered off box with no idea what happened.
> Should we at least sync block devices before doing the power off ?

First you need to enable the "temp_panic" by setting the WDIOS_TEMPPANIC
option flag. (I'm curious who actually uses this and when they use this, but
that is something totally different). And then you need to read the card's
status before this piece of code will be triggered.
So in my opinion this isn't used a lott and is simply an option to protect
your hardware. But your comment is valid: chances that the warning is written
to the log files is very small.
So I think that it might indeed be better to sync most devices if that can be
done in a few seconds...


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-08-31 21:03    [W:0.017 / U:1.276 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site