From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-io1-f51.google.com ([209.85.166.51]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lKOYx-009cgw-Vc for kexec@lists.infradead.org; Thu, 11 Mar 2021 16:53:29 +0000 Received: by mail-io1-f51.google.com with SMTP id g27so22657819iox.2 for ; Thu, 11 Mar 2021 08:53:26 -0800 (PST) Date: Thu, 11 Mar 2021 09:53:22 -0700 From: Rob Herring Subject: Re: [PATCH v2] powerpc/kexec_file: Restore FDT size estimation for kdump kernel Message-ID: <20210311165322.GA860702@robh.at.kernel.org> References: <20210220005204.1417200-1-bauerman@linux.ibm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210220005204.1417200-1-bauerman@linux.ibm.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "kexec" Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: Thiago Jung Bauermann Cc: kexec@lists.infradead.org, Mimi Zohar , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Hari Bathini , Lakshmi Ramasubramanian On Fri, 19 Feb 2021 21:52:04 -0300, Thiago Jung Bauermann wrote: > Commit 2377c92e37fe ("powerpc/kexec_file: fix FDT size estimation for kdump > kernel") fixed how elf64_load() estimates the FDT size needed by the > crashdump kernel. > > At the same time, commit 130b2d59cec0 ("powerpc: Use common > of_kexec_alloc_and_setup_fdt()") changed the same code to use the generic > function of_kexec_alloc_and_setup_fdt() to calculate the FDT size. That > change made the code overestimate it a bit by counting twice the space > required for the kernel command line and /chosen properties. > > Therefore change kexec_fdt_totalsize_ppc64() to calculate just the extra > space needed by the kdump kernel, and change the function name so that it > better reflects what the function is now doing. > > Signed-off-by: Thiago Jung Bauermann > Reviewed-by: Lakshmi Ramasubramanian > --- > arch/powerpc/include/asm/kexec.h | 2 +- > arch/powerpc/kexec/elf_64.c | 2 +- > arch/powerpc/kexec/file_load_64.c | 26 ++++++++------------------ > 3 files changed, 10 insertions(+), 20 deletions(-) > > Applies on top of next-20210219. > > Changes since v1: > > - Adjusted comment describing kexec_extra_fdt_size_ppc64() as suggested > by Lakshmi. > Applied, thanks! _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec