From nobody Wed Dec 25 02:04:59 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1509460164765143.485953225775; Tue, 31 Oct 2017 07:29:24 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 740EE2035D109; Tue, 31 Oct 2017 07:25:31 -0700 (PDT) Received: from huawei.com (unknown [45.249.212.255]) by ml01.01.org (Postfix) with ESMTP id 197B12035D0FF for ; Tue, 31 Oct 2017 07:25:27 -0700 (PDT) Received: from dggeml405-hub.china.huawei.com (unknown [172.30.72.56]) by Forcepoint Email with ESMTP id E1D00FFEC8F55; Tue, 31 Oct 2017 22:29:16 +0800 (CST) Received: from DGGEML506-MBS.china.huawei.com ([169.254.10.249]) by dggeml405-hub.china.huawei.com ([10.3.17.49]) with mapi id 14.03.0361.001; Tue, 31 Oct 2017 22:29:11 +0800 X-Original-To: edk2-devel@lists.01.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=45.249.212.255; helo=huawei.com; envelope-from=hangaohuai@huawei.com; receiver=edk2-devel@lists.01.org From: Hangaohuai To: "lersek@redhat.com" Thread-Topic: [Help] UEFI boot KVM4T vm hang On TianoCore Thread-Index: AdNSVJl5vQ50LWj7SveacGYIlxYDpw== Date: Tue, 31 Oct 2017 14:29:11 +0000 Message-ID: <643686C90A8F6046B2C3783E2A7A06AD3DDBC439@dggeml506-mbs.china.huawei.com> Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.177.23.7] MIME-Version: 1.0 X-CFilter-Loop: Reflected X-Content-Filtered-By: Mailman/MimeDel 2.1.22 Subject: [edk2] [Help] UEFI boot KVM4T vm hang On TianoCore X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "edk2-devel@lists.01.org" Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail: RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Hi, Laszlo Ersek; I have tested the uefi booting KVM vm with the configuration(xml); but star= t hang. Enable the memoryhotplug, with usb3.0 config. The config as Config1 below. Tested branches: UDK2017 eea98eea4ccbb1d640657770bccb5497fddc6064 Master 76fd5a660d704538a1b14a58d03a4eef9682b01c Both hang on the snapshot TianoCore in VNC Try to shoot the problem; I find the early version can boot success with the same config. Maybe the patch1 below cause the problem; Try to ignore the patch does, the master/ UDK2017 both can boot success. But I don't know why. Hope for your help,thanks. Patch1 *********************************************** commit 4f5eff8193096eb847639f090a7dfae3cff95fde Author: Laszlo Ersek Date: Fri Mar 4 20:06:26 2016 +0100 OvmfPkg: PciHostBridgeLib: install 64-bit PCI host aperture diff --git a/OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.c b/OvmfPkg/= Library/PciHostBridgeLib/PciHostBridgeLib index 3e02778..1d3d10a 100644 --- a/OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.c +++ b/OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.c @@ -132,6 +132,13 @@ InitRootBridge ( RootBus->MemAbove4G.Base =3D 0; RootBus->MemAbove4G.Limit =3D 0; + if (PcdGet64 (PcdPciMmio64Size) > 0) { + RootBus->AllocationAttributes |=3D EFI_PCI_HOST_BRIDGE_MEM64_DECODE; + RootBus->MemAbove4G.Base =3D PcdGet64 (PcdPciMmio64Base); + RootBus->MemAbove4G.Limit =3D PcdGet64 (PcdPciMmio64Base) + + (PcdGet64 (PcdPciMmio64Size) - 1); + } + RootBus->Bus.Base =3D RootBusNumber; RootBus->Bus.Limit =3D MaxSubBusNumber; RootBus->Io.Base =3D PcdGet64 (PcdPciIoBase); diff --git a/OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf b/OvmfPk= g/Library/PciHostBridgeLib/PciHostBridgeL index bbec746..7a964c7 100644 --- a/OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf +++ b/OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf @@ -51,4 +51,6 @@ gUefiOvmfPkgTokenSpaceGuid.PcdPciIoSize gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Base gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Size + gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Base + gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId *********************************************** Config1 *********************************************** 4294967296 4294967 4294967 Xxxx
*********************************************** _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel