|
|
795857 |
From fc45137e55e73a3ba59fd28868e24521a28a9a6e Mon Sep 17 00:00:00 2001
|
|
|
795857 |
From: Oliver Steffen <osteffen@redhat.com>
|
|
|
795857 |
Date: Tue, 31 Jan 2023 15:32:28 +0100
|
|
|
795857 |
Subject: [PATCH] Revert "ArmVirtPkg/ArmVirtQemu: enable initial ID map at
|
|
|
795857 |
early boot"
|
|
|
795857 |
|
|
|
795857 |
RH-Author: Oliver Steffen <osteffen@redhat.com>
|
|
|
795857 |
RH-MergeRequest: 25: Revert "ArmVirtPkg/ArmVirtQemu: enable initial ID map at early boot"
|
|
|
795857 |
RH-Bugzilla: 2157656
|
|
|
795857 |
RH-Acked-by: Gerd Hoffmann <kraxel@redhat.com>
|
|
|
795857 |
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
795857 |
RH-Commit: [1/1] b236b89984f7b7890089ba65228073ab79063b34 (osteffen/edk2)
|
|
|
795857 |
|
|
|
795857 |
This reverts commit 07be1d34d95460a238fcd0f6693efb747c28b329,
|
|
|
795857 |
which causes the firmware to crash early on AARCH64.
|
|
|
795857 |
|
|
|
795857 |
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2157656
|
|
|
795857 |
|
|
|
795857 |
There is a potential fix upstream:
|
|
|
795857 |
https://github.com/tianocore/edk2/pull/3878/commits
|
|
|
795857 |
|
|
|
795857 |
We need to reevaluate on the next rebase if the fix works and if we can
|
|
|
795857 |
drop this revert-comment.
|
|
|
795857 |
|
|
|
795857 |
Signed-off-by: Oliver Steffen <osteffen@redhat.com>
|
|
|
795857 |
---
|
|
|
795857 |
ArmVirtPkg/ArmVirtQemu.dsc | 17 +++--------------
|
|
|
795857 |
ArmVirtPkg/ArmVirtQemu.fdf | 2 +-
|
|
|
795857 |
2 files changed, 4 insertions(+), 15 deletions(-)
|
|
|
795857 |
|
|
|
795857 |
diff --git a/ArmVirtPkg/ArmVirtQemu.dsc b/ArmVirtPkg/ArmVirtQemu.dsc
|
|
|
795857 |
index 76389e6bd4..3bf51b09aa 100644
|
|
|
795857 |
--- a/ArmVirtPkg/ArmVirtQemu.dsc
|
|
|
795857 |
+++ b/ArmVirtPkg/ArmVirtQemu.dsc
|
|
|
795857 |
@@ -64,6 +64,8 @@
|
|
|
795857 |
QemuFwCfgSimpleParserLib|OvmfPkg/Library/QemuFwCfgSimpleParserLib/QemuFwCfgSimpleParserLib.inf
|
|
|
795857 |
QemuLoadImageLib|OvmfPkg/Library/GenericQemuLoadImageLib/GenericQemuLoadImageLib.inf
|
|
|
795857 |
|
|
|
795857 |
+ ArmPlatformLib|ArmPlatformPkg/Library/ArmPlatformLibNull/ArmPlatformLibNull.inf
|
|
|
795857 |
+
|
|
|
795857 |
TimerLib|ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.inf
|
|
|
795857 |
VirtNorFlashPlatformLib|ArmVirtPkg/Library/NorFlashQemuLib/NorFlashQemuLib.inf
|
|
|
795857 |
|
|
|
795857 |
@@ -91,12 +93,6 @@
|
|
|
795857 |
TpmPlatformHierarchyLib|SecurityPkg/Library/PeiDxeTpmPlatformHierarchyLibNull/PeiDxeTpmPlatformHierarchyLib.inf
|
|
|
795857 |
!endif
|
|
|
795857 |
|
|
|
795857 |
-[LibraryClasses.AARCH64]
|
|
|
795857 |
- ArmPlatformLib|ArmVirtPkg/Library/ArmPlatformLibQemu/ArmPlatformLibQemu.inf
|
|
|
795857 |
-
|
|
|
795857 |
-[LibraryClasses.ARM]
|
|
|
795857 |
- ArmPlatformLib|ArmPlatformPkg/Library/ArmPlatformLibNull/ArmPlatformLibNull.inf
|
|
|
795857 |
-
|
|
|
795857 |
[LibraryClasses.common.PEIM]
|
|
|
795857 |
ArmVirtMemInfoLib|ArmVirtPkg/Library/QemuVirtMemInfoLib/QemuVirtMemInfoPeiLib.inf
|
|
|
795857 |
|
|
|
795857 |
@@ -117,8 +113,6 @@
|
|
|
795857 |
UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
|
|
|
795857 |
|
|
|
795857 |
[BuildOptions]
|
|
|
795857 |
- GCC:*_*_AARCH64_CC_XIPFLAGS ==
|
|
|
795857 |
-
|
|
|
795857 |
!include NetworkPkg/NetworkBuildOptions.dsc.inc
|
|
|
795857 |
|
|
|
795857 |
################################################################################
|
|
|
795857 |
@@ -330,12 +324,7 @@
|
|
|
795857 |
ArmPlatformPkg/PrePeiCore/PrePeiCoreUniCore.inf
|
|
|
795857 |
MdeModulePkg/Core/Pei/PeiMain.inf
|
|
|
795857 |
ArmPlatformPkg/PlatformPei/PlatformPeim.inf
|
|
|
795857 |
- ArmVirtPkg/MemoryInitPei/MemoryInitPeim.inf {
|
|
|
795857 |
- <LibraryClasses>
|
|
|
795857 |
-!if $(ARCH) == AARCH64
|
|
|
795857 |
- ArmMmuLib|ArmPkg/Library/ArmMmuLib/ArmMmuPeiLib.inf
|
|
|
795857 |
-!endif
|
|
|
795857 |
- }
|
|
|
795857 |
+ ArmPlatformPkg/MemoryInitPei/MemoryInitPeim.inf
|
|
|
795857 |
ArmPkg/Drivers/CpuPei/CpuPei.inf
|
|
|
795857 |
|
|
|
795857 |
!if $(TPM2_ENABLE) == TRUE
|
|
|
795857 |
diff --git a/ArmVirtPkg/ArmVirtQemu.fdf b/ArmVirtPkg/ArmVirtQemu.fdf
|
|
|
795857 |
index 764f652afd..c61ed36d89 100644
|
|
|
795857 |
--- a/ArmVirtPkg/ArmVirtQemu.fdf
|
|
|
795857 |
+++ b/ArmVirtPkg/ArmVirtQemu.fdf
|
|
|
795857 |
@@ -107,7 +107,7 @@ READ_LOCK_STATUS = TRUE
|
|
|
795857 |
INF ArmPlatformPkg/PrePeiCore/PrePeiCoreUniCore.inf
|
|
|
795857 |
INF MdeModulePkg/Core/Pei/PeiMain.inf
|
|
|
795857 |
INF ArmPlatformPkg/PlatformPei/PlatformPeim.inf
|
|
|
795857 |
- INF ArmVirtPkg/MemoryInitPei/MemoryInitPeim.inf
|
|
|
795857 |
+ INF ArmPlatformPkg/MemoryInitPei/MemoryInitPeim.inf
|
|
|
795857 |
INF ArmPkg/Drivers/CpuPei/CpuPei.inf
|
|
|
795857 |
INF MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
|
|
|
795857 |
|
|
|
795857 |
--
|
|
|
795857 |
2.31.1
|
|
|
795857 |
|