Page MenuHomeFreeBSD

x86: Fall back to leaf 0x16 if TSC frequency is obtained by CPUID and leaf 0x15 is not functional.
ClosedPublic

Authored by kib on Sep 24 2019, 10:22 AM.
Tags
None
Referenced Files
F106134663: D21777.id62543.diff
Wed, Dec 25, 11:34 PM
F106134333: D21777.id62499.diff
Wed, Dec 25, 11:26 PM
F106103470: D21777.diff
Wed, Dec 25, 11:13 AM
Unknown Object (File)
Thu, Dec 19, 5:36 PM
Unknown Object (File)
Nov 22 2024, 12:10 PM
Unknown Object (File)
Nov 18 2024, 5:38 PM
Unknown Object (File)
Nov 15 2024, 10:07 AM
Unknown Object (File)
Nov 15 2024, 6:13 AM
Subscribers

Details

Summary

This should improve automatic TSC frequency determination on Skylake/Kabylake/... families, where 0x15 exists but does not provide all necessary information. SDM contains relatively strong wording against such uses of 0x16, but Intel does not give us any other way to obtain the frequency. Linux did the same in the commit 604dc9170f2435d27da5039a3efd757dceadc684

Based on submission by: Neel Chauhan <neel@neelc.org>
PR: 240475

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 26668

Event Timeline

markj added inline comments.
sys/x86/x86/tsc.c
139

"the SDM"

140

Should be "did not work".

This revision is now accepted and ready to land.Sep 24 2019, 3:17 PM