From 85e619c51472940f8350ceee8c487f4e54d7a2d9 Mon Sep 17 00:00:00 2001 From: Subrata Banik Date: Mon, 5 Dec 2022 20:52:38 +0530 Subject: soc/intel/meteorlake: Implement SoC override to set CPU privilege level This patch implements SoC overrides to set CPU privilege level for Meteor Lake SoC. Change-Id: I33794f51e57dd8e0ffe61dfd2f91c6ef3f9187c9 Signed-off-by: Subrata Banik Reviewed-on: https://review.coreboot.org/c/coreboot/+/70352 Reviewed-by: Ivy Jian Reviewed-by: Kapil Porwal Tested-by: build bot (Jenkins) --- src/soc/intel/meteorlake/cpu.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/soc/intel/meteorlake/cpu.c b/src/soc/intel/meteorlake/cpu.c index 55ab15c419..fbf625e1c2 100644 --- a/src/soc/intel/meteorlake/cpu.c +++ b/src/soc/intel/meteorlake/cpu.c @@ -29,6 +29,15 @@ bool cpu_soc_is_in_untrusted_mode(void) return !!(msr.lo & ENABLE_IA_UNTRUSTED); } +void cpu_soc_bios_done(void) +{ + msr_t msr; + + msr = rdmsr(MSR_BIOS_DONE); + msr.lo |= ENABLE_IA_UNTRUSTED; + wrmsr(MSR_BIOS_DONE, msr); +} + uint8_t get_supported_lpm_mask(void) { return LPM_S0i2_0 | LPM_S0i2_1 | LPM_S0i2_2; -- cgit v1.2.3