summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSubrata Banik <subratabanik@google.com>2022-08-23 19:29:07 +0530
committerTim Wawrzynczak <twawrzynczak@chromium.org>2022-08-24 21:26:59 +0000
commit766bd0040f082e82b3af199fb392c462444fb79d (patch)
tree7366da60b9654609fecf5bf6329642c3b61e24ce
parent184ac20fdc041a81e6714aa6fce893c49c91b5ec (diff)
soc/intel/adl: Consider INTEL_TME config prior TME MSR programming
This patch brings INTEL_TME config check prior programming TME Set Activation Core MSR on all cores. TEST=Able to boot Google/Taeko to OS. Signed-off-by: Subrata Banik <subratabanik@google.com> Change-Id: I8af7e305da1050f443929ab33be556e713e53e9a Reviewed-on: https://review.coreboot.org/c/coreboot/+/66976 Reviewed-by: Tarun Tuli <taruntuli@google.com> Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r--src/soc/intel/alderlake/cpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/intel/alderlake/cpu.c b/src/soc/intel/alderlake/cpu.c
index dce5478f80..e339d6d2e9 100644
--- a/src/soc/intel/alderlake/cpu.c
+++ b/src/soc/intel/alderlake/cpu.c
@@ -141,7 +141,7 @@ void soc_core_init(struct device *cpu)
/* Enable Turbo */
enable_turbo();
- if (is_tme_supported())
+ if (CONFIG(INTEL_TME) && is_tme_supported())
set_tme_core_activate();
}