From: Przemyslaw Marczak <p.marczak@samsung.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 0/3] arm: reduce .bss section clear time
Date: Wed, 28 Jan 2015 15:10:39 +0100 [thread overview]
Message-ID: <54C8EDDF.4090909@samsung.com> (raw)
In-Reply-To: <54C8E024.8070504@denx.de>
Hello Stefan,
On 01/28/2015 02:12 PM, Stefan Roese wrote:
> Hi Przemyslaw,
>
> On 28.01.2015 13:55, Przemyslaw Marczak wrote:
>> This patchset reduces the boot time for ARM architecture,
>> Exynos boards, and boards with DFU enabled(ARM).
>>
>> For tested Trats2 device, this was done in three steps.
>>
>> First was enable the arch memcpy and memset.
>> The second step was enable memset for .bss clear.
>> The third step for reduce this operation is to keep .bss section
>> small as possible.
>>
>> The .bss section will grow if we have a lot of static variables.
>> This section is cleared before jump to the relocated U-Boot,
>> and it's done word by word. To reduce the time for this step,
>> we can enable arch memset, which uses multiple ARM registers.
>>
>> For configs with DFU enabled, we can find the dfu buffer in this section,
>> which has at least 8MB (32MB for trats2). This is a lot of useless data,
>> which is not required for standard boot. So this buffer should be dynamic
>> allocated.
>>
>> Przemyslaw Marczak (3):
>> exynos: config: enable arch memcpy and arch memset
>> arm: relocation: clear .bss section with arch memset if defined
>> dfu: mmc: file buffer: remove static allocation
>>
>> arch/arm/lib/crt0.S | 10 +++++++++-
>> drivers/dfu/dfu_mmc.c | 25 ++++++++++++++++++++++---
>> include/configs/exynos-common.h | 3 +++
>> 3 files changed, 34 insertions(+), 4 deletions(-)
>
> Looking at the commit messages of this patchset I can conclude that your
> overall boot time reduction is:
>
> from ~1527ms
> to ~464ms
>
> This is amazing! Congrats. :)
>
Thank you. I was also amazed.
The time results are taken with from the clock cycle counter, I think
it's reliable. Some day I would like to check it using the oscilloscope.
> We really should in general make more use of the optimized functions and
> take care that the buffers (e.g. the DFU buffer in this case) are used
> in a sane way.
>
> Thanks,
> Stefan
>
>
Yes you're right, I thought that Exynos config has enabled arch
memcpy/set lib, before I checked this...
Best regards,
--
Przemyslaw Marczak
Samsung R&D Institute Poland
Samsung Electronics
p.marczak at samsung.com
next prev parent reply other threads:[~2015-01-28 14:10 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-28 12:55 [U-Boot] [PATCH 0/3] arm: reduce .bss section clear time Przemyslaw Marczak
2015-01-28 12:55 ` [U-Boot] [PATCH 1/3] exynos: config: enable arch memcpy and arch memset Przemyslaw Marczak
2015-01-28 12:55 ` [U-Boot] [PATCH 2/3] arm: relocation: clear .bss section with arch memset if defined Przemyslaw Marczak
2015-02-01 2:38 ` Albert ARIBAUD
2015-02-02 17:04 ` Bill Pringlemeir
2015-02-02 17:25 ` Tom Rini
2015-02-02 17:28 ` Pantelis Antoniou
2015-02-02 17:36 ` Tom Rini
2015-02-12 15:37 ` Tom Rini
2015-02-13 16:23 ` Przemyslaw Marczak
2015-01-28 12:55 ` [U-Boot] [PATCH 3/3] dfu: mmc: file buffer: remove static allocation Przemyslaw Marczak
2015-01-28 13:12 ` [U-Boot] [PATCH 0/3] arm: reduce .bss section clear time Stefan Roese
2015-01-28 14:10 ` Przemyslaw Marczak [this message]
2015-01-28 14:18 ` Pantelis Antoniou
2015-01-28 14:30 ` Przemyslaw Marczak
2015-01-28 14:34 ` Pantelis Antoniou
2015-01-29 15:26 ` Przemyslaw Marczak
2015-01-29 16:48 ` Przemyslaw Marczak
2015-02-02 8:46 ` Lukasz Majewski
2015-02-02 18:15 ` Simon Glass
2015-02-05 9:51 ` Lukasz Majewski
2015-02-12 16:07 ` Tom Rini
2015-02-13 15:48 ` Przemyslaw Marczak
2015-02-13 18:13 ` Tom Rini
2015-02-13 16:15 ` Przemyslaw Marczak
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=54C8EDDF.4090909@samsung.com \
--to=p.marczak@samsung.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.