All of lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Glass <sjg@chromium.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2] libfdt: replace ARCH_FIXUP_FDT with ARCH_FIXUP_FDT_MEMORY
Date: Fri, 25 Nov 2016 12:37:51 -0700	[thread overview]
Message-ID: <CAPnjgZ01kBzGpywWuQcMt63FQ-y50C_mp+XqP4qkPRrwtgtfBQ@mail.gmail.com> (raw)
In-Reply-To: <CAPnjgZ2DwTnsER9Mzu+NPFKV-7rZ3k=0tmzTotw-08L5FD7hyA@mail.gmail.com>

Hi,

On 23 October 2016 at 21:01, Simon Glass <sjg@chromium.org> wrote:
> On 21 October 2016 at 01:12, Alexey Brodkin <Alexey.Brodkin@synopsys.com> wrote:
>> Hello Masahiro-san,
>>
>> On Fri, 2016-10-21 at 10:58 +0900, Masahiro Yamada wrote:
>>> Hi Alexey,
>>>
>>> 2016-10-20 20:55 GMT+09:00 Alexey Brodkin <Alexey.Brodkin@synopsys.com>:
>>> >
>>> > Hello Masahiro-san,
>>> >
>>> > On Thu, 2016-10-20 at 09:15 +0900, Masahiro Yamada wrote:
>>> > >
>>> > > Commit e2f88dfd2d96 ("libfdt: Introduce new ARCH_FIXUP_FDT option")
>>> > > allows us to skip memory setup of DTB, but a problem for ARM is that
>>> > > spin_table_update_dt() and psci_update_dt() are skipped as well if
>>> > > CONFIG_ARCH_FIXUP_FDT is disabled.
>>> > >
>>> > > This commit allows us to skip only fdt_fixup_memory_banks() instead
>>> > > of the whole of arch_fixup_fdt().  It will be useful when we want to
>>> > > use a memory node from a kernel DTB as is, but need some fixups for
>>> > > Spin-Table/PSCI.
>>> > >
>>> > > Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
>>> > > ---
>>> > >
>>> > > Changes in v2:
>>> > >  - Add empty stub to ARC, PowerPC, Microblaze instead of
>>> > >    a weak function common/image-fdt.c
>>> >
>>> > [snip]
>>> >
>>> > >
>>> > > diff --git a/arch/arc/lib/bootm.c b/arch/arc/lib/bootm.c
>>> > > index 04d9d9c..5798149 100644
>>> > > --- a/arch/arc/lib/bootm.c
>>> > > +++ b/arch/arc/lib/bootm.c
>>> > > @@ -37,6 +37,11 @@ void arch_lmb_reserve(struct lmb *lmb)
>>> > >       lmb_reserve(lmb, sp, (CONFIG_SYS_SDRAM_BASE + gd->ram_size - sp));
>>> > >  }
>>> > >
>>> > > +int arch_fixup_fdt(void *blob)
>>> > > +{
>>> > > +     return 0;
>>> > > +}
>>> > > +
>>> >
>>> > I'm wondering why don't we add weak implementation of arch_fixup_fdt()
>>> > right in say common/image-fdt.c? This will allow us to not add dummy stubs
>>> > for those arches that don't really use it.
>>>
>>>
>>> I fully agree with you.
>>>
>>>
>>> I used a weak function in v1:
>>> http://patchwork.ozlabs.org/patch/678049/
>>>
>>> But, it was change-request'ed by Simon.
>>
>> Ok, thanks for the reference.
>> Indeed Simon's comments make sense.
>>
>> So for ARC changes
>>
>> Acked-by: Alexey Brodkin <abrodkin@synopsys.com>
>
> Acked-by: Simon Glass <sjg@chromium.org>

Unfortunately this breaks sandbox - can you please take a look?

02: libfdt: replace ARCH_FIXUP_FDT with ARCH_FIXUP_FDT_MEMORY
   sandbox:  +   sandbox sandbox_spl sandbox_noblk
+common/built-in.o: In function `image_setup_libfdt':
+build/../common/image-fdt.c:477: undefined reference to `arch_fixup_fdt'
+collect2: error: ld returned 1 exit status
+make[1]: *** [u-boot] Error 1
+make: *** [sub-make] Error 2

Regards,
Simon

  reply	other threads:[~2016-11-25 19:37 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-20  0:15 [U-Boot] [PATCH v2] libfdt: replace ARCH_FIXUP_FDT with ARCH_FIXUP_FDT_MEMORY Masahiro Yamada
2016-10-20 11:55 ` Alexey Brodkin
2016-10-21  1:58   ` Masahiro Yamada
2016-10-21  7:12     ` Alexey Brodkin
2016-10-24  3:01       ` Simon Glass
2016-11-25 19:37         ` Simon Glass [this message]
2016-11-26  2:07           ` Masahiro Yamada

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=CAPnjgZ01kBzGpywWuQcMt63FQ-y50C_mp+XqP4qkPRrwtgtfBQ@mail.gmail.com \
    --to=sjg@chromium.org \
    --cc=u-boot@lists.denx.de \
    /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.