public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* TSC && HPET calibration
@ 2007-09-16 10:47 Sami Farin
  0 siblings, 0 replies; 6+ messages in thread
From: Sami Farin @ 2007-09-16 10:47 UTC (permalink / raw)
  To: Linux kernel Mailing List

/var/log # grep -Ei "hpet|tsc" dmesg-2.6.19.7 dmesg.2.6.22.6-x86_64 
dmesg-2.6.19.7:ACPI: HPET (v001 INTEL  DQ965GF  0x000015db MSFT 0x01000013) @ 0x3e6f2000
dmesg-2.6.19.7:ACPI: HPET id: 0x8086a201 base: 0xfed00000
dmesg-2.6.19.7:[   34.337155] hpet0: at MMIO 0xfed00000, IRQs 2, 8, 0
dmesg-2.6.19.7:[   34.337296] hpet0: 3 64-bit timers, 14318180 Hz [*]
dmesg-2.6.19.7:[   34.338350] Using HPET for base-timer
dmesg-2.6.19.7:[   34.594096] checking TSC synchronization across 2 CPUs: passed.
dmesg-2.6.19.7:[    0.215896] hpet_resources: 0xfed00000 is busy
dmesg-2.6.19.7:[    7.794166] Time: tsc clocksource has been installed.
dmesg.2.6.22.6-x86_64:ACPI: HPET 3E6F2000, 0038 (r1 INTEL  DQ965GF      1741 MSFT  1000013)
dmesg.2.6.22.6-x86_64:ACPI: HPET id: 0x8086a201 base: 0xfed00000
dmesg.2.6.22.6-x86_64:[    0.000000] hpet clockevent registered
dmesg.2.6.22.6-x86_64:[    0.000000] TSC calibrated against HPET
dmesg.2.6.22.6-x86_64:[   23.917469] checking TSC synchronization [CPU#0 -> CPU#1]:
dmesg.2.6.22.6-x86_64:[   23.937970] Measured 196 cycles TSC warp between CPUs, turning off TSC clock.
dmesg.2.6.22.6-x86_64:[   23.938030] Marking TSC unstable due to check_tsc_sync_source failed
dmesg.2.6.22.6-x86_64:[   23.968187] Time: hpet clocksource has been installed.
dmesg.2.6.22.6-x86_64:[   23.997754] hpet_acpi_add: no address or irqs in _CRS

# grep MHz /proc/cpuinfo 
cpu MHz         : 2797.203
cpu MHz         : 2797.203

# calc 2797203000/196
        ~14271443.87755102040816326531 [*]

so, does TSC calibration against HPET screw up TSC synchronization?

I have Intel(R) Pentium(R) D CPU 2.80GHz and
DQ965GF motherboard, BIOS v.5953.

-- 
Do what you love because life is too short for anything else.


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

* TSC && HPET calibration
@ 2007-09-16 13:02 Frans Pop
  0 siblings, 0 replies; 6+ messages in thread
From: Frans Pop @ 2007-09-16 13:02 UTC (permalink / raw)
  To: linux-kernel

I'm seeing the same error as reported by Sami Farin earlier today [1], but
from my logs I can see that the issue is intermittent (2/3 failures). The
logs indicate that the issue was introduced with 2.6.22 as TSC sync was
correct for all boots with 2.6.21-6.

My system is also Pentium D: Intel(R) Pentium(R) D CPU 3.20GHz

Cheers,
Frans Pop

[1] http://lkml.org/lkml/2007/9/16/34

Jul 12 10:54:37 faramir kernel: Linux version 2.6.21-2-amd64 (Debian 2.6.21-6) (waldi@debian.org) (gcc version 4.1.3 20070629 (prerelease) (Debian 4.1.2-13)) #1 SMP Tue Jul 10 21:39:38 UTC 2007
Jul 12 10:54:37 faramir kernel: checking TSC synchronization [CPU#0 -> CPU#1]: passed.
Jul 13 15:24:10 faramir kernel: Linux version 2.6.21-2-amd64 (Debian 2.6.21-6) (waldi@debian.org) (gcc version 4.1.3 20070629 (prerelease) (Debian 4.1.2-13)) #1 SMP Tue Jul 10 21:39:38 UTC 2007
Jul 13 15:24:10 faramir kernel: checking TSC synchronization [CPU#0 -> CPU#1]: passed.
Jul 14 14:22:11 faramir kernel: Linux version 2.6.21-2-amd64 (Debian 2.6.21-6) (waldi@debian.org) (gcc version 4.1.3 20070629 (prerelease) (Debian 4.1.2-13)) #1 SMP Tue Jul 10 21:39:38 UTC 2007
Jul 14 14:22:11 faramir kernel: checking TSC synchronization [CPU#0 -> CPU#1]: passed.
Jul 14 16:42:12 faramir kernel: Linux version 2.6.21-2-amd64 (Debian 2.6.21-6) (waldi@debian.org) (gcc version 4.1.3 20070629 (prerelease) (Debian 4.1.2-13)) #1 SMP Tue Jul 10 21:39:38 UTC 2007
Jul 14 16:42:12 faramir kernel: checking TSC synchronization [CPU#0 -> CPU#1]: passed.
Jul 14 19:32:17 faramir kernel: Linux version 2.6.21-2-amd64 (Debian 2.6.21-6) (waldi@debian.org) (gcc version 4.1.3 20070629 (prerelease) (Debian 4.1.2-13)) #1 SMP Tue Jul 10 21:39:38 UTC 2007
Jul 14 19:32:17 faramir kernel: checking TSC synchronization [CPU#0 -> CPU#1]: passed.
Jul 15 13:44:51 faramir kernel: Linux version 2.6.21-2-amd64 (Debian 2.6.21-6) (waldi@debian.org) (gcc version 4.1.3 20070629 (prerelease) (Debian 4.1.2-13)) #1 SMP Tue Jul 10 21:39:38 UTC 2007
Jul 15 13:44:51 faramir kernel: checking TSC synchronization [CPU#0 -> CPU#1]: passed.
Jul 16 18:16:52 faramir kernel: Linux version 2.6.21-2-amd64 (Debian 2.6.21-6) (waldi@debian.org) (gcc version 4.1.3 20070629 (prerelease) (Debian 4.1.2-13)) #1 SMP Tue Jul 10 21:39:38 UTC 2007
Jul 16 18:16:52 faramir kernel: checking TSC synchronization [CPU#0 -> CPU#1]: passed.
Jul 16 18:53:26 faramir kernel: Linux version 2.6.21-2-amd64 (Debian 2.6.21-6) (waldi@debian.org) (gcc version 4.1.3 20070629 (prerelease) (Debian 4.1.2-13)) #1 SMP Tue Jul 10 21:39:38 UTC 2007
Jul 16 18:53:26 faramir kernel: checking TSC synchronization [CPU#0 -> CPU#1]: passed.

Jul 17 21:05:13 faramir kernel: Linux version 2.6.22-1-amd64 (Debian 2.6.22-1) (waldi@debian.org) (gcc version 4.1.3 20070629 (prerelease) (Debian 4.1.2-13)) #1 SMP Mon Jul 16 00:30:42 UTC 2007
Jul 17 21:05:13 faramir kernel: checking TSC synchronization [CPU#0 -> CPU#1]:
Jul 17 21:05:13 faramir kernel: Measured 40 cycles TSC warp between CPUs, turning off TSC clock.
Jul 17 21:05:13 faramir kernel: Marking TSC unstable due to check_tsc_sync_source failed

Aug 18 07:30:55 faramir kernel: Linux version 2.6.23-rc3 (root@faramir) (gcc version 4.1.3 20070718 (prerelease) (Debian 4.1.2-14)) #1 SMP Mon Aug 13 17:24:51 CEST 2007
Aug 18 07:30:55 faramir kernel: checking TSC synchronization [CPU#0 -> CPU#1]:
Aug 18 07:30:55 faramir kernel: Measured 24 cycles TSC warp between CPUs, turning off TSC clock.
Aug 18 07:30:55 faramir kernel: Marking TSC unstable due to check_tsc_sync_source failed
Aug 19 06:59:50 faramir kernel: Linux version 2.6.23-rc3 (root@faramir) (gcc version 4.1.3 20070718 (prerelease) (Debian 4.1.2-14)) #1 SMP Mon Aug 13 17:24:51 CEST 2007
Aug 19 06:59:50 faramir kernel: checking TSC synchronization [CPU#0 -> CPU#1]:
Aug 19 06:59:50 faramir kernel: Measured 48 cycles TSC warp between CPUs, turning off TSC clock.
Aug 19 06:59:50 faramir kernel: Marking TSC unstable due to check_tsc_sync_source failed
Aug 20 07:47:51 faramir kernel: Linux version 2.6.23-rc3 (root@faramir) (gcc version 4.1.3 20070718 (prerelease) (Debian 4.1.2-14)) #1 SMP Mon Aug 13 17:24:51 CEST 2007
Aug 20 07:47:51 faramir kernel: checking TSC synchronization [CPU#0 -> CPU#1]: passed.
Aug 21 09:16:46 faramir kernel: Linux version 2.6.23-rc3 (root@faramir) (gcc version 4.1.3 20070718 (prerelease) (Debian 4.1.2-14)) #1 SMP Mon Aug 13 17:24:51 CEST 2007
Aug 21 09:16:46 faramir kernel: checking TSC synchronization [CPU#0 -> CPU#1]: passed.
Aug 22 10:27:29 faramir kernel: Linux version 2.6.23-rc3 (root@faramir) (gcc version 4.1.3 20070718 (prerelease) (Debian 4.1.2-14)) #1 SMP Mon Aug 13 17:24:51 CEST 2007
Aug 22 10:27:29 faramir kernel: checking TSC synchronization [CPU#0 -> CPU#1]:
Aug 22 10:27:29 faramir kernel: Measured 48 cycles TSC warp between CPUs, turning off TSC clock.
Aug 22 10:27:29 faramir kernel: Marking TSC unstable due to check_tsc_sync_source failed
Aug 23 09:52:29 faramir kernel: Linux version 2.6.23-rc3 (root@faramir) (gcc version 4.1.3 20070718 (prerelease) (Debian 4.1.2-14)) #1 SMP Mon Aug 13 17:24:51 CEST 2007
Aug 23 09:52:30 faramir kernel: checking TSC synchronization [CPU#0 -> CPU#1]:
Aug 23 09:52:30 faramir kernel: Measured 40 cycles TSC warp between CPUs, turning off TSC clock.
Aug 23 09:52:30 faramir kernel: Marking TSC unstable due to check_tsc_sync_source failed
Aug 28 18:49:04 faramir kernel: Linux version 2.6.23-rc3 (root@faramir) (gcc version 4.1.3 20070718 (prerelease) (Debian 4.1.2-14)) #1 SMP Mon Aug 13 17:24:51 CEST 2007
Aug 28 18:49:04 faramir kernel: checking TSC synchronization [CPU#0 -> CPU#1]:
Aug 28 18:49:04 faramir kernel: Measured 40 cycles TSC warp between CPUs, turning off TSC clock.
Aug 28 18:49:04 faramir kernel: Marking TSC unstable due to check_tsc_sync_source failed
Aug 29 19:53:26 faramir kernel: Linux version 2.6.23-rc4 (root@faramir) (gcc version 4.1.3 20070812 (prerelease) (Debian 4.1.2-15)) #1 SMP Tue Aug 28 20:42:39 CEST 2007
Aug 29 19:53:26 faramir kernel: checking TSC synchronization [CPU#0 -> CPU#1]: passed.
Aug 30 18:04:20 faramir kernel: Linux version 2.6.23-rc4 (root@faramir) (gcc version 4.1.3 20070812 (prerelease) (Debian 4.1.2-15)) #1 SMP Tue Aug 28 20:42:39 CEST 2007
Aug 30 18:04:20 faramir kernel: checking TSC synchronization [CPU#0 -> CPU#1]:
Aug 30 18:04:20 faramir kernel: Measured 48 cycles TSC warp between CPUs, turning off TSC clock.
Aug 30 18:04:20 faramir kernel: Marking TSC unstable due to check_tsc_sync_source failed
Aug 31 17:40:28 faramir kernel: Linux version 2.6.23-rc4 (root@faramir) (gcc version 4.1.3 20070812 (prerelease) (Debian 4.1.2-15)) #1 SMP Tue Aug 28 20:42:39 CEST 2007
Aug 31 17:40:28 faramir kernel: checking TSC synchronization [CPU#0 -> CPU#1]:
Aug 31 17:40:28 faramir kernel: Measured 48 cycles TSC warp between CPUs, turning off TSC clock.
Aug 31 17:40:28 faramir kernel: Marking TSC unstable due to check_tsc_sync_source failed
Sep  1 18:36:51 faramir kernel: Linux version 2.6.23-rc4 (root@faramir) (gcc version 4.1.3 20070812 (prerelease) (Debian 4.1.2-15)) #1 SMP Tue Aug 28 20:42:39 CEST 2007
Sep  1 18:36:51 faramir kernel: checking TSC synchronization [CPU#0 -> CPU#1]:
Sep  1 18:36:51 faramir kernel: Measured 40 cycles TSC warp between CPUs, turning off TSC clock.
Sep  1 18:36:51 faramir kernel: Marking TSC unstable due to check_tsc_sync_source failed
Sep  2 13:29:56 faramir kernel: Linux version 2.6.23-rc5 (root@faramir) (gcc version 4.1.3 20070812 (prerelease) (Debian 4.1.2-15)) #1 SMP Sat Sep 1 20:51:22 CEST 2007
Sep  2 13:29:56 faramir kernel: checking TSC synchronization [CPU#0 -> CPU#1]:
Sep  2 13:29:56 faramir kernel: Measured 48 cycles TSC warp between CPUs, turning off TSC clock.
Sep  2 13:29:56 faramir kernel: Marking TSC unstable due to check_tsc_sync_source failed
Sep  3 11:07:19 faramir kernel: Linux version 2.6.23-rc5 (root@faramir) (gcc version 4.1.3 20070812 (prerelease) (Debian 4.1.2-15)) #1 SMP Sat Sep 1 20:51:22 CEST 2007
Sep  3 11:07:19 faramir kernel: checking TSC synchronization [CPU#0 -> CPU#1]: passed.
Sep  4 15:33:24 faramir kernel: Linux version 2.6.23-rc5 (root@faramir) (gcc version 4.1.3 20070812 (prerelease) (Debian 4.1.2-15)) #1 SMP Sat Sep 1 20:51:22 CEST 2007
Sep  4 15:33:24 faramir kernel: checking TSC synchronization [CPU#0 -> CPU#1]: passed.
Sep  5 14:24:12 faramir kernel: Linux version 2.6.23-rc5 (root@faramir) (gcc version 4.1.3 20070812 (prerelease) (Debian 4.1.2-15)) #1 SMP Sat Sep 1 20:51:22 CEST 2007
Sep  5 14:24:12 faramir kernel: checking TSC synchronization [CPU#0 -> CPU#1]:
Sep  5 14:24:12 faramir kernel: Measured 40 cycles TSC warp between CPUs, turning off TSC clock.
Sep  5 14:24:12 faramir kernel: Marking TSC unstable due to check_tsc_sync_source failed
Sep  6 07:10:28 faramir kernel: Linux version 2.6.23-rc5 (root@faramir) (gcc version 4.1.3 20070812 (prerelease) (Debian 4.1.2-15)) #1 SMP Sat Sep 1 20:51:22 CEST 2007
Sep  6 07:10:28 faramir kernel: checking TSC synchronization [CPU#0 -> CPU#1]:
Sep  6 07:10:28 faramir kernel: Measured 48 cycles TSC warp between CPUs, turning off TSC clock.
Sep  6 07:10:28 faramir kernel: Marking TSC unstable due to check_tsc_sync_source failed
Sep  7 16:18:01 faramir kernel: Linux version 2.6.23-rc5 (root@faramir) (gcc version 4.1.3 20070812 (prerelease) (Debian 4.1.2-15)) #2 SMP Thu Sep 6 17:00:32 CEST 2007
Sep  7 16:18:01 faramir kernel: checking TSC synchronization [CPU#0 -> CPU#1]:
Sep  7 16:18:01 faramir kernel: Measured 248 cycles TSC warp between CPUs, turning off TSC clock.
Sep  7 16:18:01 faramir kernel: Marking TSC unstable due to check_tsc_sync_source failed
Sep  7 21:09:15 faramir kernel: Linux version 2.6.23-rc5 (root@faramir) (gcc version 4.1.3 20070812 (prerelease) (Debian 4.1.2-15)) #2 SMP Thu Sep 6 17:00:32 CEST 2007
Sep  7 21:09:15 faramir kernel: checking TSC synchronization [CPU#0 -> CPU#1]:
Sep  7 21:09:15 faramir kernel: Measured 48 cycles TSC warp between CPUs, turning off TSC clock.
Sep  7 21:09:15 faramir kernel: Marking TSC unstable due to check_tsc_sync_source failed
Sep  9 12:25:29 faramir kernel: Linux version 2.6.23-rc5 (root@faramir) (gcc version 4.1.3 20070812 (prerelease) (Debian 4.1.2-15)) #2 SMP Thu Sep 6 17:00:32 CEST 2007
Sep  9 12:25:29 faramir kernel: checking TSC synchronization [CPU#0 -> CPU#1]: passed.
Sep 11 07:15:52 faramir kernel: Linux version 2.6.23-rc5 (root@faramir) (gcc version 4.1.3 20070812 (prerelease) (Debian 4.1.2-15)) #2 SMP Thu Sep 6 17:00:32 CEST 2007
Sep 11 07:15:52 faramir kernel: checking TSC synchronization [CPU#0 -> CPU#1]:
Sep 11 07:15:52 faramir kernel: Measured 40 cycles TSC warp between CPUs, turning off TSC clock.
Sep 11 07:15:52 faramir kernel: Marking TSC unstable due to check_tsc_sync_source failed
Sep 12 08:57:51 faramir kernel: Linux version 2.6.23-rc6 (root@faramir) (gcc version 4.1.3 20070812 (prerelease) (Debian 4.1.2-15)) #2 SMP Tue Sep 11 15:10:11 CEST 2007
Sep 12 08:57:51 faramir kernel: checking TSC synchronization [CPU#0 -> CPU#1]:
Sep 12 08:57:51 faramir kernel: Measured 40 cycles TSC warp between CPUs, turning off TSC clock.
Sep 12 08:57:51 faramir kernel: Marking TSC unstable due to check_tsc_sync_source failed
Sep 13 01:38:51 faramir kernel: Linux version 2.6.23-rc6 (root@faramir) (gcc version 4.1.3 20070812 (prerelease) (Debian 4.1.2-15)) #2 SMP Tue Sep 11 15:10:11 CEST 2007
Sep 13 01:38:52 faramir kernel: checking TSC synchronization [CPU#0 -> CPU#1]:
Sep 13 01:38:52 faramir kernel: Measured 48 cycles TSC warp between CPUs, turning off TSC clock.
Sep 13 01:38:52 faramir kernel: Marking TSC unstable due to check_tsc_sync_source failed
Sep 14 01:03:48 faramir kernel: Linux version 2.6.23-rc6 (root@faramir) (gcc version 4.1.3 20070812 (prerelease) (Debian 4.1.2-15)) #2 SMP Tue Sep 11 15:10:11 CEST 2007
Sep 14 01:03:48 faramir kernel: checking TSC synchronization [CPU#0 -> CPU#1]: passed.
Sep 14 08:52:46 faramir kernel: Linux version 2.6.23-rc6 (root@faramir) (gcc version 4.1.3 20070812 (prerelease) (Debian 4.1.2-15)) #2 SMP Tue Sep 11 15:10:11 CEST 2007
Sep 14 08:52:46 faramir kernel: checking TSC synchronization [CPU#0 -> CPU#1]:
Sep 14 08:52:46 faramir kernel: Measured 48 cycles TSC warp between CPUs, turning off TSC clock.
Sep 14 08:52:46 faramir kernel: Marking TSC unstable due to check_tsc_sync_source failed
Sep 15 09:05:55 faramir kernel: Linux version 2.6.23-rc6 (root@faramir) (gcc version 4.1.3 20070812 (prerelease) (Debian 4.1.2-15)) #2 SMP Tue Sep 11 15:10:11 CEST 2007
Sep 15 09:05:55 faramir kernel: checking TSC synchronization [CPU#0 -> CPU#1]: passed.
Sep 16 11:37:36 faramir kernel: Linux version 2.6.23-rc6 (root@faramir) (gcc version 4.1.3 20070812 (prerelease) (Debian 4.1.2-15)) #2 SMP Tue Sep 11 15:10:11 CEST 2007
Sep 16 11:37:36 faramir kernel: checking TSC synchronization [CPU#0 -> CPU#1]: passed.
Sep 16 13:57:04 faramir kernel: Linux version 2.6.23-rc6 (root@faramir) (gcc version 4.1.3 20070812 (prerelease) (Debian 4.1.2-15)) #2 SMP Tue Sep 11 15:10:11 CEST 2007
Sep 16 13:57:04 faramir kernel: checking TSC synchronization [CPU#0 -> CPU#1]:
Sep 16 13:57:04 faramir kernel: Measured 56 cycles TSC warp between CPUs, turning off TSC clock.
Sep 16 13:57:04 faramir kernel: Marking TSC unstable due to check_tsc_sync_source failed

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

* TSC && HPET calibration
@ 2008-01-10 12:36 Denys Fedoryshchenko
  2008-01-15 10:17 ` Andrew Morton
  0 siblings, 1 reply; 6+ messages in thread
From: Denys Fedoryshchenko @ 2008-01-10 12:36 UTC (permalink / raw)
  To: linux-kernel

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.
Sep 19 18:58:48 visp-1 Measured 1068 cycles TSC warp between CPUs, turning 
off TSC clock.
Sep 19 19:16:23 visp-1 Measured 1068 cycles TSC warp between CPUs, turning 
off TSC clock.
Sep 22 03:03:21 visp-1 Measured 912 cycles TSC warp between CPUs, turning off 
TSC clock.
Oct  1 12:06:21 visp-1 Measured 1176 cycles TSC warp between CPUs, turning 
off TSC clock.
Oct  1 12:35:16 visp-1 Measured 984 cycles TSC warp between CPUs, turning off 
TSC clock.
Oct  1 12:53:37 visp-1 Measured 1212 cycles TSC warp between CPUs, turning 
off TSC clock.
Oct  1 13:12:09 visp-1 Measured 1248 cycles TSC warp between CPUs, turning 
off TSC clock.
Oct  1 13:13:45 visp-1 Measured 1116 cycles TSC warp between CPUs, turning 
off TSC clock.
Oct  1 13:15:21 visp-1 Measured 1092 cycles TSC warp between CPUs, turning 
off TSC clock.
Oct  1 13:16:56 visp-1 Measured 1092 cycles TSC warp between CPUs, turning 
off TSC clock.
Oct  1 13:18:32 visp-1 Measured 984 cycles TSC warp between CPUs, turning off 
TSC clock.
Oct  1 13:20:07 visp-1 Measured 1020 cycles TSC warp between CPUs, turning 
off TSC clock.
Oct  1 13:21:43 visp-1 Measured 1116 cycles TSC warp between CPUs, turning 
off TSC clock.
Oct  1 13:23:18 visp-1 Measured 1008 cycles TSC warp between CPUs, turning 
off TSC clock.
Oct  1 13:24:54 visp-1 Measured 1032 cycles TSC warp between CPUs, turning 
off TSC clock.
Oct  1 13:26:29 visp-1 Measured 996 cycles TSC warp between CPUs, turning off 
TSC clock.
Oct  1 13:28:05 visp-1 Measured 1236 cycles TSC warp between CPUs, turning 
off TSC clock.
Oct  1 13:29:40 visp-1 Measured 1332 cycles TSC warp between CPUs, turning 
off TSC clock.
Oct  1 13:34:24 visp-1 Measured 1152 cycles TSC warp between CPUs, turning 
off TSC clock.
Oct 10 02:02:25 visp-1 Measured 1056 cycles TSC warp between CPUs, turning 
off TSC clock.
Oct 10 16:07:34 visp-1 Measured 972 cycles TSC warp between CPUs, turning off 
TSC clock.
Oct 10 16:22:40 visp-1 Measured 1140 cycles TSC warp between CPUs, turning 
off TSC clock.
Oct 10 16:40:09 visp-1 Measured 996 cycles TSC warp between CPUs, turning off 
TSC clock.
Oct 26 16:28:40 visp-1 Measured 1152 cycles TSC warp between CPUs, turning 
off TSC clock.
Oct 26 17:14:13 visp-1 Measured 972 cycles TSC warp between CPUs, turning off 
TSC clock.
Oct 26 17:24:57 visp-1 Measured 900 cycles TSC warp between CPUs, turning off 
TSC clock.
Oct 26 19:00:51 visp-1 Measured 1020 cycles TSC warp between CPUs, turning 
off TSC clock.
Oct 26 22:15:21 visp-1 Measured 1032 cycles TSC warp between CPUs, turning 
off TSC clock.
Oct 26 22:29:35 visp-1 Measured 768 cycles TSC warp between CPUs, turning off 
TSC clock.
Oct 27 10:41:49 visp-1 Measured 1032 cycles TSC warp between CPUs, turning 
off TSC clock.
Oct 27 11:37:30 visp-1 Measured 852 cycles TSC warp between CPUs, turning off 
TSC clock.
Oct 27 11:58:26 visp-1 Measured 1092 cycles TSC warp between CPUs, turning 
off TSC clock.
Oct 27 13:36:39 visp-1 Measured 1044 cycles TSC warp between CPUs, turning 
off TSC clock.
Oct 28 00:34:37 visp-1 Measured 792 cycles TSC warp between CPUs, turning off 
TSC clock.
Nov 18 22:31:00 visp-1 Measured 936 cycles TSC warp between CPUs, turning off 
TSC clock.
Jan 10 13:41:51 visp-1 Measured 1020 cycles TSC warp between CPUs, turning 
off TSC clock.


cpuinfo (it is Dual Xeon with HT PowerEdge)

visp-1 log # cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 15
model           : 6
model name      : Intel(R) Xeon(TM) CPU 3.20GHz
stepping        : 4
cpu MHz         : 3192.070
cache size      : 2048 KB
physical id     : 0
siblings        : 4
core id         : 0
cpu cores       : 2
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 6
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca 
cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm 
constant_tsc pebs bts sync_rdtsc pni monitor ds_cpl vmx cid cx16 xtpr lahf_lm
bogomips        : 6388.02
clflush size    : 64

processor       : 1
vendor_id       : GenuineIntel
cpu family      : 15
model           : 6
model name      : Intel(R) Xeon(TM) CPU 3.20GHz
stepping        : 4
cpu MHz         : 3192.070
cache size      : 2048 KB
physical id     : 0
siblings        : 4
core id         : 0
cpu cores       : 2
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 6
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca 
cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm 
constant_tsc pebs bts sync_rdtsc pni monitor ds_cpl vmx cid cx16 xtpr lahf_lm
bogomips        : 6383.74
clflush size    : 64

processor       : 2
vendor_id       : GenuineIntel
cpu family      : 15
model           : 6
model name      : Intel(R) Xeon(TM) CPU 3.20GHz
stepping        : 4
cpu MHz         : 3192.070
cache size      : 2048 KB
physical id     : 0
siblings        : 4
core id         : 1
cpu cores       : 2
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 6
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca 
cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm 
constant_tsc pebs bts sync_rdtsc pni monitor ds_cpl vmx cid cx16 xtpr lahf_lm
bogomips        : 6383.75
clflush size    : 64

processor       : 3
vendor_id       : GenuineIntel
cpu family      : 15
model           : 6
model name      : Intel(R) Xeon(TM) CPU 3.20GHz
stepping        : 4
cpu MHz         : 3192.070
cache size      : 2048 KB
physical id     : 0
siblings        : 4
core id         : 1
cpu cores       : 2
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 6
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca 
cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm 
constant_tsc pebs bts sync_rdtsc pni monitor ds_cpl vmx cid cx16 xtpr lahf_lm
bogomips        : 6383.74
clflush size    : 64


--
Denys Fedoryshchenko
Technical Manager
Virtual ISP S.A.L.


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

* Re: TSC && HPET calibration
  2008-01-10 12:36 TSC && HPET calibration Denys Fedoryshchenko
@ 2008-01-15 10:17 ` Andrew Morton
  2008-01-15 13:54   ` Denys Fedoryshchenko
  2008-01-16 13:47   ` Thomas Gleixner
  0 siblings, 2 replies; 6+ messages in thread
From: Andrew Morton @ 2008-01-15 10:17 UTC (permalink / raw)
  To: Denys Fedoryshchenko; +Cc: linux-kernel, Ingo Molnar, Thomas Gleixner

On Thu, 10 Jan 2008 14:36:12 +0200 "Denys Fedoryshchenko" <denys@visp.net.lb> 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?

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

* Re: TSC && HPET calibration
  2008-01-15 10:17 ` Andrew Morton
@ 2008-01-15 13:54   ` Denys Fedoryshchenko
  2008-01-16 13:47   ` Thomas Gleixner
  1 sibling, 0 replies; 6+ messages in thread
From: Denys Fedoryshchenko @ 2008-01-15 13:54 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel, Ingo Molnar, Thomas Gleixner

Latest, 2.6.24-rc7, and 2.6.23 is the same.

If more information required, tell me. It is btw not latest (not based on 
Core2) Xeon.


On Tue, 15 Jan 2008 02:17:20 -0800, Andrew Morton wrote
> On Thu, 10 Jan 2008 14:36:12 +0200 "Denys Fedoryshchenko" 
> <denys@visp.net.lb> 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?


--
Denys Fedoryshchenko
Technical Manager
Virtual ISP S.A.L.


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

* Re: TSC && HPET calibration
  2008-01-15 10:17 ` Andrew Morton
  2008-01-15 13:54   ` Denys Fedoryshchenko
@ 2008-01-16 13:47   ` Thomas Gleixner
  1 sibling, 0 replies; 6+ messages in thread
From: Thomas Gleixner @ 2008-01-16 13:47 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Denys Fedoryshchenko, linux-kernel, Ingo Molnar

On Tue, 15 Jan 2008, Andrew Morton wrote:
> On Thu, 10 Jan 2008 14:36:12 +0200 "Denys Fedoryshchenko" <denys@visp.net.lb> 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

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

end of thread, other threads:[~2008-01-16 13:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-10 12:36 TSC && HPET calibration Denys Fedoryshchenko
2008-01-15 10:17 ` Andrew Morton
2008-01-15 13:54   ` Denys Fedoryshchenko
2008-01-16 13:47   ` Thomas Gleixner
  -- strict thread matches above, loose matches on Subject: below --
2007-09-16 13:02 Frans Pop
2007-09-16 10:47 Sami Farin

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