Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1455557rdh; Fri, 27 Oct 2023 15:12:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFa1Ot4gfBdggpqsQQX4up8XZE3lgpIzXM3+KQSVYQ/TxTY0wdPxWiC2Iwl5i9FZP5bcrcM X-Received: by 2002:a05:6902:154f:b0:d0a:fa7f:2fbf with SMTP id r15-20020a056902154f00b00d0afa7f2fbfmr4731282ybu.48.1698444769418; Fri, 27 Oct 2023 15:12:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698444769; cv=none; d=google.com; s=arc-20160816; b=qvPQ2wjENv8+ZO+mcyfe81yBaY2DwIfV9JCBbQvke8kITnDWoOIASgGoSePJm3MhR7 EAXMs87Tx84G0LOdjtcunMxPUs1mbm3wTSO4rp/mfNohHr9jskunYX8PGwGFV4wFmLpc OoXmhJ7T9yVgLIFOnF6VArqDk7oc8kKOKQH113LfGcRqlJWNUicbFE6yk75Tw9irXtc0 v1g3ScEUgIqO0BvycV/x5MC+SukUUuMfFJ1fQGaq7g7qMibmDBAIVoGvqPw40USiXnil Kkaqwgxep0+7G62/Iwb/+cu1aIQ3Iq4302RL43w//Tb2CZYat91Og1hlefk5b5hKSDTS 4aOA== 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 2620:137:e000::3:6 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 pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id e65-20020a253744000000b00d9a3f9d06cesi3902576yba.645.2023.10.27.15.12.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 15:12:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; 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 2620:137:e000::3:6 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 pete.vger.email (Postfix) with ESMTP id B544E80AF256; Fri, 27 Oct 2023 15:12:45 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346711AbjJ0WLu (ORCPT + 99 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 ); 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: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrleehgddtjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvvefufffkofgjfhgggfestdekre dtredttdenucfhrhhomheplfhirgiguhhnucgjrghnghcuoehjihgrgihunhdrhigrnhhg sehflhihghhorghtrdgtohhmqeenucggtffrrghtthgvrhhnpeefledufeehgedvuedvvd egkefgvddttedtleeiiefhgeetudegkefhvdfhjeeftdenucevlhhushhtvghrufhiiigv pedunecurfgrrhgrmhepmhgrihhlfhhrohhmpehjihgrgihunhdrhigrnhhgsehflhihgh horghtrdgtohhm X-ME-Proxy: Feedback-ID: ifd894703:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 27 Oct 2023 18:11:24 -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 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,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.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 (pete.vger.email [0.0.0.0]); Fri, 27 Oct 2023 15:12:46 -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