diff --git a/meta-arm-bsp/recipes-security/trusted-services/secure-partitions/0024-Increase-SMM-gateway-UEFI-variable-macro-value.patch b/meta-arm-bsp/recipes-security/trusted-services/secure-partitions/0024-Increase-SMM-gateway-UEFI-variable-macro-value.patch new file mode 100644 index 00000000..00f80efb --- /dev/null +++ b/meta-arm-bsp/recipes-security/trusted-services/secure-partitions/0024-Increase-SMM-gateway-UEFI-variable-macro-value.patch @@ -0,0 +1,35 @@ +Upstream-Status: Pending [Not submitted to upstream yet] +Signed-off-by: Gowtham Suresh Kumar + +From 9b9261f73f93a5ac7ad823da376858b56560a08b Mon Sep 17 00:00:00 2001 +From: Gowtham Suresh Kumar +Date: Sun, 12 Dec 2021 17:07:03 +0000 +Subject: [PATCH] Increase SMM gateway UEFI variable macro value + +The maximum number of UEFI variables that be supported by SMM +gateway is currently 40. When more than 40 variables are written, +or read SMM gateway returns error code. Currently this value is +increased to 100 to support more UEFI variables. + +Signed-off-by: Gowtham Suresh Kumar +--- + deployments/smm-gateway/smm_gateway.c | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/deployments/smm-gateway/smm_gateway.c b/deployments/smm-gateway/smm_gateway.c +index 7828b3a..7e6729e 100644 +--- a/deployments/smm-gateway/smm_gateway.c ++++ b/deployments/smm-gateway/smm_gateway.c +@@ -20,6 +20,9 @@ + #define SMM_GATEWAY_NV_STORE_SN "sn:ffa:751bf801-3dde-4768-a514-0f10aeed1790:0" + #endif + ++/* Maximum number of UEFI variables set to 100 */ ++#define SMM_GATEWAY_MAX_UEFI_VARIABLES (100) ++ + /* Default maximum number of UEFI variables */ + #ifndef SMM_GATEWAY_MAX_UEFI_VARIABLES + #define SMM_GATEWAY_MAX_UEFI_VARIABLES (40) +-- +2.17.1 + diff --git a/meta-arm-bsp/recipes-security/trusted-services/ts-corstone1000.inc b/meta-arm-bsp/recipes-security/trusted-services/ts-corstone1000.inc index 5be9be79..5afb1310 100644 --- a/meta-arm-bsp/recipes-security/trusted-services/ts-corstone1000.inc +++ b/meta-arm-bsp/recipes-security/trusted-services/ts-corstone1000.inc @@ -34,6 +34,7 @@ SRC_URI:append = " \ file://0021-Add-psa-ipc-attestation-to-se-proxy.patch \ file://0022-Setup-its-backend-as-openamp-rpc-using-secure-storag.patch \ file://0023-add-psa-ipc-crypto-backend.patch \ + file://0024-Increase-SMM-gateway-UEFI-variable-macro-value.patch \ " SRC_URI_MBED = "git://github.com/ARMmbed/mbed-crypto.git;protocol=https;branch=development;name=mbed;destsuffix=git/mbedcrypto"