From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757298Ab0BXQXW (ORCPT ); Wed, 24 Feb 2010 11:23:22 -0500 Received: from mail1.slb.deg.dub.stisp.net ([84.203.253.98]:6224 "HELO mail1.slb.deg.dub.stisp.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1757270Ab0BXQXV (ORCPT ); Wed, 24 Feb 2010 11:23:21 -0500 Message-ID: <4B855140.7030408@draigBrady.com> Date: Wed, 24 Feb 2010 16:18:08 +0000 From: =?UTF-8?B?UMOhZHJhaWcgQnJhZHk=?= User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.7) Gecko/20100111 Thunderbird/3.0.1 MIME-Version: 1.0 To: Simon Kagstrom CC: linux-kernel@vger.kernel.org, wim@iguana.be, seth.heasley@intel.com Subject: Re: [PATCH] iTCO_wdt: Don't double the requested timeout References: <20100223164019.60a6de1a@marrow.netinsight.se> <4B840154.1010501@draigBrady.com> <4B840BC6.9090809@draigBrady.com> <20100224101618.39c3468b@marrow.netinsight.se> In-Reply-To: <20100224101618.39c3468b@marrow.netinsight.se> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24/02/10 09:16, Simon Kagstrom wrote: > On Tue, 23 Feb 2010 17:09:26 +0000 > Pádraig Brady wrote: > >> 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 tested your change on our TCO v1-based board, and it doubles the time > until the watchdog triggers. So: Well it should be halving the timeout :) I amended the patch and Simon retested to verify that it now honors the requested timeout. I also checked an ICH7 box here and it doesn't seem to need the adjustment, so I've amended the patch accordingly. Wim, please apply, thanks... iTCO_wdt: fix TCO V1 timeout values and limits For TCO V1 devices the programmed timeout was twice too long because the fact that the TCO V1 timer needs to count down twice before triggering the watchdog, wasn't accounted for. Also the timeout values in the module description and error message were clarified. Signed-off-by: Pádraig Brady Tested-by: Simon Kagstrom --- a/iTCO_wdt.c 2010-02-24 13:43:54.815676860 +0000 +++ b/iTCO_wdt.c 2010-02-24 15:18:33.341640363 +0000 @@ -304,8 +304,8 @@ #define WATCHDOG_HEARTBEAT 30 /* 30 sec default heartbeat */ static int heartbeat = WATCHDOG_HEARTBEAT; /* in seconds */ module_param(heartbeat, int, 0); -MODULE_PARM_DESC(heartbeat, "Watchdog heartbeat in seconds. " - "(2