coreboot-kgpe-d16/src/soc
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
..
broadcom/cygnus spi: Get rid of SPI_ATOMIC_SEQUENCING 2016-12-23 04:54:55 +01:00
dmp/vortex86ex
imgtec/pistachio spi: Get rid of SPI_ATOMIC_SEQUENCING 2016-12-23 04:54:55 +01:00
intel soc/intel/skylake: Add SGX initialization 2017-03-23 19:57:17 +01:00
lowrisc/lowrisc
marvell soc/marvell/mvmap2315: Mark mvmap2315_reset() as noreturn 2017-01-12 18:52:11 +01:00
mediatek/mt8173 mt8173: Enable Kconfig options for ChromeOS 2017-02-23 17:04:51 +01:00
nvidia
qualcomm qualcomm/ipq40xx: add vector operation method to SPI 2017-02-22 17:03:09 +01:00
rdc/r8610
rockchip rockchip/rk3399: set edp pclk to 25MHz 2017-01-24 09:34:04 +01:00
samsung
ucb/riscv