Skip to content

Commit b511203

Browse files
lenbKAGA-KOKO
authored andcommitted
x86/tsc: Fix erroneous TSC rate on Skylake Xeon
The INTEL_FAM6_SKYLAKE_X hardcoded crystal_khz value of 25MHZ is problematic: - SKX workstations (with same model # as server variants) use a 24 MHz crystal. This results in a -4.0% time drift rate on SKX workstations. - SKX servers subject the crystal to an EMI reduction circuit that reduces its actual frequency by (approximately) -0.25%. This results in -1 second per 10 minute time drift as compared to network time. This issue can also trigger a timer and power problem, on configurations that use the LAPIC timer (versus the TSC deadline timer). Clock ticks scheduled with the LAPIC timer arrive a few usec before the time they are expected (according to the slow TSC). This causes Linux to poll-idle, when it should be in an idle power saving state. The idle and clock code do not graciously recover from this error, sometimes resulting in significant polling and measurable power impact. Stop using native_calibrate_tsc() for INTEL_FAM6_SKYLAKE_X. native_calibrate_tsc() will return 0, boot will run with tsc_khz = cpu_khz, and the TSC refined calibration will update tsc_khz to correct for the difference. [ tglx: Sanitized change log ] Fixes: 6baf3d6 ("x86/tsc: Add additional Intel CPU models to the crystal quirk list") Signed-off-by: Len Brown <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Cc: [email protected] Cc: Prarit Bhargava <[email protected]> Cc: [email protected] Link: https://lkml.kernel.org/r/ff6dcea166e8ff8f2f6a03c17beab2cb436aa779.1513920414.git.len.brown@intel.com
1 parent da4ae6c commit b511203

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

arch/x86/kernel/tsc.c

-1
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,6 @@ unsigned long native_calibrate_tsc(void)
602602
case INTEL_FAM6_KABYLAKE_DESKTOP:
603603
crystal_khz = 24000; /* 24.0 MHz */
604604
break;
605-
case INTEL_FAM6_SKYLAKE_X:
606605
case INTEL_FAM6_ATOM_DENVERTON:
607606
crystal_khz = 25000; /* 25.0 MHz */
608607
break;

0 commit comments

Comments
 (0)