Re: [PATCH v3] watchdog: Add hook for kicking in kdump path

2013-05-30 Thread Wim Van Sebroeck
Hi Guenter, > > Only when you set the .parent field in the watchdog_device data you will > > get the > > referal in the /sys/class/... tree. In iTCO_wdt.c you have the following > > code > > that does that: iTCO_wdt_watchdog_dev.parent = dev->dev.parent; > > > > From the watchdog-kernel-api doc

Re: [PATCH v3] watchdog: Add hook for kicking in kdump path

2013-05-30 Thread Wim Van Sebroeck
Hi Guenter, > > Only when you set the .parent field in the watchdog_device data you will > > get the > > referal in the /sys/class/... tree. In iTCO_wdt.c you have the following > > code > > that does that: iTCO_wdt_watchdog_dev.parent = dev->dev.parent; > > > > From the watchdog-kernel-api doc

Re: [PATCH v3] watchdog: Add hook for kicking in kdump path

2013-05-28 Thread Guenter Roeck
On Mon, May 27, 2013 at 09:16:18PM +0200, Wim Van Sebroeck wrote: > Hi Guenter, > > > > Hi Guenter, > > > > > > Is there an easy way to determine which driver is loaded for each > > > /dev/watchdogN device (from a script perspective). > > > > > > Basically, I wanted to determine the module that

Re: [PATCH v3] watchdog: Add hook for kicking in kdump path

2013-05-27 Thread Guenter Roeck
On Mon, May 27, 2013 at 09:16:18PM +0200, Wim Van Sebroeck wrote: > Hi Guenter, > > > > Hi Guenter, > > > > > > Is there an easy way to determine which driver is loaded for each > > > /dev/watchdogN device (from a script perspective). > > > > > > Basically, I wanted to determine the module that

Re: [PATCH v3] watchdog: Add hook for kicking in kdump path

2013-05-27 Thread Wim Van Sebroeck
Hi Guenter, > > Hi Guenter, > > > > Is there an easy way to determine which driver is loaded for each > > /dev/watchdogN device (from a script perspective). > > > > Basically, I wanted to determine the module that needs to be included in > > the kdump initrd image. > > > Sometimes. For example

Re: [PATCH v3] watchdog: Add hook for kicking in kdump path

2013-04-24 Thread Guenter Roeck
On Wed, Apr 24, 2013 at 10:42:26AM -0400, Don Zickus wrote: > On Thu, Apr 18, 2013 at 07:54:13AM -0700, Guenter Roeck wrote: > > > No, that will probably work. It is my misunderstanding. Is there a > > > common way to check the timeout length and the ping frequency? > > > > > Usually it is confi

Re: [PATCH v3] watchdog: Add hook for kicking in kdump path

2013-04-24 Thread Don Zickus
On Thu, Apr 18, 2013 at 07:54:13AM -0700, Guenter Roeck wrote: > > No, that will probably work. It is my misunderstanding. Is there a > > common way to check the timeout length and the ping frequency? > > > Usually it is configured in /etc/watchdog.conf if the watchdog package > is installed. Th

Re: [PATCH v3] watchdog: Add hook for kicking in kdump path

2013-04-18 Thread Eric W. Biederman
Don Zickus writes: > On Thu, Apr 18, 2013 at 09:35:05AM -0700, Eric W. Biederman wrote: >> Don Zickus writes: >> >> > A common problem with kdump is that during the boot up of the >> > second kernel, the hardware watchdog times out and reboots the >> > machine before a vmcore can be captured. >

Re: [PATCH v3] watchdog: Add hook for kicking in kdump path

2013-04-18 Thread Don Zickus
On Thu, Apr 18, 2013 at 09:35:05AM -0700, Eric W. Biederman wrote: > Don Zickus writes: > > > A common problem with kdump is that during the boot up of the > > second kernel, the hardware watchdog times out and reboots the > > machine before a vmcore can be captured. > > > > Instead of tellling c

