From nobody@FreeBSD.org  Fri Apr  8 21:10:04 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 0DD3116A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  8 Apr 2005 21:10:04 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id E58AA43D2F
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  8 Apr 2005 21:10:03 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j38LA3pi062230
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 8 Apr 2005 21:10:03 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j38LA3Ge062229;
	Fri, 8 Apr 2005 21:10:03 GMT
	(envelope-from nobody)
Message-Id: <200504082110.j38LA3Ge062229@www.freebsd.org>
Date: Fri, 8 Apr 2005 21:10:03 GMT
From: "Wm. Daryl Hawkins" <dhawkins@tamu.edu>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ICH watchdog driver broken (ichwd)
X-Send-Pr-Version: www-2.3

>Number:         79698
>Category:       kern
>Synopsis:       [ichwd] [patch] ICH watchdog driver broken
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    ambrisko
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr 08 21:10:23 GMT 2005
>Closed-Date:    Sat Feb 18 02:56:41 GMT 2006
>Last-Modified:  Sat Feb 18 02:56:41 GMT 2006
>Originator:     Wm. Daryl Hawkins
>Release:        5.3-RELEASE
>Organization:
Texas A&M University
>Environment:
FreeBSD netdev3.net.tamu.edu 5.3-RELEASE FreeBSD 5.3-RELEASE #3: Tue Nov  9 13:59:40 CST 2004     manager@netdev3.net.tamu.edu:/usr/src/sys/i386/compile/GENERIC  i386

>Description:
The ichwd driver in 5.3-RELEASE is broken.  Although the driver will load, it will not initiate a reboot if the userland daemon goes away.
>How-To-Repeat:
Load the ichwd kernel module.  Start watchdogd with an appropriate timeout value (watchdogd -t 10).  kill -9 watchdogd
>Fix:
A patch is available at http://freebsd.tamu.edu/wdog/    
>Release-Note:
>Audit-Trail:

From: Mike Tancsa <mike@sentex.net>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: kern/79698: [patch] [ichwd] ICH watchdog driver broken
Date: Tue, 12 Apr 2005 21:24:11 -0400

 I have tested the patch on a number of Intel boards and it works on all of 
 them.  However, one still need to use
 debug.acpi.disabled="sysresource" in /boot/loader.conf
 
 
 Intel 855 GME (ICH4)
 ichwd module loaded
 ichwd0: <Intel 82801DBM watchdog timer> on motherboard
 
 Intenet 865 (ICH5)
 ichwd module loaded
 ichwd0: <Intel 82801EB/ER watchdog timer> on motherboard
 
 
 On a different but somewhat related note, no luck with the ICH6.  Adding 
 the defs
 
 +       {VENDORID_INTEL, DEVICEID_82801FB, "Intel ICH6 watchdog device"},
 +#define DEVICEID_82801FB        0x2640
 
 Doesnt allow the box to be rebooted.    But then again, the ICH6 watchdog 
 (Intel 915 board) never worked with any watchdog driver
 
 Same thing with the version on the website
 
 Loading ichwd module.
 ichwd0: <Intel ICH6 watchdog device> on motherboard
 ichwd0: Watchdog ready...
 
 	---Mike
 
Responsible-Changed-From-To: freebsd-bugs->des 
Responsible-Changed-By: des 
Responsible-Changed-When: Thu Apr 14 08:23:30 GMT 2005 
Responsible-Changed-Why:  
ichwd is mine 

http://www.freebsd.org/cgi/query-pr.cgi?pr=79698 

From: Mike Tancsa <mike@sentex.net>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: kern/79698: [PATCH] [ichwd] ICH watchdog driver broken
Date: Thu, 15 Sep 2005 12:55:19 -0400

 With the submitted patches by dhawkins@tamu.edu 
 (http://freebsd.tamu.edu/wdog/patch.ichwd_FreeBSD_5.3-RELEASE), and
 
   diff -u ichwd.h.old ichwd.h
 --- ichwd.h.old Fri Sep 16 00:25:05 2005
 +++ ichwd.h     Fri Sep 16 00:41:40 2005
 @@ -67,6 +67,7 @@
   #define DEVICEID_82801DBM      0x24cc
   #define DEVICEID_82801E                0x2450
   #define DEVICEID_82801EBR      0x24d0
 +#define DEVICEID_925XICH7      0x27b8
 
   /* ICH LPC Interface Bridge Registers */
   #define ICH_GEN_STA            0xd4
 
 --- ichwd.c.old Fri Sep 16 00:41:13 2005
 +++ ichwd.c     Fri Sep 16 00:42:03 2005
 @@ -81,6 +81,7 @@
          { VENDORID_INTEL, DEVICEID_82801DBM, "Intel 82801DBM 
 watchdog timer" },
          { VENDORID_INTEL, DEVICEID_82801E, "Intel 82801E watchdog timer" },
          { VENDORID_INTEL, DEVICEID_82801EBR, "Intel 82801EB/ER 
 watchdog timer" },
 +       { VENDORID_INTEL, DEVICEID_925XICH7, "Intel 925X-ICH7 
 watchdog timer" },
          { 0, 0, NULL },
   };
 
 The Intel Watchdog on my ICH7 board (925X) works as expected.
 
 # kldload /boot/kernel/ichwd.ko
 # watchdogd -t 20
 # killall watchdogd
 # kldunload ichwd
 # dmesg | grep ichwd
 
 ichwd module loaded
 ichwd0: <Intel 925X-ICH7 watchdog timer> on motherboard
 ichwd0: detaching
 ichwd0: detached
 ichwd module unloaded
 
 Doing a killall -9 watchdogd
 
 will reboot the box as expected.
 
 You still need to add
 debug.acpi.disabled="sysresource"
 to /boot/loader.conf
 but other than that it all works as expected on my RELENG_6 box
 
          ---Mike
 
 
 
 --------------------------------------------------------------------
 Mike Tancsa,                                      tel +1 519 651 3400
 Sentex Communications,                            mike@sentex.net
 Providing Internet since 1994                    www.sentex.net
 Cambridge, Ontario Canada                         www.sentex.net/mike
 
State-Changed-From-To: open->closed 
State-Changed-By: ambrisko 
State-Changed-When: Sat Feb 18 02:54:02 UTC 2006 
State-Changed-Why:  
Mike alerted me to the PR.  He says my change to the ichwd fixes this. 


Responsible-Changed-From-To: des->ambrisko 
Responsible-Changed-By: ambrisko 
Responsible-Changed-When: Sat Feb 18 02:54:02 UTC 2006 
Responsible-Changed-Why:  
I'll take since I've been using this feature. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=79698 
>Unformatted:
