From: "Pádraig Brady" <P@draigBrady.com>
To: Simon Kagstrom <simon.kagstrom@netinsight.net>
Cc: linux-kernel@vger.kernel.org, wim@iguana.be, seth.heasley@intel.com
Subject: [PATCH] iTCO_wdt: Don't double the requested timeout
Date: Tue, 23 Feb 2010 17:09:26 +0000 [thread overview]
Message-ID: <4B840BC6.9090809@draigBrady.com> (raw)
In-Reply-To: <4B840154.1010501@draigBrady.com>
Actually looking at that code I noticed that it wasn't
accounting for the timer counting down twice before reboot,
which I thought was the case for ICH4 at least.
The following is not even compiled, nor am I sure it
applies to TCO v2. Testing/info appreciated.
I might be able to dig out an ICH4 system at some stage.
cheers,
Pádraig.
--- a/iTCO_wdt.c 2009-06-10 03:05:27.000000000 +0000
+++ b/iTCO_wdt.c 2010-02-23 17:02:07.829640740 +0000
@@ -274,7 +274,7 @@
static int heartbeat = WATCHDOG_HEARTBEAT; /* in seconds */
module_param(heartbeat, int, 0);
MODULE_PARM_DESC(heartbeat, "Watchdog heartbeat in seconds. "
- "(2<heartbeat<39 (TCO v1) or 613 (TCO v2), default="
+ "(4<heartbeat<78 (TCO v1) or 1226 (TCO v2), default="
__MODULE_STRING(WATCHDOG_HEARTBEAT) ")");
static int nowayout = WATCHDOG_NOWAYOUT;
@@ -290,8 +290,8 @@
static inline unsigned int seconds_to_ticks(int seconds)
{
/* the internal timer is stored as ticks which decrement
- * every 0.6 seconds */
- return (seconds * 10) / 6;
+ * every 0.6 seconds. The timer counts down twice before reboot */
+ return (seconds * 10) / 3;
}
static void iTCO_wdt_set_NO_REBOOT_bit(void)
@@ -721,8 +721,8 @@
if (iTCO_wdt_set_heartbeat(heartbeat)) {
iTCO_wdt_set_heartbeat(WATCHDOG_HEARTBEAT);
printk(KERN_INFO PFX
- "heartbeat value must be 2 < heartbeat < 39 (TCO v1) "
- "or 613 (TCO v2), using %d\n", heartbeat);
+ "heartbeat value must be 4 < heartbeat < 78 (TCO v1) "
+ "or 1226 (TCO v2), using %d\n", heartbeat);
}
ret = misc_register(&iTCO_wdt_miscdev);
next prev parent reply other threads:[~2010-02-23 17:14 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-23 15:40 [PATCH] iTCO_wdt: Don't stop on shutdown with nowayout Simon Kagstrom
2010-02-23 16:24 ` Pádraig Brady
2010-02-23 17:09 ` Pádraig Brady [this message]
2010-02-24 9:16 ` [PATCH] iTCO_wdt: Don't double the requested timeout Simon Kagstrom
2010-02-24 16:18 ` Pádraig Brady
2010-04-07 16:20 ` Pádraig Brady
[not found] ` <4B84FD15.9020803@draigBrady.com>
[not found] ` <20100224124730.6958b2c0@marrow.netinsight.se>
[not found] ` <4B8545D1.8000302@draigBrady.com>
[not found] ` <20100224165526.61cdd169@marrow.netinsight.se>
[not found] ` <4B854F58.4050907@draigBrady.com>
2010-02-25 7:45 ` Simon Kagstrom
2010-02-24 6:25 ` [PATCH] iTCO_wdt: Don't stop on shutdown with nowayout Simon Kagstrom
2010-03-07 15:16 ` Wim Van Sebroeck
2010-03-08 7:51 ` Simon Kagstrom
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=4B840BC6.9090809@draigBrady.com \
--to=p@draigbrady.com \
--cc=linux-kernel@vger.kernel.org \
--cc=seth.heasley@intel.com \
--cc=simon.kagstrom@netinsight.net \
--cc=wim@iguana.be \
/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