All of lore.kernel.org
 help / color / mirror / Atom feed
From: Aneesh V <aneesh@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v4 0/6] Enable Thumb build for ARM platforms
Date: Thu, 15 Mar 2012 18:55:01 +0530	[thread overview]
Message-ID: <4F61EDAD.6090106@ti.com> (raw)
In-Reply-To: <1331227222-12419-1-git-send-email-aneesh@ti.com>

Tom, Albert,

Does this series look good?

On Thursday 08 March 2012 10:50 PM, Aneesh V wrote:
> Thumb is an alternate instruction set available in many
> ARM processors. Below is a detailed description from ARM
> specs:
>
> "The Thumb instruction set is a re-encoded subset of the
> ARM instruction set. Thumb instructions execute in their
> own processor state, with the architecture defining the
> mechanisms required to transition between ARM and Thumb
> states. The key difference is that Thumb instructions are
> half the size of ARM instructions(16 bits compared with 32
> bits). Greater code density can usually be achieved by using
> the Thumb instruction set in preference to the ARM instruction
> set, at a cost of some reduction in performance"
>
> "In ARMv6T2, Thumb-2 technology is introduced. This technology
> makes it possible to extend the original Thumb instruction set
> with many 32-bit instructions. The range of 32-bit Thumb instructions
> included in ARMv6T2 permits Thumb code to achieve performance
> similar to ARM code, with code density better than that of earlier
> Thumb code. From ARMv6T2, the ARM and Thumb instruction sets provide
> almost identical functionality"
>
> This series adds Thumb support in U-Boot and enables it for
> OMAP4. It also fixes issues faced while booting OMAP4 with
> Thumb-2 images of U-Boot and SPL.
>
> Thumb mode is becoming increasingly relevant for U-Boot with
> the advent of SPL. It's very important to keep SPL size smaller
> considering the internal RAM size constraints on many platforms.
> On OMAP4 the size reduction enables us to use SPL on secure devices
> that have smaller internal RAM available for non-secure world.
>
> To enable support for new platforms you just need to add
> CONFIG_SYS_THUMB_BUILD in your config file.
>
> Tool-chains tried:
> 1. Sourcery G++ Lite 2010q1-202
> arm-none-linux-gnueabi-gcc (Sourcery G++ Lite 2010q1-202) 4.4.1
> GNU ld (Sourcery G++ Lite 2010q1-202) - binutils 2.19.51.20090709
>
> 2. Linaro 4.6-2012.01
> arm-linux-gnueabi-gcc (crosstool-NG linaro-1.13.1-2012.01-20120125 -
> 	Linaro GCC 2012.01) 4.6.3 20120105 (prerelease)
> GNU ld (crosstool-NG linaro-1.13.1-2012.01-20120125 - Linaro GCC 2012.01) 2.22
>
> Code-size reduction:
> Image		ARM build	Thumb build	% Reduction
> u-boot.bin	190408		144676		24.01%
> u-boot-spl.bin	33200		25096		24.40%
>
> Performance(timestamp just before the main loop):
> ARM build	Thumb build	% Reduction
> 898510us	878247us	-2.25%
>
> Performance actually improved marginally for the Thumb
> build, maybe because of the reduced image sizes.
>
> Aneesh V (6):
>    arm: adapt asm/linkage.h from Linux
>    armv7: add appropriate headers for assembly functions
>    ARM: enable Thumb build
>    armv7: Use -march=armv7-a and thereby enable Thumb-2
>    omap4+: Avoid using __attribute__ ((__packed__))
>    OMAP4: enable Thumb build
>
>   README                                         |    8 +++++
>   arch/arm/config.mk                             |   22 +++++++++----
>   arch/arm/cpu/armv7/config.mk                   |    7 +++-
>   arch/arm/cpu/armv7/mx5/lowlevel_init.S         |    5 ++-
>   arch/arm/cpu/armv7/mx6/lowlevel_init.S         |    5 ++-
>   arch/arm/cpu/armv7/omap-common/lowlevel_init.S |   14 ++++----
>   arch/arm/cpu/armv7/omap-common/reset.S         |    5 ++-
>   arch/arm/cpu/armv7/omap3/lowlevel_init.S       |   41 ++++++++++++-----------
>   arch/arm/cpu/armv7/s5pc1xx/cache.S             |   10 +++--
>   arch/arm/cpu/armv7/s5pc1xx/reset.S             |    5 ++-
>   arch/arm/cpu/armv7/start.S                     |   13 ++++---
>   arch/arm/cpu/armv7/tegra2/lowlevel_init.S      |    5 ++-
>   arch/arm/cpu/armv7/u8500/lowlevel.S            |    9 +++--
>   arch/arm/include/asm/arch-omap4/mux_omap4.h    |    2 +-
>   arch/arm/include/asm/arch-omap5/mux_omap5.h    |    2 +-
>   arch/arm/include/asm/linkage.h                 |    7 ++++
>   include/configs/omap4_common.h                 |    2 +
>   include/linux/linkage.h                        |    7 +++-
>   18 files changed, 106 insertions(+), 63 deletions(-)
>   create mode 100644 arch/arm/include/asm/linkage.h
>

  parent reply	other threads:[~2012-03-15 13:25 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-08 17:20 [U-Boot] [PATCH v4 0/6] Enable Thumb build for ARM platforms Aneesh V
2012-03-08 17:20 ` [U-Boot] [PATCH v4 1/6] arm: adapt asm/linkage.h from Linux Aneesh V
2012-03-11  2:01   ` Mike Frysinger
2012-03-12  8:11     ` Aneesh V
2012-03-08 17:20 ` [U-Boot] [PATCH v4 2/6] armv7: add appropriate headers for assembly functions Aneesh V
2012-03-11  2:02   ` Mike Frysinger
2012-03-08 17:20 ` [U-Boot] [PATCH v4 3/6] ARM: enable Thumb build Aneesh V
2012-03-11  2:02   ` Mike Frysinger
2012-03-12  8:20     ` Aneesh V
2012-03-08 17:20 ` [U-Boot] [PATCH v4 4/6] armv7: Use -march=armv7-a and thereby enable Thumb-2 Aneesh V
2012-05-23 15:01   ` Thierry Reding
2012-05-23 15:20     ` Stephen Warren
2012-05-24  6:46       ` Thierry Reding
2012-07-06 23:02   ` Marek Vasut
2012-07-06 23:32     ` Tetsuyuki Kobayashi
2012-07-06 23:43       ` Aneesh V
2012-07-07  7:59         ` Marek Vasut
2012-07-07 10:08           ` Albert ARIBAUD
2012-03-08 17:20 ` [U-Boot] [PATCH v4 5/6] omap4+: Avoid using __attribute__ ((__packed__)) Aneesh V
2012-03-08 17:20 ` [U-Boot] [PATCH v4 6/6] OMAP4: enable Thumb build Aneesh V
2012-03-15 13:25 ` Aneesh V [this message]
2012-03-15 16:29   ` [U-Boot] [PATCH v4 0/6] Enable Thumb build for ARM platforms Tom Rini
2012-04-03 22:48   ` Allen Martin
2012-04-03 22:59     ` Måns Rullgård
2012-03-15 20:23 ` Tom Rini
2012-03-15 20:46   ` Wolfgang Denk
2012-03-15 20:54     ` Tom Rini
2012-03-15 21:01       ` Wolfgang Denk
2012-03-15 21:12         ` Tom Rini
2012-03-15 22:21           ` Tom Rini
2012-03-16  7:16             ` Wolfgang Denk
2012-03-16  7:48             ` Sricharan R
2012-03-16 14:36               ` Tom Rini
2012-03-17  7:10                 ` R, Sricharan
2012-03-16 15:27 ` [U-Boot] [PATCH 1/2] tools, config.mk: Add gcc-version.sh, cc-version test from Linux Tom Rini
2012-03-16 15:27 ` [U-Boot] [PATCH 2/2] Makefile: Add a 'checkthumb' rule Tom Rini
2012-03-16 16:07   ` Mike Frysinger
2012-03-16 17:09     ` Tom Rini
2012-03-16 16:34   ` [U-Boot] [PATCH v2] " Tom Rini
2012-03-16 19:40     ` Mike Frysinger

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=4F61EDAD.6090106@ti.com \
    --to=aneesh@ti.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.