From mboxrd@z Thu Jan 1 00:00:00 1970 From: sbabic at denx.de Date: Mon, 11 May 2020 12:17:53 +0200 (CEST) Subject: [PATCH 02/10] imx: imx8qm/qxp: Fix issue in get_effective_memsize In-Reply-To: <20200505122846.15992-3-peng.fan@nxp.com> Message-ID: <20200511101753.D07788186F@phobos.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > From: Ye Li > When Trusty OS allocates the mem region from 0xfe0000000-0xffffffff, > the get_effective_memsize does not return correct memory size. > There is a check in get_effective_memsize to find the memreg where > the u-boot is running, and return the size of that memreg as the result > of get_effective_memsize. When using aligned start, the value is > 0x80200000 since it is 2MB aligned. Thus the finding of memreg will > fail and return the PHYS_SDRAM_1_SIZE because u-boot text base is > 0x80020000. This cause u-boot is relocated to the high memory where has > been occupied by Trusty OS. > Reviewed-by: Peng Fan > Signed-off-by: Ye Li > Signed-off-by: Peng Fan Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================