diff options
author | Anubhav Raina <anubhav.raina@arm.com> | 2025-04-10 21:46:41 +0100 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2025-04-23 10:08:20 +0000 |
commit | 26fb5edff3976a42b640d83721b4897935cb6598 (patch) | |
tree | 2b21cfea2ce144149367b9788454fa8644ed2bf6 | |
parent | 002d69ad9e26d5fb4a181366225b207140878f57 (diff) | |
download | edk2-26fb5edff3976a42b640d83721b4897935cb6598.zip edk2-26fb5edff3976a42b640d83721b4897935cb6598.tar.gz edk2-26fb5edff3976a42b640d83721b4897935cb6598.tar.bz2 |
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 <anubhav.raina@arm.com>
-rw-r--r-- | MdeModulePkg/Library/ArmFfaLib/ArmFfaPeiLib.inf | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/MdeModulePkg/Library/ArmFfaLib/ArmFfaPeiLib.inf b/MdeModulePkg/Library/ArmFfaLib/ArmFfaPeiLib.inf index e3b7dbd..6ee2384 100644 --- a/MdeModulePkg/Library/ArmFfaLib/ArmFfaPeiLib.inf +++ b/MdeModulePkg/Library/ArmFfaLib/ArmFfaPeiLib.inf @@ -1,7 +1,7 @@ ## @file
# Provides FF-A ABI Library used in PEI Driver.
#
-# Copyright (c) 2024, Arm Limited. All rights reserved.<BR>
+# Copyright (c) 2024-2025, Arm Limited. All rights reserved.<BR>
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
##
@@ -43,3 +43,6 @@ [Guids]
gArmFfaRxTxBufferInfoGuid
+
+[Depex]
+ gEfiPeiMemoryDiscoveredPpiGuid
|