Re: [PATCH] x86/tsc: Add tsc_tuned_baseclk flag disabling CPUID.16h use for tsc calibration

From: Andy Lutomirski
Date: Fri Jan 17 2020 - 11:37:17 EST




> On Jan 17, 2020, at 7:21 AM, Krzysztof Piecuch <piecuch@xxxxxxxxxxxxxx> wrote:
>
> ïChanging base clock frequency directly impacts tsc hz but not CPUID.16h
> values. An overclocked CPU supporting CPUID.16h and partial CPUID.15h
> support will set tsc hz according to "best guess" given by CPUID.16h
> relying on tsc_refine_calibration_work to give better numbers later.
> tsc_refine_calibration_work will refuse to do its work when the outcome is
> off the early tsc hz value by more than 1% which is certain to happen on an
> overclocked system.
>

Wouldnât it be better to have an option tsc_max_refinement= to increase the 1%?