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 B2DAEC433F5 for ; Wed, 17 Nov 2021 15:03:50 +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 E0516604DC for ; Wed, 17 Nov 2021 15:03:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org E0516604DC Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.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 6179182A74; Wed, 17 Nov 2021 16:03:47 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="m352USNu"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C778C82A69; Wed, 17 Nov 2021 16:03:44 +0100 (CET) Received: from mail-qk1-x729.google.com (mail-qk1-x729.google.com [IPv6:2607:f8b0:4864:20::729]) (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 A886582A74 for ; Wed, 17 Nov 2021 16:03:40 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=seanga2@gmail.com Received: by mail-qk1-x729.google.com with SMTP id a11so2778657qkh.13 for ; Wed, 17 Nov 2021 07:03:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=P5reXZYeJxV02tM5+o1ebYK5YFuLeQctP6BjtcdwMw0=; b=m352USNuwGqt5D4MFBYm4Vn6YtZv/tAb2trOmfM5nNdBAS13Mnu6IkDqaeLWpPe6Lr avWen7GvUbs5IGYX4GsJgiu2tVEXej7Mb4bYnb4yNvI7sB6jn+uhuYds1nVx52HM35u9 DtjQBIhW2dArr8oTxtYw5lkCN0N9kI/48eb5t+Y1DoiXtzCDQhzxT2Xkm9lj/pXeQSz7 SQSVt8IPV20rB3VJbdZiiw1N93Y5SIdXFaIuRNfsKFjn6terXadllNFOJGwO5vdljwTF PwULycmZcOHZBr4miJYO88VASNaGKvRjT58N4Sad63FaLwkm0iBj102c+/xUjPJNkeH1 Fm0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=P5reXZYeJxV02tM5+o1ebYK5YFuLeQctP6BjtcdwMw0=; b=guPVRFb6R1d0dp2de7tUm3R/9vbP99jO2GzS7m43x7BxX8A1/51KYCM8k9pjooNvQH EQzNvlKjrHoohoRTouw4k+bCSZx79Za8OqmycabojZLnHTKYTuM0SWF8eOvj7Ta8/0RF moILqbPpS9gdtcBn+XalUqCvVRiyGcrmXzXn/a6V02h7nnhDq63KCPVWXaksxlwm83k+ gpWU8GFgKr+edYeDCOQbOrwZERsqmsjniXkb3Mua3UvQMCmtEMw0JNZSm6nib64KQw7A ccf52PeE/rtWxJNz7wgcmC1xDMpAxT6GX5U9p6pWeEFup/KACntaEKvhciJOh25gluJj 5eqQ== X-Gm-Message-State: AOAM530q1ao1U0BYTgwunHiEC0RRRwBuhy35Q7943/+b7Al8oqZeT60o m+pe3kWd/hvxhnZUrCAkRwznFsq1D0A= X-Google-Smtp-Source: ABdhPJwtFhaXUOaixX3kKzg+nj1W1yez5ljlioXEMzONPfUnzMj5w1n8DMWUADKlqpprNxoyt0ce2Q== X-Received: by 2002:a05:620a:2148:: with SMTP id m8mr13830837qkm.435.1637161418995; Wed, 17 Nov 2021 07:03:38 -0800 (PST) Received: from [192.168.1.201] (pool-108-18-207-184.washdc.fios.verizon.net. [108.18.207.184]) by smtp.googlemail.com with ESMTPSA id h11sm28842qko.18.2021.11.17.07.03.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 17 Nov 2021 07:03:38 -0800 (PST) Subject: Re: [PATCH 04/10] Convert CONFIG_PHYSMEM to Kconfig To: Heinrich Schuchardt , 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 , 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> <8399a84b-b2f0-b764-d70d-934b0069fbbf@gmx.de> From: Sean Anderson Message-ID: <5f5c0668-5e8a-8bff-937c-32056165e160@gmail.com> Date: Wed, 17 Nov 2021 10:03:37 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <8399a84b-b2f0-b764-d70d-934b0069fbbf@gmx.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable 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 4:15 AM, Heinrich Schuchardt wrote: > On 11/17/21 03:48, Simon Glass wrote: >> Hi Heinrich, >> >> On Sun, 14 Nov 2021 at 02:46, Heinrich Schuchardt = wrote: >>> >>> On 11/14/21 04:21, Simon Glass wrote: >>>> This converts the following to Kconfig: >>>> =C2=A0=C2=A0=C2=A0=C2=A0 CONFIG_PHYSMEM >>>> >>>> Signed-off-by: Simon Glass >>>> --- >>>> >>>> =C2=A0=C2=A0 README=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 |=C2=A0 8 -------- >>>> =C2=A0=C2=A0 arch/Kconfig=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0 2 ++ >>>> =C2=A0=C2=A0 include/configs/edison.h=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0= 3 --- >>>> =C2=A0=C2=A0 include/configs/sandbox.h=C2=A0=C2=A0=C2=A0 |=C2=A0 2 -= - >>>> =C2=A0=C2=A0 include/configs/x86-common.h |=C2=A0 2 -- >>>> =C2=A0=C2=A0 lib/Kconfig=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 | 10 ++++++++++= >>>> =C2=A0=C2=A0 scripts/config_whitelist.txt |=C2=A0 1 - >>>> =C2=A0=C2=A0 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: >>>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 HERMES, I= P860, RPXlite, LWMON, >>>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 FLAGADM >>>> >>>> -- Access to physical memory region (> 4GB) >>>> -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 Some basic support is provided for operations on memory not >>>> -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 normally accessible to U-Boot - e.g. some architectures >>>> -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 support access to more than 4GB of memory on 32-bit >>>> -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 machines using physical address extension or similar. >>>> -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 Define CONFIG_PHYSMEM to access this basic support, which >>>> -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 currently only supports clearing the memory. >>>> - >>>> =C2=A0=C2=A0 - Error Recovery: >>>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 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 >>>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 imply PHY_FIXED >>>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 imply DM_DSA >>>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 imply CMD_EXTENSION >>>> +=C2=A0=C2=A0=C2=A0=C2=A0 imply PHYSMEM >>>> >>>> =C2=A0=C2=A0 config SH >>>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 bool "SuperH architecture" >>>> @@ -245,6 +246,7 @@ config X86 >>>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 imply USB_ETHER_SMSC95XX >>>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 imply USB_HOST_ETHER >>>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 imply PCH >>>> +=C2=A0=C2=A0=C2=A0=C2=A0 imply PHYSMEM >>>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 imply RTC_MC146818 >>>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 imply ACPIGEN if !QEMU >>>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 imply SYSINFO if GENERATE_SMBIO= S_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 @@ >>>> =C2=A0=C2=A0 #define CONFIG_SYS_MAXARGS=C2=A0 128 >>>> =C2=A0=C2=A0 #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE >>>> >>>> -/* Memory */ >>>> -#define CONFIG_PHYSMEM >>>> - >>>> =C2=A0=C2=A0 #define CONFIG_SYS_STACK_SIZE=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (32 * 1024) >>>> >>>> =C2=A0=C2=A0 #define CONFIG_SYS_MONITOR_BASE=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 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 @@ >>>> >>>> =C2=A0=C2=A0 #define CONFIG_SYS_CBSIZE=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 1024=C2=A0=C2=A0=C2=A0 /* Console I/O Buff= er Size */ >>>> >>>> -#define CONFIG_PHYSMEM >>>> - >>>> =C2=A0=C2=A0 /* Size of our emulated memory */ >>>> =C2=A0=C2=A0 #define SB_CONCAT(x, y) x ## y >>>> =C2=A0=C2=A0 #define SB_TO_UL(s) SB_CONCAT(s, UL) >>>> diff --git a/include/configs/x86-common.h b/include/configs/x86-comm= on.h >>>> index 486b5ca7765..33209fad4fc 100644 >>>> --- a/include/configs/x86-common.h >>>> +++ b/include/configs/x86-common.h >>>> @@ -14,8 +14,6 @@ >>>> =C2=A0=C2=A0=C2=A0 * High Level Configuration Options >>>> =C2=A0=C2=A0=C2=A0 * (easy to change) >>>> =C2=A0=C2=A0=C2=A0 */ >>>> -#define CONFIG_PHYSMEM >>>> - >>>> =C2=A0=C2=A0 #define CONFIG_SYS_BOOTM_LEN=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (16 << 20= ) >>>> >>>> =C2=A0=C2=A0 /* 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 >>>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 help >>>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Sets the number of = entries in the virtual-physical mapping table. >>>> >>>> +config PHYSMEM >>>> +=C2=A0=C2=A0=C2=A0=C2=A0 bool "Access to physical memory region (> = 4GB)" >>> >>> %s/4GB/4 GiB/ >> >> Please let's not add that junk to U-Boot. >=20 > 4GB =3D 4,000,000,000 bytes period. Only if you're a hard drive manufacturer ;) --Sean