RE: [PATCH] hardlockup: detect hard lockups without NMIs using secondary cpus

2013-01-10 Thread Liu, Chuansheng
eixner; linux-arm-ker...@lists.infradead.org > Subject: Re: [PATCH] hardlockup: detect hard lockups without NMIs using > secondary cpus > > On Thu, Jan 10, 2013 at 9:57 PM, Liu, Chuansheng > wrote: > > > > > >> -Original Message- > >> From: ccr...@google.com

Re: [PATCH] hardlockup: detect hard lockups without NMIs using secondary cpus

2013-01-10 Thread Colin Cross
kernel@vger.kernel.org; Andrew Morton; Don Zickus; Ingo Molnar; >> Thomas Gleixner; linux-arm-ker...@lists.infradead.org >> Subject: Re: [PATCH] hardlockup: detect hard lockups without NMIs using >> secondary cpus >> >> On Thu, Jan 10, 2013 at 5:39 PM, Liu, Chuansheng >&

RE: [PATCH] hardlockup: detect hard lockups without NMIs using secondary cpus

2013-01-10 Thread Liu, Chuansheng
eixner; linux-arm-ker...@lists.infradead.org > Subject: Re: [PATCH] hardlockup: detect hard lockups without NMIs using > secondary cpus > > On Thu, Jan 10, 2013 at 5:39 PM, Liu, Chuansheng > wrote: > > > > > >> -Original Message- > >> From: Colin Cross [mailto

Re: [PATCH] hardlockup: detect hard lockups without NMIs using secondary cpus

2013-01-10 Thread Colin Cross
s; Ingo Molnar; Thomas Gleixner; Liu, >> Chuansheng; linux-arm-ker...@lists.infradead.org; Colin Cross >> Subject: [PATCH] hardlockup: detect hard lockups without NMIs using >> secondary cpus >> >> Emulate NMIs on systems where they are not available by using timer >

RE: [PATCH] hardlockup: detect hard lockups without NMIs using secondary cpus

2013-01-10 Thread Liu, Chuansheng
in Cross > Subject: [PATCH] hardlockup: detect hard lockups without NMIs using > secondary cpus > > Emulate NMIs on systems where they are not available by using timer > interrupts on other cpus. Each cpu will use its softlockup hrtimer > to check that the next cpu is processi

Re: [PATCH] hardlockup: detect hard lockups without NMIs using secondary cpus

2013-01-10 Thread Tony Lindgren
* Colin Cross [130110 14:37]: > On Thu, Jan 10, 2013 at 12:38 PM, Tony Lindgren wrote: > > > > * Colin Cross [130109 18:05]: > > > +static void watchdog_check_hardlockup_other_cpu(void) > > > +{ > > > + int cpu; > > > + cpumask_t cpus = watchdog_cpus; > > > + > > > + /* > > > +

Re: [PATCH] hardlockup: detect hard lockups without NMIs using secondary cpus

2013-01-10 Thread Colin Cross
On Thu, Jan 10, 2013 at 12:38 PM, Tony Lindgren wrote: > > * Colin Cross [130109 18:05]: > > +static void watchdog_check_hardlockup_other_cpu(void) > > +{ > > + int cpu; > > + cpumask_t cpus = watchdog_cpus; > > + > > + /* > > + * Test for hardlockups every 3 samples. The

Re: [PATCH] hardlockup: detect hard lockups without NMIs using secondary cpus

2013-01-10 Thread Tony Lindgren
* Colin Cross [130109 18:05]: > +static void watchdog_check_hardlockup_other_cpu(void) > +{ > + int cpu; > + cpumask_t cpus = watchdog_cpus; > + > + /* > + * Test for hardlockups every 3 samples. The sample period is > + * watchdog_thresh * 2 / 5, so 3 samples gets us back

Re: [PATCH] hardlockup: detect hard lockups without NMIs using secondary cpus

2013-01-10 Thread Don Zickus
On Thu, Jan 10, 2013 at 09:27:28AM -0800, Colin Cross wrote: > On Thu, Jan 10, 2013 at 6:02 AM, Don Zickus wrote: > > On Wed, Jan 09, 2013 at 05:57:39PM -0800, Colin Cross wrote: > >> Emulate NMIs on systems where they are not available by using timer > >> interrupts on other cpus. Each cpu will

Re: [PATCH] hardlockup: detect hard lockups without NMIs using secondary cpus

2013-01-10 Thread Colin Cross
On Thu, Jan 10, 2013 at 6:02 AM, Don Zickus wrote: > On Wed, Jan 09, 2013 at 05:57:39PM -0800, Colin Cross wrote: >> Emulate NMIs on systems where they are not available by using timer >> interrupts on other cpus. Each cpu will use its softlockup hrtimer >> to check that the next cpu is

Re: [PATCH] hardlockup: detect hard lockups without NMIs using secondary cpus

2013-01-10 Thread Russell King - ARM Linux
On Thu, Jan 10, 2013 at 05:18:40PM +0100, Frederic Weisbecker wrote: > 2013/1/10 Russell King - ARM Linux : > > On Thu, Jan 10, 2013 at 09:02:15AM -0500, Don Zickus wrote: > >> On Wed, Jan 09, 2013 at 05:57:39PM -0800, Colin Cross wrote: > >> > Emulate NMIs on systems where they are not available

Re: [PATCH] hardlockup: detect hard lockups without NMIs using secondary cpus

2013-01-10 Thread Frederic Weisbecker
2013/1/10 Russell King - ARM Linux : > On Thu, Jan 10, 2013 at 09:02:15AM -0500, Don Zickus wrote: >> On Wed, Jan 09, 2013 at 05:57:39PM -0800, Colin Cross wrote: >> > Emulate NMIs on systems where they are not available by using timer >> > interrupts on other cpus. Each cpu will use its

Re: [PATCH] hardlockup: detect hard lockups without NMIs using secondary cpus

2013-01-10 Thread Russell King - ARM Linux
On Thu, Jan 10, 2013 at 09:02:15AM -0500, Don Zickus wrote: > On Wed, Jan 09, 2013 at 05:57:39PM -0800, Colin Cross wrote: > > Emulate NMIs on systems where they are not available by using timer > > interrupts on other cpus. Each cpu will use its softlockup hrtimer > > to check that the next cpu

Re: [PATCH] hardlockup: detect hard lockups without NMIs using secondary cpus

2013-01-10 Thread Don Zickus
On Wed, Jan 09, 2013 at 05:57:39PM -0800, Colin Cross wrote: > Emulate NMIs on systems where they are not available by using timer > interrupts on other cpus. Each cpu will use its softlockup hrtimer > to check that the next cpu is processing hrtimer interrupts by > verifying that a counter is

Re: [PATCH] hardlockup: detect hard lockups without NMIs using secondary cpus

2013-01-10 Thread Frederic Weisbecker
2013/1/10 Russell King - ARM Linux li...@arm.linux.org.uk: On Thu, Jan 10, 2013 at 09:02:15AM -0500, Don Zickus wrote: On Wed, Jan 09, 2013 at 05:57:39PM -0800, Colin Cross wrote: Emulate NMIs on systems where they are not available by using timer interrupts on other cpus. Each cpu will use

Re: [PATCH] hardlockup: detect hard lockups without NMIs using secondary cpus

2013-01-10 Thread Russell King - ARM Linux
On Thu, Jan 10, 2013 at 05:18:40PM +0100, Frederic Weisbecker wrote: 2013/1/10 Russell King - ARM Linux li...@arm.linux.org.uk: On Thu, Jan 10, 2013 at 09:02:15AM -0500, Don Zickus wrote: On Wed, Jan 09, 2013 at 05:57:39PM -0800, Colin Cross wrote: Emulate NMIs on systems where they are

Re: [PATCH] hardlockup: detect hard lockups without NMIs using secondary cpus

2013-01-10 Thread Colin Cross
On Thu, Jan 10, 2013 at 6:02 AM, Don Zickus dzic...@redhat.com wrote: On Wed, Jan 09, 2013 at 05:57:39PM -0800, Colin Cross wrote: Emulate NMIs on systems where they are not available by using timer interrupts on other cpus. Each cpu will use its softlockup hrtimer to check that the next cpu

Re: [PATCH] hardlockup: detect hard lockups without NMIs using secondary cpus

2013-01-10 Thread Don Zickus
On Thu, Jan 10, 2013 at 09:27:28AM -0800, Colin Cross wrote: On Thu, Jan 10, 2013 at 6:02 AM, Don Zickus dzic...@redhat.com wrote: On Wed, Jan 09, 2013 at 05:57:39PM -0800, Colin Cross wrote: Emulate NMIs on systems where they are not available by using timer interrupts on other cpus. Each

Re: [PATCH] hardlockup: detect hard lockups without NMIs using secondary cpus

2013-01-10 Thread Tony Lindgren
* Colin Cross ccr...@android.com [130109 18:05]: +static void watchdog_check_hardlockup_other_cpu(void) +{ + int cpu; + cpumask_t cpus = watchdog_cpus; + + /* + * Test for hardlockups every 3 samples. The sample period is + * watchdog_thresh * 2 / 5, so 3 samples

Re: [PATCH] hardlockup: detect hard lockups without NMIs using secondary cpus

2013-01-10 Thread Colin Cross
On Thu, Jan 10, 2013 at 12:38 PM, Tony Lindgren t...@atomide.com wrote: * Colin Cross ccr...@android.com [130109 18:05]: +static void watchdog_check_hardlockup_other_cpu(void) +{ + int cpu; + cpumask_t cpus = watchdog_cpus; + + /* + * Test for hardlockups every 3

Re: [PATCH] hardlockup: detect hard lockups without NMIs using secondary cpus

2013-01-10 Thread Tony Lindgren
* Colin Cross ccr...@android.com [130110 14:37]: On Thu, Jan 10, 2013 at 12:38 PM, Tony Lindgren t...@atomide.com wrote: * Colin Cross ccr...@android.com [130109 18:05]: +static void watchdog_check_hardlockup_other_cpu(void) +{ + int cpu; + cpumask_t cpus = watchdog_cpus;

RE: [PATCH] hardlockup: detect hard lockups without NMIs using secondary cpus

2013-01-10 Thread Liu, Chuansheng
: [PATCH] hardlockup: detect hard lockups without NMIs using secondary cpus Emulate NMIs on systems where they are not available by using timer interrupts on other cpus. Each cpu will use its softlockup hrtimer to check that the next cpu is processing hrtimer interrupts by verifying that a counter

Re: [PATCH] hardlockup: detect hard lockups without NMIs using secondary cpus

2013-01-10 Thread Colin Cross
; Liu, Chuansheng; linux-arm-ker...@lists.infradead.org; Colin Cross Subject: [PATCH] hardlockup: detect hard lockups without NMIs using secondary cpus Emulate NMIs on systems where they are not available by using timer interrupts on other cpus. Each cpu will use its softlockup hrtimer to check

RE: [PATCH] hardlockup: detect hard lockups without NMIs using secondary cpus

2013-01-10 Thread Liu, Chuansheng
Subject: Re: [PATCH] hardlockup: detect hard lockups without NMIs using secondary cpus On Thu, Jan 10, 2013 at 5:39 PM, Liu, Chuansheng chuansheng@intel.com wrote: -Original Message- From: Colin Cross [mailto:ccr...@android.com] Sent: Thursday, January 10, 2013 9:58 AM

Re: [PATCH] hardlockup: detect hard lockups without NMIs using secondary cpus

2013-01-10 Thread Colin Cross
; Don Zickus; Ingo Molnar; Thomas Gleixner; linux-arm-ker...@lists.infradead.org Subject: Re: [PATCH] hardlockup: detect hard lockups without NMIs using secondary cpus On Thu, Jan 10, 2013 at 5:39 PM, Liu, Chuansheng chuansheng@intel.com wrote: -Original Message- From

RE: [PATCH] hardlockup: detect hard lockups without NMIs using secondary cpus

2013-01-10 Thread Liu, Chuansheng
Subject: Re: [PATCH] hardlockup: detect hard lockups without NMIs using secondary cpus On Thu, Jan 10, 2013 at 9:57 PM, Liu, Chuansheng chuansheng@intel.com wrote: -Original Message- From: ccr...@google.com [mailto:ccr...@google.com] On Behalf Of Colin Cross Sent

Re: [PATCH] hardlockup: detect hard lockups without NMIs using secondary cpus

2013-01-10 Thread Don Zickus
On Wed, Jan 09, 2013 at 05:57:39PM -0800, Colin Cross wrote: Emulate NMIs on systems where they are not available by using timer interrupts on other cpus. Each cpu will use its softlockup hrtimer to check that the next cpu is processing hrtimer interrupts by verifying that a counter is

Re: [PATCH] hardlockup: detect hard lockups without NMIs using secondary cpus

2013-01-10 Thread Russell King - ARM Linux
On Thu, Jan 10, 2013 at 09:02:15AM -0500, Don Zickus wrote: On Wed, Jan 09, 2013 at 05:57:39PM -0800, Colin Cross wrote: Emulate NMIs on systems where they are not available by using timer interrupts on other cpus. Each cpu will use its softlockup hrtimer to check that the next cpu is

[PATCH] hardlockup: detect hard lockups without NMIs using secondary cpus

2013-01-09 Thread Colin Cross
Emulate NMIs on systems where they are not available by using timer interrupts on other cpus. Each cpu will use its softlockup hrtimer to check that the next cpu is processing hrtimer interrupts by verifying that a counter is increasing. This patch is useful on systems where the hardlockup

[PATCH] hardlockup: detect hard lockups without NMIs using secondary cpus

2013-01-09 Thread Colin Cross
Emulate NMIs on systems where they are not available by using timer interrupts on other cpus. Each cpu will use its softlockup hrtimer to check that the next cpu is processing hrtimer interrupts by verifying that a counter is increasing. This patch is useful on systems where the hardlockup