From owner-freebsd-hackers Fri Sep 13 8:31:31 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3132437B400 for ; Fri, 13 Sep 2002 08:31:29 -0700 (PDT) Received: from insomnia.spc.org (insomnia.spc.org [195.224.94.183]) by mx1.FreeBSD.org (Postfix) with SMTP id E857543E6E for ; Fri, 13 Sep 2002 08:31:27 -0700 (PDT) (envelope-from bms@insomnia.spc.org) Received: (qmail 30570 invoked by uid 1031); 13 Sep 2002 11:28:58 -0000 Date: Fri, 13 Sep 2002 12:28:57 +0100 From: Bruce M Simpson To: Doug Ambrisko Cc: hackers@FreeBSD.org Subject: Re: Supporting HW_WDOG? Message-ID: <20020913112857.GC15218@spc.org> References: <20020912134302.GJ2420@spc.org> <200209121603.g8CG3Dn43523@ambrisko.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200209121603.g8CG3Dn43523@ambrisko.com> User-Agent: Mutt/1.3.28i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Doug, On Thu, Sep 12, 2002 at 09:03:13AM -0700, Doug Ambrisko wrote: > We have implemented a SW & HW watchdog here. The HW support is based on > the reboot timers in the Intel ICH and SIS 630 chips. Our scheme is to [..] > same time). We have this working on generic PC motherboards with no > custom hardware. > > Note at a prior company we needed the tickler since the HW watchdog could > not be deactivated until it went off :-( Smarter watchdogs can be turned > off and then ticklers are not needed. > > If anyone it interested with playing with the code and getting it into > shape to put into -current I can send it to you. It needs to be cleaned > up. The kernel sysctl function needs to be added properly to the > sysctl file etc. I can help with testing, reviews and questions. I just > don't have time for polishing right now. I would definitely like to see this. I just looked at the Elan SC520 datasheets, and it seems that there is a watchdog timer in the core, which can generate NMIs...Excellent. It is documented in Section 19 of the Elan(tm) SC520 Microcontroller User's Manual. Unless anyone knows otherwise, the Soekris boards don't appear to have any support for environmentals (voltage, temperature etc) but they do have a nice serial console driven BIOS. I suppose thermistors etc could be fitted to a small sampling PIC using the GPIO bus. [Phones a partner-in-crime] Ah. A friend of mine actually wrote a driver for the SC520 watchdog for NetBSD. I've offered to port it. We shall see what happens! BMS To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message