Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-09-15 Thread Fabio Estevam
Hi Oliver, On Sun, Sep 15, 2013 at 3:12 PM, Oliver Metz wrote: > I can confirm that this patch fixes the issue for me on the mx28 board. > Before the patch transmitting a linux kernel archive failed many times. With > the patch applied the file was transfered successfully with the first try. >

[U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-09-15 Thread Oliver Metz
Dear Fabio, >Hi Robert and Hector, > >On Fri, Sep 13, 2013 at 2:46 PM, Wolfgang Denk <[hidden email]> wrote: > >> That's ALLOC_CACHE_ALIGN_BUFFER. Thanks. > >Could you please let us know wthether the change below fix the problem? > >Thanks, > >Fabio Estevam > >--- a/drivers/net/fec_mxc.c

Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-09-14 Thread Fabio Estevam
Hi Robert and Hector, On Fri, Sep 13, 2013 at 2:46 PM, Wolfgang Denk wrote: > That's ALLOC_CACHE_ALIGN_BUFFER. Thanks. Could you please let us know wthether the change below fix the problem? Thanks, Fabio Estevam --- a/drivers/net/fec_mxc.c +++ b/drivers/net/fec_mxc.c @@ -794,7 +794,7 @@ s

Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-09-13 Thread Wolfgang Denk
Dear Marek Vasut, In message <201309131824.52506.ma...@denx.de> you wrote: > > > > - uchar buff[FEC_MAX_PKT_SIZE] __aligned(ARCH_DMA_MINALIGN); > > > + /* Align the receive buffer */ > > > + uchar buff_unaligned[FEC_MAX_PKT_SIZE + (ARCH_DMA_MINALIGN - 1)]; > > > + uchar *b

Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-09-13 Thread Wolfgang Denk
Dear Robert Hodaszi, In message <5232f2e7.4050...@digi.com> you wrote: > > Ok. Then what about if I would use the stack, but align the buffer manually. Has this been tested? Does it work? > - uchar buff[FEC_MAX_PKT_SIZE] __aligned(ARCH_DMA_MINALIGN); > + /* Align the receive buffer

Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-09-13 Thread Marek Vasut
Dear Wolfgang Denk, > Dear Robert Hodaszi, > > In message <5232f2e7.4050...@digi.com> you wrote: > > Ok. Then what about if I would use the stack, but align the buffer > > manually. > > Has this been tested? Does it work? > > > - uchar buff[FEC_MAX_PKT_SIZE] __aligned(ARCH_DMA_MINALIGN);

Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-09-13 Thread Robert Hodaszi
OK, but as Wolfgang already pointed out, can you tell use what compiler exposes this behavior and show us the details WD requested please ? Best regards, Marek Vasut You can find the informations below. Please, use my patch or don't use it, or feel free to modify it as you wish, but sorry, I

Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-09-13 Thread Marek Vasut
Dear Robert Hodaszi, > On 2013-09-13 13:11, Robert Hodaszi wrote: > > On 2013-09-12 21:37, Fabio Estevam wrote: > >> On Thu, Sep 12, 2013 at 3:53 PM, Wolfgang Denk wrote: > >>> Dear Fabio Estevam, > >>> > >>> In message > >>> > >>> > >>> you wrote: > > It makes perfect sense to allocate va

Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-09-13 Thread Robert Hodaszi
On 2013-09-13 13:11, Robert Hodaszi wrote: On 2013-09-12 21:37, Fabio Estevam wrote: On Thu, Sep 12, 2013 at 3:53 PM, Wolfgang Denk wrote: Dear Fabio Estevam, In message you wrote: It makes perfect sense to allocate variable with function scope only on the stack. That's what the stack

Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-09-13 Thread Robert Hodaszi
On 2013-09-12 21:37, Fabio Estevam wrote: On Thu, Sep 12, 2013 at 3:53 PM, Wolfgang Denk wrote: Dear Fabio Estevam, In message you wrote: It makes perfect sense to allocate variable with function scope only on the stack. That's what the stack has been invented for. This buffer in the fec

Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-09-12 Thread Marek Vasut
Dear Robert Hodaszi, > On 2013-09-12 16:31, Marek Vasut wrote: > > Dear Robert Hodaszi, > > > > Please do not top-post. > > > > Memalign should do here with proper rounding. Can you prepare another > > patch please? > > > > Best regards, > > Marek Vasut > > Ok. I will try to do that tomorrow.

Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-09-12 Thread Fabio Estevam
On Thu, Sep 12, 2013 at 3:17 PM, Wolfgang Denk wrote: > Dear Marek Vasut, > > In message <201309121605.04824.ma...@denx.de> you wrote: >> >> Looking at the code one more time, it'd make most sense to simply allocate >> the >> buffer NOT on stack, but with some memalign-kind-of call to avoid this

Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-09-12 Thread Wolfgang Denk
Dear Hector Palacios, In message <523195ca.3010...@digi.com> you wrote: > > Here is a patch: > > From: Robert Hodaszi > Date: Fri, 6 Sep 2013 09:50:52 +0200 > Subject: [PATCH] net: fec: fix invalid temporary RX buffer alignment because > of GCC bug > > Older GCC versions don't handle well al

Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-09-12 Thread Wolfgang Denk
Dear Fabio Estevam, In message you wrote: > > > It makes perfect sense to allocate variable with function scope only > > on the stack. That's what the stack has been invented for. > > This buffer in the fec driver will be used in DMA transfer, so maybe > that's the reason we should use malloc

Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-09-12 Thread Robert Hodaszi
I just brought up two samples, that it was a long-term problem. Now it is fixed. But if somebody is trying to compile the U-Boot with an older toolchain, it could cause problems. I had problems with 4.4.6. Yes, 2k is a lot, and I would not put it on the stack. That was just a quick fix. It wou

Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-09-12 Thread Wolfgang Denk
Dear Robert Hodaszi, In message <5231a0c0.8070...@digi.com> you wrote: > > Sorry, hopefully that will be a plain-text. > > There are a lot of bug announcement, just make a search: > gcc.gnu.org/bugzilla/show_bug.cgi?id=33721 > gcc.gnu.org/bugzilla/show_bug.cgi?id=16660 Hm... what exactly are th

Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-09-12 Thread Wolfgang Denk
Dear Marek Vasut, In message <201309121605.04824.ma...@denx.de> you wrote: > > Looking at the code one more time, it'd make most sense to simply allocate > the > buffer NOT on stack, but with some memalign-kind-of call to avoid this abuse > of > stack. You see, the max packet size is around 2

Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-09-12 Thread Fabio Estevam
On Thu, Sep 12, 2013 at 3:53 PM, Wolfgang Denk wrote: > Dear Fabio Estevam, > > In message > you > wrote: >> >> > It makes perfect sense to allocate variable with function scope only >> > on the stack. That's what the stack has been invented for. >> >> This buffer in the fec driver will be use

Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-09-12 Thread Robert Hodaszi
On 2013-09-12 16:31, Marek Vasut wrote: Dear Robert Hodaszi, Please do not top-post. Memalign should do here with proper rounding. Can you prepare another patch please? Best regards, Marek Vasut Ok. I will try to do that tomorrow. Best regards, Robert Hodaszi _

Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-09-12 Thread Marek Vasut
Dear Robert Hodaszi, > I just brought up two samples, that it was a long-term problem. Now it > is fixed. But if somebody is trying to compile the U-Boot with an older > toolchain, it could cause problems. I had problems with 4.4.6. > > Yes, 2k is a lot, and I would not put it on the stack. That

Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-09-12 Thread Marek Vasut
Dear Robert Hodaszi, > Hi, > > Sorry, hopefully that will be a plain-text. > > There are a lot of bug announcement, just make a search: > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33721 This was apparently fixed three years ago. > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16660 And this o

Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-09-12 Thread Robert Hodaszi
Hi, Sorry, hopefully that will be a plain-text. There are a lot of bug announcement, just make a search: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33721 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16660 Also, I printed out the buffer addresses, and that temporary RX buffer was not aligned. S

Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-09-12 Thread Robert Hodaszi
Hi, Sorry, hopefully that will be a plain-text. There are a lot of bug announcement, just make a search: gcc.gnu.org/bugzilla/show_bug.cgi?id=33721 gcc.gnu.org/bugzilla/show_bug.cgi?id=16660 Also, I printed out the buffer addresses, and that temporary RX buffer was not aligned. So the transmit

Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-09-12 Thread Marek Vasut
Dear Robert Hodaszi, > > >http-equiv="Content-Type"> > > > Hi, > > There are a lot of bug announcement, just make a search: > >href="http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33721";>http://gcc.gnu.or > g/bugzilla/show_bug.cgi?id=33721 conte

Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-09-12 Thread Marek Vasut
Dear Hector Palacios, > Hello, > > Going back to this old thread I have some news regarding the problem with > TFTP transmissions blocking (timed out) after 10 seconds on the FEC of the > MX28. See below: > > On 07/17/2013 05:55 PM, Hector Palacios wrote: > > Dear Marek, > > > > On 07/16/2013 0

Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-09-12 Thread Hector Palacios
Hello, Going back to this old thread I have some news regarding the problem with TFTP transmissions blocking (timed out) after 10 seconds on the FEC of the MX28. See below: On 07/17/2013 05:55 PM, Hector Palacios wrote: Dear Marek, On 07/16/2013 06:44 AM, Marek Vasut wrote: Dear Fabio Estev

Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-07-17 Thread Marek Vasut
Dear Hector Palacios, > Dear Marek, > > On 07/16/2013 06:44 AM, Marek Vasut wrote: > > Dear Fabio Estevam, > > > >> On Tue, Jul 16, 2013 at 12:51 AM, Fabio Estevam wrote: > >>> On Mon, Jul 15, 2013 at 12:09 PM, Hector Palacios > >>> > >>> wrote: > @Fabio: could you manually run the comma

Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-07-17 Thread Hector Palacios
Dear Marek, On 07/16/2013 06:44 AM, Marek Vasut wrote: Dear Fabio Estevam, On Tue, Jul 16, 2013 at 12:51 AM, Fabio Estevam wrote: On Mon, Jul 15, 2013 at 12:09 PM, Hector Palacios wrote: @Fabio: could you manually run the command 'tftp ${loadaddr} file100M' in your EVK? Yes, this is wha

Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-07-15 Thread Marek Vasut
Dear Fabio Estevam, > On Tue, Jul 16, 2013 at 12:51 AM, Fabio Estevam wrote: > > On Mon, Jul 15, 2013 at 12:09 PM, Hector Palacios > > > > wrote: > >> @Fabio: could you manually run the command 'tftp ${loadaddr} file100M' > >> in your EVK? > > > > Yes, this is what I have been running since th

Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-07-15 Thread Fabio Estevam
On Tue, Jul 16, 2013 at 12:51 AM, Fabio Estevam wrote: > On Mon, Jul 15, 2013 at 12:09 PM, Hector Palacios > wrote: > >> @Fabio: could you manually run the command 'tftp ${loadaddr} file100M' in >> your EVK? > > Yes, this is what I have been running since the beginning. > >> If it doesn't fail, c

Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-07-15 Thread Fabio Estevam
On Mon, Jul 15, 2013 at 12:09 PM, Hector Palacios wrote: > @Fabio: could you manually run the command 'tftp ${loadaddr} file100M' in > your EVK? Yes, this is what I have been running since the beginning. > If it doesn't fail, could you try running it again after playing with the > environment (

Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-07-15 Thread Troy Kisky
On 7/15/2013 1:20 PM, Albert ARIBAUD wrote: Hi Troy, On Mon, 15 Jul 2013 10:39:54 -0700, Troy Kisky wrote: Besides, Marek and I had in fact investigated barriers, adding some as I did in times past in mvgbe.c, and fiddling with the one already in dcache_flush_range(). None of this had any eff

Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-07-15 Thread Albert ARIBAUD
Hi Troy, On Mon, 15 Jul 2013 12:59:56 -0700, Troy Kisky wrote: > On 7/15/2013 10:39 AM, Troy Kisky wrote: > > On 7/15/2013 6:41 AM, Albert ARIBAUD wrote: > >> Hi Troy, > >> > >> On Fri, 12 Jul 2013 19:43:07 -0700, Troy Kisky > >> wrote: > >> > >>> On 7/11/2013 4:18 PM, Fabio Estevam wrote: > >>

Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-07-15 Thread Albert ARIBAUD
Hi Troy, On Mon, 15 Jul 2013 10:39:54 -0700, Troy Kisky wrote: > > Besides, Marek and I had in fact investigated barriers, adding some as > > I did in times past in mvgbe.c, and fiddling with the one already in > > dcache_flush_range(). None of this had any effect. > > You tried adding a dsb()

Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-07-15 Thread Troy Kisky
On 7/15/2013 10:39 AM, Troy Kisky wrote: On 7/15/2013 6:41 AM, Albert ARIBAUD wrote: Hi Troy, On Fri, 12 Jul 2013 19:43:07 -0700, Troy Kisky wrote: On 7/11/2013 4:18 PM, Fabio Estevam wrote: On Thu, Jul 11, 2013 at 8:03 PM, Marek Vasut wrote: The MX28 multi-layer AHB bus can be too slow a

Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-07-15 Thread Troy Kisky
On 7/15/2013 6:41 AM, Albert ARIBAUD wrote: Hi Troy, On Fri, 12 Jul 2013 19:43:07 -0700, Troy Kisky wrote: On 7/11/2013 4:18 PM, Fabio Estevam wrote: On Thu, Jul 11, 2013 at 8:03 PM, Marek Vasut wrote: The MX28 multi-layer AHB bus can be too slow and trigger the FEC DMA too early, before a

Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-07-15 Thread Hector Palacios
On 07/15/2013 05:12 PM, Marek Vasut wrote: Hi Hector, Hi Marek, On 07/15/2013 02:30 PM, Marek Vasut wrote: Dear Hector Palacios, Hi Marek, On 07/12/2013 06:48 PM, Marek Vasut wrote: [...] but I found something: It is very strange that the timeouts appear always after transferring betw

Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-07-15 Thread Marek Vasut
Hi Hector, > Hi Marek, > > On 07/15/2013 02:30 PM, Marek Vasut wrote: > > Dear Hector Palacios, > > > >> Hi Marek, > >> > >> On 07/12/2013 06:48 PM, Marek Vasut wrote: > [...] > > but I found something: > It is very strange that the timeouts appear always after transferri

Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-07-15 Thread Hector Palacios
Hi Marek, On 07/15/2013 02:30 PM, Marek Vasut wrote: Dear Hector Palacios, Hi Marek, On 07/12/2013 06:48 PM, Marek Vasut wrote: [...] but I found something: It is very strange that the timeouts appear always after transferring between 20 and 24 MiB. So I thought maybe it was not an issue

Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-07-15 Thread Albert ARIBAUD
Hi Troy, On Fri, 12 Jul 2013 19:43:07 -0700, Troy Kisky wrote: > On 7/11/2013 4:18 PM, Fabio Estevam wrote: > > On Thu, Jul 11, 2013 at 8:03 PM, Marek Vasut wrote: > >> The MX28 multi-layer AHB bus can be too slow and trigger the > >> FEC DMA too early, before all the data hit the DRAM. This pa

Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-07-15 Thread Marek Vasut
Dear Hector Palacios, > Hi Marek, > > On 07/12/2013 06:48 PM, Marek Vasut wrote: > >> [...] > >> > >> but I found something: > >> It is very strange that the timeouts appear always after transferring > >> between 20 and 24 MiB. So I thought maybe it was not an issue with the > >> size of the fi

Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-07-15 Thread Hector Palacios
Hi Marek, On 07/12/2013 06:48 PM, Marek Vasut wrote: [...] >> but I found something: It is very strange that the timeouts appear always after transferring between 20 and 24 MiB. So I thought maybe it was not an issue with the size of the file or the number of packets received, but instead a t

Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-07-12 Thread Troy Kisky
On 7/11/2013 4:18 PM, Fabio Estevam wrote: On Thu, Jul 11, 2013 at 8:03 PM, Marek Vasut wrote: The MX28 multi-layer AHB bus can be too slow and trigger the FEC DMA too early, before all the data hit the DRAM. This patch ensures the data are written in the RAM before the DMA starts. Please see t

Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-07-12 Thread Marek Vasut
Hi Hector, [...] > > Try Stefano's tree as Fabio suggested. I think it's already pushed and > > includes the fixes. > > I just tried, but it didn't help. OK, then it's something else. > >> Considering the other guys seem to work without problems I guess this > >> scenario is specific to my boa

Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-07-12 Thread Albert ARIBAUD
Hi Hector, On Fri, 12 Jul 2013 17:08:59 +0200, Hector Palacios wrote: > Hi Marek, > > On 07/12/2013 02:01 PM, Marek Vasut wrote: > > Hi Hector, > > > >> Dear Marek, > >> > >> On 07/12/2013 05:51 AM, Marek Vasut wrote: > >>> Hi, > >>> > On Thu, Jul 11, 2013 at 8:18 PM, Fabio Estevam > >>>

Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-07-12 Thread Hector Palacios
Hi Marek, On 07/12/2013 02:01 PM, Marek Vasut wrote: Hi Hector, Dear Marek, On 07/12/2013 05:51 AM, Marek Vasut wrote: Hi, On Thu, Jul 11, 2013 at 8:18 PM, Fabio Estevam wrote: On Thu, Jul 11, 2013 at 8:03 PM, Marek Vasut wrote: The MX28 multi-layer AHB bus can be too slow and trigger

Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-07-12 Thread Marek Vasut
Hi Hector, > Dear Marek, > > On 07/12/2013 05:51 AM, Marek Vasut wrote: > > Hi, > > > >> On Thu, Jul 11, 2013 at 8:18 PM, Fabio Estevam wrote: > >>> On Thu, Jul 11, 2013 at 8:03 PM, Marek Vasut wrote: > The MX28 multi-layer AHB bus can be too slow and trigger the > FEC DMA too early,

Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-07-12 Thread Marek Vasut
Hi Albert, > Afterthought: > > On Fri, 12 Jul 2013 07:57:18 +0200, Albert ARIBAUD > > wrote: > > except it tends to minimize Marek's own contribution to the fix, which > > is by far the most important. > > 'The most important' 'by far' being of course Marek's contribution, not > minimizing it.

Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-07-12 Thread Hector Palacios
Dear Marek, On 07/12/2013 05:51 AM, Marek Vasut wrote: Hi, On Thu, Jul 11, 2013 at 8:18 PM, Fabio Estevam wrote: On Thu, Jul 11, 2013 at 8:03 PM, Marek Vasut wrote: The MX28 multi-layer AHB bus can be too slow and trigger the FEC DMA too early, before all the data hit the DRAM. This patch

Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-07-12 Thread Fabio Estevam
Hi Hector, On Fri, Jul 12, 2013 at 8:37 AM, Hector Palacios wrote: > Thanks for sharing. > > Unfortunately I'm still seeing non-recoverable timeouts when doing tftp > transfers. > Nevertheless, with this patch sometimes I'm able to transfer big files > (100MiB) without problems (I was never able

Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-07-12 Thread Stefano Babic
On 12/07/2013 01:03, Marek Vasut wrote: > The MX28 multi-layer AHB bus can be too slow and trigger the > FEC DMA too early, before all the data hit the DRAM. This patch > ensures the data are written in the RAM before the DMA starts. > Please see the comment in the patch for full details. > > This

Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-07-11 Thread Stefano Babic
Hi Marek, hi Albert, On 12/07/2013 07:57, Albert ARIBAUD wrote: > > This being a bugfix patch, and having been tested twice, I suggest that > it go in 2013.07, maybe with the commit message reduced to its first > paragraph above -- although of course I do appreciate the second one, > except it t

Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-07-11 Thread Albert ARIBAUD
Afterthought: On Fri, 12 Jul 2013 07:57:18 +0200, Albert ARIBAUD wrote: > except it tends to minimize Marek's own contribution to the fix, which > is by far the most important. 'The most important' 'by far' being of course Marek's contribution, not minimizing it. :) Amicalement, -- Albert. __

Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-07-11 Thread Albert ARIBAUD
Hi Marek, On Fri, 12 Jul 2013 01:03:04 +0200, Marek Vasut wrote: > The MX28 multi-layer AHB bus can be too slow and trigger the > FEC DMA too early, before all the data hit the DRAM. This patch > ensures the data are written in the RAM before the DMA starts. > Please see the comment in the patch

Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-07-11 Thread Alexandre Pereira da Silva
On Thu, Jul 11, 2013 at 8:18 PM, Fabio Estevam wrote: > On Thu, Jul 11, 2013 at 8:03 PM, Marek Vasut wrote: >> The MX28 multi-layer AHB bus can be too slow and trigger the >> FEC DMA too early, before all the data hit the DRAM. This patch >> ensures the data are written in the RAM before the DMA

Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-07-11 Thread Marek Vasut
Hi, > On Thu, Jul 11, 2013 at 8:18 PM, Fabio Estevam wrote: > > On Thu, Jul 11, 2013 at 8:03 PM, Marek Vasut wrote: > >> The MX28 multi-layer AHB bus can be too slow and trigger the > >> FEC DMA too early, before all the data hit the DRAM. This patch > >> ensures the data are written in the RAM

Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-07-11 Thread Fabio Estevam
On Thu, Jul 11, 2013 at 8:03 PM, Marek Vasut wrote: > The MX28 multi-layer AHB bus can be too slow and trigger the > FEC DMA too early, before all the data hit the DRAM. This patch > ensures the data are written in the RAM before the DMA starts. > Please see the comment in the patch for full detai

[U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-07-11 Thread Marek Vasut
The MX28 multi-layer AHB bus can be too slow and trigger the FEC DMA too early, before all the data hit the DRAM. This patch ensures the data are written in the RAM before the DMA starts. Please see the comment in the patch for full details. This patch was produced with an amazing help from Albert