coreboot-kgpe-d16/src/soc/intel
Robbie Zhang 7de031759b soc/intel/skylake: Add SGX initialization
This patch implements SGX initialization steps in coreboot per Intel SGX
BWG rev 2.0.8 for Kaby Lake SoC. If enabled on a Kabylake device, SoC
capability and PRM (processor reserved memory) of desired size (needs to
be configured through PrmrrSize) are provisioned for later software
stack to use SGX (i.e., run SGX enclaves).

One issue is still puzzling and needs to be addressed: by calling
configure_sgx() in cpu_core_init() which is the per-thread function, SGX
is always failing for thread 0 but is successful for other 3 threads.
I had to call configure_sgx() again from soc_init_cpus() which is the
BSP-only function to make it enable on the BSP.

Another pending work is the implementation for the Owner Epoch update
which shall be added later.

BUG=chrome-os-partner:62438
BRANCH=NONE
TEST=Tested on Eve, verified SGX activation is successful on all threads.

Change-Id: I8b64284875eae061fa8e7a01204d48d320a285a9
Signed-off-by: Robbie Zhang <robbie.zhang@intel.com>
Reviewed-on: https://review.coreboot.org/18445
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
2017-03-23 19:57:17 +01:00
..
apollolake soc/intel/apollolake: Add CQOS config for CAR common code 2017-03-22 04:55:13 +01:00
baytrail google/rambi: add explicit pull-down for ram-id 2017-02-14 13:03:53 +01:00
braswell soc/intel/braswell: Fix most of the issues detected by checkpatch 2017-03-17 02:36:36 +01:00
broadwell soc/intel/broadwell: Fix other issues detected by checkpatch 2017-03-17 19:21:53 +01:00
common soc/intel/skylake: Add SGX initialization 2017-03-23 19:57:17 +01:00
fsp_baytrail fsp_baytrail: Enable graphic init per default 2017-01-13 17:42:26 +01:00
fsp_broadwell_de intel: Fix copy/paste error in license text 2017-01-16 12:57:05 +01:00
quark soc/intel/quark: Read the rmu.bin file from read-only region 2017-03-15 05:12:15 +01:00
sch nb/intel/*/northbridge.c: Remove #include <device/hypertransport.h> 2017-01-06 18:15:03 +01:00
skylake soc/intel/skylake: Add SGX initialization 2017-03-23 19:57:17 +01:00