Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1428270rda; Mon, 23 Oct 2023 12:14:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGKoBW5kHJPQmh4uC908KkZorc+pj7dqLVtBHMOJDLkMxEEyIXXotgMl1vqAJ93zrbclQZ3 X-Received: by 2002:a05:6a00:2308:b0:6be:367a:2a71 with SMTP id h8-20020a056a00230800b006be367a2a71mr9652975pfh.16.1698088480738; Mon, 23 Oct 2023 12:14:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698088480; cv=none; d=google.com; s=arc-20160816; b=qTmGaXYKbY/WQh0REwE04kzKj6eUEwHHYLH3OlkKXjJcf/XQTEClpPgqZ9vpQn0Xft KxPj5gnjrQ1w5BgM95VUCOSoJWiGQpDEsQcR1NdYUWQiktV8lffcZb6KE7ce4TTT3a5u Tpm9JH3Qv4FZQXqOqCfhI7+KDfkVqQpVswZGjP+4mqSbrmh0mRCH1TvrdbqdNma2UXiL OFk2riNv6rPBr9pl5UCCqWRZ1bDvNT3xM9GsR+QDiWHtjSxT6fkA4WKUqYODySDUc9z8 fiQHb/rH61WBpQyF9Zyw9wNnvpo1xlzjxMPj8kX3Kmq1jVXKAzKrwKjflFWFn++JFvxX yMEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :feedback-id:dkim-signature:dkim-signature; bh=U85JK5asZNHXyazqwXB2WH7hdrGFnY8ew4l7GY3z8ws=; fh=34VXqKbbbRVUWYKB0XlF9D4jmhXxe51P2+smd1zcTfU=; b=MkQheq/pjiCufUQr4btxflGB81KbsRZ3JYk6ZIEhAsUuasuUZPLQpnwH9Ci+Jebz9Y A8h30MlHeNFM/eZC4XpDvIXSRlJuRGwJLKC7X7f/gwM9szociWg6c/1TLnbWEYil4p9c W2YPdjhvjBsuLs/w54mSokounuWxypTbqsZF1iUEIA6lDObZdvyXdpb5O7IWUZeSm4O9 mw+2E3Ud2vjUif2GnFjEcugTKlc1N2HgzfSoTwzP6ALDOqR3aa73THLBR9zFiYZdBhnS ni2ejF1ZUfyyTUTfXF/zPQhFP7x6sk9tnLJvDgZXbb/wApkoIKH00qQNuN1Gp31k/4wy K45A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm1 header.b=JHGnVzxb; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=jPQDcZFC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id d3-20020aa797a3000000b0068e2566615esi6862707pfq.379.2023.10.23.12.14.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 12:14:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm1 header.b=JHGnVzxb; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=jPQDcZFC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id DA8E980AFBA0; Mon, 23 Oct 2023 12:14:37 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231958AbjJWTO1 (ORCPT + 99 others); Mon, 23 Oct 2023 15:14:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231702AbjJWTOS (ORCPT ); Mon, 23 Oct 2023 15:14:18 -0400 Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E31510C; Mon, 23 Oct 2023 12:14:13 -0700 (PDT) Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailout.nyi.internal (Postfix) with ESMTP id 05D615C0399; Mon, 23 Oct 2023 15:14:13 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Mon, 23 Oct 2023 15:14:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm1; t=1698088453; x= 1698174853; bh=U85JK5asZNHXyazqwXB2WH7hdrGFnY8ew4l7GY3z8ws=; b=J HGnVzxbsQN1dNFQ/3+udQO0s2OJOp/w6OjzjV6V3zHQcTwXS/WW4qPAku1MQRznF gKAeX2mUqez6v7r24PEg58TFbZc3z79MD3tfgywgjgY0EsJk3w6j27myWvD6VCUj 7hiVFjarxqiPDMgQaDVpkENTjjZqQcY/zGJqltibOUXpRWTKIdttsYiGuGI/EG2u CLWbZ5LdsVCCn35YtZZjH6cHyOILg1D+lATI4lFjmOHrO1M5oLKPmq0oiGgKNSgC YWkxz0eXy07OlvsdbzaDPyQNlARZNo95N99tjTzgGtpEwZN8F55TPPzHfC/G1+Xx pWk44/apOPZnlz5FcyMcw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1698088453; x= 1698174853; bh=U85JK5asZNHXyazqwXB2WH7hdrGFnY8ew4l7GY3z8ws=; b=j PQDcZFCJqJfqjhXf16QctX5HJVp4BAkG//lGz9g8oI4rfl3X0G0ChlJF0V3XVtiD nevi5ZEaxxQ52tm0wFMWzxoQpbRGe4A7fuRPTsuFudRkGfmAVClW8izrJZwYIT3S HaiK2HqdPnPrNvaMEDjt8Ttvqf3WIgocM74K70SpbsK0IS+H4UQggZJfh6x/RAIU Xcjodsl4vt8Jruztlcf9vqvOHH7V567YfY7M8eWPe4MNs5jT1+7+qYysusWOi0Rd 8Om1bcTKHRoRlkSf7UmrZDBucN3qwGjQEhpXCoRa8fnpmMyZRR71X3wAnHC99FgW RLvCwYyVbqzjJlXdE6agA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrkeeigddufeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevufffkffojghfggfgsedtke ertdertddtnecuhfhrohhmpeflihgrgihunhcujggrnhhguceojhhirgiguhhnrdihrghn ghesfhhlhihgohgrthdrtghomheqnecuggftrfgrthhtvghrnhepfeeludefheegvdeuvd dvgeekgfdvtdettdelieeihfegtedugeekhfdvhfejfedtnecuvehluhhsthgvrhfuihii vgeptdenucfrrghrrghmpehmrghilhhfrhhomhepjhhirgiguhhnrdihrghnghesfhhlhi hgohgrthdrtghomh X-ME-Proxy: Feedback-ID: ifd894703:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 23 Oct 2023 15:14:11 -0400 (EDT) From: Jiaxun Yang To: linux-mips@vger.kernel.org Cc: linux-kernel@vger.kernel.org, tsbogend@alpha.franken.de, gregory.clement@bootlin.com, vladimir.kondratiev@intel.com, Jiaxun Yang Subject: [PATCH 5/5] MIPS: Allow kernel base to be set from Kconfig for all platforms Date: Mon, 23 Oct 2023 20:14:00 +0100 Message-Id: <20231023191400.170052-6-jiaxun.yang@flygoat.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231023191400.170052-1-jiaxun.yang@flygoat.com> References: <20231023191400.170052-1-jiaxun.yang@flygoat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Mon, 23 Oct 2023 12:14:38 -0700 (PDT) There are some platforms in wild that generic loading address won't work with them due to memory layout. Allow PHYSICAL_START to be override from Kconfig, introduce PHYSICAL_START_BOOL symbol as powerpc did. Signed-off-by: Jiaxun Yang --- arch/mips/Kconfig | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index bc8421859006..bfedc8b48a81 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -2884,12 +2884,22 @@ config ARCH_SUPPORTS_KEXEC config ARCH_SUPPORTS_CRASH_DUMP def_bool y +config PHYSICAL_START_BOOL + bool "Set physical address where the kernel is loaded" + default y if CRASH_DUMP + help + This gives the CKSEG0, KSEG0 or XKPHYS address where the kernel + is loaded. + + Say N here unless you know what you are doing. + config PHYSICAL_START - hex "Physical address where the kernel is loaded" - default "0xffffffff84000000" - depends on CRASH_DUMP + hex "Physical address where the kernel is loaded" if PHYSICAL_START_BOOL + default "0xffffffff84000000" if CRASH_DUMP + default "0xffffffff80100000" help - This gives the CKSEG0 or KSEG0 address where the kernel is loaded. + This gives the CKSEG0, KSEG0 or XKPHYS address where the kernel + is loaded. If you plan to use kernel for capturing the crash dump change this value to start of the reserved region (the "X" value as specified in the "crashkernel=YM@XM" command line boot parameter -- 2.34.1