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
..
Intel soc/intel: Obsolete mmap_region_granularity() 2019-08-07 05:38:14 +00:00
RFC Documentation/RFC: Drop obsolete doc 2019-10-07 01:08:55 +00:00
_static Documentation: Add static CSS file to fix tables 2018-05-14 17:21:37 +00:00
acpi Documentation/acpi: Add new document on adding ACPI devices to devicetree 2019-08-29 17:31:24 +00:00
arch Documentation: Advertise support for OpenSBI 2019-08-06 12:04:01 +00:00
community Documentation: Add our issue tracker to services 2019-10-07 01:08:40 +00:00
contributing Docs/project_ideas: Add a "parse SerialICE traces" project idea 2019-03-09 12:46:09 +00:00
doxygen
drivers Documentation/drivers: Fix typo in index.md 2019-08-02 10:00:44 +00:00
flash_tutorial Documentation/flash_tutorial/index.md: warn about dots painted on ICs 2018-12-05 14:10:12 +00:00
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
lib arch/riscv: Enable FIT support 2019-08-08 13:03:59 +00:00
mainboard soc/intel/common/block/sgx: Fix crash in MP init 2019-10-15 08:19:02 +00:00
northbridge Documentation: Warn about ME cleaner on Sandy Bridge 2019-05-29 20:01:12 +00:00
releases Documentation: Update list of release notes 2019-10-07 01:06:49 +00:00
security security/intel: Add TXT infrastructure 2019-09-02 04:52:04 +00:00
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 Documentation: Add technote/design doc for mitigating ReBAR issue 2017-05-01 00:47:09 +02:00
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 Documentation: change coreboot to lowercase 2017-06-12 04:06:40 +02:00
COPYING Documentation/COPYING: Remove trailing whitespace 2018-04-27 09:10:20 +00:00
Doxyfile.coreboot Documentation: Update doxygen config files 2018-05-22 07:27:58 +00:00
Doxyfile.coreboot_simple Documentation: Update doxygen config files 2018-05-22 07:27:58 +00:00
Makefile Documentation: Allow passing arguments into make livesphinx 2019-02-05 21:15:37 +00:00
Makefile.sphinx Documentation: Improve message printed by livesphinx target 2018-10-11 01:22:35 +00:00
POSTCODES post_code: add post code for video initialization failure 2019-05-22 17:45:11 +00:00
beginverbatim.tex
cbfs.txt Fix typos involving "the the" 2018-12-18 13:24:28 +00:00
codeflow.svg Documentation: Remove whitespace before tab 2018-06-04 11:48:23 +00:00
coding_style.md Documentation/coding_style.md: Update line length limit 2019-09-04 10:54:41 +00:00
conf.py Documentation: Fix markdown inline code 2018-10-22 12:02:28 +00:00
corebootBuildingGuide.tex Use git HTTP URLs without `/p` in it 2018-04-17 10:38:06 +00:00
coreboot_logo.png
distributions.md docs/distributions: remove entry for John Lewis' ROMs 2019-08-02 09:59:44 +00:00
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
payloads.md Documentation: Describe our ecosystem 2019-02-05 21:21:45 +00:00
util.md ifdtool: Add validate option to ifdtool 2019-10-03 15:28:15 +00:00