Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 1 | From 8fca2a8eed6ebc1cbf9f7972c6a9bb137ebafe1a Mon Sep 17 00:00:00 2001 |
| 2 | From: Gowtham Suresh Kumar <gowtham.sureshkumar@arm.com> |
| 3 | Date: Sun, 12 Dec 2021 17:07:03 +0000 |
| 4 | Subject: [PATCH] Increase SMM gateway UEFI variable macro value |
| 5 | |
| 6 | The maximum number of UEFI variables that be supported by SMM |
| 7 | gateway is currently 40. When more than 40 variables are written, |
| 8 | or read SMM gateway returns error code. Currently this value is |
| 9 | increased to 100 to support more UEFI variables. |
| 10 | |
| 11 | Signed-off-by: Gowtham Suresh Kumar <gowtham.sureshkumar@arm.com> |
| 12 | |
| 13 | Upstream-Status: Pending [Not submitted to upstream yet] |
| 14 | Signed-off-by: Gowtham Suresh Kumar <gowtham.sureshkumar@arm.com> |
| 15 | |
| 16 | |
| 17 | --- |
| 18 | deployments/smm-gateway/smm_gateway.c | 3 +++ |
| 19 | 1 file changed, 3 insertions(+) |
| 20 | |
| 21 | diff --git a/deployments/smm-gateway/smm_gateway.c b/deployments/smm-gateway/smm_gateway.c |
| 22 | index 7828b3af..7e6729ee 100644 |
| 23 | --- a/deployments/smm-gateway/smm_gateway.c |
| 24 | +++ b/deployments/smm-gateway/smm_gateway.c |
| 25 | @@ -20,6 +20,9 @@ |
| 26 | #define SMM_GATEWAY_NV_STORE_SN "sn:ffa:751bf801-3dde-4768-a514-0f10aeed1790:0" |
| 27 | #endif |
| 28 | |
| 29 | +/* Maximum number of UEFI variables set to 100 */ |
| 30 | +#define SMM_GATEWAY_MAX_UEFI_VARIABLES (100) |
| 31 | + |
| 32 | /* Default maximum number of UEFI variables */ |
| 33 | #ifndef SMM_GATEWAY_MAX_UEFI_VARIABLES |
| 34 | #define SMM_GATEWAY_MAX_UEFI_VARIABLES (40) |