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 8897CC433F5 for ; Wed, 17 Nov 2021 09:16:23 +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 C66B66321A for ; Wed, 17 Nov 2021 09:16:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org C66B66321A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmx.de 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 D474B8349D; Wed, 17 Nov 2021 10:16:19 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=gmx.de 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; secure) header.d=gmx.net header.i=@gmx.net header.b="VHOK0Pqi"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9FFFB83467; Wed, 17 Nov 2021 10:16:17 +0100 (CET) Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 5D7A983305 for ; Wed, 17 Nov 2021 10:16:13 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=xypron.glpk@gmx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1637140533; bh=W8wgyJIVKaA3MPNgsDnL1Ah8/Hg/9tvlfJ9/LmoxPS8=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=VHOK0Pqinqw0WQjkJ7GyZxlwbRO3ji5+aath3QdanhbN+buPqifbS1j/IRQo+Kq+b 8gBsBep9JDFzLAwo6Vy1gDuAQysMOX3ZF4yJqfSrMXIy6atHgFWmkS4M4pDe9KsAx5 KFStWWE1naXTBj3aRBe+UzisknS5T+XDHdfwp/H8= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.123.55] ([88.152.144.157]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MPGVx-1n1nFR40lR-00PftN; Wed, 17 Nov 2021 10:15:33 +0100 Message-ID: <8399a84b-b2f0-b764-d70d-934b0069fbbf@gmx.de> Date: Wed, 17 Nov 2021 10:15:28 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.1 Subject: Re: [PATCH 04/10] Convert CONFIG_PHYSMEM to Kconfig Content-Language: en-US To: Simon Glass Cc: Tom Rini , Alexandru Gagniuc , Andy Shevchenko , Bin Meng , Joel Stanley , =?UTF-8?Q?Marek_Beh=c3=ban?= , Mario Six , Michal Simek , Patrick Delaunay , Priyanka Jain , Rasmus Villemoes , Rick Chen , Sean Anderson , Stefan Roese , Tero Kristo , Tyler Hicks , Wasim Khan , U-Boot Mailing List References: <20211114032201.493122-1-sjg@chromium.org> <20211114032201.493122-5-sjg@chromium.org> From: Heinrich Schuchardt In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:RQ3tyyLYyewqJWu+m0vde9oD2WWJDdgnIo3AtrpC3OO8TbYiZPY B5mdphJOBG23LFomkLnlzuojC/LwZXdY1eJfk6klyu+r/o7C5r9p2vizk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83K3x0Kk/wGUlP7h/Qw04EUOfWZRsMCDfrCoyP2IHj+l5Pa5/ofVS4rx YVSOlaq1T7+p6Ec1wdGd3wxhmMTFUYC0ETBt/fTeydAztL2AnTeFomzfOowe77nucwsHA2k1k kW1yhPEVgHdR0WB6wq/h3i+kVTNSRdk+VAIFrGq7chDBZi7BfVIN3oBVMwTpIFnZ0oowJgr81 XW1ySl0QKyz9Ow= 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 On 11/17/21 03:48, Simon Glass wrote: > Hi Heinrich, > > On Sun, 14 Nov 2021 at 02:46, Heinrich Schuchardt w= rote: >> >> On 11/14/21 04:21, Simon Glass wrote: >>> This converts the following to Kconfig: >>> CONFIG_PHYSMEM >>> >>> Signed-off-by: Simon Glass >>> --- >>> >>> README | 8 -------- >>> arch/Kconfig | 2 ++ >>> include/configs/edison.h | 3 --- >>> include/configs/sandbox.h | 2 -- >>> include/configs/x86-common.h | 2 -- >>> lib/Kconfig | 10 ++++++++++ >>> scripts/config_whitelist.txt | 1 - >>> 7 files changed, 12 insertions(+), 16 deletions(-) >>> >>> diff --git a/README b/README >>> index 9606a8b3acf..70485e7fb9f 100644 >>> --- a/README >>> +++ b/README >>> @@ -1716,14 +1716,6 @@ The following options need to be configured: >>> HERMES, IP860, RPXlite, LWMON, >>> FLAGADM >>> >>> -- Access to physical memory region (> 4GB) >>> - Some basic support is provided for operations on memory = not >>> - normally accessible to U-Boot - e.g. some architectures >>> - support access to more than 4GB of memory on 32-bit >>> - machines using physical address extension or similar. >>> - Define CONFIG_PHYSMEM to access this basic support, whic= h >>> - currently only supports clearing the memory. >>> - >>> - Error Recovery: >>> CONFIG_NET_RETRY_COUNT >>> >>> diff --git a/arch/Kconfig b/arch/Kconfig >>> index 3e2cc84ab2c..1e0e6118139 100644 >>> --- a/arch/Kconfig >>> +++ b/arch/Kconfig >>> @@ -194,6 +194,7 @@ config SANDBOX >>> imply PHY_FIXED >>> imply DM_DSA >>> imply CMD_EXTENSION >>> + imply PHYSMEM >>> >>> config SH >>> bool "SuperH architecture" >>> @@ -245,6 +246,7 @@ config X86 >>> imply USB_ETHER_SMSC95XX >>> imply USB_HOST_ETHER >>> imply PCH >>> + imply PHYSMEM >>> imply RTC_MC146818 >>> imply ACPIGEN if !QEMU >>> imply SYSINFO if GENERATE_SMBIOS_TABLE >>> diff --git a/include/configs/edison.h b/include/configs/edison.h >>> index 3ec35db4bcf..02f33f3c29f 100644 >>> --- a/include/configs/edison.h >>> +++ b/include/configs/edison.h >>> @@ -14,9 +14,6 @@ >>> #define CONFIG_SYS_MAXARGS 128 >>> #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE >>> >>> -/* Memory */ >>> -#define CONFIG_PHYSMEM >>> - >>> #define CONFIG_SYS_STACK_SIZE (32 * 1024) >>> >>> #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT= _BASE >>> diff --git a/include/configs/sandbox.h b/include/configs/sandbox.h >>> index 09f46ca1ac2..48cae7d972a 100644 >>> --- a/include/configs/sandbox.h >>> +++ b/include/configs/sandbox.h >>> @@ -18,8 +18,6 @@ >>> >>> #define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer S= ize */ >>> >>> -#define CONFIG_PHYSMEM >>> - >>> /* Size of our emulated memory */ >>> #define SB_CONCAT(x, y) x ## y >>> #define SB_TO_UL(s) SB_CONCAT(s, UL) >>> diff --git a/include/configs/x86-common.h b/include/configs/x86-common= .h >>> index 486b5ca7765..33209fad4fc 100644 >>> --- a/include/configs/x86-common.h >>> +++ b/include/configs/x86-common.h >>> @@ -14,8 +14,6 @@ >>> * High Level Configuration Options >>> * (easy to change) >>> */ >>> -#define CONFIG_PHYSMEM >>> - >>> #define CONFIG_SYS_BOOTM_LEN (16 << 20) >>> >>> /* SATA AHCI storage */ >>> diff --git a/lib/Kconfig b/lib/Kconfig >>> index 70bf8e7a464..f3baf45718e 100644 >>> --- a/lib/Kconfig >>> +++ b/lib/Kconfig >>> @@ -15,6 +15,16 @@ config SYS_NUM_ADDR_MAP >>> help >>> Sets the number of entries in the virtual-physical mapping ta= ble. >>> >>> +config PHYSMEM >>> + bool "Access to physical memory region (> 4GB)" >> >> %s/4GB/4 GiB/ > > Please let's not add that junk to U-Boot. 4GB =3D 4,000,000,000 bytes period. We use GiB all over U-Boot. So eliminate this GB "junk" here. Best regards Heinrich > >> >>> + help >>> + Some basic support is provided for operations on memory not >>> + normally accessible to 32-bit U-Boot - e.g. some architectures >>> + support access to more than 4GB of memory on 32-bit >>> + machines using physical address extension or similar. >> >> You could simply drop all those lines and simply say say: >> >> "Clear memory above 4GiB on 32bit systems." >> >> But do we need this option at all? Why should this memory be cleared? >> >> Let's drop arch/x86/lib/physmem.c instead. It is only used by the Ediso= n >> board which is out of production since 2017. And that board only had 1 >> GiB of memory (sic!). > > This option is used by Chrome OS vboot so I don't want to drop it. > > Regards, > Simon >