From: Siarhei Siamashka <siarhei.siamashka@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/1] arm: Migrate SYS_THUMB_BUILD to Kconfig, introduce SPL_SYS_THUMB_BUILD
Date: Tue, 7 Mar 2017 03:02:05 +0200 [thread overview]
Message-ID: <20170307030205.34e9f731@i7> (raw)
In-Reply-To: <20170306225417.GM19897@bill-the-cat>
On Mon, 6 Mar 2017 17:54:17 -0500
Tom Rini <trini@konsulko.com> wrote:
> On Tue, Mar 07, 2017 at 12:44:59AM +0200, Siarhei Siamashka wrote:
> > Hi Tom,
> >
> > On Mon, 6 Mar 2017 13:50:10 -0500
> > Tom Rini <trini@konsulko.com> wrote:
> >
> > > Today, we have cases where we wish to build all of U-Boot in Thumb2 mode for
> > > various reasons. We also have cases where we only build SPL in Thumb2 mode due
> > > to size constraints and wish to build the rest of the system in ARM mode.
> >
> > Is there a good real world example of this particular use case? Even if
> > there is enough space for having the U-Boot binary built in ARM mode,
> > Thumb2 is still smaller and loads faster. And having reduced boot time
> > is always nice.
>
> So, good question. At the moment, I'm not trying to change existing
> behavior. I also seem to recall that Thumb2 being a performance win
> depends on what you're doing. It would certainly be worth doing some
> tests to see if on say Allwinner where today we don't do the main U-Boot
> in Thumb2 mode there is a noticable change as it looked like a pretty
> big size win.
Hmm, you are right. Currently the 'sunxi-common.h' file has the
following lines:
#if defined(CONFIG_SPL_BUILD) && !defined(CONFIG_ARM64)
#define CONFIG_SYS_THUMB_BUILD /* Thumbs mode to save space in SPL */
#endif
I even did not know and was not careful enough to ever notice that sunxi
builds the main U-Boot binary in ARM mode. This just seems to be weird.
Basically, you are introducing two separate Kconfig options just to
accommodate the current sunxi configuration, right?
I guess, the next step would be to fix sunxi to use Thumb2
everywhere :-)
Now your patch at least makes sense and looks good to me.
Acked-by: Siarhei Siamashka <siarhei.siamashka@gmail.com>
--
Best regards,
Siarhei Siamashka
next prev parent reply other threads:[~2017-03-07 1:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-06 18:50 [U-Boot] [PATCH 1/1] arm: Migrate SYS_THUMB_BUILD to Kconfig, introduce SPL_SYS_THUMB_BUILD Tom Rini
2017-03-06 22:44 ` Siarhei Siamashka
2017-03-06 22:54 ` Tom Rini
2017-03-07 1:02 ` Siarhei Siamashka [this message]
2017-03-07 1:05 ` Tom Rini
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=20170307030205.34e9f731@i7 \
--to=siarhei.siamashka@gmail.com \
--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.