Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp135230pxb; Tue, 9 Mar 2021 18:33:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJw098hP8viG8QtvVwGVN5KrL20+J8pdW/ofY8a830tkJpm5yM3/0M/DcePh6d9rKz1lqcP2 X-Received: by 2002:aa7:d2d5:: with SMTP id k21mr678421edr.216.1615343603277; Tue, 09 Mar 2021 18:33:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615343603; cv=none; d=google.com; s=arc-20160816; b=0Ct0c/U1FkPn5ylc4LHf5LQZZXpfexPLlISkik1LbmHOSHUUZwzbcerrJxhIeGxxzz UIl9LxNpGWs39jfVQTXihVyAAlGMMyAQJVKTj1W/VTTOkT9r8XDoF1Aej1nG8nPV1bLA gTDo1omz0zgUG3impTBJgQFscfgvEnGfvMqK4Y2/8DBZb64yfbzYNzsKctiXSKfz/Pcz 9jrxE5HgA3ik1KsHEb+oPOhsQ1J7y2MfwmJuuQ6BU5oEzQ7uWUNn1n4ABiss3olrz9iv H4ev7OvoTgkV6zIZZk7PrjOUJjFKBk7KPirg8Wuxz9BbQdjl49X6C+KysQOiP8hyP+FW tquA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:dkim-filter; bh=zyAxx9X7db3xy7R9k6SWK3OhsYY9Ys/qYCIMIrLY89E=; b=h7sLha27zCv5x0o8/n/KNNFxwuzTdpTAHgjRkmcPrTslcNPmI09Ls4v+FrB/263DR/ owKWWCfdUrpniP4oCdB8HPL1bqp67b/vjneD7YruoxitGYtYcc+B/27NRCGaf8s2aGeE GG5RWcv9rGMV4Aw25f72esvh7lkxDKVkxE4wDrAliudVp0PACMMolkq816pzsd3IYVOs JbklYZ18pp8xK2OSSjlW4OWI2rIJjzfBBoof/ED+2t9/NwBSsZ/zb4ZH49kEYf9S4Hq3 yXXZVchpRjYJ8wGBkai63SncizoLrjWHE/Uhfcp8adEvgTfBusrCHrqxy/7KdRwYd2Zg zbaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b="JfvW/B6A"; 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=linux.microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id pg21si9744236ejb.168.2021.03.09.18.33.00; Tue, 09 Mar 2021 18:33:23 -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=@linux.microsoft.com header.s=default header.b="JfvW/B6A"; 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=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231933AbhCJCbd (ORCPT + 99 others); Tue, 9 Mar 2021 21:31:33 -0500 Received: from linux.microsoft.com ([13.77.154.182]:44204 "EHLO linux.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231835AbhCJCbF (ORCPT ); Tue, 9 Mar 2021 21:31:05 -0500 Received: from [192.168.0.104] (c-73-42-176-67.hsd1.wa.comcast.net [73.42.176.67]) by linux.microsoft.com (Postfix) with ESMTPSA id 60413208CF3F; Tue, 9 Mar 2021 18:31:05 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 60413208CF3F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1615343465; bh=zyAxx9X7db3xy7R9k6SWK3OhsYY9Ys/qYCIMIrLY89E=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=JfvW/B6Ap41tfrrlv+LoSg0oGUs//FcsYMmOIlOHbyKRKcIRKhmr1aGlZtWTwMeng nwBXYR51wSX2e9X3Woow1jwfWw8WzLLmLNKexwZiE5WKjMz3j8S6O0hw5/Wfq640km lUQdoGC6XBVovEBLOGZJdldX/8TQUB3+jD719qm8= Subject: Re: [PATCH v2] powerpc/kexec_file: Restore FDT size estimation for kdump kernel To: Rob Herring , Thiago Jung Bauermann Cc: linuxppc-dev , kexec@lists.infradead.org, Hari Bathini , Mimi Zohar , Michael Ellerman , "linux-kernel@vger.kernel.org" References: <20210220005204.1417200-1-bauerman@linux.ibm.com> From: Lakshmi Ramasubramanian Message-ID: <7d0c6062-ca73-f183-110d-f5b75ae91d10@linux.microsoft.com> Date: Tue, 9 Mar 2021 18:31:04 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? thanks, -lakshmi