coreboot/src/soc/intel
Pratikkumar Prajapati 62ceabc4d1 soc/intel/common: Merge TME new key gen and exclusion range configs
Merge TME_KEY_REGENERATION_ON_WARM_BOOT and
TME_EXCLUDE_CBMEM_ENCRYPTION config options under new config option
named TME_KEY_REGENERATION_ON_WARM_BOOT.

Program Intel TME to generate a new key for each warm boot. TME always
generates a new key on each cold boot. With this option enabled TME
generates a new key even in warm boot. Without this option TME reuses
the key for warm boot.

If a new key is generated on warm boot, DRAM contents from previous
warm boot will not get decrypted. This creates issue in accessing
CBMEM region from previous warm boot. To mitigate the issue coreboot
also programs exclusion range. Intel TME does not encrypt physical
memory range set in exclusion range. Current coreboot implementation
programs TME to exclude CBMEM region. When this config option is
enabled, coreboot instructs Intel FSP to program TME to generate
a new key on every warm boot and also exclude CBMEM region from being
encrypted by TME.

BUG=b:276120526
TEST=Able to build rex.

Change-Id: I19d9504229adb1abff2ef394c4ca113c335099c2
Signed-off-by: Pratikkumar Prajapati <pratikkumar.v.prajapati@intel.corp-partner.google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/76879
Reviewed-by: Sridhar Siricilla <sridhar.siricilla@intel.com>
Reviewed-by: Subrata Banik <subratabanik@google.com>
Reviewed-by: Kapil Porwal <kapilporwal@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2023-08-03 12:56:10 +00:00
..
alderlake soc/intel/alderlake/meminit.c: Guard CsPiStartHighinEct properly 2023-08-03 11:19:13 +00:00
apollolake soc/intel/apl: Hide PMC/IPC ACPI device from Windows 2023-07-31 14:07:51 +00:00
baytrail acpi: Move ECAM resource below PNP0C02 device in a common place 2023-07-20 10:38:42 +00:00
braswell acpi: Move ECAM resource below PNP0C02 device in a common place 2023-07-20 10:38:42 +00:00
broadwell soc/intel/broadwell/include/soc/me.h: Use C99 flexible arrays 2023-08-01 12:52:47 +00:00
cannonlake soc/intel/cannonlake: Hook up ucode for CML-S 2023-07-14 18:49:33 +00:00
common soc/intel/common: Merge TME new key gen and exclusion range configs 2023-08-03 12:56:10 +00:00
denverton_ns acpi: Move ECAM resource below PNP0C02 device in a common place 2023-07-20 10:38:42 +00:00
elkhartlake soc/intel: Rename pcr.asl to pch_pcr.asl 2023-07-13 16:37:56 +00:00
jasperlake soc/intel: Rename pcr.asl to pch_pcr.asl 2023-07-13 16:37:56 +00:00
meteorlake soc/intel/meteorlake: Remove dummy CPU_SPECIFIC_OPTIONS 2023-07-25 13:23:54 +00:00
skylake acpi: Move ECAM resource below PNP0C02 device in a common place 2023-07-20 10:38:42 +00:00
tigerlake soc/intel: Rename pcr.asl to pch_pcr.asl 2023-07-13 16:37:56 +00:00
xeon_sp soc/intel/xeon/spr: Improve RMT configuration 2023-07-25 13:21:16 +00:00
Makefile.inc soc: Add SPDX license headers to Makefiles 2022-10-31 03:27:13 +00:00