From 9b167857a4d925c459d1311de40937159c8ad464 Mon Sep 17 00:00:00 2001 From: jljusten Date: Fri, 4 May 2012 15:01:56 +0000 Subject: [PATCH] OvmfPkg PlatformBdsLib: Set SCI_EN bit of PMCNTRL If the bit is not set, then the only method ACPI defines for setting it is to use the SMI SCI enable code path. Since OVMF does not support SMM, we must enable the bit during boot. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Erik Bjorge Tested-by: Laszlo Ersek Reviewed-by: Laszlo Ersek Tested-by: Bei Guan Reviewed-by: Bei Guan git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13278 6f19259b-4bc3-4df7-8a09-765794883524 --- OvmfPkg/Library/PlatformBdsLib/BdsPlatform.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/OvmfPkg/Library/PlatformBdsLib/BdsPlatform.c b/OvmfPkg/Library/PlatformBdsLib/BdsPlatform.c index 58531a800b..9faab8521e 100644 --- a/OvmfPkg/Library/PlatformBdsLib/BdsPlatform.c +++ b/OvmfPkg/Library/PlatformBdsLib/BdsPlatform.c @@ -773,6 +773,18 @@ PciInitialization ( } +VOID +AcpiInitialization ( + VOID + ) +{ + // + // Set ACPI SCI_EN bit in PMCNTRL + // + IoOr16 ((PciRead32 (PCI_LIB_ADDRESS (0, 1, 3, 0x40)) & ~BIT0) + 4, BIT0); +} + + EFI_STATUS EFIAPI ConnectRecursivelyIfPciMassStorage ( @@ -933,6 +945,7 @@ Returns: BdsLibConnectAll (); PciInitialization (); + AcpiInitialization (); // // Clear the logo after all devices are connected. -- 2.39.2