Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2D34BCD98C5 for ; Mon, 15 Jun 2026 15:32:16 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 84259846A4; Mon, 15 Jun 2026 17:32:14 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=dolcini.it Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=dolcini.it header.i=@dolcini.it header.b="hFo6lIAq"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D5F228484C; Mon, 15 Jun 2026 17:32:12 +0200 (CEST) Received: from mail11.truemail.it (mail11.truemail.it [217.194.8.81]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 6F05B84105 for ; Mon, 15 Jun 2026 17:32:10 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=dolcini.it Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=francesco@dolcini.it Received: from francesco-nb (248.201.173.83.static.wline.lns.sme.cust.swisscom.ch [83.173.201.248]) by mail11.truemail.it (Postfix) with ESMTPA id D02981FA8B; Mon, 15 Jun 2026 17:32:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dolcini.it; s=default; t=1781537529; bh=xq5LXNTdNrMkqJHSOe2wCv0EsFmBxUGHB9J6Et+U3oQ=; h=From:To:Subject; b=hFo6lIAqlig0jjAyiNdKXOpDXrvaUSZDyRYTPpa62VnjYOQW2Uop69wcwnreNLNTt Nj8Vnb98JGlVRDmbz8TRgF+OIbgozBIMzyNiCDwz8iIkJslzljKbhedWlhw6buPaHH J8ufU2EekBHszIP4iL9pWvRQgiu9lEnNZRWDTmaIxcw2e1AlDPuvc1bK/URlaIByzZ Bbl1AT0OuHkaaYYLY49zBP4Zbc6+QPf+x3SpRXey//O8AF+iEFTbQrVACat+AUzidO cPPPUeAwraO40FNldXRA6mx6py+n/5yTDtqmzz2qbhc/bdCSsLWCElUkSXDQjCrTTC dHBf6cYZJCTLA== Date: Mon, 15 Jun 2026 17:32:05 +0200 From: Francesco Dolcini To: Simona Toaca , Francesco Dolcini Cc: "Kumar, Udit" , uboot-imx@nxp.com, u-boot@lists.denx.de, Stefano Babic , festevam@gmail.com, peng.fan@nxp.com, alice.guo@nxp.com, ye.li@nxp.com, simona.toaca@nxp.com, viorel.suman@nxp.com, fedor.ross@ifm.com, marex@nabladev.com, joao.goncalves@toradex.com, ravi@prevas.dk, ping.bai@nxp.com, ji.luo@nxp.com, qijian.guo@nxp.com, "Francis, Neha" , Siddhant.Kumar@synopsys.com Subject: Re: [PATCH v4 1/4] imx9: Add support for saving DDR training data to NVM Message-ID: <20260615153205.GA186736@francesco-nb> References: <20260603072407.GA27913@francesco-nb> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260603072407.GA27913@francesco-nb> X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Hello Simona, On Wed, Jun 03, 2026 at 09:24:07AM +0200, Francesco Dolcini wrote: > Hello Simona, > > On Tue, Jun 02, 2026 at 01:59:39PM +0300, Simona Toaca wrote: > > On Thu, May 28, 2026 at 10:55:23AM +0530, Kumar, Udit wrote: > > > On 4/30/2026 2:03 PM, Simona Toaca (OSS) wrote: > > > > From: Simona Toaca > > > > > > > > DDR training data can be saved to NVM and be available > > > > to OEI at boot time, which will trigger QuickBoot flow. > > > > > > > > U-Boot only checks for data integrity (CRC32), while > > > > OEI is in charge of authentication when it tries to > > > > load the data from NVM. > > > > > > > > > > [...] > > > > +#define DDRPHY_QB_PSTATES 0 > > > > +#define DDRPHY_QB_PST_SIZE (DDRPHY_QB_PSTATES * 4 * 1024) > > > > > > [..] > > > Sorry for basic question, in case OEI layer changes format due to one of > > > other reason then how you are making sure, struct ddrphy_qb_state is > > > aligned > > > > > > + * This structure needs to be aligned with the one in OEI. > > > > > For now, the structure is stable. If anything changes, I will take care > > to update U-Boot accordingly. > > Did you consider Emanuele's email in which he thinks that what we have today > should already be changed? Following up on this, we moved on with a different approach that does not require changing this data structure. You can have a look at our implementation here, https://git.toradex.com/imx-oei-toradex.git/, if you are interested. Francesco