All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Ellerman <mpe@ellerman.id.au>
To: Stephen Rothwell <sfr@canb.auug.org.au>,
	Rob Herring <robherring2@gmail.com>,
	PowerPC <linuxppc-dev@lists.ozlabs.org>
Cc: Hari Bathini <hbathini@linux.ibm.com>,
	Lakshmi Ramasubramanian <nramas@linux.microsoft.com>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Linux Next Mailing List <linux-next@vger.kernel.org>,
	Rob Herring <robh@kernel.org>
Subject: Re: linux-next: manual merge of the devicetree tree with the powerpc tree
Date: Thu, 18 Feb 2021 21:44:37 +1100	[thread overview]
Message-ID: <874ki9vene.fsf@mpe.ellerman.id.au> (raw)
In-Reply-To: <20210218144815.5673ae6f@canb.auug.org.au>

Stephen Rothwell <sfr@canb.auug.org.au> writes:
> Hi all,
>
> Today's linux-next merge of the devicetree tree got a conflict in:
>
>   arch/powerpc/kexec/elf_64.c
>
> between commit:
>
>   2377c92e37fe ("powerpc/kexec_file: fix FDT size estimation for kdump kernel")
>
> from the powerpc tree and commit:
>
>   130b2d59cec0 ("powerpc: Use common of_kexec_alloc_and_setup_fdt()")
>
> from the devicetree tree.
>
> I can't easily see how to resolve these, so for now I have just used
> the latter' changes to this file.

I think it just needs this?

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 *kernel_buf,
 
 	fdt = 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 = -EINVAL;


cheers

WARNING: multiple messages have this Message-ID (diff)
From: Michael Ellerman <mpe@ellerman.id.au>
To: Stephen Rothwell <sfr@canb.auug.org.au>,
	Rob Herring <robherring2@gmail.com>,
	PowerPC <linuxppc-dev@lists.ozlabs.org>
Cc: Lakshmi Ramasubramanian <nramas@linux.microsoft.com>,
	Linux Next Mailing List <linux-next@vger.kernel.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Hari Bathini <hbathini@linux.ibm.com>,
	Rob Herring <robh@kernel.org>
Subject: Re: linux-next: manual merge of the devicetree tree with the powerpc tree
Date: Thu, 18 Feb 2021 21:44:37 +1100	[thread overview]
Message-ID: <874ki9vene.fsf@mpe.ellerman.id.au> (raw)
In-Reply-To: <20210218144815.5673ae6f@canb.auug.org.au>

Stephen Rothwell <sfr@canb.auug.org.au> writes:
> Hi all,
>
> Today's linux-next merge of the devicetree tree got a conflict in:
>
>   arch/powerpc/kexec/elf_64.c
>
> between commit:
>
>   2377c92e37fe ("powerpc/kexec_file: fix FDT size estimation for kdump kernel")
>
> from the powerpc tree and commit:
>
>   130b2d59cec0 ("powerpc: Use common of_kexec_alloc_and_setup_fdt()")
>
> from the devicetree tree.
>
> I can't easily see how to resolve these, so for now I have just used
> the latter' changes to this file.

I think it just needs this?

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 *kernel_buf,
 
 	fdt = 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 = -EINVAL;


cheers

  reply	other threads:[~2021-02-18 12:26 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-18  3:48 linux-next: manual merge of the devicetree tree with the powerpc tree Stephen Rothwell
2021-02-18  3:48 ` Stephen Rothwell
2021-02-18 10:44 ` Michael Ellerman [this message]
2021-02-18 10:44   ` Michael Ellerman
2021-02-18 11:34   ` Stephen Rothwell
2021-02-18 11:34     ` Stephen Rothwell
2021-02-18 13:52     ` Rob Herring
2021-02-18 13:52       ` Rob Herring
2021-02-18 20:31       ` Stephen Rothwell
2021-02-18 20:31         ` Stephen Rothwell
2021-02-18 23:28       ` Michael Ellerman
2021-02-18 23:28         ` Michael Ellerman
  -- strict thread matches above, loose matches on Subject: below --
2012-03-13  5:01 Stephen Rothwell
2012-03-13  5:01 ` Stephen Rothwell
2012-03-13  5:01 ` Stephen Rothwell
2012-03-13 18:26 ` Grant Likely
2012-03-13 18:26   ` Grant Likely
2012-03-14  1:53   ` Gavin Shan
2012-03-14  1:53     ` Gavin Shan
2012-03-14  8:29     ` Benjamin Herrenschmidt
2012-03-14  8:29       ` Benjamin Herrenschmidt
2012-03-14  9:02       ` Gavin Shan
2012-03-14  9:02         ` Gavin Shan
2012-02-28  2:06 Stephen Rothwell
2012-02-28  2:06 ` Stephen Rothwell
2012-02-28  2:06 ` Stephen Rothwell
2012-02-28  4:38 ` Grant Likely
2012-02-28  4:38   ` Grant Likely

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874ki9vene.fsf@mpe.ellerman.id.au \
    --to=mpe@ellerman.id.au \
    --cc=hbathini@linux.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-next@vger.kernel.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=nramas@linux.microsoft.com \
    --cc=robh@kernel.org \
    --cc=robherring2@gmail.com \
    --cc=sfr@canb.auug.org.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.