Re: [edk2-devel] [PATCH] UefiPayloadPkg: Not use BaseCpuTimerLib by default.

2022-01-17 Thread Guo Dong
Reviewed-by: Guo Dong -Original Message- From: Liu, Zhiguang Sent: Thursday, January 13, 2022 11:15 PM To: devel@edk2.groups.io Cc: Dong, Guo ; Ni, Ray ; Ma, Maurice ; You, Benjamin Subject: [PATCH] UefiPayloadPkg: Not use BaseCpuTimerLib by default. For recent X86 CPU, 0x15 CPUID in

Re: [edk2-devel] [PATCH] UefiPayloadPkg: Not use BaseCpuTimerLib by default.

2022-01-14 Thread Ma, Maurice
Reviewed-by: Maurice Ma > -Original Message- > From: Liu, Zhiguang > Sent: Thursday, January 13, 2022 22:15 > To: devel@edk2.groups.io > Cc: Dong, Guo ; Ni, Ray ; Ma, > Maurice ; You, Benjamin > > Subject: [PATCH] UefiPayloadPkg: Not use BaseCpuTimerLib by default. > > For recent X86 C

[edk2-devel] [PATCH] UefiPayloadPkg: Not use BaseCpuTimerLib by default.

2022-01-13 Thread Zhiguang Liu
For recent X86 CPU, 0x15 CPUID instruction will return Time Stamp Counter. This is recommended way to get the time, and also how BaseCpuTimerLib works However, some CPU doesn't support this feature, so disable it by default. Cc: Guo Dong Cc: Ray Ni Cc: Maurice Ma Cc: Benjamin You Signed-off-by