Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2628306ybb; Sun, 22 Mar 2020 04:04:43 -0700 (PDT) X-Google-Smtp-Source: ADFU+vu0FXVKne6QexXsmKmB36e19S21mwfpAg+hSm2uTmGLQD7DD1sllC9HE3xKtczBRdeVC8wW X-Received: by 2002:aca:3302:: with SMTP id z2mr8650722oiz.3.1584875083286; Sun, 22 Mar 2020 04:04:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584875083; cv=none; d=google.com; s=arc-20160816; b=lbeB7Pw2J/y5WLAk50YDUE0EHkXmMLxB2XdZKuf7j9DyuK09/SgVslqXlhU3G1Tloq VMb0O0oJiJqmaKUyLhd1OETMU1Eyojr3+1rq4dsyX7azJRFSgRLG/osUFsc4BTkGxkEw Cqd4e0Nll16Mtx9kXWPhnP0JnOYe+kul/TyYL5mcCLIpxKLOMcsh7JD8Kie9E9eLqm1q 3nWsfnnIJimw+/2rcFxou4K2SRZnAxMxRQ1adadIxNmeyuY8T44q1Bp6mTVj3K++5E/9 BAXZYhFocO7kVqhiI79ND1MkulnNafB5919aGJ1z+VBzueggzwabgU1e9+fz4fYSuGJo vM5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=0kdBeYMXJRZoCzpkV9G9wnh0lnl0rRXHIXFvd4Y+NkI=; b=KN9vBEmst038P9I0dpZD8tUzjyuQWmmhT6p59JyL1GWnK1WTgug2H4Ys628qdi5L3w WIebxyqeLPA4+NkmDJbJ12JWuOLD1V6NWGUQKewZxJhOVr5i/t8tXAEQJsK70spLhA/0 fWTnjTbAcCRDWb9XjbzHQwRli37bsknqdlcM9/7/I24VoFbgGtKRN++dVca/Pl0VZbuK zcnqlNqe4XRIdW9Ux9bwSNYcp9I84fMpdXaueevDQ+y3zgPi2Yx7sFnF6L0JHa8SED+G RgToihHFfItPsnXn92gXTeLKT490g5jgGwtaotD6lAf6h8nzLYezODTg8+LWbdKJFrkj +1wQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 192si726092oii.36.2020.03.22.04.04.30; Sun, 22 Mar 2020 04:04:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726989AbgCVLDp (ORCPT + 99 others); Sun, 22 Mar 2020 07:03:45 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:41023 "EHLO relay3-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726954AbgCVLDp (ORCPT ); Sun, 22 Mar 2020 07:03:45 -0400 X-Originating-IP: 2.7.45.25 Received: from localhost.localdomain (lfbn-lyo-1-453-25.w2-7.abo.wanadoo.fr [2.7.45.25]) (Authenticated sender: alex@ghiti.fr) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 3253A60009; Sun, 22 Mar 2020 11:03:41 +0000 (UTC) From: Alexandre Ghiti To: Paul Walmsley , Palmer Dabbelt , Zong Li , Anup Patel , Christoph Hellwig , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Alexandre Ghiti Subject: [RFC PATCH 3/7] riscv: Simplify MAXPHYSMEM config Date: Sun, 22 Mar 2020 07:00:24 -0400 Message-Id: <20200322110028.18279-4-alex@ghiti.fr> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200322110028.18279-1-alex@ghiti.fr> References: <20200322110028.18279-1-alex@ghiti.fr> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Either the user specifies maximum physical memory size of 2GB or the user lives with the system constraint which is 128GB in 64BIT for now. Signed-off-by: Alexandre Ghiti --- arch/riscv/Kconfig | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index 8e4b1cbcf2c2..a475c78e66bc 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -104,7 +104,7 @@ config PAGE_OFFSET default 0xC0000000 if 32BIT && MAXPHYSMEM_2GB default 0x80000000 if 64BIT && !MMU default 0xffffffff80000000 if 64BIT && MAXPHYSMEM_2GB - default 0xffffffe000000000 if 64BIT && MAXPHYSMEM_128GB + default 0xffffffe000000000 if 64BIT && !MAXPHYSMEM_2GB config ARCH_FLATMEM_ENABLE def_bool y @@ -216,19 +216,11 @@ config MODULE_SECTIONS bool select HAVE_MOD_ARCH_SPECIFIC -choice - prompt "Maximum Physical Memory" - default MAXPHYSMEM_2GB if 32BIT - default MAXPHYSMEM_2GB if 64BIT && CMODEL_MEDLOW - default MAXPHYSMEM_128GB if 64BIT && CMODEL_MEDANY - - config MAXPHYSMEM_2GB - bool "2GiB" - config MAXPHYSMEM_128GB - depends on 64BIT && CMODEL_MEDANY - bool "128GiB" -endchoice - +config MAXPHYSMEM_2GB + bool "Maximum Physical Memory 2GiB" + default y if 32BIT + default y if 64BIT && CMODEL_MEDLOW + default n config SMP bool "Symmetric Multi-Processing" -- 2.20.1