From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0073.outbound.protection.outlook.com [104.47.2.73]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 86ACC21D492C1 for ; Tue, 19 Sep 2017 21:24:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=BKp3HBb/0TfFJqpIbSP/ki0I3BNGiXaRlZ8vW85OFH8=; b=OvD0iSRHwsTxN4LYC7Sa6OcKJf1pFg1zSf1eQbPJ94bsFBLdJFcmtMv5E4hoa7ojOajlZnw1Sl9LX1ueRBgDuHOyVZ7VE4e+N/KQUHQEZcH/Lh/OTyV4UBPdOT4Ny8i5V0Kju0/cn7qiYI4z3DVmueXi22EIrpjZH4i6D/K4o6U= Received: from AM6PR0402MB3334.eurprd04.prod.outlook.com (52.133.18.151) by AM6PR0402MB3845.eurprd04.prod.outlook.com (52.133.29.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Wed, 20 Sep 2017 04:27:31 +0000 Received: from AM6PR0402MB3334.eurprd04.prod.outlook.com ([fe80::4d05:6a0c:bcca:93be]) by AM6PR0402MB3334.eurprd04.prod.outlook.com ([fe80::4d05:6a0c:bcca:93be%13]) with mapi id 15.20.0056.018; Wed, 20 Sep 2017 04:27:31 +0000 From: Udit Kumar To: Ard Biesheuvel CC: Vladimir Olovyannikov , "edk2-devel@lists.01.org" , "Olivier.Martin@arm.com" Thread-Topic: [edk2] Storing Non volatile variables on SD/NAND Thread-Index: AdMwhGas4HV30Cb6RHux5gL+cq9qtgAEHTUAAAJm0wAAGXHS4AAYW1AAABfKRvA= Date: Wed, 20 Sep 2017 04:27:31 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=udit.kumar@nxp.com; x-originating-ip: [192.88.169.1] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; AM6PR0402MB3845; 6:fJKU1AuUkUu0aSOaPRdadYanau4Ih2RchQsfn9D+ZJ7Pt/CAknhjm+ojt+ngoiMwoeb9cV3I4A00HLZjGb7gHIokwsKW5T2OyxESHe/BNt4oQ+08614mGoDo+PxKhRyUZ3zGm18XGzH5zpyG6JYpG4emOZq8bOUFxdsHvhesZaQ2ifbuORJPJH/Vnsu6AHj94AVgtqCkf5HaXhiT+GyuJvjTLA5s6RumGqrSPrHyf6qT+oXSjQN5sdlQh2AUcq+ju2XQvcJ7cl/96oo6lMUkeukDn9DPv4Sps/qKxVQVUeqkeIH41S/RencA+Ah3cVfw/sqRzc9c/qM4Yrz3wADb9g==; 5:wF8vKvgwV9fzgkVSwOl+gBy/1dmbE1K0AXhDf50j5OwnlFNvwdoil37mi8xpAOfzl7SRlKV8CNd7cFLo2XsyVgdXIlU9D4gFAohgWo56fX8YJp7qODrhX2kCLWwlwPmiWbUkkrwXpPZZYoq7znjeysJJ/S1w1igzbh8f3xxk1m0=; 24:hgnty7f0KYMfLVJKlwp0G4kcU7s7qcazc6VrYGhQda+sQ651IpKoQRQVMmBUs3PhHUgvvZJp/gMZyIFH7NcoJpcger5ia5Ensq7sROsgAHY=; 7:LAhRJtFZthcglGNGphlvzbmOjHFDEx0mKzOWNXVoXcK9EdtEzxAH7f4OxeNPmH2qfLem6HVYTKc3bGBVuNY8x4hNZWkBw/IGLQPMTJxbT+MJYrJfbsSniCB01bxAuCXjkNaUYlBJiBcSfrIqlzi+luNnrxgVvvApD2mc8lqHemd+HcaxnBPLLK1Sa7xbQCVVNvji+EgHfqKLaTSllrf+RrjDV7bbZieqeolhZBLJsyE= x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-correlation-id: bddbc881-5f63-413e-bfb2-08d4ffdfe912 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(48565401081)(300000503095)(300135400095)(2017052603199)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:AM6PR0402MB3845; x-ms-traffictypediagnostic: AM6PR0402MB3845: x-exchange-antispam-report-test: UriScan:(192374486261705)(185117386973197); x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(100000703101)(100105400095)(93006095)(93001095)(10201501046)(3002001)(6055026)(6041248)(20161123564025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123560025)(20161123558100)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:AM6PR0402MB3845; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:AM6PR0402MB3845; x-forefront-prvs: 04362AC73B x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(979002)(6009001)(376002)(346002)(39860400002)(189002)(199003)(24454002)(3280700002)(3660700001)(4326008)(6246003)(101416001)(54356999)(76176999)(50986999)(93886005)(53936002)(99286003)(55016002)(9686003)(97736004)(5660300001)(5250100002)(189998001)(2900100001)(8676002)(305945005)(7736002)(74316002)(2906002)(68736007)(7696004)(33656002)(106356001)(8936002)(81156014)(105586002)(2950100002)(6916009)(81166006)(478600001)(6506006)(316002)(6116002)(86362001)(6436002)(102836003)(3846002)(14454004)(66066001)(54906003)(25786009)(229853002)(53546010)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR0402MB3845; H:AM6PR0402MB3334.eurprd04.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Sep 2017 04:27:31.7786 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR0402MB3845 Subject: Re: Storing Non volatile variables on SD/NAND 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: Wed, 20 Sep 2017 04:24:30 -0000 Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 DQo+IE9uIDE4IFNlcHRlbWJlciAyMDE3IGF0IDIyOjI4LCBVZGl0IEt1bWFyIDx1ZGl0Lmt1bWFy QG54cC5jb20+IHdyb3RlOg0KPiA+IFRoYW5rcyBWbGFkaW1pciwNCj4gPiBXaXRoIHlvdXIgZGVz aWduLCB5b3UgZGlkIGRlbGF5ZWQgd3JpdGUgdG8gZU1NQyBkdWUgdG8gc2hhcmluZyB3aXRoDQo+ ID4gT1MuICBCdXQgaXQgd29ya3MgZm9yIHlvdTopIFNheSBpZiBlTU1DIGNvbnRyb2xsZXJzIG9m ZmVycyB5b3UgYQ0KPiA+IHN0YXR1cyBiaXQsIGlmIGVNTUMgc3RvcmFnZSBpcyBiZWluZyB1c2Vk IGZvciBub3QuIFRoZW4gdGhpcyBjb3VsZCBiZSBwb3NzaWJsZSB0bw0KPiB1cGRhdGUgYXQgcnVu IHRpbWUsIGJvdGggT1MvVUV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