Skip to content

Commit 26fb5ed

Browse files
anubhav-armmergify[bot]
authored andcommitted
MdeModulePkg/ArmFfaLib: Add depex on gEfiPeiMemoryDiscoveredPpiGuid
If ArmFfaLibRxTxMap is called before permanent memory is installed the memory allocated for the FF-A buffers will be migrated to the permanent memory after it is installed without updating gArmFfaRxTxBufferInfoGuid or unmapping the old buffers and mapping the updated buffers. An ASSERT in MemoryServices at ExitBootServices is triggered when ArmFfaDxeLib tries to call FreeAlignedPages on the original buffer reference. Add depex on gEfiPeiMemoryDiscoveredPpiGuid for ArmFfaPeiLib so any Peims that use FF-A are only dispatched after permanent memory is available. Signed-off-by: Anubhav Raina <[email protected]>
1 parent 002d69a commit 26fb5ed

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

MdeModulePkg/Library/ArmFfaLib/ArmFfaPeiLib.inf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## @file
22
# Provides FF-A ABI Library used in PEI Driver.
33
#
4-
# Copyright (c) 2024, Arm Limited. All rights reserved.<BR>
4+
# Copyright (c) 2024-2025, Arm Limited. All rights reserved.<BR>
55
#
66
# SPDX-License-Identifier: BSD-2-Clause-Patent
77
##
@@ -43,3 +43,6 @@
4343

4444
[Guids]
4545
gArmFfaRxTxBufferInfoGuid
46+
47+
[Depex]
48+
gEfiPeiMemoryDiscoveredPpiGuid

0 commit comments

Comments
 (0)