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
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
Unknown Object (File)
Nov 15 2024, 5:14 AM
Unknown Object (File)
Nov 7 2024, 4:41 AM
Unknown Object (File)
Nov 5 2024, 12:57 PM
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 Not Applicable
Unit
Tests Not Applicable

Event Timeline

markj added inline comments.
sys/x86/x86/tsc.c
139 ↗(On Diff #62499)

"the SDM"

140 ↗(On Diff #62499)

Should be "did not work".

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