From mboxrd@z Thu Jan 1 00:00:00 1970 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 312B3C433F5 for ; Tue, 28 Sep 2021 15:49:50 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id ED76560F44 for ; Tue, 28 Sep 2021 15:49:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org ED76560F44 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=8AzcKPbmMzQsAMhSB3NwCE7/r2yqzVXYSOKbwF1h0P8=; b=QX2t2qn9lzAmIV SAceaOtsKXKWQxr5QWNitg+YDgQzzx2aF0b+TmKQca9wjxd52dp4i680nQKBO/fc91U0TPGVjOzMW k8V1dGOUMh+nkVWxlQKh4NEhtpd829iiMaU5seXwIkDeEgg97vjIWa1Wf4DYHUdzSw/GlWSKGZe7k e4ThMSSYguXnBgLnGaxiwYlf8r/q9MGV1mKR49Pv2Jsy+vUS7S3Ob6QJckYdXMbMSjaekzAbaC42s WtilL35jXbZc599qRNPEAAYEVuGmiX75zwgvTWmTTzLutOKHpz9GDYY1S/mfsa73XsTJLBvP+Frrq nA+Os/wyBv2642VQ9bmA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mVFJj-007qOL-Gh; Tue, 28 Sep 2021 15:46:52 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mVFFQ-007oCu-PC for linux-arm-kernel@lists.infradead.org; Tue, 28 Sep 2021 15:42:26 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id A32C86124A; Tue, 28 Sep 2021 15:42:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632843744; bh=fK3Q2oqvtUgvjlTJS3xSTsoPj9+qRtVxTymOeapiW40=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mAfG2hEXhEA9bHqiR8mCQ+AdpcssV0EapvyKnwizMS/yg67TZQwYBIVIr9S0TGJ5M JWP78C8oAEse8icvSQcOMwfqGqobHL1Gx5xjOwxlBE4NwgsXCwrdd7JI3pQ0J6lPN9 WTP54DQMmApJFLHt1k1/GPQmECcfR8htc9JCM5VomuuMn1fG/Fe09aM+SwJJ0XeAuf 40CR1iUeXdN6oxSZy4fODXilJvdCpMgC3qghEu2HeqfYCIQ0JEiVebzUE0SNsMxoc8 6c8xesWI/jgNBAHykYlmwbi3W/4O+e25+hngIxAwWUJ2xJ/9keCdAKxGB7vGHa49YQ We/nhK6dn5PpA== From: Arnd Bergmann To: Russell King Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Arnd Bergmann , Ard Biesheuvel , Linus Walleij , Nathan Chancellor , Nick Desaulniers , llvm@lists.linux.dev, Nicolas Pitre Subject: [PATCH 12/14] ARM: add CONFIG_PHYS_OFFSET default values Date: Tue, 28 Sep 2021 17:41:41 +0200 Message-Id: <20210928154143.2106903-13-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210928154143.2106903-1-arnd@kernel.org> References: <20210928154143.2106903-1-arnd@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210928_084224_869104_0DDF7F9B X-CRM114-Status: GOOD ( 15.47 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Arnd Bergmann For platforms that are not yet converted to ARCH_MULTIPLATFORM, we can disable CONFIG_ARM_PATCH_PHYS_VIRT, which in turn requires setting a correct address here. As we actualy know what all the values are supposed to be based on the old mach/memory.h header file contents (from git history), we can just add them here. This also solves a problem in Kconfig where 'make randconfig' fails to continue if no number is selected for a 'hex' option. Users can still override the number at configuration time, e.g. when the memory visible to the kernel starts at a nonstandard address on some machine, but it should no longer be required now. I originally posted this back in 2016, but the problem still persists. The patch has gotten much simpler though, as almost all platforms rely on ARM_PATCH_PHYS_VIRT now. Acked-by: Nicolas Pitre Link: https://lore.kernel.org/linux-arm-kernel/1455804123-2526139-5-git-send-email-arnd@arndb.de/ Signed-off-by: Arnd Bergmann --- arch/arm/Kconfig | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 12a0bd4b315d..0d4f3e2d50ad 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -264,10 +264,12 @@ config PHYS_OFFSET hex "Physical address of main memory" if MMU depends on !ARM_PATCH_PHYS_VIRT default DRAM_BASE if !MMU - default 0x00000000 if ARCH_FOOTBRIDGE + default 0x00000000 if ARCH_FOOTBRIDGE || ARCH_IXP4XX default 0x10000000 if ARCH_OMAP1 || ARCH_RPC - default 0x20000000 if ARCH_S5PV210 - default 0xc0000000 if ARCH_SA1100 + default 0x30000000 if ARCH_S3C24XX + default 0xa0000000 if ARCH_IOP32X || ARCH_PXA + default 0xc0000000 if ARCH_EP93XX || ARCH_SA1100 + default 0 help Please provide the physical address corresponding to the location of main memory in your system. -- 2.29.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel