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 E28DEC433F5 for ; Thu, 14 Apr 2022 14:46:37 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9F79F83DA0; Thu, 14 Apr 2022 16:46:35 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (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=1649947595; bh=Jxf3zjb41f7V59H3fxq4dynZWqMGJ/fMTt7jxvkiy1M=; h=Date:From:To:Cc:Subject:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=cEDRb9Oz2MVQjbHAIo8wVk3iVabCVRtmX+eFl9CWNqtxhUIOrSZPn+p9ynPAg+KBy cSBCtAaClsTKJanjP9Eo/cMilru4qe9RZskLvwlpWV4fsHyfEf1e3ln1rhuDse805f nvrh/liZVNLP7ncmZIuBahzizgMag4iiMVbv7NVP3TUD4rdvM5LCN1qGJ/eyIgrLIJ zJNUDtyfRzuFPrMtTrG5ZbC7se2z192bLwC+XzQpN2QbI9ERo+82kYahb53VNRnUp9 xFI7jqCpFSbwLY88Jhli068yhaUK9fl2RkeVOiVSxVfCtjxZAwnjopZAV652XXJEDm YjBGziR7znasA== 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 CF5938191C; Thu, 14 Apr 2022 16:46:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1649947593; bh=Jxf3zjb41f7V59H3fxq4dynZWqMGJ/fMTt7jxvkiy1M=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=QQJRX9+He/1xpXgM6hkiO4dZOmkyJwVj14nJ/OnWJg6uyv3jZiG97V69M9G45DKRT zOFUTsx7CkiGsoy7PiJnCzVr5K2vqor1dhF1QZTha8QhTXq1BKKjnEzfnzH9TN7OPo 4oVUGsNV5A8cVpuDkfxsQZ6er9AF9RdLjPGB+9qKWOLePIngQx5AfN7HINbEGbAfT9 x+d4mSX9v3CCUGkZ0Bpo7pFXu2IYD9A86IOnndBSjt9I3+YVZSlQdo1eOUfbTfR9aU BbWbqMRJ4OCV7pdovqkNLZKGgKgR4JDguVeQAvLHhmPSAqwuMFKBgdeH5ZI2iYE/sA 901jkzXLx9UVQ== MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 14 Apr 2022 11:46:33 -0300 From: Fabio Estevam To: Marek Vasut Cc: u-boot@lists.denx.de, Frieder Schrempf , Peng Fan , Stefano Babic Subject: Re: [PATCH] ARM: imx: imx8m: Fix board_get_usable_ram_top() In-Reply-To: <20220414135146.51352-1-marex@denx.de> References: <20220414135146.51352-1-marex@denx.de> Message-ID: 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.5 at phobos.denx.de X-Virus-Status: Clean Hi Marek, On 14/04/2022 10:51, Marek Vasut wrote: > The 4 GiB boundary is at 0xffffffff+1 , not at 0x80000000, fix this. > > The PHYS_SDRAM of i.MX8M is at 0x40000000 , so to restrict ram_top > below 4 GiB, the ram_top has to be set to 0xffffffff as it is not > an offset from the start of PHYS_SDRAM, but rather a physical address > marking the topmost allowed DRAM address. > > Fixes: e27bddff4b9 ("imx8m: Restrict usable memory to space below 4G > boundary") > Signed-off-by: Marek Vasut > Cc: Fabio Estevam > Cc: Frieder Schrempf > Cc: Peng Fan > Cc: Stefano Babic Good catch! Reviewed-by: Fabio Estevam