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; Thu, 26 Sep 2019 19:02:01 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Sep 2019 19:02:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,553,1559545200"; d="scan'208";a="183824735" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga008.jf.intel.com with ESMTP; 26 Sep 2019 19:02:00 -0700 Received: from fmsmsx116.amr.corp.intel.com (10.18.116.20) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 26 Sep 2019 19:01:33 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by fmsmsx116.amr.corp.intel.com (10.18.116.20) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 26 Sep 2019 19:01:32 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.113]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.132]) with mapi id 14.03.0439.000; Fri, 27 Sep 2019 10:01:31 +0800 From: "xianhui liu" To: "devel@edk2.groups.io" , "Liu, XianhuiX" , "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+Pl80q5DoCt6c7pvyAgAMhmoA= Date: Fri, 27 Sep 2019 02:01:31 +0000 Message-ID: References: <20190924085052.8484-1-xianhuix.liu@intel.com> <1ec6d2d9-561b-c04e-327e-20b82001929f@gmx.de> <15C78CE54FBDEE07.4626@groups.io> In-Reply-To: <15C78CE54FBDEE07.4626@groups.io> 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 SGkgSGVpbnJpY2gsDQpBbnkgY29uY2VybiBhYm91dCBpdD8gVGhhbmtzLg0KDQpCZXN0IFJlZ2Fy ZHMNClhpYW5odWkgTGl1DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTog ZGV2ZWxAZWRrMi5ncm91cHMuaW8gW21haWx0bzpkZXZlbEBlZGsyLmdyb3Vwcy5pb10gT24gQmVo YWxmIE9mDQo+IHhpYW5odWkgbGl1DQo+IFNlbnQ6IFdlZG5lc2RheSwgU2VwdGVtYmVyIDI1LCAy MDE5IDEwOjE4IE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 UmVjb3JkQXNzZXJ0aW9uICgNCj4gPiA+ICsgICAgICAgICAgICAgICAgICAgIFN0YW5kYXJkTGli LA0KPiA+ID4gKyAgICAgICAgICAgICAgICAgICAgQXNzZXJ0aW9uVHlwZSwNCj4gPiA+ICsgICAg ICAgICAgICAgICAgICAgIGdTaW1wbGVOZXR3b3JrQkJUZXN0RnVuY3Rpb25Bc3NlcnRpb25HdWlk MDIyLA0KPiA+ID4gKyAgICAgICAgICAgICAgICAgICAgTCJFRklfU0lNUExFX05FVFdPUktfUFJP VE9DT0wuR2V0U3RhdHVzIC0NCj4gPiA+ICsgSW52b2tlDQo+ID4gR2V0U3RhdHVzKCkgYW5kIHZl cmlmeSBpbnRlcmZhY2UgY29ycmVjdG5lc3Mgd2l0aGluIHRlc3QgY2FzZSIsDQo+ID4gPiArICAg ICAgICAgICAgICAgICAgICBMIiVhOiVkOlN0YXR1cyAtICVyLCBTdGF0dXMxIC0gJXIsIEludGVy cnVwdFN0YXR1cyAtICVkIiwNCj4gPiA+ICsgICAgICAgICAgICAgICAgICAgIF9fRklMRV9fLA0K PiA+ID4gKyAgICAgICAgICAgICAgICAgICAgKFVJTlROKV9fTElORV9fLA0KPiA+ID4gKyAgICAg ICAgICAgICAgICAgICAgU3RhdHVzLA0KPiA+ID4gKyAgICAgICAgICAgICAgICAgICAgU3RhdHVz MSwNCj4gPiA+ICsgICAgICAgICAgICAgICAgICAgIEludGVycnVwdFN0YXR1cw0KPiA+ID4gKyAg ICAgICAgICAgICAgICAgICAgKTsNCj4gPiA+ICAgICB9DQo+ID4gPiAtICBTdGFuZGFyZExpYi0+ UmVjb3JkQXNzZXJ0aW9uICgNCj4gPiA+IC0gICAgICAgICAgICAgICAgIFN0YW5kYXJkTGliLA0K PiA+ID4gLSAgICAgICAgICAgICAgICAgQXNzZXJ0aW9uVHlwZSwNCj4gPiA+IC0gICAgICAgICAg ICAgICAgIGdTaW1wbGVOZXR3b3JrQkJUZXN0RnVuY3Rpb25Bc3NlcnRpb25HdWlkMDIyLA0KPiA+ ID4gLSAgICAgICAgICAgICAgICAgTCJFRklfU0lNUExFX05FVFdPUktfUFJPVE9DT0wuR2V0U3Rh dHVzIC0gSW52b2tlDQo+ID4gR2V0U3RhdHVzKCkgYW5kIHZlcmlmeSBpbnRlcmZhY2UgY29ycmVj dG5lc3Mgd2l0aGluIHRlc3QgY2FzZSIsDQo+ID4gPiAtICAgICAgICAgICAgICAgICBMIiVhOiVk OlN0YXR1cyAtICVyLCBTdGF0dXMxIC0gJXIsIEludGVycnVwdFN0YXR1cyAtICVkIiwNCj4gPiA+ IC0gICAgICAgICAgICAgICAgIF9fRklMRV9fLA0KPiA+ID4gLSAgICAgICAgICAgICAgICAgKFVJ TlROKV9fTElORV9fLA0KPiA+ID4gLSAgICAgICAgICAgICAgICAgU3RhdHVzLA0KPiA+ID4gLSAg ICAgICAgICAgICAgICAgU3RhdHVzMSwNCj4gPiA+IC0gICAgICAgICAgICAgICAgIEludGVycnVw dFN0YXR1cw0KPiA+ID4gLSAgICAgICAgICAgICAgICAgKTsNCj4gPiA+DQo+ID4gPiAgICAgLy8N Cj4gPiA+ICAgICAvLyBSZXN0b3JlIFNOUCBTdGF0ZQ0KPiA+ID4NCj4gPg0KPiA+DQo+ID4NCj4g DQo+IA0KPiANCg0K