Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp151882pxb; Tue, 9 Mar 2021 19:13:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJy1aKWqiCSKqXgIiJCnA6St8blvkTa+gbgrF0G2WSMflMblHopvPsiNsDzIMxM3aFWBkb45 X-Received: by 2002:aa7:c403:: with SMTP id j3mr796592edq.137.1615345987661; Tue, 09 Mar 2021 19:13:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615345987; cv=none; d=google.com; s=arc-20160816; b=g64Hk7yG9B3MQK97q85QHXupTqoBlg+P/RQ8z6SU72yNiTvIgTSUKbEVWVzuZJ0uWO n5Rc3dzP6U25xMMF+b4l637bO6sTliQowL/ecH9lyWfOFJEkGA+CyGe5bT9tIKrdOYBK lCy98pztWHQgQAc5SON7clo4CVBiI1n96UPqcdgoJdZgSYnHqPQaF/sQiRprhfcnfZfb rX5j2ydgbNl2Y2TbALfeBj7PYLKyZ13MkPQHOcf0mnfl1KJ0tZ5bOfqetbWOgRWMYf/n nYg5GRtj+o451TqySA9ALKIosZxGEnNfivDN8mmN+OG4tDf7G/mc6OsvIEzag0RG0uKo HsFg== 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:dkim-signature; bh=ZhigTyuvRM20lb68BHjlxrsgMleK/EgXc8sFjkV/8uY=; b=HHpj7rzIqvtJQLCU7WaAkLCnCIuXHEyIBX0QZkFPVSnqPinGT8B/gICWYunRpWwgRJ PNCW5DuU/s3UdYSB63TRifW7/MVtnzxcPKQ7GDPypfavJJoD7YQgKu9LPc7c6y8D/bX3 56jJvftJgBBUv+mhMf+gyO5E7kbrLTTMijOD6yAJ3aG/XvLmrdE6BYMSCUHyIAiMkz/a SHU3xANOh9Ji575CI3HvYuk5go0ui+IJdEEz9sUQnnTOPZyZqVjyQ1W0qE6ikELZNdx+ 3YMHKL99cm3whk0Mjq9HMaZlH5JF0YKwc+Ej3T1R/YMWjGcfVZ5IbYExoWWXwaxpKUEb xXCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dcCRe4ah; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w1si10444218ejq.377.2021.03.09.19.12.45; Tue, 09 Mar 2021 19:13:07 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dcCRe4ah; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231469AbhCJDJx (ORCPT + 99 others); Tue, 9 Mar 2021 22:09:53 -0500 Received: from mail.kernel.org ([198.145.29.99]:41964 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230488AbhCJDJi (ORCPT ); Tue, 9 Mar 2021 22:09:38 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id D0F8E64DA3 for ; Wed, 10 Mar 2021 03:09:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1615345778; bh=hHi9H5kl4wpnWvG7xJWgx+rlR2fSM4M2CJlmcTqk4Lc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=dcCRe4ahcLl+ilOI4Q2TmKUnNWQT709Ih1Ly31MOW62sbSIo2eqTOGJibYu64f86g 9GE3K/HEKMJMs/DHsf0S+j9cJqY/h6n7Po9UmmGNLjB37Y0WS43B7ScWFUQmOyu+mw 5lD0H1XelHCgY/HA/6+ZU4HIrDuih50Iz6J+Kfh/gUVj9n6ppOkNoKzwiGf+efP+k0 cc3ycUWZi/OpppwwL+6FjndLw+7G/U773wFxHHv6cVF6RtJ69933jg2dZCpwv3MJs4 2JEBKNrWL2Ntj37r//WTRSf7HVI5kfqPNgbrtmSzMJ32sNmAU9RYVNttTsPYw6+jxy KShrx5/XUKIiQ== Received: by mail-ej1-f52.google.com with SMTP id hs11so34626082ejc.1 for ; Tue, 09 Mar 2021 19:09:37 -0800 (PST) X-Gm-Message-State: AOAM5339mJutq2PqcZYhfyTA918dzxX0PdAoTvzFfrfQhCUi1FhgWVEo rQ3rUH0kzLDgdE7T3qaqmvWn7WQpeZqh8EZpRg== X-Received: by 2002:a17:906:d153:: with SMTP id br19mr1192083ejb.360.1615345776316; Tue, 09 Mar 2021 19:09:36 -0800 (PST) MIME-Version: 1.0 References: <20210220005204.1417200-1-bauerman@linux.ibm.com> <7d0c6062-ca73-f183-110d-f5b75ae91d10@linux.microsoft.com> In-Reply-To: <7d0c6062-ca73-f183-110d-f5b75ae91d10@linux.microsoft.com> From: Rob Herring Date: Tue, 9 Mar 2021 20:09:25 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] powerpc/kexec_file: Restore FDT size estimation for kdump kernel To: Lakshmi Ramasubramanian Cc: Thiago Jung Bauermann , linuxppc-dev , kexec@lists.infradead.org, Hari Bathini , Mimi Zohar , Michael Ellerman , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 9, 2021 at 7:31 PM Lakshmi Ramasubramanian wrote: > > On 3/9/21 6:08 PM, Rob Herring wrote: > > Hi Rob, > > > On Fri, Feb 19, 2021 at 6:52 PM 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(-) > > > > I ended up delaying the referenced series til 5.13, but have applied > > it now. Can I get an ack from the powerpc maintainers on this one? > > I'll fixup the commit log to make sense given the commit id's aren't > > valid. > > I checked the change applied in linux-next branch and also Device Tree's > for-next branch - it looks like v1 of Thiago's patch has been applied. > Could you please pick up the v2 patch? Huh? This patch (v2) hasn't been applied to any tree AFAICT. Rob