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 9882CC001B0 for ; Tue, 8 Aug 2023 21:45:19 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 18D51866DA; Tue, 8 Aug 2023 23:45:18 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1691531118; bh=tYIAUXTSuDfmvha3Ie32+0OSnS4SMps2VUI0doVclWk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=qS5mXLZ3nsy0uCOuvnl9gD2s7Ry2S+6m5bVQzEPCwFhvlX+7911XmxplRDlGfv3uU rNF6Q2NJNlg04xW9QfStJqEK0VaRGHqPtx1BqNRP5q70XLLIVzAL9QLwki4mtf1H4V xz/LhfMc01DPZ345FajEDxOQ6UU35pOKgGOHuXxOHq79ebvc96kfjmCsWmwROt233a Zn5cDv9YlMMhImB05htLFYFi1zmredIWvLBt+nNzrNC1Fq9rk3ibWQFd4hL0UUUEKL Vi3pMlhUGGPlMgu3fbDu0dkjVlj97dSSXJCc0JgiR3rzxjkTjeGAjIL24yPD+M/hGa u45OD8+vQ95Jw== Received: from mail.denx.de (unknown [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: festevam@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 1516C8664F; Tue, 8 Aug 2023 23:45:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1691531117; bh=tYIAUXTSuDfmvha3Ie32+0OSnS4SMps2VUI0doVclWk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=dXHH1D8a/DUIqoUVrgD7Y9wy8Ta9hvxNacFB5cTGPv4ENtbhgKPNimWFpqcjn8Lu6 9Mnc8FMKpOTOoHcl06pdFnCMpQnAeh0Xeaj1B6zgx0ZXaTNjrzB43nLXhcN9nwtXk5 EvXFF4vFIa3T37KwM+ErzaPvA0rlLHMybZW+h1bHzE9hYvkLB4PhRleuSnrgUv2zyD 8+ieMb58LRYHeQ8Yfvw0/Z7rPPH89jCCP8dlzE1WLUNosASV4A2NhUUfLO9jY+hl5s yWoBYaI9LZH0w6Cim9TJOwghv2pKXUtHQRDhsnITMJzWdc4FwkN+vc7jYKIGBrZfjw ErTeVh/fQtJUw== MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 08 Aug 2023 18:45:17 -0300 From: Fabio Estevam To: Elena Popa Cc: u-boot@lists.denx.de, Marek Vasut , Stefano Babic , Peng Fan Subject: Re: [PATCH v2] arm: imx: imx8m: imx9: Fix DRAM size calculation due to rom_pointer In-Reply-To: <20230808115826.2213645-1-elena.popa@nxp.com> References: <20230808115826.2213645-1-elena.popa@nxp.com> Message-ID: <3b48ed33b24919e92e680a94afc8824c@denx.de> X-Sender: festevam@denx.de User-Agent: Roundcube Webmail/1.3.6 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 Hi Elena, On 08/08/2023 08:58, Elena Popa wrote: > If dram_init_banksize() is called from SPL, the rom_pointer, at that > point, is not correctly initialized. This causes wrong calculation of > DRAM start and size in dram_init_banksize(). The issue became apparent > only in Falcon Mode. Added an extra condition to prevent using > rom_pointer in SPL. > > Signed-off-by: Elena Popa > --- > V2: Added the extra condition also in dram_init() and > get_effective_memsize() for consistency. Thanks for the fix. Reviewed-by: Fabio Estevam