Message ID | 20231027221106.405666-7-jiaxun.yang@flygoat.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:d641:0:b0:403:3b70:6f57 with SMTP id cy1csp913339vqb; Fri, 27 Oct 2023 15:12:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEiObBZNBfW9gUqQ3JR96iIchwrZlEHON84uR3JALSp2y2yIKRnkOLzLszv8ozyoPjiUkTB X-Received: by 2002:a25:4201:0:b0:d9a:4163:7b6d with SMTP id p1-20020a254201000000b00d9a41637b6dmr3575560yba.59.1698444746647; Fri, 27 Oct 2023 15:12:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698444746; cv=none; d=google.com; s=arc-20160816; b=wLwu+1i2SsvZedMmYNoDv2xVa/i97oNmwXXr7w2xTtFfN5zf7eHyxv8eLcBQTYNnUQ d4I3PAFNrDVgRzMoYdJc+iClW3RIVkbrkYJyuMYaqm+jugWhSLyImHGpuoScSQQBreJ0 BI3l53ROBniIPfcFQOJh8ds1FQICMKsonG0AGu9PXUsB3GYNTfXzkCDQwNQJDDv+PgUH lc04aQftIWK+lV/DHoGN9mPX3iHr2J7cK1oe6DwhIHQLDNc5Xr4ES5vik4a17mSjul3r Zt+QNySipMJ9WmhkK4S2/oampR++HCqt0x3vM43K2pxqU3sN71rw02jksiwsJBL2eQLX 7Glg== 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=NwkWCdPZngAYSK0gOr6v4wn2LtSmUt39TzKjtsa40Ti+IM1PSe5Rvy2lVgoaYjEdKa oNuzC9J7xbcxreXcewMzXpxyL2V9KonjGpbHiajlD6mjiXUB75SILPSNkdJFF7q3gzyr wzI64mh/uVa8fXSfHP7yqOWYvTmu9NRHu7VJW1zXj9irXxAm4SFy97VaHXHIRz8hCnL/ 4++FnJmce2RmH4csYb9VjpnkN7rteXq8Zdrni8b29X3AO1Iwp2q4n2e/dr39qcL41JEd 7Fh+cNPFcaGtUuaOgEfqUSoepUXai/pRDEn3kHnm+aJ3a4sm43fu0gY9CIZZGozfyc+z tgNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm1 header.b=s4NE1qnO; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=qWaspJFc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id u15-20020a25094f000000b00da041c0e345si4207854ybm.463.2023.10.27.15.12.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 15:12:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm1 header.b=s4NE1qnO; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=qWaspJFc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id 61242825F14A; Fri, 27 Oct 2023 15:12:18 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346635AbjJ0WLu (ORCPT <rfc822;yuanzuo1009@gmail.com> + 27 others); Fri, 27 Oct 2023 18:11:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346679AbjJ0WLg (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 27 Oct 2023 18:11:36 -0400 Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1507D4F; Fri, 27 Oct 2023 15:11:27 -0700 (PDT) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 82BD53200959; Fri, 27 Oct 2023 18:11:26 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Fri, 27 Oct 2023 18:11:27 -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=1698444686; x= 1698531086; bh=U85JK5asZNHXyazqwXB2WH7hdrGFnY8ew4l7GY3z8ws=; b=s 4NE1qnOSBoS2iVrpYr9QuYwILsmugVjmKkQHUkY7J8eFHX0hrCQSvoopDEwBotlW 75gmShT5g5E4tvz1UMAqNrwhCfiAy7gPeH6liU8fgyG7ONmzaNwxhM6iTWVKolBh 7wk5MMtqkFneXOkP52T2QwM7zTBi3plmrHeFLW32f17mrdv00SCDrSMiDxhffARR UTLAyqB/E2ntdb5neEVMIXttkOhNB9bfiYRXLwaDi7n+IU4tGLVhV2LzDnH38R7T /sMJ/Iw9g2d4OYh6ta6PxiUnTzO5P7p163VAgfpkPoarMqyIyHD6bk24vf5LDA3Y me42xe4N4+v9qUtQlL8qw== 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=1698444686; x= 1698531086; bh=U85JK5asZNHXyazqwXB2WH7hdrGFnY8ew4l7GY3z8ws=; b=q WaspJFc/VKdZJFR+rB5R4nwxBOUuy/43Y/PQaXS4k8QznexnhItpphmt8CEOEvV/ 3CQMgFX28dzc466fVcmMl7zLGoflURVfkm52jqNXskWpLmEv8dLbZXjtqYniJqeO XbYrc8H5MdcYWnyvAlnSb7sGfsqIupovxoibt0LP+VzuT3YA6WVRf94Q53nWAb0N 6ueWERQ1SlYKivZWlIWe76PT25zXu0OmCGiTgNQo5f7o4Pc61ozOT6AbQIEft5XH 9ggqr/gTkNrYZszsGPNIsdvGTKOm5adOefx2T4qa7/Kp1jJZhZp2a4zm98TFysw5 cdAb9K4ONijFXwE2puxbQ== X-ME-Sender: <xms:jTU8Zao4bMxe9mh_EZMsay3IqM-KFH1OB8GroqCTNDANGxlMnHxOoQ> <xme:jTU8ZYr4qjUEbb_JC_Iohi1VPEKpwW3x0cux0C-5jBvK_0q6HgDhLAjKQnQM8gD1u 3_c84Pq0uyWp7cnehQ> X-ME-Received: <xmr:jTU8ZfMmsDc79NeK56DQSjAX3qH6_rw43t2jEoAXcUqB7s-mkWesNVHRFoGwjy5Uzf1-pDY1aI0> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrleehgddtjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvvefufffkofgjfhgggfestdekre dtredttdenucfhrhhomheplfhirgiguhhnucgjrghnghcuoehjihgrgihunhdrhigrnhhg sehflhihghhorghtrdgtohhmqeenucggtffrrghtthgvrhhnpeefledufeehgedvuedvvd egkefgvddttedtleeiiefhgeetudegkefhvdfhjeeftdenucevlhhushhtvghrufhiiigv pedunecurfgrrhgrmhepmhgrihhlfhhrohhmpehjihgrgihunhdrhigrnhhgsehflhihgh horghtrdgtohhm X-ME-Proxy: <xmx:jTU8ZZ5T5t8wyktrDy1Q2cPyyb3ZQlGBO6v6vqNfHyVTm08IZSp_HA> <xmx:jTU8ZZ5SHZqoLED862ywuo-o8aQIwLjs1lU3KJ_iXCVv0dQY-I8ung> <xmx:jTU8ZZi9RKWAFV4yhlbCHBWbBvgmkqbxb9WGTIBGJpKrtKkemV09vQ> <xmx:jjU8Zc1Th004v-0svwgPtFqU4MGS6IXKtVIF169iLg7hLf0ojcfCxw> Feedback-ID: ifd894703:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 27 Oct 2023 18:11:24 -0400 (EDT) From: Jiaxun Yang <jiaxun.yang@flygoat.com> 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 <jiaxun.yang@flygoat.com> Subject: [PATCH v2 06/10] MIPS: Allow kernel base to be set from Kconfig for all platforms Date: Fri, 27 Oct 2023 23:11:02 +0100 Message-Id: <20231027221106.405666-7-jiaxun.yang@flygoat.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231027221106.405666-1-jiaxun.yang@flygoat.com> References: <20231027221106.405666-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 groat.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Fri, 27 Oct 2023 15:12:18 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780948398451222553 X-GMAIL-MSGID: 1780948398451222553 |
Series |
MIPS: Fix kernel in XKPHYS
|
|
Commit Message
Jiaxun Yang
Oct. 27, 2023, 10:11 p.m. UTC
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 <jiaxun.yang@flygoat.com>
---
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