public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 2.6.23 regression: do_nanosleep will not return
@ 2007-10-08 12:50 Bernd Schubert
  2007-10-08 13:20 ` Bernd Schubert
  2007-10-08 21:48 ` Thomas Gleixner
  0 siblings, 2 replies; 7+ messages in thread
From: Bernd Schubert @ 2007-10-08 12:50 UTC (permalink / raw)
  To: linux-kernel

Hi,

we have a system here were e.g. "sleep 1" will never finish. This is an 
issue of 2.6.23, on all older kernel versions it did work fine.

Seems to hang in do_nanosleep() 

[  153.775792] sleep         S 0000000000000000     0  5372   5341              
[  153.782385]  ffff81007f0a9ea8 0000000000000082 0000000000000000 0000000000008efc                                                                             
[  153.790635]  ffff81007f0a9e48 ffffffff802447b4 ffff81007f0c3080 0000000300000000                                                                             
[  153.798938]  ffff81007f0c39c8 ffff81007f0c37c0 000000004001d908 0000000000000000                                                                             
[  153.806991] Call Trace:                                                      
[  153.809937]  [<ffffffff8048e4cd>] do_nanosleep+0x42/0x75                     
[  153.815727]  [<0000000000000001>]                                            
[  153.819383]                                                                  
[  153.775792] sleep         S 0000000000000000     0  5372   5341              


[  330.669444] SysRq : Show Pending Timers                                      
[  330.673552] Timer List Version: v0.3                                         
[  330.677326] HRTIMER_MAX_CLOCK_BASES: 2                                       
[  330.681282] now at 255011372633 nsecs                                        
[  330.829981] active timers:                                                   
[  330.832859]  #0: <ffff81007f0e3de8>, hrtimer_wakeup, S:01                    
[  330.838805]  # expires at 260156346358 nsecs [in 5144973725 nsecs]           

[  337.046189] now at 261387685432 nsecs                                        
[  337.194966] active timers:                                                   
[  337.197834]  #0: <ffff81007f0e3de8>, hrtimer_wakeup, S:01                    
[  337.203793]  # expires at 260156346358 nsecs [in 18446744072478212542 nsecs] 
[  330.669444] SysRq : Show Pending Timers


Any ideas?

Thanks,
Bernd


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: 2.6.23 regression: do_nanosleep will not return
  2007-10-08 12:50 2.6.23 regression: do_nanosleep will not return Bernd Schubert
@ 2007-10-08 13:20 ` Bernd Schubert
  2007-10-08 14:32   ` Rik van Riel
  2007-10-08 21:48 ` Thomas Gleixner
  1 sibling, 1 reply; 7+ messages in thread
From: Bernd Schubert @ 2007-10-08 13:20 UTC (permalink / raw)
  To: linux-kernel

Bernd Schubert wrote:

> Hi,
> 
> we have a system here were e.g. "sleep 1" will never finish. This is an
> issue of 2.6.23, on all older kernel versions it did work fine.
> 
> Seems to hang in do_nanosleep()
> 


Update: Enabling hpet in the bios and setting clocksource=hpet as command
line parameter will fix it, but still its not nice that something that
worked without a problem in 2.6.22 and below suddenly doesn't work in
2.6.23.


Bernd


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: 2.6.23 regression: do_nanosleep will not return
  2007-10-08 13:20 ` Bernd Schubert
@ 2007-10-08 14:32   ` Rik van Riel
  2007-10-08 15:01     ` Bernd Schubert
  0 siblings, 1 reply; 7+ messages in thread
From: Rik van Riel @ 2007-10-08 14:32 UTC (permalink / raw)
  To: Bernd Schubert; +Cc: linux-kernel

On Mon, 08 Oct 2007 15:20:26 +0200
Bernd Schubert <bs@q-leap.de> wrote:
> Bernd Schubert wrote:

> > we have a system here were e.g. "sleep 1" will never finish. This
> > is an issue of 2.6.23, on all older kernel versions it did work
> > fine.
> > 
> > Seems to hang in do_nanosleep()
> 
> 
> Update: Enabling hpet in the bios and setting clocksource=hpet as
> command line parameter will fix it, but still its not nice that
> something that worked without a problem in 2.6.22 and below suddenly
> doesn't work in 2.6.23.

Which timer source is in use when the system hangs?

