Nathaniel L Desimone has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/36356 )
Change subject: soc/intel/cannonlake: set LT_LOCK_MEMORY at end of POST
......................................................................
Patch Set 2:
(1 comment)
https://review.coreboot.org/c/coreboot/+/36356/2/src/soc/intel/cannonlake/fi...
File src/soc/intel/cannonlake/finalize.c:
https://review.coreboot.org/c/coreboot/+/36356/2/src/soc/intel/cannonlake/fi...
PS2, Line 116: mp_run_on_all_cpus
Current testing results: […]
For #1) Your right that LT_LOCK_MEMORY is package scoped.
For #2) PAVPC is locked in the middle of FSP-S (not @ end of PEI), and TSEGMB is locked in FSP-M.
With SGX enabled, the flow needs to be this:
1. Pre-ucode SGX init
2. LT_LOCK_MEMORY
3. Reload ucode
4. Post-ucode SGX init
I don't see any good way of doing SGX enabling with SkipMpInit == 1 since #1 and #4 are in the FSP. This is one of the reasons we added CpuMpPpi.
With SGX disabled and SkipMpInit == 1, your change seems reasonable. I recommend you add an if statement here that only sets LT_LOCK_MEMORY iff FspmUpd->FspmConfig.SkipMpInit == 1.
--
To view, visit
https://review.coreboot.org/c/coreboot/+/36356
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Iaadd4996653c4f27d268b1c4773c1e2e86114912
Gerrit-Change-Number: 36356
Gerrit-PatchSet: 2
Gerrit-Owner: Michael Niewöhner
Gerrit-Reviewer: Arthur Heymans
arthur@aheymans.xyz
Gerrit-Reviewer: Michael Niewöhner
Gerrit-Reviewer: Nathaniel L Desimone
nathaniel.l.desimone@intel.com
Gerrit-Reviewer: Nico Huber
nico.h@gmx.de
Gerrit-Reviewer: Patrick Georgi
pgeorgi@google.com
Gerrit-Reviewer: Patrick Rudolph
siro@das-labor.org
Gerrit-Reviewer: Subrata Banik
subrata.banik@intel.com
Gerrit-Reviewer: Varshit B Pandya
varshit.b.pandya@intel.com
Gerrit-Reviewer: Varun Joshi
varun.joshi@intel.com
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-CC: Angel Pons
th3fanbus@gmail.com
Gerrit-CC: Paul Menzel
paulepanter@users.sourceforge.net
Gerrit-Comment-Date: Tue, 04 Aug 2020 23:56:31 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Angel Pons
th3fanbus@gmail.com
Comment-In-Reply-To: Michael Niewöhner
Gerrit-MessageType: comment