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

2013-04-15 Thread Guenter Roeck
On Mon, Apr 15, 2013 at 04:55:04PM -0400, Don Zickus wrote: > On Fri, Apr 12, 2013 at 02:30:24PM -0700, Guenter Roeck wrote: > > On Fri, Apr 12, 2013 at 05:16:27PM -0400, Don Zickus wrote: > > > On Wed, Apr 10, 2013 at 08:10:41AM -0700, Guenter Roeck wrote: > > > > > have no idea how to even find

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

2013-04-15 Thread Don Zickus
On Fri, Apr 12, 2013 at 02:30:24PM -0700, Guenter Roeck wrote: > On Fri, Apr 12, 2013 at 05:16:27PM -0400, Don Zickus wrote: > > On Wed, Apr 10, 2013 at 08:10:41AM -0700, Guenter Roeck wrote: > > > > have no idea how to even find out if multiple watchdogs are open on the > > > > system. Is there

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

2013-04-15 Thread Don Zickus
On Fri, Apr 12, 2013 at 02:30:24PM -0700, Guenter Roeck wrote: On Fri, Apr 12, 2013 at 05:16:27PM -0400, Don Zickus wrote: On Wed, Apr 10, 2013 at 08:10:41AM -0700, Guenter Roeck wrote: have no idea how to even find out if multiple watchdogs are open on the system. Is there a list I

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

2013-04-15 Thread Guenter Roeck
On Mon, Apr 15, 2013 at 04:55:04PM -0400, Don Zickus wrote: On Fri, Apr 12, 2013 at 02:30:24PM -0700, Guenter Roeck wrote: On Fri, Apr 12, 2013 at 05:16:27PM -0400, Don Zickus wrote: On Wed, Apr 10, 2013 at 08:10:41AM -0700, Guenter Roeck wrote: have no idea how to even find out if

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

2013-04-12 Thread Guenter Roeck
On Fri, Apr 12, 2013 at 05:16:27PM -0400, Don Zickus wrote: > On Wed, Apr 10, 2013 at 08:10:41AM -0700, Guenter Roeck wrote: > > > have no idea how to even find out if multiple watchdogs are open on the > > > system. Is there a list I could walk? And with regard to 'watchdog is > > > > /* the

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

2013-04-12 Thread Don Zickus
On Wed, Apr 10, 2013 at 08:10:41AM -0700, Guenter Roeck wrote: > > have no idea how to even find out if multiple watchdogs are open on the > > system. Is there a list I could walk? And with regard to 'watchdog is > > /* the dev_t structure to store the dynamically allocated watchdog devices */

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

2013-04-12 Thread Don Zickus
On Wed, Apr 10, 2013 at 08:10:41AM -0700, Guenter Roeck wrote: have no idea how to even find out if multiple watchdogs are open on the system. Is there a list I could walk? And with regard to 'watchdog is /* the dev_t structure to store the dynamically allocated watchdog devices */

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

2013-04-12 Thread Guenter Roeck
On Fri, Apr 12, 2013 at 05:16:27PM -0400, Don Zickus wrote: On Wed, Apr 10, 2013 at 08:10:41AM -0700, Guenter Roeck wrote: have no idea how to even find out if multiple watchdogs are open on the system. Is there a list I could walk? And with regard to 'watchdog is /* the dev_t

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

2013-04-10 Thread Guenter Roeck
On Wed, Apr 10, 2013 at 12:49:14PM -0400, David Teigland wrote: > On Wed, Apr 10, 2013 at 09:40:39AM -0400, Don Zickus wrote: > > However, we still have the problem that if the machine panics and we want > > to jump into the kdump kernel, we need to 'kick' the watchdog one more > > time. This

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

2013-04-10 Thread David Teigland
On Wed, Apr 10, 2013 at 09:40:39AM -0400, Don Zickus wrote: > However, we still have the problem that if the machine panics and we want > to jump into the kdump kernel, we need to 'kick' the watchdog one more > time. This provides us a sane sync point for determining how long we have > to load

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

2013-04-10 Thread Guenter Roeck
On Wed, Apr 10, 2013 at 12:17:39PM -0400, Don Zickus wrote: > On Wed, Apr 10, 2013 at 08:10:41AM -0700, Guenter Roeck wrote: > > On Wed, Apr 10, 2013 at 10:20:55AM -0400, Don Zickus wrote: > > > On Wed, Apr 10, 2013 at 06:51:23AM -0700, Guenter Roeck wrote: > > > > On Wed, Apr 10, 2013 at

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

2013-04-10 Thread Don Zickus
On Wed, Apr 10, 2013 at 08:10:41AM -0700, Guenter Roeck wrote: > On Wed, Apr 10, 2013 at 10:20:55AM -0400, Don Zickus wrote: > > On Wed, Apr 10, 2013 at 06:51:23AM -0700, Guenter Roeck wrote: > > > On Wed, Apr 10, 2013 at 09:40:39AM -0400, Don Zickus wrote: > > > > On Tue, Apr 09, 2013 at

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

2013-04-10 Thread Guenter Roeck
On Wed, Apr 10, 2013 at 10:20:55AM -0400, Don Zickus wrote: > On Wed, Apr 10, 2013 at 06:51:23AM -0700, Guenter Roeck wrote: > > On Wed, Apr 10, 2013 at 09:40:39AM -0400, Don Zickus wrote: > > > On Tue, Apr 09, 2013 at 09:07:58AM -0700, Guenter Roeck wrote: > > > > > > Just look for the use of

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

2013-04-10 Thread Don Zickus
On Wed, Apr 10, 2013 at 06:51:23AM -0700, Guenter Roeck wrote: > On Wed, Apr 10, 2013 at 09:40:39AM -0400, Don Zickus wrote: > > On Tue, Apr 09, 2013 at 09:07:58AM -0700, Guenter Roeck wrote: > > > > > Just look for the use of mod_timer in the watchdog directory. > > > > > > > > So looking at the

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

2013-04-10 Thread Guenter Roeck
On Wed, Apr 10, 2013 at 09:40:39AM -0400, Don Zickus wrote: > On Tue, Apr 09, 2013 at 09:07:58AM -0700, Guenter Roeck wrote: > > > > Just look for the use of mod_timer in the watchdog directory. > > > > > > So looking at the mod_timer logic in various drivers, it seems regardless > > > if the

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

2013-04-10 Thread Don Zickus
On Tue, Apr 09, 2013 at 09:07:58AM -0700, Guenter Roeck wrote: > > > Just look for the use of mod_timer in the watchdog directory. > > > > So looking at the mod_timer logic in various drivers, it seems regardless > > if the /dev/watchdog device is opened or not, if it is running, it will > >

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

2013-04-10 Thread Don Zickus
On Tue, Apr 09, 2013 at 09:07:58AM -0700, Guenter Roeck wrote: Just look for the use of mod_timer in the watchdog directory. So looking at the mod_timer logic in various drivers, it seems regardless if the /dev/watchdog device is opened or not, if it is running, it will automagically

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

2013-04-10 Thread Guenter Roeck
On Wed, Apr 10, 2013 at 09:40:39AM -0400, Don Zickus wrote: On Tue, Apr 09, 2013 at 09:07:58AM -0700, Guenter Roeck wrote: Just look for the use of mod_timer in the watchdog directory. So looking at the mod_timer logic in various drivers, it seems regardless if the /dev/watchdog

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

2013-04-10 Thread Guenter Roeck
On Wed, Apr 10, 2013 at 10:20:55AM -0400, Don Zickus wrote: On Wed, Apr 10, 2013 at 06:51:23AM -0700, Guenter Roeck wrote: On Wed, Apr 10, 2013 at 09:40:39AM -0400, Don Zickus wrote: On Tue, Apr 09, 2013 at 09:07:58AM -0700, Guenter Roeck wrote: Just look for the use of mod_timer in

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

2013-04-10 Thread Don Zickus
On Wed, Apr 10, 2013 at 08:10:41AM -0700, Guenter Roeck wrote: On Wed, Apr 10, 2013 at 10:20:55AM -0400, Don Zickus wrote: On Wed, Apr 10, 2013 at 06:51:23AM -0700, Guenter Roeck wrote: On Wed, Apr 10, 2013 at 09:40:39AM -0400, Don Zickus wrote: On Tue, Apr 09, 2013 at 09:07:58AM -0700,

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

2013-04-10 Thread Guenter Roeck
On Wed, Apr 10, 2013 at 12:17:39PM -0400, Don Zickus wrote: On Wed, Apr 10, 2013 at 08:10:41AM -0700, Guenter Roeck wrote: On Wed, Apr 10, 2013 at 10:20:55AM -0400, Don Zickus wrote: On Wed, Apr 10, 2013 at 06:51:23AM -0700, Guenter Roeck wrote: On Wed, Apr 10, 2013 at 09:40:39AM -0400,

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

2013-04-10 Thread David Teigland
On Wed, Apr 10, 2013 at 09:40:39AM -0400, Don Zickus wrote: However, we still have the problem that if the machine panics and we want to jump into the kdump kernel, we need to 'kick' the watchdog one more time. This provides us a sane sync point for determining how long we have to load the

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

2013-04-10 Thread Guenter Roeck
On Wed, Apr 10, 2013 at 12:49:14PM -0400, David Teigland wrote: On Wed, Apr 10, 2013 at 09:40:39AM -0400, Don Zickus wrote: However, we still have the problem that if the machine panics and we want to jump into the kdump kernel, we need to 'kick' the watchdog one more time. This provides

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

2013-04-09 Thread Guenter Roeck
On Tue, Apr 09, 2013 at 11:14:23AM -0400, Don Zickus wrote: > On Tue, Apr 09, 2013 at 07:52:28AM -0700, Guenter Roeck wrote: > > On Tue, Apr 09, 2013 at 10:44:31AM -0400, Don Zickus wrote: > > > On Mon, Apr 08, 2013 at 08:15:09AM -0700, Guenter Roeck wrote: > > > > On Mon, Apr 08, 2013 at

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

2013-04-09 Thread Don Zickus
On Tue, Apr 09, 2013 at 07:52:28AM -0700, Guenter Roeck wrote: > On Tue, Apr 09, 2013 at 10:44:31AM -0400, Don Zickus wrote: > > On Mon, Apr 08, 2013 at 08:15:09AM -0700, Guenter Roeck wrote: > > > On Mon, Apr 08, 2013 at 08:48:58AM -0400, Don Zickus wrote: > > > > On Mon, Apr 08, 2013 at

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

2013-04-09 Thread Guenter Roeck
On Tue, Apr 09, 2013 at 10:44:31AM -0400, Don Zickus wrote: > On Mon, Apr 08, 2013 at 08:15:09AM -0700, Guenter Roeck wrote: > > On Mon, Apr 08, 2013 at 08:48:58AM -0400, Don Zickus wrote: > > > On Mon, Apr 08, 2013 at 01:46:58PM +0800, Dave Young wrote: > > > > On 04/06/2013 04:16 AM, Don Zickus

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

2013-04-09 Thread Don Zickus
On Mon, Apr 08, 2013 at 08:15:09AM -0700, Guenter Roeck wrote: > On Mon, Apr 08, 2013 at 08:48:58AM -0400, Don Zickus wrote: > > On Mon, Apr 08, 2013 at 01:46:58PM +0800, Dave Young wrote: > > > On 04/06/2013 04:16 AM, Don Zickus wrote: > > > > A common problem with kdump is that during the boot

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

2013-04-09 Thread Don Zickus
On Mon, Apr 08, 2013 at 08:15:09AM -0700, Guenter Roeck wrote: On Mon, Apr 08, 2013 at 08:48:58AM -0400, Don Zickus wrote: On Mon, Apr 08, 2013 at 01:46:58PM +0800, Dave Young wrote: On 04/06/2013 04:16 AM, Don Zickus wrote: A common problem with kdump is that during the boot up of the

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

2013-04-09 Thread Guenter Roeck
On Tue, Apr 09, 2013 at 10:44:31AM -0400, Don Zickus wrote: On Mon, Apr 08, 2013 at 08:15:09AM -0700, Guenter Roeck wrote: On Mon, Apr 08, 2013 at 08:48:58AM -0400, Don Zickus wrote: On Mon, Apr 08, 2013 at 01:46:58PM +0800, Dave Young wrote: On 04/06/2013 04:16 AM, Don Zickus wrote:

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

2013-04-09 Thread Don Zickus
On Tue, Apr 09, 2013 at 07:52:28AM -0700, Guenter Roeck wrote: On Tue, Apr 09, 2013 at 10:44:31AM -0400, Don Zickus wrote: On Mon, Apr 08, 2013 at 08:15:09AM -0700, Guenter Roeck wrote: On Mon, Apr 08, 2013 at 08:48:58AM -0400, Don Zickus wrote: On Mon, Apr 08, 2013 at 01:46:58PM +0800,

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

2013-04-09 Thread Guenter Roeck
On Tue, Apr 09, 2013 at 11:14:23AM -0400, Don Zickus wrote: On Tue, Apr 09, 2013 at 07:52:28AM -0700, Guenter Roeck wrote: On Tue, Apr 09, 2013 at 10:44:31AM -0400, Don Zickus wrote: On Mon, Apr 08, 2013 at 08:15:09AM -0700, Guenter Roeck wrote: On Mon, Apr 08, 2013 at 08:48:58AM -0400,

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

2013-04-08 Thread Guenter Roeck
On Mon, Apr 08, 2013 at 08:48:58AM -0400, Don Zickus wrote: > On Mon, Apr 08, 2013 at 01:46:58PM +0800, Dave Young wrote: > > On 04/06/2013 04:16 AM, Don Zickus wrote: > > > A common problem with kdump is that during the boot up of the > > > second kernel, the hardware watchdog times out and

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

2013-04-08 Thread Don Zickus
On Mon, Apr 08, 2013 at 01:46:58PM +0800, Dave Young wrote: > On 04/06/2013 04:16 AM, 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

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

2013-04-08 Thread Don Zickus
On Mon, Apr 08, 2013 at 01:46:58PM +0800, Dave Young wrote: On 04/06/2013 04:16 AM, 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

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

2013-04-08 Thread Guenter Roeck
On Mon, Apr 08, 2013 at 08:48:58AM -0400, Don Zickus wrote: On Mon, Apr 08, 2013 at 01:46:58PM +0800, Dave Young wrote: On 04/06/2013 04:16 AM, 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

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

2013-04-07 Thread Dave Young
On 04/06/2013 04:16 AM, 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 watchdog > timers, I

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

2013-04-07 Thread Dave Young
On 04/06/2013 04:16 AM, 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 watchdog timers, I hacked