summaryrefslogtreecommitdiff
path: root/src/soc/intel/common/block/sgx/sgx.c
diff options
context:
space:
mode:
authorMichael Niewöhner <foss@mniewoehner.de>2020-08-05 21:36:11 +0200
committerMichael Niewöhner <foss@mniewoehner.de>2021-04-22 19:41:29 +0000
commit6e64c1a4e09de71d359c3123f7be1dfceba1f0a1 (patch)
tree0e53221b6d5a9da8dee9224a6b8b6b27d546a62b /src/soc/intel/common/block/sgx/sgx.c
parent70299d916891b718606cad151cf56b1d410cf96a (diff)
soc/intel/common,skl: set MSR LT_LOCK_MEMORY once, not per thread
The MSR LT_LOCK_MEMORY is package-scoped, not thread-scoped. Only set it once. Tested on Acer ES1-572 by checking chipsec results. Change-Id: If3d61fcbc9ab99b6c1b7b74881e6d9c6be04a498 Signed-off-by: Michael Niewöhner <foss@mniewoehner.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/44242 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Diffstat (limited to 'src/soc/intel/common/block/sgx/sgx.c')
-rw-r--r--src/soc/intel/common/block/sgx/sgx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/soc/intel/common/block/sgx/sgx.c b/src/soc/intel/common/block/sgx/sgx.c
index b5c8944a9b..c391ec7a96 100644
--- a/src/soc/intel/common/block/sgx/sgx.c
+++ b/src/soc/intel/common/block/sgx/sgx.c
@@ -205,9 +205,9 @@ void sgx_configure(void *unused)
if (owner_epoch_update() < 0)
return;
+ /* Ensure to lock memory before reloading microcode patch */
if (CONFIG(SOC_INTEL_COMMON_BLOCK_SGX_LOCK_MEMORY))
- /* Ensure to lock memory before reload microcode patch */
- cpu_lt_lock_memory(NULL);
+ cpu_lt_lock_memory();
/*
* Update just on the first CPU in the core. Other siblings