From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.120; helo=mga04.intel.com; envelope-from=michael.d.kinney@intel.com; receiver=edk2-devel@lists.01.org Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) (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 334D62128E2CC for ; Tue, 12 Jun 2018 08:02:19 -0700 (PDT) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Jun 2018 08:02:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,215,1526367600"; d="scan'208";a="63438690" Received: from orsmsx104.amr.corp.intel.com ([10.22.225.131]) by fmsmga001.fm.intel.com with ESMTP; 12 Jun 2018 08:02:18 -0700 Received: from orsmsx155.amr.corp.intel.com (10.22.240.21) by ORSMSX104.amr.corp.intel.com (10.22.225.131) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 12 Jun 2018 08:02:18 -0700 Received: from orsmsx113.amr.corp.intel.com ([169.254.9.88]) by ORSMSX155.amr.corp.intel.com ([169.254.7.24]) with mapi id 14.03.0319.002; Tue, 12 Jun 2018 08:02:18 -0700 From: "Kinney, Michael D" To: Ard Biesheuvel , "Kinney, Michael D" CC: "Yao, Jiewen" , "edk2-devel@lists.01.org" , Leif Lindholm , "Zeng, Star" Thread-Topic: [PATCH v2 1/5] MdeModulePkg/CapsulePei: clean Dcache before consuming capsule data Thread-Index: AQHT/vYfw9PpXXVcaU+7ReDxjV5IpaRcDKUAgAAAzoCAAABigP//jCqQgAB80ID//7qF4IAA/hSAgAAZHID//9UUIA== Date: Tue, 12 Jun 2018 15:02:17 +0000 Message-ID: References: <20180608065811.2065-1-ard.biesheuvel@linaro.org> <20180608065811.2065-2-ard.biesheuvel@linaro.org> <74D8A39837DF1E4DA445A8C0B3885C503AC3DA25@shsmsx102.ccr.corp.intel.com> In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.200.100 dlp-reaction: no-action x-originating-ip: [10.22.254.140] MIME-Version: 1.0 Subject: Re: [PATCH v2 1/5] MdeModulePkg/CapsulePei: clean Dcache before consuming capsule data X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jun 2018 15:02:19 -0000 Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 QXJkLA0KDQpUaGUgVUVGSSBTcGVjIGFsbG93cyBVcGRhdGVDYXBzdWxlKCkgdG8gcmV0dXJuIEVG SV9VTlNVUFBPUlRFRC4NClNvIGFmdGVyIEV4aXRCb290U2VydmljZXMoKSBVcGRhdGVDYXBzdWxl KCkgY2FuIHJldHVybiBFRklfVU5TVVBQT1JURUQgZm9yIGFueSBjYXBzdWxlIHRoYXQgaGFzIHRo ZSBDQVBTVUxFX0ZMQUdTX1BFUlNJU1RfQUNST1NTX1JFU0VUIGZsYWcgc2V0Lg0KDQpNaWtlDQoN Cj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogQXJkIEJpZXNoZXV2ZWwgW21h aWx0bzphcmQuYmllc2hldXZlbEBsaW5hcm8ub3JnXQ0KPiBTZW50OiBUdWVzZGF5LCBKdW5lIDEy LCAyMDE4IDM6MzIgQU0NCj4gVG86IEtpbm5leSwgTWljaGFlbCBEIDxtaWNoYWVsLmQua2lubmV5 QGludGVsLmNvbT4NCj4gQ2M6IFlhbywgSmlld2VuIDxqaWV3ZW4ueWFvQGludGVsLmNvbT47IGVk azItDQo+IGRldmVsQG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