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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4F0DCC433F5 for ; Wed, 17 Nov 2021 15:55:08 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 760B6617E3 for ; Wed, 17 Nov 2021 15:55:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 760B6617E3 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A9CA0809D4; Wed, 17 Nov 2021 16:55:04 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (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="VV0NO4rl"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 595BD801DD; Wed, 17 Nov 2021 16:55:02 +0100 (CET) Received: from mail-qv1-xf30.google.com (mail-qv1-xf30.google.com [IPv6:2607:f8b0:4864:20::f30]) (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 6B8F282093 for ; Wed, 17 Nov 2021 16:54:56 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qv1-xf30.google.com with SMTP id j9so2314769qvm.10 for ; Wed, 17 Nov 2021 07:54:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=uopCJ1M5y2DQ3l48SMZv1B3fjYR3m40qvFefcJrR710=; b=VV0NO4rl3DZF/8nwr3+NJPR/O7kU35KM5z3hdj3+cVGciM5IpGZMDWA8dF0P8644Zp KiTaNwuYQrjqyLZO7ETEiybno0F29xIN99F9b6iIhyAATwvw3JCKwbH2ueF7JISQLCFZ obFPaOV7QppYt/WDyuze9olRf7UikfT91M8BQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=uopCJ1M5y2DQ3l48SMZv1B3fjYR3m40qvFefcJrR710=; b=f4tBl1vSZvCxPKEKbtMDd/bo3zc+6S35IZPSsyf/TW1QhGBjvhikaEaYAKq4aEqsbn qS1J61s/27xaYbzXbWtGXqRD3fNhtw6/jVY62WbakqhqgVtUGuRsyXmEkbo7WG0c0rEf SCAVaFp3aGAI/nJsTi+Brj8AUlWHfHj5bW8coVe5+HyfQ9snphTcW7aK6bqvJXXL4RYx B/8Pj78XiKfRleNq/csntpXajLfjklY+6VK7OpExbK7UKhlZOS8T/erzKYtTMhKL5cIj h/BJ+JDRud9CCyX3DdDwB37fDifWdS4CiV4wEeUrzX4drn/RE79MelbcclHsIVUIf+wb hrrQ== X-Gm-Message-State: AOAM532SReDyr1aSvx3F9lwV1jQ0zDDbqpMrgTlxe3ZXubnrTpjPmsHb eUQ/p3kVNUm5717sevyZOBTB7Q== X-Google-Smtp-Source: ABdhPJwEQ6xPYNw0ArsBPfzh0SAzQ/0tjGPFcKEemAEflHt8rZqV1GC4v3jnX4pNV8v4LWWV7Ox1Pg== X-Received: by 2002:a05:6214:e8b:: with SMTP id hf11mr57696834qvb.40.1637164495213; Wed, 17 Nov 2021 07:54:55 -0800 (PST) Received: from bill-the-cat (2603-6081-7b01-cbda-a8a6-c29d-3d45-57ea.res6.spectrum.com. [2603:6081:7b01:cbda:a8a6:c29d:3d45:57ea]) by smtp.gmail.com with ESMTPSA id v1sm127677qtw.65.2021.11.17.07.54.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Nov 2021 07:54:54 -0800 (PST) Date: Wed, 17 Nov 2021 10:54:51 -0500 From: Tom Rini To: Sean Anderson Cc: Heinrich Schuchardt , Alexandru Gagniuc , Andy Shevchenko , Bin Meng , Joel Stanley , Marek =?iso-8859-1?Q?Beh=FAn?= , Mario Six , Michal Simek , Patrick Delaunay , Priyanka Jain , Rasmus Villemoes , Rick Chen , Stefan Roese , Tero Kristo , Tyler Hicks , Wasim Khan , U-Boot Mailing List , Simon Glass Subject: Re: [PATCH 04/10] Convert CONFIG_PHYSMEM to Kconfig Message-ID: <20211117155451.GZ24579@bill-the-cat> References: <20211114032201.493122-1-sjg@chromium.org> <20211114032201.493122-5-sjg@chromium.org> <8399a84b-b2f0-b764-d70d-934b0069fbbf@gmx.de> <5f5c0668-5e8a-8bff-937c-32056165e160@gmail.com> <479b9ccf-aa65-04f9-bc55-90736803ea06@gmx.de> <6570b4ed-aab1-e7fa-8b8b-9bf171fb786a@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="DYxtdHSupNSdWAwr" Content-Disposition: inline In-Reply-To: <6570b4ed-aab1-e7fa-8b8b-9bf171fb786a@gmail.com> X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.35 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.2 at phobos.denx.de X-Virus-Status: Clean --DYxtdHSupNSdWAwr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Nov 17, 2021 at 10:46:35AM -0500, Sean Anderson wrote: > On 11/17/21 10:29 AM, Heinrich Schuchardt wrote: > > On 11/17/21 16:03, Sean Anderson wrote: > > > On 11/17/21 4:15 AM, Heinrich Schuchardt wrote: > > > > On 11/17/21 03:48, Simon Glass wrote: > > > > > > > >=20 > > > > > > %s/4GB/4 GiB/ > > > > >=20 > > > > > Please let's not add that junk to U-Boot. > > > >=20 > > > > 4GB =3D 4,000,000,000 bytes period. > > >=20 > > > Only if you're a hard drive manufacturer ;) > >=20 > > I suggest reading ISO/IEC 80000-13:2008. >=20 > FWIW I like how truncate(1) does it: >=20 > > Units are K,M,G,T,P,E,Z,Y (powers of 1024) or KB,MB,... (powers of > > 1000). Binary prefixes can be used, too: KiB=3DK, MiB=3DM, and so on. >=20 > Which leaves the awkward units alone, and reserves the most convenient > suffixes for natural units. We're currently not at all consistent in Kconfig text, and I didn't check doc/ (where I suspect Heinrich has been enforcing consistency). I do feel like the truncate(1) method is a good compromise. --=20 Tom --DYxtdHSupNSdWAwr Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmGVJcgACgkQFHw5/5Y0 tywukwv+PqhKOSjQTQIuuP1e68ftdXUrwrmJOouReWm1spw7Kod6SOWRdWbC6G0L tatG3z2akCqW5Fv0apKU4R0mFBnLW7CletwzBcOmOFfCjFEaufagbchtpjaSsOdf RB4GsvC5LLxxeRzVJ/aXknifeb5hyzoHWTS37enmY0kBupNFkyDqKmqhwpiJd2Fo mw2pemW2lZI0Q2hdB6Cnfwp0SPlbsrsPlwtZv+hL1QNZDIg6WarJXiAkuduqVvzX wHTJS4HotZNypR4br1kKfmaNpFZEvTcAhOI77Nr/oFswsOL9LkGTCua9jPvLafZN /3YHwhF7owmisglqc/k0vvYrHkbuAACZOIcSrBZjVPXCecmM0tyIOmbMa+mioPPY fhlw+XVkXRm5fbYJtsOkqTsYrqI2GIBlVNvx+M8gODyzzwYTq+3mqS2Ax7FRyDUq 4G1qwuto9FRbKufiq03TZdc56KhbM9fTmA/soCq66wPapYWI27PcEPy18w8VPLuN kixE8NqQ =ZG+E -----END PGP SIGNATURE----- --DYxtdHSupNSdWAwr--