From: Albert ARIBAUD <albert.aribaud@free.fr>
To: u-boot@lists.denx.de
Subject: [U-Boot] ELF_RELOC causes strange I-cache issues
Date: Fri, 22 Oct 2010 15:19:08 +0200 [thread overview]
Message-ID: <4CC18F4C.4090900@free.fr> (raw)
In-Reply-To: <20101022122615.7003D1359B3@gemini.denx.de>
Le 22/10/2010 14:26, Wolfgang Denk a ?crit :
> I think we halve solved (wel, actually worked around) the problem; the
> solution is (like so often) adding / increasing a delay in the USB
> code.
Good! Out of curiosity, is this timing inevitable or is there a way to
turn it into a wait loop (plus a timeout for security)?
> I think the ELF relocations only triggered the problem because they
> resulted in smaller code which (most probably) also executes a bit
> faster - and the difference was enough to trigger the problem.
I concur for the execution speed, but not due to ELF relocations per se,
rather due to the i-cache being turned on and working correctly, i.e.
increasing code speed, to the point that a bad timing condition occurs.
As for size, ELF relocations actually do not change executable code size
with respect to "fixed" relocation. GOT relocation, OTOH, would increase
the code size and slow it slightly down.
We'll probably see more of these with the increased use of i-cache and
d-cache on ARM.
> Best regards,
>
> Wolfgang Denk
Amicalement,
--
Albert.
next prev parent reply other threads:[~2010-10-22 13:19 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-20 18:49 [U-Boot] ELF_RELOC causes strange I-cache issues Wolfgang Denk
2010-10-20 20:12 ` Albert ARIBAUD
2010-10-20 20:54 ` Wolfgang Denk
2010-10-20 22:20 ` Joakim Tjernlund
2010-10-21 9:18 ` Albert Aribaud
2010-10-21 9:51 ` Heiko Schocher
2010-10-21 10:11 ` Reinhard Meyer
2010-10-21 10:34 ` Albert ARIBAUD
2010-10-21 10:49 ` Reinhard Meyer
2010-10-21 10:50 ` Heiko Schocher
2010-10-21 11:03 ` Stefan Roese
2010-10-21 10:54 ` Wolfgang Denk
2010-10-21 10:56 ` Albert ARIBAUD
2010-10-21 11:36 ` Wolfgang Denk
2010-10-21 11:45 ` Wolfgang Denk
2010-10-21 11:52 ` Stefano Babic
2010-10-21 11:53 ` Wolfgang Denk
2010-10-21 12:00 ` Wolfgang Denk
2010-10-21 12:53 ` Albert ARIBAUD
2010-10-21 11:28 ` Joakim Tjernlund
2010-10-21 10:05 ` Wolfgang Denk
2010-10-22 12:23 ` [U-Boot] [PATCH] ehci-hcd.c: fix hanging under higher load Wolfgang Denk
2010-10-22 19:51 ` Remy Bohmer
2010-10-22 12:26 ` [U-Boot] ELF_RELOC causes strange I-cache issues Wolfgang Denk
2010-10-22 13:19 ` Albert ARIBAUD [this message]
2010-10-22 13:28 ` Wolfgang Denk
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=4CC18F4C.4090900@free.fr \
--to=albert.aribaud@free.fr \
--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