Page 1 of 1

Watchdog and Processor C-States [solved]

Posted: Sat Feb 19, 2011 11:16 am
by bugmenot
Hello,
I'm using the 2.6.37 kernel and i've enabled the watchdog in the bios and set it to 120 seconds.
Moreover i'm using the software "watchdog" from watchdog.sf.net to trigger it every 20 seconds (interval = 20 in /etc/watchdog.conf).
Still, the hardware watchdog was triggered after some random period of time when idling.

[Solution]
With the help of Mylife and Dennis the culprit was found: There seems to be a bug when the processor idles in C6.
So, you could either disable C-States completely by setting the "Processor Full Speed" variable in the BIOS to "GV3 only", or you could disable the C-State C6 via a kernel cmdline flag: "intel_idle.max_cstate=4".
I choose the latter, because it consumes a bit less energy.

Re: Watchdog and USB auto-suspend

Posted: Sat Feb 19, 2011 12:47 pm
by bugmenot
Update:
It doesn't have to do anything with the auto-suspend of usb. Any other ideas?

The reset doesn't come regularly either. Sometimes after 4 Minutes, sometimes it needs 20...

Re: Watchdog and USB auto-suspend

Posted: Sat Feb 19, 2011 2:43 pm
by Mylife
Hi,

What if setting "Processor Full Speed" to "GV3 Only" in the BIOS?

(I'm not a specialist at all... sorry if I'm totally out of the field).

Re: Watchdog and USB auto-suspend

Posted: Sun Feb 20, 2011 9:07 am
by Denis
Hi,
The basic watchdog usage:

Code: Select all

sudo modprobe sbc_fitpc2_wdt margin=60
sudo touch /dev/watchdog
# now watchdog is enabled. fitPC2 will be rebooted after 60 sec.
sudo echo V > /dev/watchdog
# now watchdog is disabled. fitPC2 will not be rebooted.
Test this to see watchdog indeed working. See dmesg output.

I think you have wrong watchdog configuration, may be some daemon missing or bug in watchdog.sf.net itself.

Re: Watchdog and USB auto-suspend

Posted: Sun Feb 20, 2011 9:16 am
by bugmenot
Hello MyLife and Dennis,
Setting the Processor Full Speed setting to GV3 seemed to help. But i really don't want to do that the whole time, since the fit-pc2i will idle a lot and as far as i understand it C-states will save more power.

Dennis, you're the author of the driver, right? :) The watchdog daemon works. And i tried something similar too ("cat > /dev/watchdog", then typing something and then wait one minute for the reset).

So right now i think that the watchdog hardware/driver don't work properly with the processor state C6. I'm running a test now where i limited the kernel to C4 by adding intel_idle.max_cstate=4 to the kernel cmdline.

Re: Watchdog and Processor C-States

Posted: Sun Feb 20, 2011 10:35 am
by Mylife
According to Irads:
Disabling C-States has no effect on power when the computer is under load. It consumes about 1W more when the computer idles.
See: http://www.fit-pc2.com/forum/viewtopic. ... =GV3#p8331
Do you really care about this lonely Watt :roll: ?

Re: Watchdog and Processor C-States

Posted: Sun Feb 20, 2011 2:31 pm
by bugmenot
Mylife wrote:Do you really care about this lonely Watt :roll: ?
Well, it's 1/8th or so. :mrgreen: Of course, it doesn't make that much sense - anyway, the geek in me can't live with wakeups-from-idle/s of more than 50 when idling, which was the case for GV3.

With the above mentioned kernel cmdline flag the hardware watchdog doesn't reset the board anymore. It's running since hours with 1.7 wakeups-from-idle/s, nearly all the time in C4.

Case closed. And i'm only 'wasting' 80mW instead of 1 W :lol:
http://software.intel.com/en-us/article ... atforms-2/ .

Re: Watchdog and Processor C-States [solved]

Posted: Mon Feb 21, 2011 8:36 am
by Mylife
I'm impressed ! :lol:

Re: Watchdog and Processor C-States [solved]

Posted: Thu Jan 10, 2013 3:21 pm
by hackeron
I have GV3 Only set in bios (is this still required?) and have the watchdog enabled in bios and set to 251 seconds.

I am then following the instructions:

Code: Select all

sudo modprobe sbc_fitpc2_wdt margin=60
sudo touch /dev/watchdog
I am seeing this in syslog:

Code: Select all

Jan 10 15:17:54 OracleBMW1 kernel: [   80.906485] sbc_fitpc2_wdt WATCHDOG: SBC-FITPC2 found
Jan 10 15:17:59 OracleBMW1 kernel: [   85.908225] sbc_fitpc2_wdt WATCHDOG: Device closed unexpectedly - timer will not stop
Sure enough, 3 or so minutes later, it reboots :/

Any ideas? - I'm on ubuntu 12.04