mirror of https://github.com/acidanthera/audk.git
OvmfPkg: exclude 8254TimerDxe
In the original three OVMF platforms, CSM_ENABLE selects the legacy timer driver; exclude it. Instead, include LocalApicTimerDxe unconditionally (which in turn consumes PcdFSBClock). Background: commitsc37cbc030d
("OvmfPkg: Switch timer in build time for OvmfPkg", 2022-04-02) and07c0c2eb0a
("OvmfPkg: fix PcdFSBClock", 2022-05-25). Regression test: verified that the BDS progress bar still advanced at normal speed in each platform. Cc: Ard Biesheuvel <ardb+tianocore@kernel.org> Cc: Gerd Hoffmann <kraxel@redhat.com> Cc: Jiewen Yao <jiewen.yao@intel.com> Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=4588 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Message-Id: <20231110235820.644381-32-lersek@redhat.com> Reviewed-by: Jiewen Yao <Jiewen.yao@intel.com> Reviewed-by: Ard Biesheuvel <ardb@kernel.org> Acked-by: Corvin Köhne <corvink@FreeBSD.org> Acked-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
0e0a0a5ee8
commit
89bd992b1f
|
@ -670,9 +670,7 @@
|
|||
# Set ConfidentialComputing defaults
|
||||
gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr|0
|
||||
|
||||
!if $(CSM_ENABLE) == FALSE
|
||||
gEfiMdePkgTokenSpaceGuid.PcdFSBClock|1000000000
|
||||
!endif
|
||||
|
||||
[PcdsDynamicHii]
|
||||
!include OvmfPkg/Include/Dsc/OvmfTpmPcdsHii.dsc.inc
|
||||
|
@ -758,10 +756,8 @@
|
|||
UefiCpuPkg/CpuDxe/CpuDxe.inf
|
||||
!ifdef $(CSM_ENABLE)
|
||||
OvmfPkg/8259InterruptControllerDxe/8259.inf
|
||||
OvmfPkg/8254TimerDxe/8254Timer.inf
|
||||
!else
|
||||
OvmfPkg/LocalApicTimerDxe/LocalApicTimerDxe.inf
|
||||
!endif
|
||||
OvmfPkg/LocalApicTimerDxe/LocalApicTimerDxe.inf
|
||||
OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf
|
||||
OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
|
||||
MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
|
||||
|
|
|
@ -221,10 +221,8 @@ INF UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
|
|||
INF UefiCpuPkg/CpuDxe/CpuDxe.inf
|
||||
!ifdef $(CSM_ENABLE)
|
||||
INF OvmfPkg/8259InterruptControllerDxe/8259.inf
|
||||
INF OvmfPkg/8254TimerDxe/8254Timer.inf
|
||||
!else
|
||||
INF OvmfPkg/LocalApicTimerDxe/LocalApicTimerDxe.inf
|
||||
!endif
|
||||
INF OvmfPkg/LocalApicTimerDxe/LocalApicTimerDxe.inf
|
||||
INF OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf
|
||||
INF OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
|
||||
INF MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf
|
||||
|
|
|
@ -678,9 +678,7 @@
|
|||
# Set ConfidentialComputing defaults
|
||||
gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr|0
|
||||
|
||||
!if $(CSM_ENABLE) == FALSE
|
||||
gEfiMdePkgTokenSpaceGuid.PcdFSBClock|1000000000
|
||||
!endif
|
||||
|
||||
[PcdsDynamicDefault.X64]
|
||||
# IPv4 and IPv6 PXE Boot support.
|
||||
|
@ -772,10 +770,8 @@
|
|||
UefiCpuPkg/CpuDxe/CpuDxe.inf
|
||||
!ifdef $(CSM_ENABLE)
|
||||
OvmfPkg/8259InterruptControllerDxe/8259.inf
|
||||
OvmfPkg/8254TimerDxe/8254Timer.inf
|
||||
!else
|
||||
OvmfPkg/LocalApicTimerDxe/LocalApicTimerDxe.inf
|
||||
!endif
|
||||
OvmfPkg/LocalApicTimerDxe/LocalApicTimerDxe.inf
|
||||
OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf
|
||||
OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
|
||||
MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
|
||||
|
|
|
@ -222,10 +222,8 @@ INF UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
|
|||
INF UefiCpuPkg/CpuDxe/CpuDxe.inf
|
||||
!ifdef $(CSM_ENABLE)
|
||||
INF OvmfPkg/8259InterruptControllerDxe/8259.inf
|
||||
INF OvmfPkg/8254TimerDxe/8254Timer.inf
|
||||
!else
|
||||
INF OvmfPkg/LocalApicTimerDxe/LocalApicTimerDxe.inf
|
||||
!endif
|
||||
INF OvmfPkg/LocalApicTimerDxe/LocalApicTimerDxe.inf
|
||||
INF OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf
|
||||
INF OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
|
||||
INF MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf
|
||||
|
|
|
@ -702,9 +702,7 @@
|
|||
# Set ConfidentialComputing defaults
|
||||
gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr|0
|
||||
|
||||
!if $(CSM_ENABLE) == FALSE
|
||||
gEfiMdePkgTokenSpaceGuid.PcdFSBClock|1000000000
|
||||
!endif
|
||||
|
||||
[PcdsDynamicHii]
|
||||
!include OvmfPkg/Include/Dsc/OvmfTpmPcdsHii.dsc.inc
|
||||
|
@ -840,10 +838,8 @@
|
|||
|
||||
!ifdef $(CSM_ENABLE)
|
||||
OvmfPkg/8259InterruptControllerDxe/8259.inf
|
||||
OvmfPkg/8254TimerDxe/8254Timer.inf
|
||||
!else
|
||||
OvmfPkg/LocalApicTimerDxe/LocalApicTimerDxe.inf
|
||||
!endif
|
||||
OvmfPkg/LocalApicTimerDxe/LocalApicTimerDxe.inf
|
||||
OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf
|
||||
OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
|
||||
MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
|
||||
|
|
|
@ -247,10 +247,8 @@ INF FILE_GUID = $(UP_CPU_DXE_GUID) UefiCpuPkg/CpuDxe/CpuDxe.inf
|
|||
|
||||
!ifdef $(CSM_ENABLE)
|
||||
INF OvmfPkg/8259InterruptControllerDxe/8259.inf
|
||||
INF OvmfPkg/8254TimerDxe/8254Timer.inf
|
||||
!else
|
||||
INF OvmfPkg/LocalApicTimerDxe/LocalApicTimerDxe.inf
|
||||
!endif
|
||||
INF OvmfPkg/LocalApicTimerDxe/LocalApicTimerDxe.inf
|
||||
INF OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf
|
||||
INF OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
|
||||
INF MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf
|
||||
|
|
Loading…
Reference in New Issue