public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
[parent not found: <200704291524.l3TFOL9j013216@harpo.it.uu.se>]
* Re: Fw: [BUG 2.6.21-rc7] acpi_pm clocksource loses time on x86-64
@ 2007-05-04  7:42 Mikael Pettersson
  2007-05-08 19:14 ` Len Brown
  0 siblings, 1 reply; 8+ messages in thread
From: Mikael Pettersson @ 2007-05-04  7:42 UTC (permalink / raw)
  To: johnstul, mikpe; +Cc: ak, len.brown, linux-kernel, tglx

On Thu, 03 May 2007 19:38:50 -0700, john stultz wrote:
> > 	So that slow acpi_pm on x86_64 seems to be connected w/ the idle loop.
> > I'm guessing the chipset halts the ACPI PM in lower C states. Do you
> > have any guesses as to what might differ between x86_64 and i386 ACPI
> > idle loops? Or might this be something different in what the BIOS
> > exports in x86_64 mode or i386 mode?
> 
> Mikael,
> 	Just trying to dig a bit more through the acpi_processor_idle code.
> Could you run "cat /proc/acpi/processor/CPU1/power" and reply w/ the
> output?

Here's that file with the x86-64 kernel:

active state:            C2
max_cstate:              C8
bus master activity:     00000000
maximum allowed latency: 20000 usec
states:
    C1:                  type[C1] promotion[C2] demotion[--] latency[000] usage[00107840] duration[00000000000000000000]
   *C2:                  type[C2] promotion[--] demotion[C1] latency[010] usage[-1987043693] duration[00000000003044809185]

/Mikael

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: Fw: [BUG 2.6.21-rc7] acpi_pm clocksource loses time on x86-64
@ 2007-05-09  9:11 Mikael Pettersson
  2007-05-10 18:52 ` john stultz
  0 siblings, 1 reply; 8+ messages in thread
From: Mikael Pettersson @ 2007-05-09  9:11 UTC (permalink / raw)
  To: lenb, mikpe; +Cc: ak, johnstul, linux-kernel, tglx

On Tue, 8 May 2007 15:14:36 -0400, Len Brown wrote:
> On Friday 04 May 2007 03:42, Mikael Pettersson wrote:
> > On Thu, 03 May 2007 19:38:50 -0700, john stultz wrote:
> > > > 	So that slow acpi_pm on x86_64 seems to be connected w/ the idle loop.
> > > > I'm guessing the chipset halts the ACPI PM in lower C states. Do you
> > > > have any guesses as to what might differ between x86_64 and i386 ACPI
> > > > idle loops? Or might this be something different in what the BIOS
> > > > exports in x86_64 mode or i386 mode?
> > > 
> > > Mikael,
> > > 	Just trying to dig a bit more through the acpi_processor_idle code.
> > > Could you run "cat /proc/acpi/processor/CPU1/power" and reply w/ the
> > > output?
> > 
> > Here's that file with the x86-64 kernel:
> > 
> > active state:            C2
> > max_cstate:              C8
> > bus master activity:     00000000
> > maximum allowed latency: 20000 usec
> > states:
> >     C1:                  type[C1] promotion[C2] demotion[--] latency[000] usage[00107840] duration[00000000000000000000]
> >    *C2:                  type[C2] promotion[--] demotion[C1] latency[010] usage[-1987043693] duration[00000000003044809185]
> 
> it may be that the problem is C2, not C1 on this box and thus "idle=poll" may be
> overkill to workaround it.
> 
> You can disable C2 with "processor.max_cstate=1"
> 
> still a mystery, though, why this is different on i386 vs x86_64.
> what is in this file when booted in i386 mode?

With the i386 kernel it's as follows:

active state:            C2
max_cstate:              C8
bus master activity:     00000000
maximum allowed latency: 20000 usec
states:
    C1:                  type[C1] promotion[C2] demotion[--] latency[000] usage[00004550] duration[00000000000000000000]
   *C2:                  type[C2] promotion[--] demotion[C1] latency[010] usage[00813483] duration[00000000023188005661]

/Mikael

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: Fw: [BUG 2.6.21-rc7] acpi_pm clocksource loses time on x86-64
@ 2007-05-13 21:30 Mikael Pettersson
  0 siblings, 0 replies; 8+ messages in thread
From: Mikael Pettersson @ 2007-05-13 21:30 UTC (permalink / raw)
  To: johnstul, mikpe; +Cc: ak, lenb, linux-kernel, tglx

On Thu, 10 May 2007 11:52:33 -0700, john stultz wrote:
> On Wed, 2007-05-09 at 11:11 +0200, Mikael Pettersson wrote:
> > On Tue, 8 May 2007 15:14:36 -0400, Len Brown wrote:
> > > On Friday 04 May 2007 03:42, Mikael Pettersson wrote:
> > > > On Thu, 03 May 2007 19:38:50 -0700, john stultz wrote:
> > > > > > 	So that slow acpi_pm on x86_64 seems to be connected w/ the idle loop.
> > > > > > I'm guessing the chipset halts the ACPI PM in lower C states. Do you
> > > > > > have any guesses as to what might differ between x86_64 and i386 ACPI
> > > > > > idle loops? Or might this be something different in what the BIOS
> > > > > > exports in x86_64 mode or i386 mode?
> > > > > 
> > > > > Mikael,
> > > > > 	Just trying to dig a bit more through the acpi_processor_idle code.
> > > > > Could you run "cat /proc/acpi/processor/CPU1/power" and reply w/ the
> > > > > output?
> > > > 
> > > > Here's that file with the x86-64 kernel:
> > > > 
> > > > active state:            C2
> > > > max_cstate:              C8
> > > > bus master activity:     00000000
> > > > maximum allowed latency: 20000 usec
> > > > states:
> > > >     C1:                  type[C1] promotion[C2] demotion[--] latency[000] usage[00107840] duration[00000000000000000000]
> > > >    *C2:                  type[C2] promotion[--] demotion[C1] latency[010] usage[-1987043693] duration[00000000003044809185]
> > > 
> > > it may be that the problem is C2, not C1 on this box and thus "idle=poll" may be
> > > overkill to workaround it.
> > > 
> > > You can disable C2 with "processor.max_cstate=1"
> 
> Hey Mikael, 
> 	Did booting w/ processor.max_cstate=1 have the same effect as booting
> w/ idle=poll ?

It seems so. `/sbin/hwclock' and `date' are still in sync after 60 minutes,
where previously `date' would lag behind by about 3 minutes.

/Mikael

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

end of thread, other threads:[~2007-05-13 21:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20070417100942.c990604b.akpm@linux-foundation.org>
2007-04-17 20:12 ` Fw: [BUG 2.6.21-rc7] acpi_pm clocksource loses time on x86-64 john stultz
     [not found] <200704291524.l3TFOL9j013216@harpo.it.uu.se>
2007-05-02 18:10 ` john stultz
2007-05-04  2:38   ` john stultz
2007-05-04  7:42 Mikael Pettersson
2007-05-08 19:14 ` Len Brown
  -- strict thread matches above, loose matches on Subject: below --
2007-05-09  9:11 Mikael Pettersson
2007-05-10 18:52 ` john stultz
2007-05-13 21:30 Mikael Pettersson

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