[U-Boot] [PATCH] MPC512x: workaround data corruption for unaligned local bus accesses
Wolfgang Denk
wd at denx.de
Tue Jun 29 14:47:14 CEST 2010
Dear Anatolij,
In message <20100629142343.7ecadfaa at wker> you wrote:
>
> 'memcpy_align32wrap' isn't really good since the fixed memcpy
> also fixes 16-bit accesses, too.
we discussed this a bit more internally, and could not find a good
name yet, either. Guess I'll stick with the current one until someone
comes up with a really good idea.
> BTW, shouldn't we fix print_buffer() also? do_mem_md() doesn't use
> memcpy() and the issue with corrupted dumps still remains here.
> I'm testing a patch to fix it. Will submit it soon.
I though about this, too. But then I decided against it. "md" is
intended to to exactly what the user requests - as is, we can easily
demonstrate the issue. I consider this an extremely useful debug
feature. If I command the memory to be read in units of 32 bits I
really mean that. A "fix" ins print_buffer() whould hush up the
symptoms, so the problem would be much harder to detect.
Let's keep this as is, please: if you need a memory dump, you can
either align your start address, or use "md.b".
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
"How to make a million dollars: First, get a million dollars."
- Steve Martin
More information about the U-Boot
mailing list