From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.43, mailfrom: xianhuix.liu@intel.com) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by groups.io with SMTP; Tue, 24 Sep 2019 19:18:31 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Sep 2019 19:18:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,546,1559545200"; d="scan'208";a="201095088" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga002.jf.intel.com with ESMTP; 24 Sep 2019 19:18:30 -0700 Received: from fmsmsx153.amr.corp.intel.com (10.18.125.6) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 24 Sep 2019 19:18:29 -0700 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by FMSMSX153.amr.corp.intel.com (10.18.125.6) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 24 Sep 2019 19:18:29 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.113]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.140]) with mapi id 14.03.0439.000; Wed, 25 Sep 2019 10:18:27 +0800 From: "xianhui liu" To: "devel@edk2.groups.io" , "xypron.glpk@gmx.de" CC: Supreeth Venkatesh , "Jin, Eric" Subject: Re: [edk2-devel] [edk2-test][Patch] uefi-sct/SctPkg: Add MediaPresentSupported check Thread-Topic: [edk2-devel] [edk2-test][Patch] uefi-sct/SctPkg: Add MediaPresentSupported check Thread-Index: AQHVcwsX6zXcTCXQIk+Pl80q5DoCt6c7pvyA Date: Wed, 25 Sep 2019 02:18:26 +0000 Message-ID: References: <20190924085052.8484-1-xianhuix.liu@intel.com> <1ec6d2d9-561b-c04e-327e-20b82001929f@gmx.de> In-Reply-To: <1ec6d2d9-561b-c04e-327e-20b82001929f@gmx.de> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.600.7 dlp-reaction: no-action x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiY2FmN2Q4NTItYTM4Mi00MjllLTkzZjItZGZkMzdjMzY3MmExIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiSW1HekM1VFwvWlRUVUxpV1hDamdvTUs4Z3VaWVRIN1lXaVQxYkp4b2FmczdWcWt0WUU4Tkk2MTlWUU4wd0wxaUsifQ== x-ctpclassification: CTP_NT x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Return-Path: xianhuix.liu@intel.com Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 UGxlYXNlIHJlZmVyIHRvIGJlbG93IGNvbW1lbnRzLg0KDQo+IC0tLS0tT3JpZ2luYWwgTWVzc2Fn ZS0tLS0tDQo+IEZyb206IGRldmVsQGVkazIuZ3JvdXBzLmlvIFttYWlsdG86ZGV2ZWxAZWRrMi5n cm91cHMuaW9dIE9uIEJlaGFsZiBPZg0KPiBIZWlucmljaCBTY2h1Y2hhcmR0DQo+IFNlbnQ6IFdl ZG5lc2RheSwgU2VwdGVtYmVyIDI1LCAyMDE5IDM6MDYgQU0NCj4gVG86IExpdSwgWGlhbmh1aVgg PHhpYW5odWl4LmxpdUBpbnRlbC5jb20+OyBkZXZlbEBlZGs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gICAgfQ0KPiA+ICsgICAg IFN0YW5kYXJkTGliLT5SZWNvcmRBc3NlcnRpb24gKA0KPiA+ICsgICAgICAgICAgICAgICAgICAg IFN0YW5kYXJkTGliLA0KPiA+ICsgICAgICAgICAgICAgICAgICAgIEFzc2VydGlvblR5cGUsDQo+ ID4gKyAgICAgICAgICAgICAgICAgICAgZ1NpbXBsZU5ldHdvcmtCQlRlc3RGdW5jdGlvbkFzc2Vy dGlvbkd1aWQwMjIsDQo+ID4gKyAgICAgICAgICAgICAgICAgICAgTCJFRklfU0lNUExFX05FVFdP UktfUFJPVE9DT0wuR2V0U3RhdHVzIC0gSW52b2tlDQo+IEdldFN0YXR1cygpIGFuZCB2ZXJpZnkg aW50ZXJmYWNlIGNvcnJlY3RuZXNzIHdpdGhpbiB0ZXN0IGNhc2UiLA0KPiA+ICsgICAgICAgICAg ICAgICAgICAgIEwiJWE6JWQ6U3RhdHVzIC0gJXIsIFN0YXR1czEgLSAlciwgSW50ZXJydXB0U3Rh dHVzIC0gJWQiLA0KPiA+ICsgICAgICAgICAgICAgICAgICAgIF9fRklMRV9fLA0KPiA+ICsgICAg ICAgICAgICAgICAgICAgIChVSU5UTilfX0xJTkVfXywNCj4gPiArICAgICAgICAgICAgICAgICAg ICBTdGF0dXMsDQo+ID4gKyAgICAgICAgICAgICAgICAgICAgU3RhdHVzMSwNCj4gPiArICAgICAg ICAgICAgICAgICAgICBJbnRlcnJ1cHRTdGF0dXMNCj4gPiArICAgICAgICAgICAgICAgICAgICAp Ow0KPiA+ICAgICB9DQo+ID4gLSAgU3RhbmRhcmRMaWItPlJlY29yZEFzc2VydGlvbiAoDQo+ID4g LSAgICAgICAgICAgICAgICAgU3RhbmRhcmRMaWIsDQo+ID4gLSAgICAgICAgICAgICAgICAgQXNz ZXJ0aW9uVHlwZSwNCj4gPiAtICAgICAgICAgICAgICAgICBnU2ltcGxlTmV0d29ya0JCVGVzdEZ1 bmN0aW9uQXNzZXJ0aW9uR3VpZDAyMiwNCj4gPiAtICAgICAgICAgICAgICAgICBMIkVGSV9TSU1Q TEVfTkVUV09SS19QUk9UT0NPTC5HZXRTdGF0dXMgLSBJbnZva2UNCj4gR2V0U3RhdHVzKCkgYW5k IHZlcmlmeSBpbnRlcmZhY2UgY29ycmVjdG5lc3Mgd2l0aGluIHRlc3QgY2FzZSIsDQo+ID4gLSAg ICAgICAgICAgICAgICAgTCIlYTolZDpTdGF0dXMgLSAlciwgU3RhdHVzMSAtICVyLCBJbnRlcnJ1 cHRTdGF0dXMgLSAlZCIsDQo+ID4gLSAgICAgICAgICAgICAgICAgX19GSUxFX18sDQo+ID4gLSAg ICAgICAgICAgICAgICAgKFVJTlROKV9fTElORV9fLA0KPiA+IC0gICAgICAgICAgICAgICAgIFN0 YXR1cywNCj4gPiAtICAgICAgICAgICAgICAgICBTdGF0dXMxLA0KPiA+IC0gICAgICAgICAgICAg ICAgIEludGVycnVwdFN0YXR1cw0KPiA+IC0gICAgICAgICAgICAgICAgICk7DQo+ID4NCj4gPiAg ICAgLy8NCj4gPiAgICAgLy8gUmVzdG9yZSBTTlAgU3RhdGUNCj4gPg0KPiANCj4gDQo+IA0KDQo=