coreboot-kgpe-d16/Documentation
Patrick Rudolph 05bad430b6 soc/intel/common/block/sgx: Fix crash in MP init
On Hyper-Threading enabled platforms the MSR_PRMRR_PHYS_MASK was written
when already locked by the sibling thread. In addition it loads microcode
updates on all threads.

To prevent such race conditions only call the code on one thread, such
that the MSRs are only written once per core and the microcode is only
loaded once for each core.

Also add comments that describe the scope of the MSR that is being
written to and mention the Intel documents used for reference.

Fixes crash in SGX MP init.
Tested on Supermicro X11SSH-TF.

Change-Id: I7102da028a449c60ca700b3f9ccda9017aa6d6b5
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/35312
Reviewed-by: Christian Walter <christian.walter@9elements.com>
Reviewed-by: Philipp Deppenwiese <zaolin.daisuki@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2019-10-15 08:19:02 +00:00
..
_static
acpi
arch
community Documentation: Add our issue tracker to services 2019-10-07 01:08:40 +00:00
contributing
doxygen
drivers
flash_tutorial
getting_started Documentation: Fix typo 2019-10-07 01:07:21 +00:00
gfx Documentation/gfx: Update support list of libgfxinit 2019-10-14 19:33:22 +00:00
ifdtool ifdtool: Add validate option to ifdtool 2019-10-03 15:28:15 +00:00
Intel
lib
mainboard soc/intel/common/block/sgx: Fix crash in MP init 2019-10-15 08:19:02 +00:00
northbridge
releases Documentation: Update list of release notes 2019-10-07 01:06:49 +00:00
RFC Documentation/RFC: Drop obsolete doc 2019-10-07 01:08:55 +00:00
security
soc Documentation/soc/amd: Add Family 15h 2019-10-01 15:13:29 +00:00
superio Documentation: remove invalid fragment type specifier 2019-10-07 01:07:47 +00:00
technotes
tutorial Documentation: rename "Rookie guide" to "tutorial" 2019-09-16 21:17:33 +00:00
vendorcode Documentation/vendorcode: Add Eltan to vendor index 2019-09-25 12:53:07 +00:00
AMD-S3.txt
beginverbatim.tex
cbfs.txt
codeflow.svg
coding_style.md
conf.py
COPYING
coreboot_logo.png
corebootBuildingGuide.tex
distributions.md
Doxyfile.coreboot
Doxyfile.coreboot_simple
endverbatim.tex
gcov.txt
hypertransport.svg
index.md Documentation: start documenting our services 2019-10-07 01:07:06 +00:00
mainboard_io_trap_handler_sample.c
Makefile
Makefile.sphinx
payloads.md
POSTCODES
util.md ifdtool: Add validate option to ifdtool 2019-10-03 15:28:15 +00:00