Branch: refs/heads/master Home: https://github.com/tianocore/edk2 Commit: b336d9b87aeb8713a8894c3c06f3fdb9579d456a https://github.com/tianocore/edk2/commit/b336d9b87aeb8713a8894c3c06f3fdb9579d456a Author: Levi Yun <yeoreum....@arm.com> Date: 2025-07-14 (Mon, 14 Jul 2025)
Changed paths: M MdeModulePkg/Include/Guid/ArmFfaRxTxBufferInfo.h M MdeModulePkg/Library/ArmFfaLib/ArmFfaPeiLib.c M MdeModulePkg/Library/ArmFfaLib/ArmFfaRxTxMap.c M MdeModulePkg/Library/ArmFfaLib/ArmFfaRxTxMap.h R MdeModulePkg/Library/ArmFfaLib/ArmFfaRxTxMapStmm.c M MdeModulePkg/Library/ArmFfaLib/ArmFfaStandaloneMmCoreLib.inf M MdeModulePkg/Library/ArmFfaLib/ArmFfaStandaloneMmLib.inf A MdeModulePkg/Library/ArmFfaLib/ArmFfaStandaloneMmRxTxMap.c Log Message: ----------- MdeModulePkg/Library: fix memory leak Rx/Tx Buffer in ArmFfaPeiLib The commit e15fe066036da ("MdeModulePkg/Library: make ArmFfaPeiLib available early PEIM stage") uses ArmFfaPeiLib in the early PEIM stage. However, the Rx/Tx buffer allocated in the early PEIM stage uses temporary memory. This results in a memory leak when the temporary memory's heap is relocated to permanent memory. For example, if the Rx/Tx buffer memory is allocated at 0x20006000 in temporary memory, and if offset between temporary memory and permanent is 0x40000000, then: - Once permanent memory installed the temporary memory at 0x20006000 is migrated to 0x60006000. - However, ArmFfaPeiLib allocates new Rx/Tx buffer without freeing the migrated Rx/Tx buffers, i.e. the buffers at 0x60006000. This results in a memory leak as the migrated Rx/Tx buffer area is lost. To address this memory leak, use the MemoryAllocationHob's name, so that the migrated memory area will be reused as Rx/Tx buffer. This patch also includes rename ArmFfaRxTxStmm.c to ArmFfaStandaloneMmRxTxMap.c to keep the file name convention in ArmFfaLib with ArmFfa{Phase}{...}.c Fixes: e15fe066036da ("MdeModulePkg/Library: ...") Signed-off-by: Yeoreum Yun <yeoreum....@arm.com> Continuous-integration-options: PatchCheck.ignore-multi-package Commit: bbd810221ebd29bea789a3ed580ea2a8ed1eabd8 https://github.com/tianocore/edk2/commit/bbd810221ebd29bea789a3ed580ea2a8ed1eabd8 Author: Levi Yun <yeoreum....@arm.com> Date: 2025-07-14 (Mon, 14 Jul 2025) Changed paths: M MdeModulePkg/MdeModulePkg.dec Log Message: ----------- MdeModulePkg: Make PcdFfaTxRxPageCount a PcdsFixedAtBuild PCD The PcdFfaTxRxPageCount can never be changed dynamically and is configured at build time to specify the size of the Rx/Tx buffers. Therefore, make PcdFfaTxRxPageCount a PcdsFixedAtBuild PCD. Signed-off-by: Yeoreum Yun <yeoreum....@arm.com> Commit: a7e27682cffe7cfbb48bcbaa11daf550a5cdd79c https://github.com/tianocore/edk2/commit/a7e27682cffe7cfbb48bcbaa11daf550a5cdd79c Author: Levi Yun <yeoreum....@arm.com> Date: 2025-07-14 (Mon, 14 Jul 2025) Changed paths: M MdeModulePkg/Library/ArmFfaLib/ArmFfaDxeLib.c A MdeModulePkg/Library/ArmFfaLib/ArmFfaSecLib.c A MdeModulePkg/Library/ArmFfaLib/ArmFfaSecLib.inf A MdeModulePkg/Library/ArmFfaLib/ArmFfaSecRxTxMap.c M MdeModulePkg/MdeModulePkg.dsc Log Message: ----------- MdeModulePkg/Library: add ArmFfaSecLib To use Arm-FFA intereface in PeilessSec, implments ArmFfaSecLib used by PeilessSec. For example, communicate with TPM service using CRB over ARM-FFA (via Tpm2DeviceLibFfa), PeilessSec need to use Arm-FFA interface. Signed-off-by: Yeoreum Yun <yeoreum....@arm.com> Commit: 5a2713ec2b369da8c46fd2b41cc044e2d5026300 https://github.com/tianocore/edk2/commit/5a2713ec2b369da8c46fd2b41cc044e2d5026300 Author: Levi Yun <yeoreum....@arm.com> Date: 2025-07-14 (Mon, 14 Jul 2025) Changed paths: M MdeModulePkg/Library/ArmFfaLib/ArmFfaCommon.c M MdeModulePkg/Library/ArmFfaLib/ArmFfaCommon.h M MdeModulePkg/Library/ArmFfaLib/ArmFfaRxTxMap.c M MdeModulePkg/Library/ArmFfaLib/ArmFfaSecRxTxMap.c M MdeModulePkg/Library/ArmFfaLib/ArmFfaStandaloneMmRxTxMap.c Log Message: ----------- MdeModulePkg/Library: commonize some duplicate code in ArmFfaLib Some of code for handling Rx/Tx buffer is duplicate. This patch commonize some of duplication routine used in Rx/Tx buffer related functions. Signed-off-by: Yeoreum Yun <yeoreum....@arm.com> Commit: f85c71816702b068019957e7fd532db51dab9c7e https://github.com/tianocore/edk2/commit/f85c71816702b068019957e7fd532db51dab9c7e Author: Levi Yun <yeoreum....@arm.com> Date: 2025-07-14 (Mon, 14 Jul 2025) Changed paths: M MdeModulePkg/Include/Guid/ArmFfaRxTxBufferInfo.h M MdeModulePkg/Library/ArmFfaLib/ArmFfaPeiLib.c M MdeModulePkg/Library/ArmFfaLib/ArmFfaRxTxMap.c M MdeModulePkg/Library/ArmFfaLib/ArmFfaSecLib.c M MdeModulePkg/Library/ArmFfaLib/ArmFfaSecRxTxMap.c M MdeModulePkg/Library/ArmFfaLib/ArmFfaStandaloneMmRxTxMap.c Log Message: ----------- MdeModulePkg/Include: change type of buffer address in ArmFfaRxTxBufferInfo Change type of buffer address type in ArmFfaRxTxBufferInfo so that reduce the type casting. Signed-off-by: Yeoreum Yun <yeoreum....@arm.com> Compare: https://github.com/tianocore/edk2/compare/460f2705b4cf...f85c71816702 To unsubscribe from these emails, change your notification settings at https://github.com/tianocore/edk2/settings/notifications _______________________________________________ edk2-commits mailing list edk2-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-commits