
8 Aug
2019
8 Aug
'19
4:53 p.m.
On Thu, Aug 8, 2019 at 10:35 PM Bin Meng bmeng.cn@gmail.com wrote:
On Sat, Aug 3, 2019 at 4:30 PM Park, Aiden aiden.park@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
Signed-off-by: Aiden Park aiden.park@intel.com Reviewed-by: Bin Meng bmeng.cn@gmail.com
Changes in v6:
- Use EFI_GUID
- Add more comments while setting tsc_base and clock_rate
- Apply code-review comments
Changes in v3:
- Use HOB function from the common HOB library
arch/x86/cpu/slimbootloader/slimbootloader.c | 37 +++++++++++++++++++ .../asm/arch-slimbootloader/slimbootloader.h | 28 ++++++++++++++ 2 files changed, 65 insertions(+)
Tested-by: Bin Meng bmeng.cn@gmail.com
applied to u-boot-x86, thanks!