Page MenuHomeFreeBSD

x86: Defer TSC timecounter calibration
ClosedPublic

Authored by markj on Mar 4 2022, 6:27 PM.
Tags
None
Referenced Files
F58630538: D34444.diff
Tue, Mar 28, 2:40 AM
Unknown Object (File)
Sun, Mar 26, 5:37 PM
Unknown Object (File)
Wed, Mar 1, 4:06 PM
Unknown Object (File)
Feb 17 2023, 2:36 AM
Unknown Object (File)
Feb 14 2023, 9:56 AM
Unknown Object (File)
Dec 31 2022, 2:22 AM
Unknown Object (File)
Dec 14 2022, 10:03 PM
Unknown Object (File)
Dec 14 2022, 6:33 PM

Details

Summary

If we can't determine the TSC frequency using CPU registers, we need to
give a chance for hyperv to register a timecounter since an emulated
8254 might not be available.

Fixes: 84369dd52369 ("x86: Probe the TSC frequency earlier")
Reported by: khng, Shawn Webb

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 44659
Build 41547: arc lint + arc unit

Event Timeline

markj requested review of this revision.Mar 4 2022, 6:27 PM
khng added a subscriber: khng.

Works on the 10.0.20348.524 Hyper-V hypervisor, with AMD Epyc 7443 CPU.

This revision is now accepted and ready to land.Mar 4 2022, 6:42 PM
rpokala added inline comments.
sys/x86/x86/tsc.c
269

"a chance to a"

I think you're missing a verb...?

markj marked an inline comment as done.

Fix a typo.

This revision now requires review to proceed.Mar 4 2022, 7:08 PM
This revision is now accepted and ready to land.Mar 4 2022, 8:50 PM