public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: Simon Glass <sjg@chromium.org>
Cc: "Pali Rohár" <pali@kernel.org>, "Marek Vasut" <marex@denx.de>,
	"Ivaylo Dimitrov" <ivo.g.dimitrov.75@gmail.com>,
	"Lokesh Vutla" <lokeshvutla@ti.com>,
	"Merlijn Wajer" <merlijn@wizzup.org>,
	"U-Boot Mailing List" <u-boot@lists.denx.de>,
	"Pavel Machek" <pavel@ucw.cz>
Subject: Re: [PATCH 1/2] DM_USB: allow building without OF_CONTROL
Date: Mon, 28 Jun 2021 09:39:27 -0400	[thread overview]
Message-ID: <20210628133927.GZ9516@bill-the-cat> (raw)
In-Reply-To: <CAPnjgZ1JQPPtiD-Qpppa7H269YOOTOsGDLM867pqqu7Kf4xU4Q@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2595 bytes --]

On Sun, Jun 27, 2021 at 01:06:12PM -0600, Simon Glass wrote:
> Hi Pali,
> 
> On Fri, 25 Jun 2021 at 10:58, Pali Rohár <pali@kernel.org> wrote:
> >
> > On Friday 25 June 2021 10:43:11 Simon Glass wrote:
> > > Hi Pali,
> > >
> > > On Fri, 25 Jun 2021 at 10:16, Pali Rohár <pali@kernel.org> wrote:
> > > >
> > > > On Friday 25 June 2021 10:04:14 Simon Glass wrote:
> > > > > But I do wonder about the
> > > > > 100KB growth you saw with DT/DM. That seems absolutely enormous to me!
> > > > > Can you please point me to the git tree for this? I'd like to
> > > > > investigate.
> > > >
> > > > Patches in this series were written by Ivo. I do not know exact details
> > > > and numbers. But the fact is that it was required to enable thumb-2 mode
> > > > (which has hw bugs on this cpu, see earlier emails; reason why it was
> > > > disabled). If you want to investigate it, you can try compare u-boot
> > > > from master/next and u-boot with applying these patches + disable
> > > > thumb-2 mode. Note that we have already enabled LTO.
> > > >
> > >
> > > That's probably a little beyond my level of enthusiasm. But if you are
> > > able to push a tree with before/after commits, I will take a look.
> >
> > Hello Simon! I have already pushed these patches to github due to CI
> > testing. So you can easily access them via git fetch/checkout.
> >
> > Before (this is already in u-boot git):
> > $ git checkout a298d4fbcdba1b38e48ea2af0fc5386cab2070da
> >
> > After1:
> > $ git fetch https://github.com/u-boot/u-boot.git refs/pull/83/head
> > $ git checkout 1f038c8b45ef0018e52a2a4587eb73170769ac2f
> >
> > After2:
> > = use After1 with:
> >   + disable CONFIG_SYS_THUMB_BUILD
> >   + enable CONFIG_OF_LIBFDT_OVERLAY
> >   + enable CONFIG_CMD_FDT
> >
> > defconfig file is nokia_rx51_defconfig
> 
> OK thanks, I see it. I pushed a tree to u-boot-dm/nokia_rx51 with a
> few changes. The growth is about 19KB (without enabling Thumb). Some
> more fine-grained control of what get enabled with LIBFDT could be
> added to reduce that, perhaps by 5KB.

So, was the entirety of the reduction you saw from dropping out
EFI_LOADER?  Just most of it?  Disabling that came up in another part of
this thread.  And if we just need to disable EFI_LOADER,
OF_LIBFDT_OVERLAY and CMD_FDT (and maybe tweak the mask value) in order
to not need to do any other changes, yes, that's the right approach.  It
would be helpful, but not required, to confirm if thumb works or fails
on hardware, but I do understand it's a PITA to unbrick these devices.

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

  reply	other threads:[~2021-06-28 13:39 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-18 14:57 [PATCH 1/2] DM_USB: allow building without OF_CONTROL Pali Rohár
2021-06-18 14:57 ` [PATCH 2/2] Nokia RX-51: Enable CONFIG_DM_USB to remove deprecation warning Pali Rohár
2021-06-26 18:31   ` Simon Glass
2021-06-18 16:38 ` [PATCH 1/2] DM_USB: allow building without OF_CONTROL Tom Rini
2021-06-19  2:23   ` Marek Vasut
2021-06-19  6:14     ` Ivaylo Dimitrov
2021-06-19 18:17       ` Marek Vasut
2021-06-19 19:33         ` Ivaylo Dimitrov
2021-06-19 19:38           ` Marek Vasut
2021-06-19 20:15             ` Ivaylo Dimitrov
2021-06-19 20:51               ` Tom Rini
2021-06-20  3:52                 ` Marek Vasut
2021-06-20 15:54                   ` Tom Rini
2021-06-20 19:43                     ` Marek Vasut
2021-06-25 12:38                       ` Tom Rini
2021-06-25 13:07                         ` Pali Rohár
2021-06-25 16:04                           ` Simon Glass
2021-06-25 16:16                             ` Pali Rohár
2021-06-25 16:43                               ` Simon Glass
2021-06-25 16:58                                 ` Pali Rohár
2021-06-27 19:06                                   ` Simon Glass
2021-06-28 13:39                                     ` Tom Rini [this message]
2021-06-28 14:20                                       ` Simon Glass
2021-06-28 14:43                                         ` Tom Rini
2021-06-25 21:31                             ` Ivaylo Dimitrov
2021-06-25 21:37                               ` Tom Rini
2021-06-25 21:51                                 ` Pali Rohár
2021-06-25 21:59                                   ` Tom Rini
2021-06-26 10:59                                     ` Merlijn Wajer
2021-06-26 14:58                                       ` Tom Rini
2021-06-30  7:12                                         ` Ivaylo Dimitrov
2021-06-30  7:30                                         ` Ivaylo Dimitrov
2021-06-30 13:33                                           ` Tom Rini
2021-06-30 14:31                                             ` Ivaylo Dimitrov
2021-06-30 15:48                                               ` Tom Rini
2021-06-30 16:02                                                 ` Simon Glass

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=20210628133927.GZ9516@bill-the-cat \
    --to=trini@konsulko.com \
    --cc=ivo.g.dimitrov.75@gmail.com \
    --cc=lokeshvutla@ti.com \
    --cc=marex@denx.de \
    --cc=merlijn@wizzup.org \
    --cc=pali@kernel.org \
    --cc=pavel@ucw.cz \
    --cc=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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox