mirror of
https://git.yoctoproject.org/meta-arm
synced 2026-07-27 19:37:04 +00:00
arm-bsp/u-boot: corstone1000: Disable mm_communicate failure log
When a getVariable() call is made with data size set to 0, mm_communicate should return EFI_BUFFER_TOO_SMALL. This is an expected behavior. There should not be any failure logs in this case. So the error log is commented here. Change-Id: Id5b36928b1450ef9f83d34a3ab7feb4839ff9734 Signed-off-by: Gowtham Suresh Kumar <gowtham.sureshkumar@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
This commit is contained in:
committed by
Jon Mason
parent
82ef0cce84
commit
274f82247d
+35
@@ -0,0 +1,35 @@
|
|||||||
|
Upstream-Status: Pending [Not submitted to upstream yet]
|
||||||
|
Signed-off-by: Gowtham Suresh Kumar <gowtham.sureshkumar@arm.com>
|
||||||
|
|
||||||
|
From 152ff06c983b7b1a685d82bc229efdd6260d9a12 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Gowtham Suresh Kumar <gowtham.sureshkumar@arm.com>
|
||||||
|
Date: Fri, 24 Dec 2021 14:22:52 +0000
|
||||||
|
Subject: [PATCH] Comment mm_communicate failure log
|
||||||
|
|
||||||
|
When a getVariable() call is made with data size set to 0,
|
||||||
|
mm_communicate should return EFI_BUFFER_TOO_SMALL. This is
|
||||||
|
an expected behavior. There should not be any failure logs
|
||||||
|
in this case. So the error log is commented here.
|
||||||
|
---
|
||||||
|
lib/efi_loader/efi_variable_tee.c | 5 ++++-
|
||||||
|
1 file changed, 4 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/lib/efi_loader/efi_variable_tee.c b/lib/efi_loader/efi_variable_tee.c
|
||||||
|
index b466702983..fc4d684669 100644
|
||||||
|
--- a/lib/efi_loader/efi_variable_tee.c
|
||||||
|
+++ b/lib/efi_loader/efi_variable_tee.c
|
||||||
|
@@ -407,7 +407,10 @@ static efi_status_t __efi_runtime mm_communicate(u8 *comm_buf, efi_uintn_t dsize
|
||||||
|
ret = ffa_mm_communicate(comm_buf, dsize);
|
||||||
|
#endif
|
||||||
|
if (ret != EFI_SUCCESS) {
|
||||||
|
- log_err("%s failed!\n", __func__);
|
||||||
|
+ /* mm_communicate failure is logged even when getVariable() is called
|
||||||
|
+ * with data size set to 0. This is not expected so logging is commented.
|
||||||
|
+ */
|
||||||
|
+ //log_err("%s failed!\n", __func__);
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
--
|
||||||
|
2.17.1
|
||||||
|
|
||||||
@@ -59,6 +59,7 @@ SRC_URI:append:corstone1000 = " \
|
|||||||
file://0047-efi_firmware-add-get_image_info-for-corstone1000.patch \
|
file://0047-efi_firmware-add-get_image_info-for-corstone1000.patch \
|
||||||
file://0048-corstone1000-enable-ethernet-device.patch \
|
file://0048-corstone1000-enable-ethernet-device.patch \
|
||||||
file://0049-efi_loader-Fix-loaded-image-alignment.patch \
|
file://0049-efi_loader-Fix-loaded-image-alignment.patch \
|
||||||
|
file://0050-Comment-mm_communicate-failure-log.patch \
|
||||||
"
|
"
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user