Re: [PATCH v3] watchdog: Add hook for kicking in kdump path

2013-04-18 Thread Eric W. Biederman
Don Zickus writes: > A common problem with kdump is that during the boot up of the > second kernel, the hardware watchdog times out and reboots the > machine before a vmcore can be captured. > > Instead of tellling customers to disable their hardware watchdog > timers, I hacked up a hook to put i

Re: [PATCH v3] watchdog: Add hook for kicking in kdump path

2013-04-18 Thread Guenter Roeck
On Thu, Apr 18, 2013 at 09:52:57AM -0400, Don Zickus wrote: > On Thu, Apr 18, 2013 at 06:49:04AM -0700, Guenter Roeck wrote: > > On Thu, Apr 18, 2013 at 09:00:09AM -0400, Don Zickus wrote: > > > On Wed, Apr 17, 2013 at 02:49:59PM -0700, Eric W. Biederman wrote: > > > > Don Zickus writes: > > > >

Re: [PATCH v3] watchdog: Add hook for kicking in kdump path

2013-04-18 Thread Don Zickus
On Thu, Apr 18, 2013 at 06:49:04AM -0700, Guenter Roeck wrote: > On Thu, Apr 18, 2013 at 09:00:09AM -0400, Don Zickus wrote: > > On Wed, Apr 17, 2013 at 02:49:59PM -0700, Eric W. Biederman wrote: > > > Don Zickus writes: > > > > > > > A common problem with kdump is that during the boot up of the

Re: [PATCH v3] watchdog: Add hook for kicking in kdump path

2013-04-18 Thread Guenter Roeck
On Thu, Apr 18, 2013 at 09:00:09AM -0400, Don Zickus wrote: > On Wed, Apr 17, 2013 at 02:49:59PM -0700, Eric W. Biederman wrote: > > Don Zickus writes: > > > > > A common problem with kdump is that during the boot up of the > > > second kernel, the hardware watchdog times out and reboots the > >

Re: [PATCH v3] watchdog: Add hook for kicking in kdump path

2013-04-18 Thread Don Zickus
On Wed, Apr 17, 2013 at 02:49:59PM -0700, Eric W. Biederman wrote: > Don Zickus writes: > > > A common problem with kdump is that during the boot up of the > > second kernel, the hardware watchdog times out and reboots the > > machine before a vmcore can be captured. > > > > Instead of tellling c

Re: [PATCH v3] watchdog: Add hook for kicking in kdump path

2013-04-17 Thread Guenter Roeck
On Wed, Apr 17, 2013 at 02:49:59PM -0700, Eric W. Biederman wrote: > Don Zickus writes: > > > A common problem with kdump is that during the boot up of the > > second kernel, the hardware watchdog times out and reboots the > > machine before a vmcore can be captured. > > > > Instead of tellling c

Re: [PATCH v3] watchdog: Add hook for kicking in kdump path

2013-04-17 Thread Eric W. Biederman
Don Zickus writes: > A common problem with kdump is that during the boot up of the > second kernel, the hardware watchdog times out and reboots the > machine before a vmcore can be captured. > > Instead of tellling customers to disable their hardware watchdog > timers, I hacked up a hook to put i

Re: [PATCH v3] watchdog: Add hook for kicking in kdump path

2013-04-17 Thread Guenter Roeck
On Wed, Apr 17, 2013 at 05:19:56PM -0400, Don Zickus wrote: > A common problem with kdump is that during the boot up of the > second kernel, the hardware watchdog times out and reboots the > machine before a vmcore can be captured. > > Instead of tellling customers to disable their hardware watchd

[PATCH v3] watchdog: Add hook for kicking in kdump path

2013-04-17 Thread Don Zickus
A common problem with kdump is that during the boot up of the second kernel, the hardware watchdog times out and reboots the machine before a vmcore can be captured. Instead of tellling customers to disable their hardware watchdog timers, I hacked up a hook to put in the kdump path that provides o