soc/intel/skylake: set MSR LT_LOCK_MEMORY only when using native MP init
FSP takes care of setting the MSR LT_LOCK_MEMORY when SkipMpInit=0. Thus, only set the lock when native MP init is used (SkipMpInit=1). Change-Id: I2758e87c6370f3244416a3170cfafe6df757bb78 Signed-off-by: Michael Niewöhner <foss@mniewoehner.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/44243 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
parent
6e64c1a4e0
commit
348f2a6370
|
@ -84,6 +84,11 @@ static void soc_lockdown(struct device *dev)
|
|||
pci_write_config8(dev, GEN_PMCON_A, reg8);
|
||||
}
|
||||
|
||||
/*
|
||||
* Lock chipset memory registers to protect SMM.
|
||||
* When SkipMpInit=0, this is done by FSP.
|
||||
*/
|
||||
if (!CONFIG(USE_INTEL_FSP_MP_INIT))
|
||||
cpu_lt_lock_memory();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue