[U-Boot] [PATCH] net: fec_mxc: Fix timeouts during tftp transfer

Wolfgang Denk wd at denx.de
Tue Sep 17 13:47:02 CEST 2013


Dear Benoît Thébaudeau,

In message <1135126743.1842859.1379415574013.JavaMail.zimbra at advansee.com> you wrote:
> 
> > So how can the above not properly align the buffer? Is that a compiler bug
> > then?
> > 
> > btw. using ALLOC_CACHE_ALIGN_BUFFER will be safer were someone to change
> > FEC_MAX_PKT_SIZE, the buffer would still be safe for cache flush/inval ops.
> 
> I have encountered the same kind of alignment issue recently on something else.
> It looks like GCC for ARM just silently ignores the aligned attribute for auto
> (stacked) variables.

I would really like to see the generated code from such a system, so
we verify if this is indeed true, or if something else is causing such
issues.

Even if the suggested patch fixes the current problem, it leaves a bad
feeling as it's only based on speculation about the causes.

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
Brain off-line, please wait.


More information about the U-Boot mailing list