From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ZXSHCAS01.zhaoxin.com (unknown [180.169.121.91]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id EBD4F2095B9C9 for ; Thu, 17 Aug 2017 02:34:48 -0700 (PDT) Received: from ZXBJCAS02.zhaoxin.com (10.29.252.4) by ZXSHCAS01.zhaoxin.com (10.28.252.3) with Microsoft SMTP Server (TLS) id 14.3.279.2; Thu, 17 Aug 2017 17:37:13 +0800 Received: from ZXBJMBX01.zhaoxin.com ([fe80::9c2b:e4e8:b7de:a5de]) by ZXBJCAS02.zhaoxin.com ([::1]) with mapi id 14.03.0279.002; Thu, 17 Aug 2017 17:37:12 +0800 From: Eric Song To: Laszlo Ersek , "edk2-devel@lists.01.org" CC: Tiger Liu , "Ni, Ruiyu" Thread-Topic: [edk2] [EDK2] PCI bus do 2 Enumeration when 2 root bridges under 1 host bridge Thread-Index: AQHTFzna6WVVICiRi0SnjNXQDjh7daKISSQQ Date: Thu, 17 Aug 2017 09:37:12 +0000 Message-ID: <41761EF483901349B2FAB9B696E9F0B9050672EE@ZXBJMBX01.zhaoxin.com> References: <41761EF483901349B2FAB9B696E9F0B905066FC3@ZXBJMBX01.zhaoxin.com> <2915a7f4-3f13-f16f-cf36-03a90ed0a681@redhat.com> In-Reply-To: <2915a7f4-3f13-f16f-cf36-03a90ed0a681@redhat.com> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.29.8.93] MIME-Version: 1.0 Subject: =?UTF-8?B?562U5aSNOiBQQ0kgYnVzIGRvIDIgRW51bWVyYXRpb24gd2hlbiAyIHJvb3QgYnJpZGdlcyB1bmRlciAxIGhvc3QgYnJpZGdl?= 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: , X-List-Received-Date: Thu, 17 Aug 2017 09:34:49 -0000 Content-Language: zh-CN Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 SGksIExhc3psbw0KICAgICAgICBNYW55IHRoYW5rcyBmb3IgcmFwaWRseSByZXBseS4NCiAgICAg ICAgWW91ciBhbmFseXplIGlzIHZlcnkgY2xlYXIuIEJ1dCB3aGlsZSB0aGUgUGNpQnVzRHhlIGRy aXZlciBpcyBiaW5kaW5nIGEgcm9vdCBicmlkZ2UsIHdoeSB0aGUgUGNpQnVzRHhlIGRyaXZlciBk byBob3N0IGJyaWRnZSBlbnVtZXJhdGlvbi4gSXQgaXMgaWxsb2dpY2FsLg0KICAgICAgICBFdmVu IHRob3VnaCBpdCBtYXliZSBoYXMgbm8gc2lkZSBlZmZlY3QsIGl0IGlzIGNvbmZ1c2VkIGZvciB1 c2Vycy4NCg0KVGhhbmtzDQpFcmljDQoNCi0tLS0t6YKu5Lu25Y6f5Lu2LS0tLS0NCuWPkeS7tuS6 ujogTGFzemxvIEVyc2VrIFttYWlsdG86bGVyc2VrQHJlZGhhdC5jb21dDQrlj5HpgIHml7bpl7Q6 IDIwMTflubQ45pyIMTfml6UgMTc6MTkNCuaUtuS7tuS6ujogRXJpYyBTb25nOyBlZGsyLWRldmVs QGxpc3RzLjAxLm9yZw0K5oqE6YCBOiBUaWdlciBMaXU7IE5pLCBSdWl5dQ0K5Li76aKYOiBSZTog W2VkazJdIFtFREsyXSBQQ0kgYnVzIGRvIDIgRW51bWVyYXRpb24gd2hlbiAyIHJvb3QgYnJpZGdl cyB1bmRlciAxIGhvc3QgYnJpZGdlDQoNCkFkZGluZyBSYXkNCg0KT24gMDgvMTcvMTcgMDY6NTAs IEVyaWMgU29uZyB3cm90ZToNCj4gSGksIGV4cGVydHMNCj4gSWYgdGhlcmUgaXMgMiByb290IGJy aWRnZXMgdW5kZXIgMSBob3N0IGJyaWRnZSBvbiB0aGUgUENJIGhpZXJhcmNoeSwNCj4gd2hldGh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