From: Albert ARIBAUD <albert.aribaud@free.fr>
To: u-boot@lists.denx.de
Subject: [U-Boot] ELF_RELOC causes strange I-cache issues
Date: Thu, 21 Oct 2010 14:53:55 +0200 [thread overview]
Message-ID: <4CC037E3.1000504@free.fr> (raw)
In-Reply-To: <20101021120022.4288E136320@gemini.denx.de>
Le 21/10/2010 14:00, Wolfgang Denk a ?crit :
> Dear Albert ARIBAUD,
>
> In message<4CC01C6B.9090904@free.fr> you wrote:
>>
>> Wolfgang/other testers, can you do the following three tests?
>
> My test looks like this:
>
> usb_test=usb start;run usb_test20 usb_test30 usb_test40
> usb_test2=usb read 80800000 0 100;date
> usb_test20=run usb_test2 usb_test2 usb_test2 usb_test2 usb_test2
> usb_test3=usb read 80800000 0 1000;date
> usb_test30=run usb_test3 usb_test3 usb_test3 usb_test3 usb_test3
> usb_test4=usb read 80800000 0 10000;date
> usb_test40=run usb_test4 usb_test4 usb_test4 usb_test4 usb_test4
>
> I.e. I will repeat 5 reads with 256, 4096 resp. 65536 blocks, starting
> with the small counts, going up.
>
>> 1. Replace the three mcr instructions I added in my patch with this single
>
> Hangs at 2nd read of 4096 blocks.
>
>> 2. Replace the three mcr instructions I added in my patch with this single
>
> Hangs at 2nd read of 4096 blocks.
>
>> 3. Replace the three mcr instructions I added in my patch with these two
>
> Hangs at 1st read of 4096 blocks.
>
> Best regards,
>
> Wolfgang Denk
Hmm... The USB code runs well for 256 blocks? This makes me question a
code fixup issue, because the code executed is certainly the same
regardless to the count of USB blocks (some parts get executed in a
loop, but then they've been put in the cache in the first iteration, and
that does not depend on the number of iterations), so IMO an i-cache
issue would also be the same regardless to block count.
OTOH, block count directly affects how much memory gets written into,
and in that respect there can be a difference between fixed relocation
and ELF based relocation, because u-boot does not land at the same
location in both cases.
On this board, where does u-boot run without ELF relocation? Where does
it run with ELF relocation? What size is a single USB block?
Amicalement,
--
Albert.
next prev parent reply other threads:[~2010-10-21 12:53 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 [this message]
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
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=4CC037E3.1000504@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