[U-Boot] ELF_RELOC causes strange I-cache issues
Wolfgang Denk
wd at denx.de
Wed Oct 20 22:54:01 CEST 2010
Dear Albert ARIBAUD,
In message <4CBF4D17.6020403 at free.fr> you wrote:
>
> Is the data cache on or off when you experience the issue? If it was on,
DC is always off. DC on has always casued problems with lots of
drivers, including USB, so we never attempted doing that (except for
verification that it indeed does cause problems).
> can you try with data cache off and instruction cache on?
Done. The situation was IC off/DC off versus IC on/DC off.
> If the issue arises when both caches are on, then *maybe* the issue is
> caused by code which was loaded into i-cache *before* it was fixed up,
> or loaded while its fixups were still in the data cache. However this
> does not explain everything, since even with instruction cache off, data
> cache can hold fixups for some time and thus non-cached instruction
> fetches could return the wrong code.
As mentioned, DC has always been off.
> Still, since ELF fixups are some sort of code self-modification, they
> must, according to the ARM doc, be followed by an IMB sequence. The
> exact sequence varies; I will look up and provide the sequence for
> ARM1136 tomorrow -- unless someone else can do it sooner, of course.
Thanks.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Lots of people drink from the wrong bottle sometimes.
-- Edith Keeler, "The City on the Edge of Forever",
stardate unknown
More information about the U-Boot
mailing list