Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1452690pxv; Fri, 23 Jul 2021 08:38:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4+kO6QMR8FPRPOcdp0DCJx5UNzNcapGF+KtxMSflOSavGKm/vXvLsbP7TJIdEc3XZZ/OK X-Received: by 2002:a92:7d08:: with SMTP id y8mr3795361ilc.111.1627054717320; Fri, 23 Jul 2021 08:38:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627054717; cv=none; d=google.com; s=arc-20160816; b=Qi0gTwwpYU2J94jvD5rmM3qE4gzTmaxViVpgdc804xy4qeoP3RvlpXQCKFOHdcKepO jSlGaROrbwDcf0XCx6mnVGDurNRfwZM4kCgyRuFdNmTyRVVStisDf1rxwNXNiTIoRYk2 f6Nq2l54ZETjoXBQMtIQFBIHkNOt2EGvkdgVeO/lCZxeBhJaKSawxfgVZb0+t+hQtbJV WaEMvliiOoWLSCTpncprmXF/UJjuBThzE+oDqbM8ISzFN4UrCHDM1qCxG/Pds8vCIj2j MiuNNwlssjRzoNW9ug9YW7ewdtV5UqOBt1SP617w6tm3v+Pmg0VOpze9FubpfPwNOerB VHgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=Sie/IxwBmILJtt5CfCHMRTqh7diZyseV1fFMGEm6yOk=; b=LTI9VeUIfHZ16R4XAb9RmJQzLxXezbFDCninbhOX7/u/m8zIW6dx+na2DssWCqjV2d swmryWoYJeh4CIGualrWkPfAFm1CU7XlrtyhANzJFADagEnl2Lk0eyT2whTV6OkBW3ia Ln1DE33Tercqwes4rqL13MmMTgCUClmi6jgtokwo4egj+NXu7SUSgXD3YFJsOc6YN5Ol dlmMJMDwVJocV4Ks/3bzQ3McJ/5UMQ+QCGYLOSy/0fJlBmJSJsBEbbpR8kdqDH4kmOjs EBTYKOM07In6rbFoshGS/4n6qr0f9lYQAwA1+Kr5F37sjcgzKL7fMkwp8I/ep3t/DUTy d5Ow== 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 g17si32130839jaq.116.2021.07.23.08.38.17; Fri, 23 Jul 2021 08:38:37 -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 S235494AbhGWOgz (ORCPT + 99 others); Fri, 23 Jul 2021 10:36:55 -0400 Received: from mail-ua1-f44.google.com ([209.85.222.44]:43657 "EHLO mail-ua1-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235486AbhGWOgs (ORCPT ); Fri, 23 Jul 2021 10:36:48 -0400 Received: by mail-ua1-f44.google.com with SMTP id j7so630100uaj.10; Fri, 23 Jul 2021 08:17:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Sie/IxwBmILJtt5CfCHMRTqh7diZyseV1fFMGEm6yOk=; b=jG9SlZxIK86OiLf8r0t4+8AL7Dk/UjURdCBdfQwLKoD9bRvI8B+7T17A0evZ1P133Y hLb/9vYPMAX4IHlS9xWUCnJc2cRPKeAiS05LPjkUvsbNDVJL9SlVla5hIJ0w/GVmxpPm JCFIhSLOFgDLt5Q6Y5Clx6pQMwQP8t20rYTMsrIYxRXw5Ok9AgVCvJRlhGNkIi7clO3e zFyHjgmqOOpkzn6x+AJRJvxRBHYX/o9ux2GyQMirhOa3SaGkFeDISWU2DO6a1ECcJqr1 mtah0lJtj66ctsHozaxhs/0hmC90K4eAaSsAzEa1eRi1WcvsjhbGmG8Y22sCuRRPMREq C0xw== X-Gm-Message-State: AOAM533jwx5k+xexiVUvE9J5tyYwZo0Xx5nB7/mEjn5Om9Zd17rae3cU xGiPIIpJbhBNtTQuDKzYgNQIpNGrLFeYIP/HBd4= X-Received: by 2002:ab0:2554:: with SMTP id l20mr5059882uan.58.1627053440203; Fri, 23 Jul 2021 08:17:20 -0700 (PDT) MIME-Version: 1.0 References: <170e7daa55aced148b8e57827f7c8fc65a0a8c7a.1626266516.git.geert+renesas@glider.be> In-Reply-To: From: Geert Uytterhoeven Date: Fri, 23 Jul 2021 17:17:08 +0200 Message-ID: Subject: Re: [PATCH v4 06/10] riscv: Remove non-standard linux,elfcorehdr handling To: Palmer Dabbelt Cc: Rob Herring , Russell King , Nicolas Pitre , Ard Biesheuvel , Linus Walleij , Catalin Marinas , Will Deacon , Nick Kossifidis , Paul Walmsley , Albert Ou , Frank Rowand , Dave Young , Mike Rapoport , Baoquan He , Vivek Goyal , Andrew Morton , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux ARM , linux-riscv , kexec@lists.infradead.org, Linux MM , Linux-Renesas , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Palmer, On Tue, Jul 20, 2021 at 5:43 PM Palmer Dabbelt wrote: > On Wed, 14 Jul 2021 05:50:16 PDT (-0700), geert+renesas@glider.be wrote: > > 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 > > --- > > v4: > > - No changes. > > --- > > 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 269fc648ef3d84b2..4aa4b6a034086df6 100644 > > --- a/arch/riscv/mm/init.c > > +++ b/arch/riscv/mm/init.c > > @@ -829,26 +829,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(); > > Reviewed-by: Palmer Dabbelt > Acked-by: Palmer Dabbelt > > LMK if you wanted me to take this series, otherwise I'm going to assume > it's going in via some other tree. There will be a v5 of the series in response to the review comments. But I think this patch can already be applied. Thanks! 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