-- 
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: 2.6.23 regression: do_nanosleep will not return
  2007-10-08 14:32   ` Rik van Riel
@ 2007-10-08 15:01     ` Bernd Schubert
  2007-10-08 15:16       ` Peter Zijlstra
  2007-10-08 19:23       ` Rafael J. Wysocki
  0 siblings, 2 replies; 7+ messages in thread
From: Bernd Schubert @ 2007-10-08 15:01 UTC (permalink / raw)
  To: Rik van Riel; +Cc: linux-kernel

On Monday 08 October 2007 16:32:52 Rik van Riel wrote:
> On Mon, 08 Oct 2007 15:20:26 +0200
>
> Bernd Schubert <bs@q-leap.de> wrote:
> > Bernd Schubert wrote:
> > > we have a system here were e.g. "sleep 1" will never finish. This
> > > is an issue of 2.6.23, on all older kernel versions it did work
> > > fine.
> > >
> > > Seems to hang in do_nanosleep()
> >
> > Update: Enabling hpet in the bios and setting clocksource=hpet as
> > command line parameter will fix it, but still its not nice that
> > something that worked without a problem in 2.6.22 and below suddenly
> > doesn't work in 2.6.23.
>
> Which timer source is in use when the system hangs?

Well, not the systems hangs, only processes running nanosleep. Well, since the 
system is booted diskless, one of the very first commands is to 
run "/etc/init.d/portmap start", which has a sleep call in its script and so 
it will halt the boot process.

The problematic timer source is acpi_pm. Its also interesting that setting the 
timer source 
via /sys/devices/system/clocksource/clocksource0/current_clocksource won't 
fix that problem. Only the boot option clocksource={other than acpi_pm} does 
help.

Thanks,
Bernd

-- 
Bernd Schubert
Q-Leap Networks GmbH

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: 2.6.23 regression: do_nanosleep will not return
  2007-10-08 15:01     ` Bernd Schubert
@ 2007-10-08 15:16       ` Peter Zijlstra
  2007-10-08 19:23       ` Rafael J. Wysocki
  1 sibling, 0 replies; 7+ messages in thread
From: Peter Zijlstra @ 2007-10-08 15:16 UTC (permalink / raw)
  To: Bernd Schubert, Thomas Gleixner; +Cc: Rik van Riel, linux-kernel

On Mon, 2007-10-08 at 17:01 +0200, Bernd Schubert wrote:
> On Monday 08 October 2007 16:32:52 Rik van Riel wrote:
> > On Mon, 08 Oct 2007 15:20:26 +0200
> >
> > Bernd Schubert <bs@q-leap.de> wrote:
> > > Bernd Schubert wrote:
> > > > we have a system here were e.g. "sleep 1" will never finish. This
> > > > is an issue of 2.6.23, on all older kernel versions it did work
> > > > fine.
> > > >
> > > > Seems to hang in do_nanosleep()
> > >
> > > Update: Enabling hpet in the bios and setting clocksource=hpet as
> > > command line parameter will fix it, but still its not nice that
> > > something that worked without a problem in 2.6.22 and below suddenly
> > > doesn't work in 2.6.23.
> >
> > Which timer source is in use when the system hangs?
> 
> Well, not the systems hangs, only processes running nanosleep. Well, since the 
> system is booted diskless, one of the very first commands is to 
> run "/etc/init.d/portmap start", which has a sleep call in its script and so 
> it will halt the boot process.
> 
> The problematic timer source is acpi_pm. Its also interesting that setting the 
> timer source 
> via /sys/devices/system/clocksource/clocksource0/current_clocksource won't 
> fix that problem. Only the boot option clocksource={other than acpi_pm} does 
> help.

Maybe Thomas knows.. 


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: 2.6.23 regression: do_nanosleep will not return
  2007-10-08 15:01     ` Bernd Schubert
  2007-10-08 15:16       ` Peter Zijlstra
@ 2007-10-08 19:23       ` Rafael J. Wysocki
  1 sibling, 0 replies; 7+ messages in thread
From: Rafael J. Wysocki @ 2007-10-08 19:23 UTC (permalink / raw)
  To: Bernd Schubert; +Cc: Rik van Riel, linux-kernel

