Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3915741pxj; Tue, 15 Jun 2021 11:19:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy3W3egS/0tdfCeUsw8s0j+EqGqVbSl0VN9C5JyOFkRmaUUR4VexcpTq/Xo7mWhUS0WS0lB X-Received: by 2002:a92:6b02:: with SMTP id g2mr574315ilc.23.1623781149120; Tue, 15 Jun 2021 11:19:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623781149; cv=none; d=google.com; s=arc-20160816; b=SyEn7c/mUf7tVfp5ApKur3QxVPtetX927TIZL5Y4BHZyFg/5/GsugiKA0nn2fUcGQQ rsYqmM7xZ6+mjg5/UckUHN/2pS2G6WZl98KACi+qD956F56MD2Yb7kzcVEVzQZQhgkSU FKz/RMHYtKzh7a/eSkwgEeJotsfOt7QgLG8U3pmhaR/B10dZcqyDWINFupntJdi7ufVk duiVNKWQ4mAtjOXQ5AHQ8nrkKeJm+SnTV/xZwG/n6YRNKGPzsx/W/gEO39+HPIBupvYs 2T4yesoFNJ/UrJuUS0F69rt/ggRZfzhfZo4SzAProxuYphSvPn3nsXdnspawr40UTSHV KxDA== 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 :message-id:date:subject:cc:to:from; bh=5FI4/TywwFc+lYBFag2PHCx0s3CkyTehhNAzgNZe0Cc=; b=jHpe9gYRoeu/r9WrpZnaAs9dxDPgFUCwx3dRLDV5M063V2mVnOYVAPJnsvRK4ZYv16 OUEggSHGDuzAytKn9oWWf29QiB/DIR7XY3L+27GQHKDDfDzWk2EtQtn0lRdKrvuiR2zn 1McKGY5m1szL1zgZzunr0dlHmWidR713P95DTGFJN14ym5KKqjrodi/zzEl2mIt1aqPl 2oP7oR4vlfHZjAsFsdEzM3IcpdYkOUo2e5Mwh4DI7w76VQG0PcHFxTdWcwlAA81qJAcC FPZPSM9UUud7MdMW9Dcrj3P25K+wOzZ9Qer/hohTPtKdlq4jd2Th5wZEa2apoQPuIQZf FkIA== 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 a1si20557778ioe.96.2021.06.15.11.18.56; Tue, 15 Jun 2021 11:19:09 -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 S231401AbhFOSTy (ORCPT + 99 others); Tue, 15 Jun 2021 14:19:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230303AbhFOSTv (ORCPT ); Tue, 15 Jun 2021 14:19:51 -0400 Received: from michel.telenet-ops.be (michel.telenet-ops.be [IPv6:2a02:1800:110:4::f00:18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08992C0613A3 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 michel.telenet-ops.be with bizsmtp id HWHe2500A4N5gS306WHefl; 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-00HYOO-4w; Tue, 15 Jun 2021 20:17:38 +0200 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1ltDd3-005qAB-MU; 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 0/3] Add generic-support for linux,elfcorehdr and fix riscv Date: Tue, 15 Jun 2021 20:17:24 +0200 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, While working on v4 of "[PATCH v3] ARM: Parse kdump DT properties", I noticed the recently (v5.13-rc1) introduced RISC-V crash kernel support uses "linux,elfcorehdr" in a non-standard way. Instead of relying on a "linux,elfcorehdr" property under the "/chosen" node, RISC-V uses a reserved memory node with the "linux,elfcorehdr" compatible value. As we may want to fix riscv before the release of v5.13, I decided not to wait until my full v4 is ready, but fast-track generic "linux,elfcorehdr" handling instead. This series consists of 3 patches: 1. Generic handling of "linux,elfcorehdr", as requested by Rob in a review comment for [1], 2. Drop the non-standard code from riscv. It can just use the generic code instead (needs corresponding changes to WIP kexec-tools), 3. Drop the now duplicate code from arm64. This can be postponed, as it can co-exist safely with the generic code. This has been tested on arm32 (with a WIP successor of [1]), and compile-tested on riscv64 and arm64. Thanks for your comments! [1] "[PATCH v3] ARM: Parse kdump DT properties" https://lore.kernel.org/linux-devicetree/20210317113130.2554368-1-geert+renesas@glider.be/ Geert Uytterhoeven (3): of: fdt: Add generic support for parsing elf core header properties riscv: Remove non-standard linux,elfcorehdr handling arm64: kdump: Remove custom linux,elfcorehdr parsing Documentation/devicetree/bindings/chosen.txt | 6 ++-- arch/arm64/mm/init.c | 21 ----------- arch/riscv/mm/init.c | 20 ----------- drivers/of/fdt.c | 37 ++++++++++++++++++-- 4 files changed, 37 insertions(+), 47 deletions(-) -- 2.25.1 Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds