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 3BD5BC6FA83 for ; Fri, 23 Sep 2022 22:49:07 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id AEA2B845C3; Sat, 24 Sep 2022 00:48:57 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="HfdvzgpY"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D161F845C3; Sat, 24 Sep 2022 00:48:55 +0200 (CEST) Received: from mail-qk1-x735.google.com (mail-qk1-x735.google.com [IPv6:2607:f8b0:4864:20::735]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 5165F838F7 for ; Sat, 24 Sep 2022 00:48:53 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qk1-x735.google.com with SMTP id y2so998547qkl.11 for ; Fri, 23 Sep 2022 15:48:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date; bh=vLlBTI7D+Pwx/uGc6SiiDq+h+SNzT7tOvnybYHaJCuc=; b=HfdvzgpYm22YXrk/hKDiF4oXWoBztpOXXYDdopBVoN5P0P8mplT/cpygBu61fX0KNY ZZlZl0H5nqzmerlbdf2XfCGFEO8D4aERYkPXoQI3wlP9inZleHRwCAt2LqWLvg+o4NSO s7OmvhEiq/a5Uk5v/rKqPsOyIFSqx1G2F4a8Q= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date; bh=vLlBTI7D+Pwx/uGc6SiiDq+h+SNzT7tOvnybYHaJCuc=; b=w7HSBI/e17oKcacil50qRttSPrDFUzmLBEDmo2W5fla0Z8V1XkEmhsO/vyDJpGarCL Y/LAsmvRfyEaJnRreL1JW02qqxj3GhIuh40EcccnMj7R9zEkf2FwENHBocg6xCxq6EQe W5Jv7VByd1QbhrK20XjtegpeLbdMhgfZD8rVg1ALbQV9GH2CW9Q71i0wuMcIcMU4hkHG OGipYCJPBetg6pCPDlVO6cyKm0xumSA6A0WxYRqLPM+iSxDNeO1yuFPvVdPyoKVDbpXR JAcF87zC2kHkVY93b+eQHDKNyQgY70liFNA+oRlTngsyLtzvPHC9OV2UdZIniH7u0cj9 Xnng== X-Gm-Message-State: ACrzQf1akQs59NMfM+/ueOZRxiinAXQ4Hbs+sJkcBioXA0q7u9sXdINQ w4vYRv3XHHaoAE9R3CVCXNUIrA== X-Google-Smtp-Source: AMsMyM4/cZ7KJjrkh/W1LDoFhkA/BrK6AGEdy1E0nsHWcKhlFtgdnuRNLqdO9lgzWCZ+WYmn8/7ORw== X-Received: by 2002:a05:620a:bcd:b0:6be:a041:ee9b with SMTP id s13-20020a05620a0bcd00b006bea041ee9bmr7330409qki.307.1663973332007; Fri, 23 Sep 2022 15:48:52 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b00-6400-100c-81f5-095d-9e48.res6.spectrum.com. [2603:6081:7b00:6400:100c:81f5:95d:9e48]) by smtp.gmail.com with ESMTPSA id bn41-20020a05620a2ae900b006bb9e4b96e6sm6689277qkb.24.2022.09.23.15.48.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Sep 2022 15:48:51 -0700 (PDT) Date: Fri, 23 Sep 2022 18:48:49 -0400 From: Tom Rini To: Pali =?iso-8859-1?Q?Roh=E1r?= Cc: Simon Glass , Sean Anderson , u-boot@lists.denx.de Subject: Re: [PATCH v2] board_f: show_dram_config: Print also real DRAM size Message-ID: <20220923224849.GR3044094@bill-the-cat> References: <20220911093942.9570-1-pali@kernel.org> <20220918112328.4570-1-pali@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="LkL3iLkxWcC48rNm" Content-Disposition: inline In-Reply-To: <20220918112328.4570-1-pali@kernel.org> X-Clacks-Overhead: GNU Terry Pratchett 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.6 at phobos.denx.de X-Virus-Status: Clean --LkL3iLkxWcC48rNm Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Sep 18, 2022 at 01:23:27PM +0200, Pali Roh=E1r wrote: > 32-bit U-Boot builds cannot use more than around 2 GB of DDR memory. But = on > some platforms/boards it is possible to connect also 4 GB SODIMM DDR memo= ry. > U-Boot currently prints only effective size of RAM which can use, which m= ay > be misleading as somebody would expect that this line prints total size of > connected DDR modules. So change show_dram_config code to prints both real > and effective DRAM size if they are different. If they are same then print > just one number like before. It is possible that effective size is just f= ew > bytes smaller than the real size, so print both numbers only in case > function print_size() prints formats them differently. >=20 > Signed-off-by: Pali Roh=E1r Applied to u-boot/next, thanks! --=20 Tom --LkL3iLkxWcC48rNm Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmMuN9EACgkQFHw5/5Y0 tyxdewv/SP92+yfG0tMPArWJeOp/T7yUEJXxJ1BkcSl4KQA2kGmQV1DQGB4gmVBP zUqUqr+vj1t/uxywX+/kOltdIYLY5MbAxKI6A/If3SdjpZkL1vc/rJusUWpOVIFz ktAbNcl/5ddEcxQk/m2UOlI/18rkS6WbhRA/bYb2LEzCm90M6QnTu44Ces8lOebP +mZEpr5E20FVRSpjHUGLxys3azGeAOwc7EmmI8LDvCTeJo5L6iuAOfmUTMnnd26S KLzuZ6ES4ImSfx58iTWiVC5fDjrlfw5iMSXvBy9Oz5RWSE/o/Gmz11nVCxjTgob8 lr8FVeqZ3Mdwjjsp8I72x76aDGFpiwLw+FIhpIojEvAWCzog5HkOZSF168Keu3FG /BxP8gweV4B7oP9vQVGp+NKUiPS7cNv6cIwaqXQH4Xazg9Q7vVmuM5QDvrraomBe DS3vLGRSaJwX0cRblu8vbhElhIIoBCQN1+dYbYu5xLe3dSnylHQQChxOShyw6JvI 9wHTpReC =sx8G -----END PGP SIGNATURE----- --LkL3iLkxWcC48rNm--