Re: [U-Boot] [PATCH 2/4] net: fec_mxc: allow use with cache enabled

2012-03-05 Thread Eric Nelson
On 03/05/2012 10:59 AM, Marek Vasut wrote: Dear Eric Nelson, On 03/05/2012 08:39 AM, Marek Vasut wrote: Dear Eric Nelson, On 03/04/2012 06:49 PM, Marek Vasut wrote: On 03/02/2012 04:39 PM, Marek Vasut wrote: +* Invalidate data cache over the buffer +

Re: [U-Boot] [PATCH 2/4] net: fec_mxc: allow use with cache enabled

2012-03-05 Thread Marek Vasut
Dear Eric Nelson, > On 03/05/2012 08:39 AM, Marek Vasut wrote: > > Dear Eric Nelson, > > > >> On 03/04/2012 06:49 PM, Marek Vasut wrote: > On 03/02/2012 04:39 PM, Marek Vasut wrote: > >> + * Invalidate data cache over the buffer > >> + */ >

Re: [U-Boot] [PATCH 2/4] net: fec_mxc: allow use with cache enabled

2012-03-05 Thread Eric Nelson
On 03/05/2012 08:39 AM, Marek Vasut wrote: Dear Eric Nelson, On 03/04/2012 06:49 PM, Marek Vasut wrote: On 03/02/2012 04:39 PM, Marek Vasut wrote: +* Invalidate data cache over the buffer +*/ + addr = (uint32_t)frame; +

Re: [U-Boot] [PATCH 2/4] net: fec_mxc: allow use with cache enabled

2012-03-05 Thread Marek Vasut
Dear Eric Nelson, > On 03/04/2012 06:49 PM, Marek Vasut wrote: > >> On 03/02/2012 04:39 PM, Marek Vasut wrote: > + * Invalidate data cache over the buffer > + */ > +addr = (uint32_t)frame; > +

Re: [U-Boot] [PATCH 2/4] net: fec_mxc: allow use with cache enabled

2012-03-05 Thread Eric Nelson
On 03/04/2012 06:49 PM, Marek Vasut wrote: On 03/02/2012 04:39 PM, Marek Vasut wrote: +* Invalidate data cache over the buffer +*/ + addr = (uint32_t)frame; + size = roundup(frame_length, CONFIG_FEC_DATA_

Re: [U-Boot] [PATCH 2/4] net: fec_mxc: allow use with cache enabled

2012-03-04 Thread Marek Vasut
> On 03/02/2012 04:39 PM, Marek Vasut wrote: > >>ensure that transmit and receive buffers are cache-line aligned > >> > >> invalidate cache after each packet received > >> flush cache before transmitting > >> > >> Signed-off-by: Eric Nelson > >> > >> --- > >> > >>

Re: [U-Boot] [PATCH 2/4] net: fec_mxc: allow use with cache enabled

2012-03-04 Thread Eric Nelson
On 03/02/2012 04:39 PM, Marek Vasut wrote: ensure that transmit and receive buffers are cache-line aligned invalidate cache after each packet received flush cache before transmitting Signed-off-by: Eric Nelson >> --- >> drivers/net/fec_mxc.c | 248 >> +++

Re: [U-Boot] [PATCH 2/4] net: fec_mxc: allow use with cache enabled

2012-03-02 Thread Eric Nelson
On 03/02/2012 04:40 PM, Marek Vasut wrote: Whoops. Forgot to add the origin of this patch to the commit message: http://lists.denx.de/pipermail/u-boot/2012-February/117695.html Thanks Marek. Eric, I hope you won't mind if we respin this patch a few times to make sure nothing gets brok

Re: [U-Boot] [PATCH 2/4] net: fec_mxc: allow use with cache enabled

2012-03-02 Thread Eric Nelson
On 03/02/2012 04:06 PM, Eric Nelson wrote: ensure that transmit and receive buffers are cache-line aligned invalidate cache after each packet received flush cache before transmitting Signed-off-by: Eric Nelson --- drivers/net/fec_mxc.c | 248 +

Re: [U-Boot] [PATCH 2/4] net: fec_mxc: allow use with cache enabled

2012-03-02 Thread Marek Vasut
> Whoops. > > Forgot to add the origin of this patch to the commit message: > http://lists.denx.de/pipermail/u-boot/2012-February/117695.html > > Thanks Marek. Eric, I hope you won't mind if we respin this patch a few times to make sure nothing gets broken by this. M > > On 03/02/2012

Re: [U-Boot] [PATCH 2/4] net: fec_mxc: allow use with cache enabled

2012-03-02 Thread Marek Vasut
> ensure that transmit and receive buffers are cache-line aligned > invalidate cache after each packet received > flush cache before transmitting > > Signed-off-by: Eric Nelson > --- > drivers/net/fec_mxc.c | 248 > - drivers/

Re: [U-Boot] [PATCH 2/4] net: fec_mxc: allow use with cache enabled

2012-03-02 Thread Eric Nelson
Whoops. Forgot to add the origin of this patch to the commit message: http://lists.denx.de/pipermail/u-boot/2012-February/117695.html Thanks Marek. On 03/02/2012 04:06 PM, Eric Nelson wrote: ensure that transmit and receive buffers are cache-line aligned invalidate cac

[U-Boot] [PATCH 2/4] net: fec_mxc: allow use with cache enabled

2012-03-02 Thread Eric Nelson
ensure that transmit and receive buffers are cache-line aligned invalidate cache after each packet received flush cache before transmitting Signed-off-by: Eric Nelson --- drivers/net/fec_mxc.c | 248 - drivers/net/fec_mxc.h