From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mx.groups.io with SMTP id smtpd.web11.4729.1571750817674958061 for ; Tue, 22 Oct 2019 06:26:58 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 134.134.136.24, mailfrom: jian.j.wang@intel.com) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Oct 2019 06:26:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.67,327,1566889200"; d="scan'208";a="209679463" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by orsmga002.jf.intel.com with ESMTP; 22 Oct 2019 06:26:54 -0700 Received: from fmsmsx111.amr.corp.intel.com (10.18.116.5) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 22 Oct 2019 06:26:54 -0700 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by fmsmsx111.amr.corp.intel.com (10.18.116.5) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 22 Oct 2019 06:26:54 -0700 Received: from shsmsx107.ccr.corp.intel.com ([169.254.9.33]) by shsmsx102.ccr.corp.intel.com ([169.254.2.176]) with mapi id 14.03.0439.000; Tue, 22 Oct 2019 21:26:52 +0800 From: "Wang, Jian J" To: "Wang, Sunny (HPS SW)" , "Gao, Zhichao" , "devel@edk2.groups.io" , "lersek@redhat.com" , "Wu, Hao A" , "Ni, Ray" CC: "Li, Walon" Subject: Re: [edk2-devel] [PATCH] MdeModulePkg/BdsDxe: Make PlatformRecovery work regardless of OsIndications Thread-Topic: [edk2-devel] [PATCH] MdeModulePkg/BdsDxe: Make PlatformRecovery work regardless of OsIndications Thread-Index: AQHVg/Ucxgo4C4WdEUOOELSkEJT3lKdcYfSAgAAJaQCAABLQAIAKMVTw Date: Tue, 22 Oct 2019 13:26:52 +0000 Message-ID: References: <20191016074007.17572-1-sunnywang@hpe.com> <573f0624-50c5-1f12-ed4a-a4747339c839@redhat.com> <3CE959C139B4C44DBEA1810E3AA6F9000B857321@SHSMSX101.ccr.corp.intel.com> In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMmU5YTMwZTgtNGRiNi00MmJjLTk0YTEtOTkyMTI4Mzg1YTEwIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoicUpIcG9JKzhiXC9xWTMwc3ZMQnF0djYxWnVXRkdDb2J5R1o4S25OWm9xeDFmZkJJVTdIWWJ0TzRDVjd5Q3VUdzQifQ== x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Return-Path: jian.j.wang@intel.com Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 SSdtIG5vdCBmYW1pbGlhciB0aGlzIHBhcnQgb2YgY29kZS4gUmF5IGlzIGV4cGVydC4NCg0KQWNr ZWQtYnk6IEppYW4gSiBXYW5nIDxqaWFuLmoud2FuZ0BpbnRlbC5jb20+DQoNCj4gLS0tLS1Pcmln aW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogV2FuZywgU3VubnkgKEhQUyBTVykgPHN1bm55d2Fu Z0BocGUuY29tPg0KPiBT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