From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=134.134.136.65; helo=mga03.intel.com; envelope-from=ruiyu.ni@intel.com; receiver=edk2-devel@lists.01.org Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) (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 208D420348634 for ; Wed, 9 May 2018 20:03:00 -0700 (PDT) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 May 2018 20:02:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,383,1520924400"; d="scan'208,217";a="54643666" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga001.jf.intel.com with ESMTP; 09 May 2018 20:02:59 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 9 May 2018 20:02:59 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.240]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.6]) with mapi id 14.03.0319.002; Thu, 10 May 2018 11:02:57 +0800 From: "Ni, Ruiyu" To: Roman Bacik , "edk2-devel@lists.01.org" CC: Vladimir Olovyannikov Thread-Topic: [edk2] [PATCH v2] MdeModulePkg/Bus: Enable to use device address when programming BARs Thread-Index: AQHT59Pw8FWx0XRhkUKLYA+oWN/uR6QoRugA Date: Thu, 10 May 2018 03:02:57 +0000 Message-ID: <734D49CCEBEEF84792F5B80ED585239D5BC8DBEA@SHSMSX104.ccr.corp.intel.com> References: In-Reply-To: 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 X-Content-Filtered-By: Mailman/MimeDel 2.1.26 Subject: Re: [PATCH v2] MdeModulePkg/Bus: Enable to use device address when programming BARs X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 May 2018 03:03:00 -0000 Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Um9tYW4sDQpDYW4geW91IHBvaW50IHRvIG1lIHRoZSBzcGVjIGNvbnRlbnQgd2hpY2ggc3RhdGVz IHRoZSDigJxPZmZzZXTigJ0gaW5zdGVhZCBvZiDigJxCYXNlICsgT2Zmc2V04oCdIHNob3VsZCBi ZSB3cml0dGVuIHRvIHRoZSBCQVI/DQpEb2VzIHRoZSBwb2xpY3kgYXBwbHkgdG8gYWxsIFBDSSBk ZXZpY2VzIGluIGEgc3lzdGVtLCBvciBjZXJ0YWluIFBDSSBkZXZpY2VzIGluIGEgc3lzdGVtPw0K DQpUaGFua3MvUmF5DQoNCkZyb206IFJvbWFuIEJhY2lrIDxyb21hbi5iYWNpa0Bicm9hZGNvbS5j b20+DQpTZW50OiBUaHVyc2RheSwgTWF5IDEwLCAyMDE4IDQ6MjUgQU0NClRvOiBlZGsyLWRldmVs QGxpc3RzLjAxLm9yZw0KQ2M6IE5pLCBSdWl5dSA8cnVpeXUubmlAaW50ZWwuY29tPjsgVmxhZGlt aXIgT2xvdnlhbm5pa292IDx2bGFkaW1pci5vbG92eWFubmlrb3ZAYnJvYWRjb20uY29tPg0KU3Vi amVjdDogW2VkazJdIFtQQVRDSCB2Ml0gTWRlTW9kdWxlUGtnL0J1czogRW5hYmxlIHRvIHVzZSBk ZXZpY2UgYWRkcmVzcyB3aGVuIHByb2dyYW1taW5nIEJBUnMNCg0KU29tZSBTb0NzIHJlcXVpcmUg dG8gdXNlIGRldmljZSBhZGRyZXNzIHdoZW4gQ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