Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp7227477pxb; Thu, 18 Feb 2021 05:04:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJy0k2ExoaGaLhvcCXSTQHNvQsYOv1jAgqJaGLJalvA9M50Eh33/yX5eMCQwFAhRUcsyh6Fk X-Received: by 2002:a1c:8005:: with SMTP id b5mr3618090wmd.130.1613653496159; Thu, 18 Feb 2021 05:04:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613653496; cv=none; d=google.com; s=arc-20160816; b=hX64Mz6+J0XMMjkuH0lLs1lgP38KJVQZsKxWvWTDphf+alEjT8iEb+/N0cocvkymFe oWr9EByDS2fLSA91TWQyNDnx8MvihFNC1TShHfMx9cPyGl1IuJDUNM6HBUluYUXNWHPm mT1aIKDLb096rc0beGcEepY9ENFS3GxQ0aJc7QwjajFSGPTIQL50C8W6qu5lm7gh/BHJ JPyRFTPjyqC1Z+XZu1TO/vERF6X+h+kCFxmVOTFE5/aBSdDJ81G2d4CloFeQzKy+XLZq erJbiQ15FvNjcqcPv0U6wAxZvwihV3sf0W3aVfjNcn/5eylJ9S37NUJtti49wWN0tTc6 WmFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=6913q2Fyea2HjREll5P/o6l2mgmiVA0fohm2cwEWdfw=; b=jH58lduJ5m0MYpSBncWjWk3Uii9qVzbkvNdP0JkZ8TPOh+p6hdrdDbU4vDMbnrqt0L /bc1dz4lwl/qGfFKaQ08knBLKvWPB2ov4ehwEm7vW2/RQYtEj9HgQmf/WOHlAcySqTHs kycLowhr6G11icM9QVv9cZ0rMUJ7i9eSYvsrZy4E1TQJA9omf1USYHZKpjmZlJKR7XB5 tw/IwUwJkDDP+wNdTzblC9oUdsLULdcejNbTz94mFl4fU5cXX3M5TKrKnZOuCBhm0x0D 7WLDkQG9vMnTvaAemKHfYMbaj+zG+novv86vNyh22ubwpTh0wjXBS94uZV9r95lnMxdD MBXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=gSDkhirL; 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 cc25si3636046edb.440.2021.02.18.05.04.30; Thu, 18 Feb 2021 05:04:56 -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=@canb.auug.org.au header.s=201702 header.b=gSDkhirL; 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 S232965AbhBRNC6 (ORCPT + 99 others); Thu, 18 Feb 2021 08:02:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231586AbhBRLjZ (ORCPT ); Thu, 18 Feb 2021 06:39:25 -0500 Received: from ozlabs.org (ozlabs.org [IPv6:2401:3900:2:1::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2898FC06178A; Thu, 18 Feb 2021 03:37:43 -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 4DhCKd0DFpz9sRN; Thu, 18 Feb 2021 22:34:29 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=canb.auug.org.au; s=201702; t=1613648069; bh=VXSHB3U6S26m/drvh4a+pj7NEw/q1khXZJuZz7rXrUE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=gSDkhirLQjnW2lGMxOvtuxAzGo2ioIuv5CvfP5rSvUVRaJfJ0/pY+PnvMH7yjbMv6 aiUp6KFRUxGgfE6W7DRqdRsqFVq94lAHCeL/AX/V3XKfqxvxTlwtYlMh9a7EUzLbwr QWTYPtWvUvQVU41GTcQpVzX+5OCe0YhyCtvfL0qy8T5PUM6SwWcgcHFR7XHNF+cOU6 T+L8ztT6lJiIfcbtbX5OBY4xNJMLRnrVMiH8h0Dt2lqyD/0nRVkyaTt5ZOrfwyPR/m kCK0dLmoDJfwFaObw1b9SltvI1ODpAIPiZq3vZtpzLk9EzP4a8tReJd+47WXOD9Kja I2KjLPCYEMe+A== Date: Thu, 18 Feb 2021 22:34:27 +1100 From: Stephen Rothwell To: Michael Ellerman Cc: Rob Herring , PowerPC , Hari Bathini , Lakshmi Ramasubramanian , Linux Kernel Mailing List , Linux Next Mailing List , Rob Herring Subject: Re: linux-next: manual merge of the devicetree tree with the powerpc tree Message-ID: <20210218223427.77109d83@canb.auug.org.au> In-Reply-To: <874ki9vene.fsf@mpe.ellerman.id.au> References: <20210218144815.5673ae6f@canb.auug.org.au> <874ki9vene.fsf@mpe.ellerman.id.au> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/Krv4dNl2WGCiT=lWt4ozErY"; protocol="application/pgp-signature"; micalg=pgp-sha256 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/Krv4dNl2WGCiT=lWt4ozErY Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi Michael, On Thu, 18 Feb 2021 21:44:37 +1100 Michael Ellerman wr= ote: > > I think it just needs this? >=20 > diff --git a/arch/powerpc/kexec/elf_64.c b/arch/powerpc/kexec/elf_64.c > index 87e34611f93d..0492ca6003f3 100644 > --- a/arch/powerpc/kexec/elf_64.c > +++ b/arch/powerpc/kexec/elf_64.c > @@ -104,7 +104,7 @@ static void *elf64_load(struct kimage *image, char *k= ernel_buf, > =20 > fdt =3D of_kexec_alloc_and_setup_fdt(image, initrd_load_addr, > initrd_len, cmdline, > - fdt_totalsize(initial_boot_params)); > + kexec_fdt_totalsize_ppc64(image)); > if (!fdt) { > pr_err("Error setting up the new device tree.\n"); > ret =3D -EINVAL; >=20 I thought about that, but the last argument to of_kexec_alloc_and_setup_fdt() is extra_fdt_size and the allocation done is for this: fdt_size =3D fdt_totalsize(initial_boot_params) + (cmdline ? strlen(cmdline) : 0) + FDT_EXTRA_SPACE + extra_fdt_size; and kexec_fdt_totalsize_ppc64() also includes fdt_totalsize(initial_boot_params) so I was not sure. Maybe kexec_fdt_totalsize_ppc64() needs modification as well? --=20 Cheers, Stephen Rothwell --Sig_/Krv4dNl2WGCiT=lWt4ozErY Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAmAuUMMACgkQAVBC80lX 0GzMywf/Vkwbwfcyt2jmZE4boVwAlJBei33m6JzQD/llGlrkrbm66R5c8eGWe32d K9z2RTBFuqqc+RAcYHIoh39nP/ENoYXYMlJsxOptGMv3pRGjP5ptI5wJm9BxtZtD NJ+zSqPmndklUwNSkzaoZPtbs7d/BpIR+jkLt10w8YMnFeyshBiwPJGcZlhmrUfM i9kF3NgF1dQCXWtDValsb0SCVlza1GdMNZGI+g62Ykv2IscKZ1tVfOYgfTZ5DZNZ Yfsqs9CaTnLrnQaY8ai0jLplJPojHbZ3CCmInS6/rSo+K3Pa6KpFtYYgXRYLU72E Tinhkws2VRmnyOM6lr7w+fhYaaKEqw== =Ze8C -----END PGP SIGNATURE----- --Sig_/Krv4dNl2WGCiT=lWt4ozErY--