From: Wolfgang Denk Date: Tue, 17 Sep 2013 13:47:02 +0200 Subject: [U-Boot] [PATCH] net: fec_mxc: Fix timeouts during tftp transfer In-Reply-To: <1135126743.1842859.1379415574013.JavaMail.zimbra@advansee.com> References: <1379293803-30650-1-git-send-email-festevam@gmail.com> <201309170500.58855.marex@denx.de> <1135126743.1842859.1379415574013.JavaMail.zimbra@advansee.com> Message-ID: <20130917114702.8F6DB3804A4@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Beno?t Th?baudeau, In message <1135126743.1842859.1379415574013.JavaMail.zimbra@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.