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.20; helo=mga02.intel.com; envelope-from=eric.dong@intel.com; receiver=edk2-devel@lists.01.org Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) (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 6F88221F38833 for ; Thu, 12 Oct 2017 02:51:38 -0700 (PDT) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Oct 2017 02:55:08 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.43,365,1503385200"; d="scan'208";a="1205012686" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga001.fm.intel.com with ESMTP; 12 Oct 2017 02:55:07 -0700 Received: from fmsmsx122.amr.corp.intel.com (10.18.125.37) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 12 Oct 2017 02:55:07 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by fmsmsx122.amr.corp.intel.com (10.18.125.37) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 12 Oct 2017 02:55:06 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.175]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.152]) with mapi id 14.03.0319.002; Thu, 12 Oct 2017 17:55:04 +0800 From: "Dong, Eric" To: Laszlo Ersek , "edk2-devel@lists.01.org" CC: "Ni, Ruiyu" , "Yao, Jiewen" Thread-Topic: [edk2] [Patch] UefiCpuPkg/S3Resume2Pei: Handle Communicate Ppi not exist issue. Thread-Index: AQHTQzV2pOcWillELU+62jMYPWQYn6LfcGmAgACHZyA= Date: Thu, 12 Oct 2017 09:55:04 +0000 Message-ID: References: <1507797478-13028-1-git-send-email-eric.dong@intel.com> <5842b1ee-80f3-1d66-0b2d-38e392dd5284@redhat.com> In-Reply-To: <5842b1ee-80f3-1d66-0b2d-38e392dd5284@redhat.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [Patch] UefiCpuPkg/S3Resume2Pei: Handle Communicate Ppi not exist issue. 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: Thu, 12 Oct 2017 09:51:38 -0000 Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 SGkgTGFzemxvLA0KDQo+IC0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+IEZyb206IExhc3ps byBFcnNlayBbbWFpbHRvOmxlcnNla0ByZWRoYXQuY29tXQ0KPiBTZW50OiBUaHVyc2RheSwgT2N0 b2JlciAxMiwgMjAxNyA1OjQzIFBNDQo+IFRvOiBEb25nLCBFcmljIDxlcmljLmRvbmdAaW50ZWwu Y29tPjsgZWRrMi1kZXZlbEBsaXN0cy4wMS5vcmcNCj4gQ2M6IE5pLCBSdWl5dSA8cnVpeXUubmlA aW50ZWwuY29tPjsgWWFvLCBKaWV3ZW4gPGppZXdlbi55YW9AaW50ZWwuY29tPg0KPiBTdWJqZWN0 OiBSZTogW2VkazJdIFtQYXRjaF0gVWVmaUNwdVBrZy9TM1Jlc3VtZTJQZWk6IEhhbmRsZQ0KPiBD b21tdW5pY2F0ZSBQcGkgbm90IGV4aXN0IGlzc3VlLg0KPiANCj4gSGkgRXJpYywNCj4gDQo+IE9u IDEwLzEyLzE3IDEwOjM3LCBFcmljIERvbmcgd3JvdGU6DQo+ID4gQ3VycmVudCBjb2RlIGFzc3Vt ZSBDb21tdW5pY2F0ZSBQcGkgYWx3YXlzIGV4aXN0ZWQsIH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ICAgICAgICAoVk9JRCAqKikmU21tQ29tbXVuaWNhdGlvblBwaQ0KPiA+ICAgICAg ICAgICAgICAgKTsNCj4gPiAtICBBU1NFUlRfRUZJX0VSUk9SIChTdGF0dXMpOw0KPiA+ICsgIGlm IChFRklfRVJST1IgKFN0YXR1cykpIHsNCj4gPiArICAgIERFQlVHICgoREVCVUdfRVJST1IsICJM b2NhdGUgU21tIENvbW11bmljYXRlIFBwaSBmYWlsZWQgKCVyKSFcbiIsDQo+IFN0YXR1cykpOw0K PiA+ICsgICAgcmV0dXJuIFN0YXR1czsNCj4gPiArICB9DQo+ID4NCj4gPiAtICAvLw0KPiA+IC0g IC8vIFNlbmQgY29tbWFuZA0KPiA+IC0gIC8vDQo+ID4gICAgU3RhdHVzID0gU21tQ29tbXVuaWNh dGlvblBwaS0+Q29tbXVuaWNhdGUgKA0KPiA+ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgU21tQ29tbXVuaWNhdGlvblBwaSwNCj4gPiAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgIChWT0lEICopQ29tbUJ1ZmZlciwNCj4gPiAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICZDb21tU2l6ZQ0KPiA+ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgKTsNCj4gPiAtICBBU1NFUlRfRUZJX0VSUk9SIChTdGF0dXMpOw0KPiA+IC0NCj4gPiAt ICBERUJVRyAoKEVGSV9EX0lORk8sICJTaWduYWxFbmRPZlMzUmVzdW1lIC0gRXhpdCAoJXIpXG4i LCBTdGF0dXMpKTsNCj4gPiArICBpZiAoRUZJX0VSUk9SIChTdGF0dXMpKSB7DQo+ID4gKyAgICBE RUJVRyAoKERFQlVHX0VSUk9SLCAiU21tQ29tbXVuaWNhdGlvblBwaS0+Q29tbXVuaWNhdGUNCj4g cmV0dXJuDQo+ID4gKyBmYWlsdXJlICglcikhXG4iLCBTdGF0dXMpKTsgIH0NCj4gPg0K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