payloads/edk2: Disable the CPU Timer Lib unless supported
commit7bbc9a512aa1e19b8cb172fa3ad1cea5743bd3f3
authorSean Rhodes <sean@starlabs.systems>
Mon, 18 Jul 2022 10:31:00 +0000 (18 11:31 +0100)
committerMartin L Roth <gaumless@gmail.com>
Sat, 22 Oct 2022 17:11:25 +0000 (22 17:11 +0000)
tree86bededa1834752310365ad597d9c42727eea505
parent27c8bf0cc936beb3d7b7012fa6d683ec74ed940f
payloads/edk2: Disable the CPU Timer Lib unless supported

For recent X86 CPUs, the 0x15 CPUID instruction will return Time Stamp
Counter Frequence. For CPUs that do not support this instruction, EDK2
must include a different library which is the reason why this must be
configured at build time.

If this is enabled, and the CPU doesn't support 0x15, it will fail to
boot. If is not enabled, and the CPU does support 0x15, it will still
boot but without support for the leaf. Consequently, disabled it by
default.

Signed-off-by: Sean Rhodes <sean@starlabs.systems>
Change-Id: I4f0f43ce50c4f6f7eb03063fff34d015468f6daa
Reviewed-on: https://review.coreboot.org/c/coreboot/+/65950
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Lean Sheng Tan <sheng.tan@9elements.com>
13 files changed:
payloads/external/Makefile.inc
payloads/external/edk2/Kconfig
payloads/external/edk2/Makefile
src/soc/intel/alderlake/Kconfig
src/soc/intel/apollolake/Kconfig
src/soc/intel/cannonlake/Kconfig
src/soc/intel/denverton_ns/Kconfig
src/soc/intel/elkhartlake/Kconfig
src/soc/intel/icelake/Kconfig
src/soc/intel/jasperlake/Kconfig
src/soc/intel/meteorlake/Kconfig
src/soc/intel/skylake/Kconfig
src/soc/intel/tigerlake/Kconfig