On Thu, Sep 29, 2022 at 09:14:51AM -0500, Scott Cheloha wrote: > This patch computes the TSC frequency for AMD family 17h and 19h CPUs > (Zen microarchitecture and up) from AMD-specific MSRs. Computing the > TSC frequency is faster than calibrating with a separate timer and > introduces no error. > > We already do this for Intel CPUs in tsc_freq_cpuid(). > > I got several successful test reports on family 17h and 19h CPUs in > response to this mail: > > https://marc.info/?l=openbsd-tech&m=166394236029484&w=2 > > The details for computing the frequency are in the PPR for 17h and > 19h, found here (page numbers are cited in the patch): > > https://www.amd.com/system/files/TechDocs/55570-B1-PUB.zip > https://www.amd.com/system/files/TechDocs/56214-B0-PUB.zip > > The process is slightly more complicated on AMD CPU families 10h-16h. > I will deal with them in a separate commit.
1 week bump.