HomeFreeBSD

x86: Skip late calibration if our reference timer has low quality

Description

x86: Skip late calibration if our reference timer has low quality

Some AMD Geode-based systems end up using the 8254 PIT to calibrate the
TSC during late calibration, which doesn't work because that
timecounter's mask (65535) is much smaller than its frequency (1193182).
Moreover, early calibration is done against the 8254 timer anyway.

Work around the problem by simply using early calibration results if no
high-quality timecounters exist.

PR: 260868
Fixes: 22875f88799e ("x86: Implement deferred TSC calibration")
Reported and tested by: mike@sentex.net, Stefan Hegnauer <stefan.hegnauer@gmx.ch>
Reviewed by: imp, kib
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D33730

Details

Provenance
markjAuthored on Jan 3 2022, 3:14 PM
Reviewer
imp
Differential Revision
D33730: x86: Skip late calibration if our reference timer has low quality
Parents
rG5ba4192565c3: Remove an obsolete warning from NOTES
Branches
Unknown
Tags
Unknown