Re: TSC && HPET calibration

From: Thomas Gleixner
Date: Wed Jan 16 2008 - 08:48:24 EST


On Tue, 15 Jan 2008, Andrew Morton wrote:
> On Thu, 10 Jan 2008 14:36:12 +0200 "Denys Fedoryshchenko" <denys@xxxxxxxxxxx> wrote:
>
> > Hi
> >
> > I have same issue, but it's never passed synchronization.
> >
> > Jan 10 12:59:44 visp-1 Time: tsc clocksource has been installed.
> > Jan 10 13:41:51 visp-1 ACPI: HPET 000F29CD, 0038 (r1 DELL PE_SC3 1
> > DELL 1)
> > Jan 10 13:41:51 visp-1 ACPI: HPET id: 0x8086a201 base: 0xfed00000
> > Jan 10 13:41:51 visp-1 hpet clockevent registered
> > Jan 10 13:41:51 visp-1 checking TSC synchronization [CPU#0 -> CPU#1]: passed.
> > Jan 10 13:41:51 visp-1 checking TSC synchronization [CPU#0 -> CPU#2]:
> > Jan 10 13:41:51 visp-1 Measured 1020 cycles TSC warp between CPUs, turning
> > off TSC clock.
> > Jan 10 13:41:51 visp-1 Marking TSC unstable due to: check_tsc_sync_source
> > failed.
> > Jan 10 13:41:51 visp-1 hpet0: at MMIO 0xfed00000, IRQs 2, 8, 0
> > Jan 10 13:41:51 visp-1 hpet0: 3 64-bit timers, 14318180 Hz
> > Jan 10 13:41:51 visp-1 Time: hpet clocksource has been installed.
> >
> > grep Measures
> > Sep 19 14:31:28 visp-1 Measured 1044 cycles TSC warp between CPUs, turning
> > off TSC clock.
> > Sep 19 18:22:46 visp-1 Measured 996 cycles TSC warp between CPUs, turning off
> > TSC clock.
> > Sep 19 18:35:44 visp-1 Measured 1080 cycles TSC warp between CPUs, turning
> > off TSC clock.
>
> Which kernel version?

That's not a kernel version problem.

The TSCs on the CPUs are not synchronized, which means we can observe
time going backwards when we read TSC on one and then on another CPU.
TSC is switched off due to this.

This is also unrelated to HPET. If there would be no HPET available we
would use some other clocksource instead. On this box we use HPET
because it's the best clocksource we have in the system.

Thanks,
tglx
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/