Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp201567pxb; Tue, 9 Mar 2021 21:13:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJwnW6AuoQxDQFdafNRhkIswNysSRfCqrnuWQUq2ctVJGxznX2n18ZBvROl6IkMXzW/+KqOg X-Received: by 2002:a17:906:1b54:: with SMTP id p20mr1626907ejg.307.1615353215471; Tue, 09 Mar 2021 21:13:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615353215; cv=none; d=google.com; s=arc-20160816; b=dn8XhKFXtRZTS5scuEpCTSHJxcKq/Dv/vGheZnTwieT5ldarEuMBAM2/FcDp4X6Mxc JnH8X+L1G/zt0ttq2U9UlpJfgMqa+xXWDIl2wHap58wioVuEjZaJLzwGUPhPfqKnG1Hg dI/iKpojdGKrReU+QZleDKa0pihphKdMUhvEQOQTOk3khZCOPjpBxP0SfO3aJYoD/Bh6 FhpFeinP+9OmcGXHkIND9x87rCCr6szS7INPBnlsHEDDCiTmhdoUsm+uti3iLq/zfQUa 4ST3KHJpPJhibgnSL+Kb4aJIkWWMdlgZ1pqBMbExmi+joG2V3mG1c/IB3p6tKUUMlSky PPEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=4rmiI9Td2ClZs0FZaPg5nO1dY+Q1w/Nv792i3lLMlf0=; b=dGcj/x6PPq87pd159ZapNopaCu+WdWX4ZqQie/6K8YW3XR3ndhDwQyj0VJZvyXKg6X H99L5dZlI+ZxOW2M9XVtgenrf3w7PFcNnpFG3UYmC7VXHhTnTXvXOo7kEDSdtikxLJQY zUF98zFpLL2fHltOJjIPNRGSH3XqaGYLJwhB3/hD4H2YpiT9s4dWfejnqLpqWUzqjN/N TZaJntl1+b322u0yLFZLJr9/xjNzgpZE9upm97i5rKfvZzoVMpJc4/F/tSO1DT0J86WK YqEq27rne4GcoqvCV776x1/Wn7qheUUgltLn5tKJrDCG6acT2VfRc7SkvExoWRBe3SGj T3ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=pIMNXI7u; 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 i18si10856421ejy.707.2021.03.09.21.13.12; Tue, 09 Mar 2021 21:13:35 -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=@ellerman.id.au header.s=201909 header.b=pIMNXI7u; 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 S229603AbhCJFDk (ORCPT + 99 others); Wed, 10 Mar 2021 00:03:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229624AbhCJFDe (ORCPT ); Wed, 10 Mar 2021 00:03:34 -0500 Received: from ozlabs.org (bilbo.ozlabs.org [IPv6:2401:3900:2:1::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 227A8C06174A for ; Tue, 9 Mar 2021 21:03:34 -0800 (PST) Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4DwKjG3XrVz9sRf; Wed, 10 Mar 2021 16:03:30 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ellerman.id.au; s=201909; t=1615352611; bh=mFLZjQ07eWZBJbT4TD+7HDL1AcSUtc853P+SoEFe69o=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=pIMNXI7upzAjuxRm7/c2WODG/A1MmxvsNttA9zpdwiyzRzQ6gjo6wwcBiH5otoQ5L 38iYWfcq8EArgdhHjMrlbh1prxOuLvyVQwsZychqcxgXdEWNx85Q88bZ2ciWT4Kuee bGu1IDFWYxhnkjdeqIsRJqinjnooL1UR+Eh9AURjW3IirWe8sjJuo5JJ0QYWaPMCc3 ZyszTXO/BrzohKGrBSOTM+rHjbSm0JHdsFYSM+cVei1UGI1yFInVOwOREkqeXSWkMO SrmyDoXWyqSIgl9sf1+2zhUo0RElqnMG6nCFKEG2iGTTLKYOeXiYR+HrWcwAsEmkLd UnQPZ4h/FJM5Q== From: Michael Ellerman To: Rob Herring , Thiago Jung Bauermann Cc: linuxppc-dev , kexec@lists.infradead.org, Hari Bathini , Lakshmi Ramasubramanian , Mimi Zohar , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v2] powerpc/kexec_file: Restore FDT size estimation for kdump kernel In-Reply-To: References: <20210220005204.1417200-1-bauerman@linux.ibm.com> Date: Wed, 10 Mar 2021 16:03:27 +1100 Message-ID: <87a6rbr468.fsf@mpe.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Rob Herring writes: > 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. Thanks for handling it. Acked-by: Michael Ellerman cheers