mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Paul Mackerras <paulus@samba.org>
To: Kyle Moffett <mrmacman_g4@mac.com>
Cc: linux-kernel@vger.kernel.org, Andrew Morton <akpm@osdl.org>,
	Linus Torvalds <torvalds@osdl.org>
Subject: Re: SMP Timekeeping regression in 2.6.16-rc5 (and 2.6.16-rc4)
Date: Fri, 3 Mar 2006 21:35:16 +1100	[thread overview]
Message-ID: <17416.7140.678168.734980@cargo.ozlabs.ibm.com> (raw)
In-Reply-To: <20060302210803.6ee4328a.mrmacman_g4@mac.com>

Kyle Moffett writes:

> Hi! Just built and installed a 2.6.16-rc5 kernel on my Powermac G4 Dual
> 1GHz (windtunnel model) and discovered a rather problematic timekeeping
> bug (not present in debian 2.6.15).  Essentially the two CPUs have
> completely different ideas about what day/time it is.  I booted into

Ouch!

It turns out that smp_core99_give/take_timebase are using a 32-bit
variable to transfer the timebase value from one cpu to the other.  So
the bottom 32 bits end up synchronized but the top 32 bits are quite
different, hence the different time of day on the two cpus.

The fix is to change `timebase' to be a u64.  I have that change
queued up in my powerpc-merge tree, which I'll ask Linus to pull
shortly.

Paul.

      reply	other threads:[~2006-03-03 10:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-02  1:36 SMP Timekeeping regression in 2.6.16-rc5 Kyle Moffett
2006-03-03  2:08 ` SMP Timekeeping regression in 2.6.16-rc5 (and 2.6.16-rc4) Kyle Moffett
2006-03-03 10:35   ` Paul Mackerras [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=17416.7140.678168.734980@cargo.ozlabs.ibm.com \
    --to=paulus@samba.org \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mrmacman_g4@mac.com \
    --cc=torvalds@osdl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®