Re: kernel deadlock

2013-09-12 Thread Gerlando Falauto
Hi Peter, sorry for the slow response... On 09/09/2013 12:08 PM, Peter Zijlstra wrote: On Tue, Sep 03, 2013 at 10:26:19AM -0700, John Stultz wrote: Enabling the SCHED_FEAT(HRTICK, true) bit tends to cause lots of issues on the various hardware I have, tripping the lockdep warnings on various o

Re: kernel deadlock

2013-09-10 Thread Lin Ming
On Wed, Sep 11, 2013 at 12:38 AM, John Stultz wrote: > On 09/10/2013 01:59 AM, Lin Ming wrote: >> On Tue, Sep 10, 2013 at 4:29 AM, John Stultz wrote: >> >> [snip] >> >>> So I think I've managed to finally reproduce this and hunt it down. >>> >>> With Peter's "sched: Fix HRTICK" patch and HRTICK

Re: kernel deadlock

2013-09-10 Thread John Stultz
On 09/10/2013 01:59 AM, Lin Ming wrote: > On Tue, Sep 10, 2013 at 4:29 AM, John Stultz wrote: > > [snip] > >> So I think I've managed to finally reproduce this and hunt it down. >> >> With Peter's "sched: Fix HRTICK" patch and HRTICK enabled, I found I >> could trigger a hard hang at boot on my x

Re: kernel deadlock

2013-09-10 Thread John Stultz
On 09/10/2013 12:29 AM, Ingo Molnar wrote: > * John Stultz wrote: > >> Now, I'm still in the dark as to why HRTICK exposes this, but seems like >> the following patch should resolve the issue (and quiets the lockdep >> warnings in my testing). Let me know how it works for you! >> >> Ingo: This m

Re: kernel deadlock

2013-09-10 Thread Lin Ming
On Tue, Sep 10, 2013 at 4:29 AM, John Stultz wrote: [snip] > > So I think I've managed to finally reproduce this and hunt it down. > > With Peter's "sched: Fix HRTICK" patch and HRTICK enabled, I found I > could trigger a hard hang at boot on my x86_64 kvm system. sysrq didn't > function, so I

Re: kernel deadlock

2013-09-10 Thread Peter Zijlstra
On Mon, Sep 09, 2013 at 01:29:47PM -0700, John Stultz wrote: > Ingo: This makes me think we really should have some lockdep smarts > added to seqlock/seqcount structures. Is there something already > discovered thats preventing this, or has this just not yet been tried? The only reason this hasn't

Re: kernel deadlock

2013-09-10 Thread Ingo Molnar
* John Stultz wrote: > Now, I'm still in the dark as to why HRTICK exposes this, but seems like > the following patch should resolve the issue (and quiets the lockdep > warnings in my testing). Let me know how it works for you! > > Ingo: This makes me think we really should have some lockdep

Re: kernel deadlock

2013-09-09 Thread John Stultz
On 09/04/2013 01:11 AM, Gerlando Falauto wrote: > Hi John, > > On 09/03/2013 07:26 PM, John Stultz wrote: >> On 09/03/2013 07:57 AM, Gerlando Falauto wrote: >>> Hi, >>> >>> I tried again from scratch, so let me recap the whole situation, so we >>> can all view it from the same standpoint. This shou

Re: kernel deadlock

2013-09-09 Thread Peter Zijlstra
On Tue, Sep 03, 2013 at 10:26:19AM -0700, John Stultz wrote: > Enabling the SCHED_FEAT(HRTICK, true) bit tends to cause lots of issues > on the various hardware I have, tripping the lockdep warnings on various > other issues: Does whatever kernel you guys are running have this commit: --- commit

Re: kernel deadlock

2013-09-04 Thread Gerlando Falauto
Hi John, On 09/03/2013 07:26 PM, John Stultz wrote: On 09/03/2013 07:57 AM, Gerlando Falauto wrote: Hi, I tried again from scratch, so let me recap the whole situation, so we can all view it from the same standpoint. This should make the problem easier to see and reproduce. I can confirm that

Re: kernel deadlock

2013-09-03 Thread John Stultz
On 09/03/2013 07:57 AM, Gerlando Falauto wrote: > Hi, > > I tried again from scratch, so let me recap the whole situation, so we > can all view it from the same standpoint. This should make the problem > easier to see and reproduce. > > I can confirm that running a stock 3.10 kernel with HRTICK ena

Re: kernel deadlock

2013-09-03 Thread Gerlando Falauto
Hi, I tried again from scratch, so let me recap the whole situation, so we can all view it from the same standpoint. This should make the problem easier to see and reproduce. I can confirm that running a stock 3.10 kernel with HRTICK enabled: diff --git a/kernel/sched/features.h b/kernel/sch

Re: kernel deadlock

2013-08-31 Thread Gerlando Falauto
Hi Stephen, > Just curious. Do you have this patch from 3.11 applied to your 3.10 kernel tree? Nope, I didn't. But I applied it, and it doesn't seem to make a difference, unfortunately. :-( Thanks for your help anyway! Gerlando commit 971ee28cbd1ccd87b3164facd9359a534c1d2892 Author: Peter

Re: kernel deadlock

2013-08-30 Thread Stephen Boyd
On 08/30/13 16:10, John Stultz wrote: > On 08/30/2013 04:04 PM, Gerlando Falauto wrote: >> Hi, >> >> sorry, it took me a while to narrow it down... >> >> On 08/30/2013 01:45 AM, John Stultz wrote: >>> On 08/29/2013 01:56 PM, Falauto, Gerlando wrote: Hi everyone, I ran into the deadlo

Re: kernel deadlock

2013-08-30 Thread John Stultz
On 08/30/2013 04:04 PM, Gerlando Falauto wrote: > Hi, > > sorry, it took me a while to narrow it down... > > On 08/30/2013 01:45 AM, John Stultz wrote: >> On 08/29/2013 01:56 PM, Falauto, Gerlando wrote: >>> Hi everyone, >>> >>> I ran into the deadlock situation reported at the bottom. >>> Actually

Re: kernel deadlock

2013-08-30 Thread Gerlando Falauto
Hi, sorry, it took me a while to narrow it down... On 08/30/2013 01:45 AM, John Stultz wrote: On 08/29/2013 01:56 PM, Falauto, Gerlando wrote: Hi everyone, I ran into the deadlock situation reported at the bottom. Actually, on my latest 3.10 kernel for some reason I don't get the report (the

Re: kernel deadlock

2013-08-29 Thread John Stultz
On 08/29/2013 01:56 PM, Falauto, Gerlando wrote: > Hi everyone, > > I ran into the deadlock situation reported at the bottom. > Actually, on my latest 3.10 kernel for some reason I don't get the > report (the kernel just hangs for some reason), so it took me quite some > time to track it down. > >