From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id E8D5220945BFC for ; Tue, 12 Sep 2017 20:04:56 -0700 (PDT) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Sep 2017 20:07:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.42,385,1500966000"; d="scan'208";a="1194500148" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga001.fm.intel.com with ESMTP; 12 Sep 2017 20:07:52 -0700 Received: from fmsmsx121.amr.corp.intel.com (10.18.125.36) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 12 Sep 2017 20:07:51 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by fmsmsx121.amr.corp.intel.com (10.18.125.36) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 12 Sep 2017 20:07:51 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.117]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.93]) with mapi id 14.03.0319.002; Wed, 13 Sep 2017 11:07:49 +0800 From: "Ni, Ruiyu" To: "benh@au1.ibm.com" , Laszlo Ersek , Ard Biesheuvel CC: "edk2-devel@lists.01.org" , Dong Wei , Andrew Fish Thread-Topic: [edk2] [PATCH] MdeModulePkg/PciBusDxe: GetBarAttributes() returns Host address Thread-Index: AQHTKrsJa1BkM5niF0GIJ87bFEEK+qKut9wAgAH6L/D//5dsAIAAII0AgAB3xACAAAd3gIAAe2mAgADAW3A= Date: Wed, 13 Sep 2017 03:07:48 +0000 Message-ID: <734D49CCEBEEF84792F5B80ED585239D5BA2CE93@SHSMSX104.ccr.corp.intel.com> References: <20170911050121.85708-1-ruiyu.ni@intel.com> <7fbd6e6b-0577-f470-3e89-f785ddd5dee1@redhat.com> <734D49CCEBEEF84792F5B80ED585239D5BA2BABB@SHSMSX104.ccr.corp.intel.com> <5f8f5a1b-a170-c20b-91e0-6e813faf0527@redhat.com> <56a332b8-cb3a-15f8-0ddc-465c7e847dbe@redhat.com> <1505259457.12628.157.camel@au1.ibm.com> In-Reply-To: <1505259457.12628.157.camel@au1.ibm.com> Accept-Language: en-US, zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH] MdeModulePkg/PciBusDxe: GetBarAttributes() returns Host address 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: Wed, 13 Sep 2017 03:04:57 -0000 Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 SSBhbSBnb2luZyB0byBob2xkIHRoZSBwYXRjaC4NClVubGVzcyBzb21lIHJlYWwgaXNzdWUgaXMg ZXhwb3NlZCB1c2luZyBjdXJyZW50IFBjaUJ1cyBkcml2ZXIsIEkgd2lsbCBub3QgbWFrZSBhbnkg Y2hhbmdlIHRvIGN1cnJlbnQgaW1wbGVtZW50YXRpb24uDQoNCg0KVGhhbmtzL1JheQ0KDQo+IC0t LS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+IEZyb206IEJlbmphbWluIEhlcnJlbnNjaG1pZHQg W21haWx0bzpiZW5oQGF1MS5pYm0uY29tXQ0KPiBTZW50OiBXZWRuZXNkYXksIFNlcHRlbWJlciAx MywgMjAxNyA3OjM4IEFNDQo+IFRvOiBMYXN6bG8gRXJzZWsgPGxlcnNla0ByZWRoYXQuY29tPjsg QXJkIEJpZXNoZXV2ZWwNCj4gPGFyZC5iaWVzaGV1dmVsQGxpbmFyby5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