[U-Boot] [PATCH v6 5/8] x86: slimbootloader: Set TSC information for tsc_timer

Andy Shevchenko andy.shevchenko at gmail.com
Fri Jul 26 10:36:58 UTC 2019


On Fri, Jul 26, 2019 at 10:00 AM Park, Aiden <aiden.park at intel.com> wrote:
>
> Slim Bootloader already calibrated TSC and provides it to U-Boot.
> Therefore, U-Boot does not have to re-calibrate TSC.
> Configuring tsc_base and clock_rate makes x86 tsc_timer driver
> bypass TSC calibration and use the provided TSC frequency.
> - Get TSC frequency from performance info hob
> - Set tsc_base and clock_rate for tsc_timer driver

I'm still not convinced to have this. As kernel followed by U-Boot we
thrust hardware more than something else.
One more layer in between is usually an additional point to be error-prone.

So, if something we may get directly from hardware, I consider better
to get it from there.

Of course, data structures can be left for sake of self-documentation.

-- 
With Best Regards,
Andy Shevchenko


More information about the U-Boot mailing list