1
0
mirror of https://git.yoctoproject.org/meta-arm synced 2026-06-05 02:20:30 +00:00

arm-bsp/secure-partitions: corstone1000: Increase SMM Gateway variable handling capacity

The maximum number of UEFI variables that can 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.

Change-Id: I3ebef8052fd01c5b1c19cdfe71ab3c02447a005b
Signed-off-by: Gowtham Suresh Kumar <gowtham.sureshkumar@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
This commit is contained in:
Gowtham Suresh Kumar
2021-12-14 11:09:24 +00:00
committed by Jon Mason
parent 4720b3e010
commit 997d354fcc
2 changed files with 36 additions and 0 deletions
@@ -0,0 +1,35 @@
Upstream-Status: Pending [Not submitted to upstream yet]
Signed-off-by: Gowtham Suresh Kumar <gowtham.sureshkumar@arm.com>
From 9b9261f73f93a5ac7ad823da376858b56560a08b Mon Sep 17 00:00:00 2001
From: Gowtham Suresh Kumar <gowtham.sureshkumar@arm.com>
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 <gowtham.sureshkumar@arm.com>
---
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
@@ -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"