On Monday, 8 October 2007 17:01, Bernd Schubert wrote:
> On Monday 08 October 2007 16:32:52 Rik van Riel wrote:
> > On Mon, 08 Oct 2007 15:20:26 +0200
> >
> > Bernd Schubert <bs@q-leap.de> wrote:
> > > Bernd Schubert wrote:
> > > > we have a system here were e.g. "sleep 1" will never finish. This
> > > > is an issue of 2.6.23, on all older kernel versions it did work
> > > > fine.
> > > >
> > > > Seems to hang in do_nanosleep()
> > >
> > > Update: Enabling hpet in the bios and setting clocksource=hpet as
> > > command line parameter will fix it, but still its not nice that
> > > something that worked without a problem in 2.6.22 and below suddenly
> > > doesn't work in 2.6.23.
> >
> > Which timer source is in use when the system hangs?
> 
> Well, not the systems hangs, only processes running nanosleep. Well, since the 
> system is booted diskless, one of the very first commands is to 
> run "/etc/init.d/portmap start", which has a sleep call in its script and so 
> it will halt the boot process.
> 
> The problematic timer source is acpi_pm. Its also interesting that setting the 
> timer source 
> via /sys/devices/system/clocksource/clocksource0/current_clocksource won't 
> fix that problem. Only the boot option clocksource={other than acpi_pm} does 
> help.

I've created a bugzilla entry for this regression at

http://bugzilla.kernel.org/show_bug.cgi?id=9134

Please add a summary of your observations to it.

Thanks,
Rafael

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: 2.6.23 regression: do_nanosleep will not return
  2007-10-08 12:50 2.6.23 regression: do_nanosleep will not return Bernd Schubert
  2007-10-08 13:20 ` Bernd Schubert
@ 2007-10-08 21:48 ` Thomas Gleixner
  1 sibling, 0 replies; 7+ messages in thread
From: Thomas Gleixner @ 2007-10-08 21:48 UTC (permalink / raw)
  To: Bernd Schubert; +Cc: linux-kernel


On Mon, 8 Oct 2007, Bernd Schubert wrote:

> Hi,
> 
> we have a system here were e.g. "sleep 1" will never finish. This is an 
> issue of 2.6.23, on all older kernel versions it did work fine.
> 
> Seems to hang in do_nanosleep() 
> 
> [  153.775792] sleep         S 0000000000000000     0  5372   5341              
> [  153.782385]  ffff81007f0a9ea8 0000000000000082 0000000000000000 0000000000008efc                                                                             
> [  153.790635]  ffff81007f0a9e48 ffffffff802447b4 ffff81007f0c3080 0000000300000000                                                                             
> [  153.798938]  ffff81007f0c39c8 ffff81007f0c37c0 000000004001d908 0000000000000000                                                                             
> [  153.806991] Call Trace:                                                      
> [  153.809937]  [<ffffffff8048e4cd>] do_nanosleep+0x42/0x75                     
> [  153.815727]  [<0000000000000001>]                                            
> [  153.819383]                                                                  
> [  153.775792] sleep         S 0000000000000000     0  5372   5341              
> 
> 
> [  330.669444] SysRq : Show Pending Timers                                      
> [  330.673552] Timer List Version: v0.3                                         
> [  330.677326] HRTIMER_MAX_CLOCK_BASES: 2                                       
> [  330.681282] now at 255011372633 nsecs                                        
> [  330.829981] active timers:                                                   
> [  330.832859]  #0: <ffff81007f0e3de8>, hrtimer_wakeup, S:01                    
> [  330.838805]  # expires at 260156346358 nsecs [in 5144973725 nsecs]           
> 
> [  337.046189] now at 261387685432 nsecs                                        
> [  337.194966] active timers:                                                   
> [  337.197834]  #0: <ffff81007f0e3de8>, hrtimer_wakeup, S:01                    
> [  337.203793]  # expires at 260156346358 nsecs [in 18446744072478212542 nsecs] 

timer already expired ---------^^^^^^^^^^^^
(~1.2 seconds)

hmm, signedness problem (only in the display) ---------^^^^^^^^^^^^^^^^^^^

Can you please put a complete system description, your .config and a boot 
log into bugzilla ?

Thanks,

	tglx


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-10-08 21:48 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-08 12:50 2.6.23 regression: do_nanosleep will not return Bernd Schubert
2007-10-08 13:20 ` Bernd Schubert
2007-10-08 14:32   ` Rik van Riel
2007-10-08 15:01     ` Bernd Schubert
2007-10-08 15:16       ` Peter Zijlstra
2007-10-08 19:23       ` Rafael J. Wysocki
2007-10-08 21:48 ` Thomas Gleixner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox