NetBSD Problem Report #46198

From hf@spg.tu-darmstadt.de  Thu Mar 15 09:12:05 2012
Return-Path: <hf@spg.tu-darmstadt.de>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id 156BB63B946
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 15 Mar 2012 09:12:05 +0000 (UTC)
Message-Id: <201203150909.q2F99xF3002107@venediger.nt.e-technik.tu-darmstadt.de>
Date: Thu, 15 Mar 2012 10:09:59 +0100 (CET)
From: Hauke Fath <hf@spg.tu-darmstadt.de>
Reply-To: Hauke Fath <hf@spg.tu-darmstadt.de>
To: gnats-bugs@gnats.NetBSD.org
Cc: Hauke Fath <hf@spg.tu-darmstadt.de>
Subject: ichlpcib watchdog is not reset
X-Send-Pr-Version: 3.95

>Number:         46198
>Category:       kern
>Synopsis:       ichlpcib watchdog is not reset
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 15 09:15:01 +0000 2012
>Last-Modified:  Thu Mar 15 22:55:01 +0000 2012
>Originator:     Hauke Fath
>Release:        NetBSD 6.0_BETA
>Organization:
TU Darmstadt
>Environment:


System: NetBSD venediger 6.0_BETA NetBSD 6.0_BETA (VENEDIGER) #0: Mon Mar 5 21:25:52 CET 2012 hf@Hochstuhl:/var/obj/netbsd-builds/6/i386/sys/arch/i386/compile/VENEDIGER i386
Architecture: i386
Machine: i386
>Description:

	The Super Micro X7SBE sports an Intel ICH9R chipset that comes
	with a hardware watchdog:

ichlpcib0 at pci0 dev 31 function 0: vendor 0x8086 product 0x2916 (rev. 0x02)
timecounter: Timecounter "ichlpcib0" frequency 3579545 Hz quality 1000
ichlpcib0: 24-bit timer
ichlpcib0: TCO (watchdog) timer configured.
gpio0 at ichlpcib0: 64 pins

	I can set up wdogctl (user or kernel mode does not make a
	difference)

wdogctl=YES             wdogctl_flags="-p 30 -u ichlpcib0"

% wdogctl
Available watchdog timers:
        ichlpcib0, 30 second period [armed, user tickle, pid 22]
%

	but when I activate the watchdog in bios setup, the machine
	reboots after the documented 4 min.

	Note that (at least for this board) wdogctl(8) will not tell you
	whether the watchdog has been activated in bios or not, which
	would be quite helpful.

	I made this PR "priority: high", because a working HW watchdog
	would really help me work around kern/46136.

>How-To-Repeat:

	Activate watchdog on ICH9R chipset board. Note that the proper
	wdogctl(8) setup does not keep it from rebooting every four
	minutes.

>Fix:

	None.

	FreeBSD apparently had issues with ICH9R support

	<http://comments.gmane.org/gmane.os.freebsd.current/107557>

	but appears to have resolved them

	<http://koitsu.wordpress.com/2010/07/13/freebsd-and-hardwaresoftware-watchdogs/>

>Audit-Trail:
From: Hauke Fath <hf@spg.tu-darmstadt.de>
To: gnats-bugs@NetBSD.org
Cc: kern-bug-people@NetBSD.org, gnats-admin@NetBSD.org
Subject: Re: kern/46198: ichlpcib watchdog is not reset
Date: Thu, 15 Mar 2012 11:56:30 +0100

 <http://mail-index.netbsd.org/tech-kern/2009/06/26/msg005348.html> might be
 related.

 -- 

