From owner-freebsd-current@FreeBSD.ORG Sat Aug 25 20:47:50 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3B29316A421 for ; Sat, 25 Aug 2007 20:47:50 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id E100713C442 for ; Sat, 25 Aug 2007 20:47:49 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id 49B7A2084; Sat, 25 Aug 2007 22:47:43 +0200 (CEST) X-Spam-Tests: AWL X-Spam-Learn: disabled X-Spam-Score: 0.0/3.0 X-Spam-Checker-Version: SpamAssassin 3.2.1 (2007-05-02) on tim.des.no Received: from ds4.des.no (des.no [80.203.243.180]) by smtp.des.no (Postfix) with ESMTP id 3BC012083; Sat, 25 Aug 2007 22:47:43 +0200 (CEST) Received: by ds4.des.no (Postfix, from userid 1001) id 2680884479; Sat, 25 Aug 2007 22:47:43 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Harald Schmalzbauer References: <200708231028.07743.h.schmalzbauer@omnisec.de> <86r6lu1rms.fsf@ds4.des.no> <200708252220.27373.h.schmalzbauer@omnisec.de> Date: Sat, 25 Aug 2007 22:47:43 +0200 In-Reply-To: <200708252220.27373.h.schmalzbauer@omnisec.de> (Harald Schmalzbauer's message of "Sat\, 25 Aug 2007 22\:20\:21 +0200") Message-ID: <864pinmjdc.fsf@ds4.des.no> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.1 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-current@freebsd.org Subject: Re: ichwd and teethless watchdogd X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Aug 2007 20:47:50 -0000 Harald Schmalzbauer writes: > Here are the relevant lines: > > ichwd0: on isa0 > isab0: found ICH7 or equivalent chipset: Intel ICH7 watchdog timer > ichwd0: Intel ICH7 watchdog timer (ICH7 or equivalent) > ichwd0: timer disabled > > After watchdogd has started I get this message every second: > ichwd0: timer reloaded Looks fine so far. If you kill or suspend watchdogd, these messages should stop, and the system should reboot after the timer expires twice (the first time it expires, the chipset triggers an SMI; the second time, it resets the CPU). However, the timeout is probably not what you set it to; due to the design of the watchdog framework, the timeout you specify is converted to nanoseconds, the rounded up to the nearest power of two. The ICH WDT has a resolution of approximately 0.6 seconds, and the driver rounds down to that, so the actual timeout value you end up with is one of 0.6s, 1.8s, 4.2s, 8.4s, 16.8s, 34.2s, 68.4s, 137.4s, 274.8s... The following C99 code will enumerate the possible values: for (int i =3D 1; i < 64; ++i) { uint64_t timeout =3D 1; timeout <<=3D i; timeout /=3D 600000000LLU; timeout *=3D 600; if (timeout > 0) printf("%.1fs\n", (double)(timeout / 1000.0)); } > I guess the ichwd is hardware disabled by the bios. No, it isn't; the driver would tell you if that was the case. Something else is wrong. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no