Message ID | 20231201111512.803120-9-gregory.clement@bootlin.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp1041285vqy; Fri, 1 Dec 2023 03:16:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IF4IaKRBMQ2UWm1HdzDLkhyvx4b50HCqVpOGQZLsL/A6Xc0DT8fHUZ74wStI/T2oVS5NTKV X-Received: by 2002:a05:6a20:158e:b0:18b:cdd5:10c1 with SMTP id h14-20020a056a20158e00b0018bcdd510c1mr36676206pzj.26.1701429406485; Fri, 01 Dec 2023 03:16:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701429406; cv=none; d=google.com; s=arc-20160816; b=GgcnsB6WdQFZbx+nNdqvmli+jsMt29D9M6zKGoSvmbI1I82qU2gF//Z3I3nXoHxXpc AL/Q68Ym22D1OiPSbDbMfcq00xRuAk4HMICKQwvuCSm/RY8CcOp6WM2gz528sA7V0fTn 5UE6E98xZ3eDYRqUfuiBRUCv/+V1wWWMMNPggHGasxUUPZXvX8YziyhjHIYxmg0QTEwt tXc0dz66WajS4nyRGOzQkdrfA164lm1jJr2FTiEjF/pPAnXVaHocV298Dbh7JC3upGbr iFCPrvsQ4wM/2hW/X0FhJN3/xQq9/3Ow52f2RYh8NPWHodpCF3JFaqnjZEKBAFExNwzQ YtRw== 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 :dkim-signature; bh=dTU5KtilBzqMs1820zYNtcs9nCUHlD6780U14+z9iDM=; fh=t1bsw/gEI8w3DN7ouBpAewoQyybWh2yxEgAHixB9Iis=; b=xWWqfNFiqMdOmEdOJ7lBnI8Px9zPYVPZ/q4f//zbxCHJkcdesrWNycKCPbDw+gLSpA hDh5WNLqvvrtR1R6eV80pwScJt+UvDt1dUrb232G54gSgbKwVi7yK9hEKKY22SvAGrgX QZ3J7CiH7zzDjPY12QGMPaIdPF2fo1RSp7svy9OXsM5K0sy8rQxgkfGqz+DhkncBopVy ndjzBsfGzhUolF6bB2OkUO1e0tQNPFybmkCeuMDK5bljpaf8Fnwv3cbTWgSNRWYEf0Ye 1bz4GtfYY4beyjA+pCvQxCXe9wVb6YAPTKdfVYVj62ujbgkyLquSj77iwULmcnMqpfdH tf7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=e3EE+BeX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id k21-20020a056a00135500b006c21adbc1cbsi3236802pfu.59.2023.12.01.03.16.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 03:16:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=e3EE+BeX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 5E38883294C9; Fri, 1 Dec 2023 03:16:14 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378579AbjLALP6 (ORCPT <rfc822;ruipengqi7@gmail.com> + 99 others); Fri, 1 Dec 2023 06:15:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378507AbjLALPZ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 1 Dec 2023 06:15:25 -0500 Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::221]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F1651711; Fri, 1 Dec 2023 03:15:30 -0800 (PST) Received: by mail.gandi.net (Postfix) with ESMTPSA id A6377240015; Fri, 1 Dec 2023 11:15:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1701429329; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dTU5KtilBzqMs1820zYNtcs9nCUHlD6780U14+z9iDM=; b=e3EE+BeXN7YU2s5ZiS1QbKy3b/cv+jq88mqpTzw1+1c33YVjO9VsCFUT67FjaeZ0PyZ8WM jCR8mRSum5fTvpcdjB0Fslp6nVh5aVaSOhKAVXuOantXrgeQpLoytVtkDQPvBsRtM1R7Qd 78zG1RoQS4C7+r32zQbg7NsrleUDo5MBt9ZIeQz09Y+p8TllPgCQGYPsHlyI2L1I3Ur1wo fEx9v2DPWlmVuP4YuJzBzqGoy3vlN0eN7K963urg0Wl+iPoQ4OwgJXG0FuMQ9vyFQJNh1Z 4+fARJeM1DAXhufOFWqpkG1HXQ4Vyb8URGWJ12glAG34qohe1sj3JJfjXWJ8yQ== From: Gregory CLEMENT <gregory.clement@bootlin.com> To: Paul Burton <paulburton@kernel.org>, Thomas Bogendoerfer <tsbogend@alpha.franken.de>, linux-mips@vger.kernel.org, Jiaxun Yang <jiaxun.yang@flygoat.com>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Vladimir Kondratiev <vladimir.kondratiev@mobileye.com>, Tawfik Bayouk <tawfik.bayouk@mobileye.com>, Alexandre Belloni <alexandre.belloni@bootlin.com>, =?utf-8?q?Th=C3=A9o_Lebr?= =?utf-8?q?un?= <theo.lebrun@bootlin.com>, Thomas Petazzoni <thomas.petazzoni@bootlin.com> Subject: [PATCH v3 08/22] MIPS: Allow kernel base to be set from Kconfig for all platforms Date: Fri, 1 Dec 2023 12:14:51 +0100 Message-ID: <20231201111512.803120-9-gregory.clement@bootlin.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231201111512.803120-1-gregory.clement@bootlin.com> References: <20231201111512.803120-1-gregory.clement@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-GND-Sasl: gregory.clement@bootlin.com X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: <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 (morse.vger.email [0.0.0.0]); Fri, 01 Dec 2023 03:16:15 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784078041538098936 X-GMAIL-MSGID: 1784078041538098936 |
Series |
Add support for the Mobileye EyeQ5 SoC
|
|
Commit Message
Gregory CLEMENT
Dec. 1, 2023, 11:14 a.m. UTC
From: Jiaxun Yang <jiaxun.yang@flygoat.com> 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 fad05f699efdf..11bacbd3971f6 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -2866,12 +2866,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