From: Laszlo Ersek Date: Thu, 15 Mar 2018 14:20:08 +0000 (+0100) Subject: OvmfPkg/PlatformBootManagerLib: hoist PciAcpiInitialization() X-Git-Tag: edk2-stable201903~2101 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=5942ea61deb9b0373c597399e0a3f23e8c19690d;hp=fe1b9e8e085bede968958f494cba0be5ab3add99 OvmfPkg/PlatformBootManagerLib: hoist PciAcpiInitialization() PlatformBootManagerAfterConsole() <--------------------------------+ PlatformBdsConnectSequence() | ConnectDevicesFromQemu() / EfiBootManagerConnectAll() | PciAcpiInitialization() ---------------------------------+ TryRunningQemuKernel() Functionally this is a no-op: - PciAcpiInitialization() iterates over PciIo protocol instances, which are available just the same at the new call site. - The PCI interrupt line register exists only to inform system software (it doesn't affect hardware) and UEFI drivers don't use PCI interrupts anyway. (More background in commits 2e70cf8ade0d and 5218c27950c4.) This change will let us move TryRunningQemuKernel() between PciAcpiInitialization() and PlatformBdsConnectSequence() in the next patch. Cc: "Gabriel L. Somlo" Cc: Ard Biesheuvel Cc: Jordan Justen Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Laszlo Ersek Acked-by: Gabriel Somlo Reviewed-by: Ard Biesheuvel Tested-by: Gabriel Somlo --- diff --git a/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c b/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c index b155639f3c..b624b8f225 100644 --- a/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c +++ b/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c @@ -1359,8 +1359,6 @@ PlatformBdsConnectSequence ( DEBUG ((DEBUG_INFO, "EfiBootManagerConnectAll\n")); EfiBootManagerConnectAll (); } - - PciAcpiInitialization (); } /** @@ -1446,6 +1444,11 @@ PlatformBootManagerAfterConsole ( // BootLogoEnableLogo (); + // + // Set PCI Interrupt Line registers and ACPI SCI_EN + // + PciAcpiInitialization (); + // // Perform some platform specific connect sequence //