Pasi Kärkkäinen
2005-Feb-08 14:08 UTC
[Xen-devel] hardware-watchdog driver problems in linux 2.6.10-xen0
Hi! I''m trying to run w83627hf_wdt.ko watchdog driver in domain 0 (xenlinux 2.6.10-xen0), but the driver doesn''t seem to work (the machine reboots all the time after the watchdog-timeout set in BIOS). Is there something that could prevent the driver from accessing the watchdog-hardware (io-ports/registers) ? The watchdog-driver is very simple, and you can find it in linux-2.6.10/drivers/char/watchdog/w83627hf_wdt.c I also tried to run userspace program to check the status of the watchdog.. it simply returns zeroes all the time, meaning communication failure with the watchdog.. could this be related to xen? The userspace test application is available from: http://nrg.joroinen.fi/dumpdog.c . It''s written by Pádraig Brady (P@draigBrady.com). Any help would be appreciated! -- Pasi Kärkkäinen ^ . . Linux / - \ Choice.of.the .Next.Generation. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
Mark A. Williamson
2005-Feb-08 14:27 UTC
Re: [Xen-devel] hardware-watchdog driver problems in linux 2.6.10-xen0
Hrrrrmm. I don''t see anything obvious in either the driver or the userspace program that could cause a trip up here...> I''m trying to run w83627hf_wdt.ko watchdog driver in domain 0 (xenlinux > 2.6.10-xen0), but the driver doesn''t seem to work (the machine reboots all > the time after the watchdog-timeout set in BIOS).Can you check the user space watchdog daemon is running? (as root)> Is there something that could prevent the driver from accessing the > watchdog-hardware (io-ports/registers) ?Not in dom0, although this would be the case in other domains.> I also tried to run userspace program to check the status of the watchdog.. > it simply returns zeroes all the time, meaning communication failure with > the watchdog.. could this be related to xen?You did run this with root privileges, right? Cheers, Mark> The userspace test application is available from: > http://nrg.joroinen.fi/dumpdog.c . It''s written by Pádraig Brady > (P@draigBrady.com). > > Any help would be appreciated! > > -- Pasi Kärkkäinen > > ^ > . . > Linux > / - \ > Choice.of.the > .Next.Generation. > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_ide95&alloc_id396&op=Click > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/xen-devel------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
Pasi Kärkkäinen
2005-Feb-08 15:03 UTC
Re: [Xen-devel] hardware-watchdog driver problems in linux 2.6.10-xen0
On Tue, Feb 08, 2005 at 02:27:56PM +0000, Mark A. Williamson wrote:> Hrrrrmm. I don''t see anything obvious in either the driver or the userspace > program that could cause a trip up here... >OK. That''s what I think too..> > I''m trying to run w83627hf_wdt.ko watchdog driver in domain 0 (xenlinux > > 2.6.10-xen0), but the driver doesn''t seem to work (the machine reboots all > > the time after the watchdog-timeout set in BIOS). > > Can you check the user space watchdog daemon is running? (as root) >User space watchdog daemon? The w83627hf_wdt.ko doesn''t need userspace daemon, because the watchdog is in the hardware and the w83627hf_wdt.ko driver controls it.> > Is there something that could prevent the driver from accessing the > > watchdog-hardware (io-ports/registers) ? > > Not in dom0, although this would be the case in other domains. >Yep..> > I also tried to run userspace program to check the status of the watchdog.. > > it simply returns zeroes all the time, meaning communication failure with > > the watchdog.. could this be related to xen? > > You did run this with root privileges, right? >Yep, I was running it with root privileges. Meanwhile I tested the drivers under native Linux without xen, and it didn''t work either.. so this might have nothing to with xen. The first impression was it is xen related because the watchdog should work with that driver (according to motherboard vendor''s support). I''ll double check/test everything. -- Pasi Kärkkäinen ^ . . Linux / - \ Choice.of.the .Next.Generation. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
Mark Williamson
2005-Feb-08 15:13 UTC
Re: [Xen-devel] hardware-watchdog driver problems in linux 2.6.10-xen0
> > Can you check the user space watchdog daemon is running? (as root) > > User space watchdog daemon? The w83627hf_wdt.ko doesn''t need userspace > daemon, because the watchdog is in the hardware and the w83627hf_wdt.ko > driver controls it.You need a userspace daemon to enable the driver and periodically tell it things are still OK. It talks to the driver through /dev/watchdog.> > You did run this with root privileges, right? > > Yep, I was running it with root privileges.Strange. It looks like it should work...> The first > impression was it is xen related because the watchdog should work with that > driver (according to motherboard vendor''s support).Well it looks like that driver should work fine if the motherboard documentation is correct. Have you looked online to double-check the documentation specifies the correct type of watchdog?> I''ll double check/test everything.Cheers, Mark> -- Pasi Kärkkäinen > > ^ > . . > Linux > / - \ > Choice.of.the > .Next.Generation.------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel