From nobody Wed Dec 31 04:12:59 2025 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EFCDDC4332F for ; Sun, 12 Nov 2023 06:20:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231190AbjKLGU4 (ORCPT ); Sun, 12 Nov 2023 01:20:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230383AbjKLGUj (ORCPT ); Sun, 12 Nov 2023 01:20:39 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C3E95FED for ; Sat, 11 Nov 2023 22:19:21 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5E562C433CD; Sun, 12 Nov 2023 06:19:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1699769960; bh=dK4ton2oM+HkEOBvpM4c5CJzMl0JR/DxER2w5fW1tdg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uxp8Fc+vLd1OxaYU6JHEobJ9lYSoyT6mwQRrxVaQHLsmnTO1D4uf+oE/hQ8pZEfO9 pAJtj7VRnQ9zBG+TSXtv6eTkf37UxZfFA4Hk6LYgFrXIqwAxwW3ZQ4F6/k/0DduMCE qlMYWbc751aEgRudX/rL7cUXLbpS/X1y9DOGeZanW1TTWYFUnokD9byjiEHodJcu/0 Iil9U3Uaf5n9IISv32EMhC743m6kyCSKZ0VQ8t5k6qmeNHW0AonN8PVg8eZ+kxeheI GRPTmdj+kurQ+mOgDuTqewn0Cj7scDwDXghLYpCxYR1E7IYwBjETB1B1XU5saALSBk f3A5BZh6NAhWg== From: guoren@kernel.org To: arnd@arndb.de, guoren@kernel.org, palmer@rivosinc.com, tglx@linutronix.de, conor.dooley@microchip.com, heiko@sntech.de, apatel@ventanamicro.com, atishp@atishpatra.org, bjorn@kernel.org, paul.walmsley@sifive.com, anup@brainfault.org, jiawei@iscas.ac.cn, liweiwei@iscas.ac.cn, wefu@redhat.com, U2FsdGVkX1@gmail.com, wangjunqiang@iscas.ac.cn, kito.cheng@sifive.com, andy.chiu@sifive.com, vincent.chen@sifive.com, greentime.hu@sifive.com, wuwei2016@iscas.ac.cn, jrtc27@jrtc27.com, luto@kernel.org, fweimer@redhat.com, catalin.marinas@arm.com, hjl.tools@gmail.com Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, Guo Ren Subject: [RFC PATCH V2 38/38] 64ilp32 v.s. 64lp64 Date: Sun, 12 Nov 2023 01:15:14 -0500 Message-Id: <20231112061514.2306187-39-guoren@kernel.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20231112061514.2306187-1-guoren@kernel.org> References: <20231112061514.2306187-1-guoren@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Guo Ren Signed-off-by: Guo Ren --- arch/riscv/Kconfig | 1 - arch/riscv/include/asm/page.h | 2 +- init/main.c | 2 ++ 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index 5106eab17811..acd6aa60ed84 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -160,7 +160,6 @@ config RISCV select THREAD_INFO_IN_TASK select TRACE_IRQFLAGS_SUPPORT select UACCESS_MEMCPY if !MMU - select ZONE_DMA32 if 64BIT =20 config CLANG_SUPPORTS_DYNAMIC_FTRACE def_bool CC_IS_CLANG diff --git a/arch/riscv/include/asm/page.h b/arch/riscv/include/asm/page.h index 7c535e88cf91..f9af3e6b6e21 100644 --- a/arch/riscv/include/asm/page.h +++ b/arch/riscv/include/asm/page.h @@ -106,7 +106,7 @@ typedef struct page *pgtable_t; * We override this value as its generic definition uses __pa too early in * the boot process (before kernel_map.va_pa_offset is set). */ -#define MIN_MEMBLOCK_ADDR 0 +#define MIN_MEMBLOCK_ADDR 0x60400000ULL #endif =20 #ifdef CONFIG_MMU diff --git a/init/main.c b/init/main.c index ad920fac325c..f88f0227e398 100644 --- a/init/main.c +++ b/init/main.c @@ -1496,6 +1496,8 @@ static int __ref kernel_init(void *unused) !try_to_run_init_process("/bin/sh")) return 0; =20 + show_mem(0, NULL); + panic("No working init found. Try passing init=3D option to kernel. " "See Linux Documentation/admin-guide/init.rst for guidance."); } --=20 2.36.1