Pratikkumar V Prajapati has uploaded a new patch set (#2). ( https://review.coreboot.org/21276 )
Change subject: soc/intel/apollolake: Add SGX support
......................................................................
soc/intel/apollolake: Add SGX support
- Call into commmon SGX code to configure core PRMRR
and follow other SGX init seqeuence.
- Report correct cbmem top with PRMRR enabled
- Enable SOC_INTEL_COMMON_BLOCK_SGX for both APL/GLK, so that
build does not break.
- Enable SOC_INTEL_COMMON_BLOCK_CPU_MPINIT for GLK, as MP init needs
to be completed before calling into fsp-s for SGX.
Change-Id: I9331cf5b2cbc86431e2749b84a55f77f7f3c5960
Signed-off-by: Pratik Prajapati <pratikkumar.v.prajapati(a)intel.com>
---
M src/soc/intel/apollolake/Kconfig
M src/soc/intel/apollolake/Makefile.inc
M src/soc/intel/apollolake/cpu.c
A src/soc/intel/apollolake/include/soc/msr.h
M src/soc/intel/apollolake/memmap.c
5 files changed, 61 insertions(+), 4 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/76/21276/2
--
To view, visit https://review.coreboot.org/21276
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I9331cf5b2cbc86431e2749b84a55f77f7f3c5960
Gerrit-Change-Number: 21276
Gerrit-PatchSet: 2
Gerrit-Owner: Pratikkumar V Prajapati <pratikkumar.v.prajapati(a)intel.com>
Pratikkumar V Prajapati has uploaded this change for review. ( https://review.coreboot.org/21275
Change subject: soc/intel/common/sgx: provide weak implementation of cpu_lock_sgx_memory()
......................................................................
soc/intel/common/sgx: provide weak implementation of cpu_lock_sgx_memory()
SOC/CPU specific provides the actual implementation if its needed.
Not all SOC/CPU needs to perform this init sequence.
Change-Id: I9212e99488905d245983accc8a49a94061b22119
Signed-off-by: Pratik Prajapati <pratikkumar.v.prajapati(a)intel.com>
---
M src/soc/intel/common/block/sgx/sgx.c
1 file changed, 6 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/75/21275/1
diff --git a/src/soc/intel/common/block/sgx/sgx.c b/src/soc/intel/common/block/sgx/sgx.c
index a199a83..7480d4b 100644
--- a/src/soc/intel/common/block/sgx/sgx.c
+++ b/src/soc/intel/common/block/sgx/sgx.c
@@ -167,6 +167,12 @@
return 0;
}
+/* SOC/CPU specific provides the actual implementation if its needed */
+__attribute__((weak)) void cpu_lock_sgx_memory(void)
+{
+ /* Do nothing*/
+}
+
void sgx_configure(void)
{
device_t dev = SA_DEV_ROOT;
--
To view, visit https://review.coreboot.org/21275
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I9212e99488905d245983accc8a49a94061b22119
Gerrit-Change-Number: 21275
Gerrit-PatchSet: 1
Gerrit-Owner: Pratikkumar V Prajapati <pratikkumar.v.prajapati(a)intel.com>