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.31; helo=mga06.intel.com; envelope-from=ruiyu.ni@intel.com; receiver=edk2-devel@lists.01.org Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) (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 3F54A2034AB19 for ; Tue, 31 Oct 2017 21:41:00 -0700 (PDT) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga104.jf.intel.com with ESMTP; 31 Oct 2017 21:44:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.44,327,1505804400"; d="scan'208,217";a="916093741" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by FMSMGA003.fm.intel.com with ESMTP; 31 Oct 2017 21:44:51 -0700 Received: from fmsmsx112.amr.corp.intel.com (10.18.116.6) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 31 Oct 2017 21:44:51 -0700 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by FMSMSX112.amr.corp.intel.com (10.18.116.6) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 31 Oct 2017 21:44:51 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.152]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.159]) with mapi id 14.03.0319.002; Wed, 1 Nov 2017 12:44:49 +0800 From: "Ni, Ruiyu" To: Fan Jeff , "edk2-devel@lists.01.org" CC: "Kinney, Michael D" , Michael Turner , "Yao, Jiewen" Thread-Topic: [edk2] [PATCH] MdeModulePkg/PciBus: Disable BME of all devices when entering RT Thread-Index: AQHTUh15BgyNeqQea0q+n5kHEDgRtaL+S9CAgACnxlA= Date: Wed, 1 Nov 2017 04:44:48 +0000 Message-ID: <734D49CCEBEEF84792F5B80ED585239D5BAAE7E6@SHSMSX104.ccr.corp.intel.com> References: <20171031075357.393144-1-ruiyu.ni@intel.com> 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.22 Subject: Re: [PATCH] MdeModulePkg/PciBus: Disable BME of all devices when entering RT 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, 01 Nov 2017 04:41:00 -0000 Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 SmVmZiwNClRoYW5rcyB5b3UgZm9yIHlvdXIgY29tbWVudHMhDQoNCkhvdyBhcmUgeW91IGluIEd1 aXlhbmc/DQoNClRoYW5rcy9SYXkNCg0KRnJvbTogRmFuIEplZmYgW21haWx0bzp2YW5qZWZmXzkx OUBob3RtYWlsLmNvbV0NClNlbnQ6IFdlZG5lc2RheSwgTm92ZW1iZXIgMSwgMjAxNyAxMDo0MyBB TQ0KVG86IE5pLCBSdWl5dSA8cnVpeXUubmlAaW50ZWwuY29tPjsgZWRrMi1kZXZlbEBsaXN0cy4w MS5vcmcNCkNjOiBLaW5uZXksIE1pY2hhZWwgRCA8bWljaGFlbC5kLmtpbm5leUBpbnRlbC5jb20+ OyBNaWNoYWVsIFR1cm5lciA8bWljaGFlbC50dXJuZXJAbWljcm9zb2Z0LmNvbT47IFlhbywgSmll d2VuIDxqaWV3ZW4ueWFvQGludGVsLmNvbT4NClN1YmplY3Q6IOetlOWkjTogW2VkazJdIFtQQVRD SF0gTWRlTW9kdWxlUGtnL1BjaUJ1czogRGlzYWJsZSBCTUUgb2YgYWxsIGRldmljZXMgd2hlbiBl bnRlcmluZyBSVA0KDQpNaW5pbWFsIGNvbW1lbnQ6IFRvIHVzZSBERUJVR19JTkZPIGluc3RlY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UlvRGV2aWNlLT5EZXZpY2VOdW1iZXIsIFBjaUlvRGV2aWNlLT5G dW5jdGlvbk51bWJlciwNCisgICAgICAgICAgQ29tbWFuZA0KKyAgICAgICAgICApKTsNCisgICAg ICB9DQorICAgIH0NCisgIH0NCit9DQorDQorLyoqDQorICBFeGl0IEJvb3QgU2VydmljZXMgRXZl bnQgbm90aWZpY2F0aW9uIGhhbmRsZXIuDQorDQorICBEaXNhYmxlIEJ1cyBNYXN0ZXIgb24gYW55 IHRoYXQgd2VyZSBlbmFibGVkIGR1cmluZyBCRFMuDQorDQorICBAcGFyYW1baW5dICBFdmVudCAg ICAgRXZlbnQgd2hvc2Ugbm90aWZpY2F0aW9uIGZ1bmN0aW9uIGlzIGJlaW5nIGludm9rZWQuDQor ICBAcGFyYW1baW5dICBDb250ZXh0ICAgUG9pbnRlciB0byB0aGUgbm90aWZpY2F0aW9uIGZ1bmN0 aW9uJ3MgY29udGV4dC4NCisNCisqKi8NCitWT0lEDQorRUZJQVBJDQorT25FeGl0Qm9vdFNlcnZp Y2VzICgNCisgIElOICAgICAgRUZJX0VWRU5UICAgICAgICAgICAgICAgICBFdmVudCwNCisgIElO ICAgICAgVk9JRCAgICAgICAgICAgICAgICAgICAgICAqQ29udGV4dA0KKyAgKQ0KK3sNCisgIERF QlVHICgoDQorICAgIERFQlVHX0lORk8sDQorICAgICJQY2lCdXM6IERpc2FibGUgQnVzIE1hc3Rl ciBvZiBhbGwgZGV2aWNlcy4uLlxuIg0KKyAgICAiICBCdXMjIERldmljZSMgRnVuY3Rpb24jICBO ZXdDb21tYW5kXG4iDQorICAgICkpOw0KKyAgRGlzYWJsZUJtZU9uVHJlZSgmbVBjaURldmljZVBv b2wpOw0KK30NCisNCisvKioNCiAgIEluaXRpYWxpemUgdGhlIFBDSSBkZXZpY2VzIHBvb2wuDQoN CiAqKi8NCkBAIC0yOSw3ICs5NSwyNyBAQCBJbml0aWFsaXplUGNpRGV2aWNlUG9vbCAoDQogICBW T0lEDQogIC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QogLyoqDQotLQ0KMi4x Mi4yLndpbmRvd3MuMg0KDQpfX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fXw0KZWRrMi1kZXZlbCBtYWlsaW5nIGxpc3QNCmVkazItZGV2ZWxAbGlzdHMuMDEub3Jn PG1haWx0bzplZGsyLWRldmVsQGxpc3RzLjAxLm9yZz4NCmh0dHBzOi8vbGlzdHMuMDEub3JnL21h aWxtYW4vbGlzdGluZm8vZWRrMi1kZXZlbA0KDQo=