From: Andrew Morton <akpm@osdl.org>
To: Matthias Urlichs <smurf@smurf.noris.de>
Cc: linux-kernel@vger.kernel.org, johnstul@us.ibm.com,
torvalds@osdl.org, bunk@stusta.de, lethal@linux-sh.org,
hirofumi@mail.parknet.co.jp
Subject: Re: REGRESSION: the new i386 timer code fails to sync CPUs
Date: Sun, 23 Jul 2006 04:46:37 -0700 [thread overview]
Message-ID: <20060723044637.3857d428.akpm@osdl.org> (raw)
In-Reply-To: <20060723081604.GD27566@kiste.smurf.noris.de>
On Sun, 23 Jul 2006 10:16:04 +0200
Matthias Urlichs <smurf@smurf.noris.de> wrote:
> > Are you able to compare the present bootlog with the 2.6.17 bootlog?
> >
> Sure. The diff says:
>
> checking TSC synchronization across 4 CPUs:
> +CPU#0 had 748437 usecs TSC skew, fixed it up.
> +CPU#1 had 748437 usecs TSC skew, fixed it up.
> +CPU#2 had -748437 usecs TSC skew, fixed it up.
> +CPU#3 had -748437 usecs TSC skew, fixed it up.
> Brought up 4 CPUs
> -migration_cost=4000,8000
> +migration_cost=85,1724
>
> ... but apparently, that skew is not corrected.
>
> These numbers do match the difference in observed "date" outputs.
>From this I'll assume that
- CPU0 and CPU1 share a TSC and CPU2 and CPU3 share another TSC.
- write_tsc() simply doesn't work on this machine.
- Earlier kernels weren't able to modify the TSC either.
- Earlier kernels didn't use the TSC as a time source whereas this one
does, hence the problems which you're observing.
Some or all of the below might be wrong, but I don't think so:
I assume that booting with clock=pit or clock=pmtmr fixes it?
It would be useful to check your 2.6.17 boot logs, see if we can work out
what 2.6.17 was using for a clock source.
We need to fix that "fixed it up" message because it just ain't so.
The new clocksouce code needs to detect this and to mark the TSC source as
unstable, or otherwise unusable.
We _could_ fix the TSC skew up, by adjusting the rdtsc output by the
tsc_values[] entry wherever we read the TSC.
It would of course be better to make write_tsc() work. I wonder why it
doesn't?
next prev parent reply other threads:[~2006-07-23 11:53 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-22 23:36 REGRESSION: the new i386 timer code fails to sync CPUs Matthias Urlichs
2006-07-23 0:36 ` Andrew Morton
2006-07-23 8:16 ` Matthias Urlichs
2006-07-23 11:46 ` Andrew Morton [this message]
2006-07-23 12:08 ` Matthias Urlichs
2006-07-23 12:37 ` Andrew Morton
2006-07-23 12:58 ` Matthias Urlichs
2006-07-24 15:52 ` Siddha, Suresh B
2006-07-24 15:58 ` john stultz
2006-07-24 17:17 ` Matthias Urlichs
2006-07-24 17:51 ` Andi Kleen
2006-07-24 20:54 ` john stultz
2006-07-30 9:03 ` Andrew Morton
2006-07-30 9:49 ` Matthias Urlichs
2006-07-30 20:10 ` Andi Kleen
2006-07-30 20:55 ` Andrew Morton
2006-07-30 21:13 ` Matthias Urlichs
2006-07-30 21:20 ` Arjan van de Ven
2006-07-30 21:55 ` Matthias Urlichs
2006-08-01 1:47 ` Siddha, Suresh B
2006-08-01 3:14 ` Matthias Urlichs
2006-07-30 21:57 ` Andi Kleen
2006-07-30 22:28 ` Matthias Urlichs
2006-07-31 14:24 ` Matthias Urlichs
2006-07-24 17:39 ` Andi Kleen
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=20060723044637.3857d428.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=bunk@stusta.de \
--cc=hirofumi@mail.parknet.co.jp \
--cc=johnstul@us.ibm.com \
--cc=lethal@linux-sh.org \
--cc=linux-kernel@vger.kernel.org \
--cc=smurf@smurf.noris.de \
--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