From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 30 22:03:53 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 799D11065675 for ; Wed, 30 Jun 2010 22:03:53 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (tarsier.geekcn.org [IPv6:2001:470:a803::1]) by mx1.freebsd.org (Postfix) with ESMTP id 237B38FC1C for ; Wed, 30 Jun 2010 22:03:53 +0000 (UTC) Received: from mail.geekcn.org (tarsier.geekcn.org [211.166.10.233]) by tarsier.geekcn.org (Postfix) with ESMTP id E75F3A59010; Thu, 1 Jul 2010 06:03:51 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([211.166.10.233]) by mail.geekcn.org (mail.geekcn.org [211.166.10.233]) (amavisd-new, port 10024) with LMTP id eycsu9u5+i0X; Thu, 1 Jul 2010 06:03:45 +0800 (CST) Received: from delta.delphij.net (drawbridge.ixsystems.com [206.40.55.65]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTPSA id EAA10A58986; Thu, 1 Jul 2010 06:03:43 +0800 (CST) DomainKey-Signature: a=rsa-sha1; s=default; d=delphij.net; c=nofws; q=dns; h=message-id:date:from:reply-to:organization:user-agent: mime-version:to:cc:subject:references:in-reply-to: x-enigmail-version:openpgp:content-type:content-transfer-encoding; b=w6qx6NfjmP6Uez690Cdfwbsz+8hQpxKkTFjKaJHH9xIgIYh+/y5JbbVoPJ3rItWj+ gcdpX82oJW6+5VjkLpK2Q== Message-ID: <4C2BBF3C.4070503@delphij.net> Date: Wed, 30 Jun 2010 15:03:40 -0700 From: Xin LI Organization: The Geek China Organization User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.10) Gecko/20100629 Thunderbird/3.0.5 ThunderBrowse/3.3 MIME-Version: 1.0 To: =?UTF-8?B?RGFnLUVybGluZyBTbcO4cmdyYXY=?= References: <4C2B07F5.6030801@delphij.net> <4C2B4D35.8060903@feral.com> <86lj9wmbrz.fsf@ds4.des.no> In-Reply-To: <86lj9wmbrz.fsf@ds4.des.no> X-Enigmail-Version: 1.0.1 OpenPGP: id=3FCA37C1; url=http://www.delphij.net/delphij.asc Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: freebsd-hackers@freebsd.org, Matthew Jacob Subject: Re: Supermicro BIOS's watchdog feature? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jun 2010 22:03:53 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 2010/06/30 14:49, Dag-Erling Smørgrav wrote: > Matthew Jacob writes: >> Xin LI writes: >>> It seems that ICH10R's watchdog is supported by ichwd(4) but >>> Supermicro BIOS needs some special treatments which is beyond what >>> ichwd(4) and watchdogd(8) would do... >> What do mean "special" treatment? > > The watchdog timer can be disabled in hardware (by pulling the speaker > pin high during boot, IIRC). Even if it is enabled, it can be caught > and ignored by the SMM firmware. Some BIOSes have options to enable or > disable the watchdog timer, which I assume means that they flip a bit > that tells the firmware to either catch it or pass it through. > > Unfortunately, although it is possible for the ichwd driver to detect > programatically (by checking an MSR) if the watchdog timer is disabled > in hardware, it is not possible to determine whether it is disabled in > firmware. Hmm... Sorry I think I didn't described the behavior accurately. Currently if I enable the "Watch Dog" option in BIOS, the system reboots after ~5 mins regardless whether I have ichwd(4) and watchdogd(8) loaded. Looking at the boot -v output, ichwd would disable the watchdog and watchdogd would enable it, pat it as expected, but this won't stop the system from rebooting by the watchdog. Cheers, - -- Xin LI http://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (FreeBSD) iQEcBAEBCAAGBQJMK788AAoJEATO+BI/yjfBPHkH/jWIZEX9/tmL50AgXzkfEEXU zNn+d2CAGA/+6wUt73aizKq1dk0eIz5ze9V+RR59cjJH4ftXLg2Tn34Ed2OYNTZZ JxFP7go4RIO1P5a3WIM6A8MVykUCIv+JhfXR3yG8Fy0h9DbmL2zwLPlqYPLBAXOK y+2DKYXqmA94qetPmrrm8b4WDRD9a7dwH26E+D8AslPJcABynjrdv0Ou8MLKC3g7 K+3YcgaCP2dowyy0gJzfNi2WTJyPmEtLsmFGzw14enP5tpDNU0t6yR4rkPbHkQSM 6BRF7gwZiAQoa4Az/S72RvjVR+OXehJGNNJLM6YRTH4fB2QiZ3YdmJ3WyeUE/TU= =EA7X -----END PGP SIGNATURE-----