From: Manuel Bouyer <bouyer@antioche.eu.org>
To: gnats-bugs@NetBSD.org
Cc: kern-bug-people@NetBSD.org, gnats-admin@NetBSD.org, netbsd-bugs@NetBSD.org
Subject: Re: kern/46198: ichlpcib watchdog is not reset
Date: Thu, 15 Mar 2012 12:17:46 +0100

 On Thu, Mar 15, 2012 at 09:15:01AM +0000, Hauke Fath wrote:
 > System: NetBSD venediger 6.0_BETA NetBSD 6.0_BETA (VENEDIGER) #0: Mon Mar 5 21:25:52 CET 2012 hf@Hochstuhl:/var/obj/netbsd-builds/6/i386/sys/arch/i386/compile/VENEDIGER i386
 > Architecture: i386
 > Machine: i386
 > >Description:
 > 
 > 	The Super Micro X7SBE sports an Intel ICH9R chipset that comes
 > 	with a hardware watchdog:
 > 
 > ichlpcib0 at pci0 dev 31 function 0: vendor 0x8086 product 0x2916 (rev. 0x02)
 > timecounter: Timecounter "ichlpcib0" frequency 3579545 Hz quality 1000
 > ichlpcib0: 24-bit timer
 > ichlpcib0: TCO (watchdog) timer configured.
 > gpio0 at ichlpcib0: 64 pins
 > 
 > 	I can set up wdogctl (user or kernel mode does not make a
 > 	difference)
 > 
 > wdogctl=YES             wdogctl_flags="-p 30 -u ichlpcib0"
 > 
 > % wdogctl
 > Available watchdog timers:
 >         ichlpcib0, 30 second period [armed, user tickle, pid 22]
 > %
 > 
 > 	but when I activate the watchdog in bios setup, the machine
 > 	reboots after the documented 4 min.

 Does it also happen if you don't activate in in the BIOS ?
 wdogctl should activate it too ...
 if not activated by the bios, but you activate it with wdogctl -e  and
 let it expire, does the system reset ?

 -- 
 Manuel Bouyer <bouyer@antioche.eu.org>
      NetBSD: 26 ans d'experience feront toujours la difference
 --

From: Hauke Fath <hf@spg.tu-darmstadt.de>
To: gnats-bugs@NetBSD.org
Cc: kern-bug-people@NetBSD.org, gnats-admin@NetBSD.org
Subject: Re: kern/46198: ichlpcib watchdog is not reset
Date: Thu, 15 Mar 2012 13:37:09 +0100

 At 11:20 Uhr +0000 15.03.2012, Manuel Bouyer wrote:
 > > 	but when I activate the watchdog in bios setup, the machine
 > > 	reboots after the documented 4 min.
 >
 > Does it also happen if you don't activate in in the BIOS?

 If I do not activate the watchdog in BIOS, it does not kick in.

 > wdogctl should activate it too ...

 ...even if it has been explicitely disabled in BIOS?

 > if not activated by the bios, but you activate it with wdogctl -e  and
 > let it expire, does the system reset?

 ...yes, after a 'wdogctl -p 20 -e ichlpcib0' it does reset.

 	hauke

 -- 
      The ASCII Ribbon Campaign                    Hauke Fath
 ()     No HTML/RTF in email            Institut für Nachrichtentechnik
 /\     No Word docs in email                     TU Darmstadt
      Respect for open standards              Ruf +49-6151-16-3281

From: Manuel Bouyer <bouyer@antioche.eu.org>
To: gnats-bugs@NetBSD.org
Cc: kern-bug-people@NetBSD.org, gnats-admin@NetBSD.org, netbsd-bugs@NetBSD.org,
        Hauke Fath <hf@spg.tu-darmstadt.de>
Subject: Re: kern/46198: ichlpcib watchdog is not reset
Date: Thu, 15 Mar 2012 23:50:52 +0100

 On Thu, Mar 15, 2012 at 12:40:04PM +0000, Hauke Fath wrote:
 >  > Does it also happen if you don't activate in in the BIOS?
 >  
 >  If I do not activate the watchdog in BIOS, it does not kick in.
 >  
 >  > wdogctl should activate it too ...
 >  
 >  ...even if it has been explicitely disabled in BIOS?

 Yes. I think what the BIOS does is to setup the countdown, so that if
 the boot hangs before the OS could deal with the watchdog itself, 
 the system resets (I doubt that the next boot would be more successfull,
 so I'm not sure this is really usefull).

 >  
 >  > if not activated by the bios, but you activate it with wdogctl -e  and
 >  > let it expire, does the system reset?
 >  
 >  ...yes, after a 'wdogctl -p 20 -e ichlpcib0' it does reset.

 OK, so the watchdog is really working when setup by the OS; but when setup
 by BIOS the OS fails to reset it.

 -- 
 Manuel Bouyer <bouyer@antioche.eu.org>
      NetBSD: 26 ans d'experience feront toujours la difference
 --

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.