Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3918095pxj; Tue, 15 Jun 2021 11:22:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxScjT7Akk2xp+2PKrGgyyOVQz/8GUq8H9cLlIeq57yBoEAE+iI/hXE+AjgJF43d7z9YzDq X-Received: by 2002:aa7:c445:: with SMTP id n5mr1115824edr.64.1623781337743; Tue, 15 Jun 2021 11:22:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623781337; cv=none; d=google.com; s=arc-20160816; b=y1nOPIlcH4ND9vWz8hXpMizXvRlHaLrs0PIDX1yGMZQ4lVud58GcY9N88y71iIMTG+ 1bRNc+yj4f8FNSVTVIruMhTg9GB7yR9AjzaI5EoGpbrGmJHjyYmNx4UK+ALqa1pGfnoV oqzBEuvUdzCpz7c4p91DMudr+dPq+KPzvecbcpwGJAYG8zLeLpJI2FIdv1EUzKqoAknG ZKD7g+TuhU3nG8rltoAAKeN3tz8nUMU7NsB+575NHY54W4arutdhTF4VaZPKmxmRsWn9 ImkbCxsp9ZtrKUHXOIypBit+ApfClraPmT+lJr2SoSf6s96I7qgTn9hAjqnmWzWsBONb 8rFQ== 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; bh=+TTfu6L1yiGdQ2pTjzv5Ig1Y5daGammzBiGBCsLKk3A=; b=Vn9UhXY4QDALrfjfa5IWAy1gbXkUlmx4++KQ4y1/EvJiElCbw79hbs5s7Swip1UIkU K6IY2Y2PQmAaG6oXuF8V6Xp1M1FGzN+5YemQF4/I5LMYOrVZ0Ej+6WUxfUOFhv7oBM29 iB+cPbJoF1KI8yfN/TCd3q6L+K2w18tiPNoL4eHJGH1c/C6nkWPwjWlPU5c8j0EwhCQ/ VRr0v/KFEKI+kGm+jCWIthxwxMriP70PkZxOZij4RaADNpFVMgeyK5Lu4v7MDYUMAAGY Ai1Wm5VM1JQEmot1B2deEIND6iw3VyAWY160DFaiS0k2kdTpeRYmzZlhOWxKPnvEQYUi 772w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id yd3si11859914ejb.214.2021.06.15.11.21.52; Tue, 15 Jun 2021 11:22:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231491AbhFOST4 (ORCPT + 99 others); Tue, 15 Jun 2021 14:19:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230344AbhFOSTv (ORCPT ); Tue, 15 Jun 2021 14:19:51 -0400 Received: from laurent.telenet-ops.be (laurent.telenet-ops.be [IPv6:2a02:1800:110:4::f00:19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F8A9C0613A4 for ; Tue, 15 Jun 2021 11:17:45 -0700 (PDT) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed20:bda0:7de0:767e:26f9]) by laurent.telenet-ops.be with bizsmtp id HWHe2500T4N5gS301WHe97; Tue, 15 Jun 2021 20:17:42 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1ltDd4-00HYOQ-8S; Tue, 15 Jun 2021 20:17:38 +0200 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1ltDd3-005qAN-OS; Tue, 15 Jun 2021 20:17:37 +0200 From: Geert Uytterhoeven To: Rob Herring , Nick Kossifidis , Paul Walmsley , Palmer Dabbelt , Albert Ou , Frank Rowand , Catalin Marinas , Will Deacon Cc: devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 2/3] riscv: Remove non-standard linux,elfcorehdr handling Date: Tue, 15 Jun 2021 20:17:26 +0200 Message-Id: X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RISC-V uses platform-specific code to locate the elf core header in memory. However, this does not conform to the standard "linux,elfcorehdr" DT bindings, as it relies on a reserved memory node with the "linux,elfcorehdr" compatible value, instead of on a "linux,elfcorehdr" property under the "/chosen" node. The non-compliant code can just be removed, as the standard behavior is already implemented by platform-agnostic handling in the FDT core code. Fixes: 5640975003d0234d ("RISC-V: Add crash kernel support") Signed-off-by: Geert Uytterhoeven --- arch/riscv/mm/init.c | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/arch/riscv/mm/init.c b/arch/riscv/mm/init.c index 6fd36af52a8520b3..2c5c8a24199002a3 100644 --- a/arch/riscv/mm/init.c +++ b/arch/riscv/mm/init.c @@ -839,26 +839,6 @@ static void __init reserve_crashkernel(void) } #endif /* CONFIG_KEXEC_CORE */ -#ifdef CONFIG_CRASH_DUMP -/* - * We keep track of the ELF core header of the crashed - * kernel with a reserved-memory region with compatible - * string "linux,elfcorehdr". Here we register a callback - * to populate elfcorehdr_addr/size when this region is - * present. Note that this region will be marked as - * reserved once we call early_init_fdt_scan_reserved_mem() - * later on. - */ -static int __init elfcore_hdr_setup(struct reserved_mem *rmem) -{ - elfcorehdr_addr = rmem->base; - elfcorehdr_size = rmem->size; - return 0; -} - -RESERVEDMEM_OF_DECLARE(elfcorehdr, "linux,elfcorehdr", elfcore_hdr_setup); -#endif - void __init paging_init(void) { setup_bootmem(); -- 2.25.1