Dear Josh Wu,

Josh Wu <josh...@atmel.com> writes:
>Add to code to flush the dcache after we writing in DMA buffer.
>Also we need invalidate the dcache before we check the status in the
>DMA buffer.
>
>Tested in SAMA5D3x-EK with gmac0. Tftp download speed shows in below:
>       Disable DCache: 1.1 MiB/s
>       Enable DCache: 1.6 MiB/s
>Increase speed with about 40%.
>
>The code should have no impact with the boards which are not
>enable_dcache().
>Tested in AT91SAM9M10G45EK.
>
>Signed-off-by: Josh Wu <josh...@atmel.com>
>
>---
>v2 resend: 
>  1. rebase Andreas' macb clean up patch: 
> http://patchwork.ozlabs.org/patch/352624/
>  2. add definitions: MACB_TX/RX_DMA_DESC_SIZE for the TX/RX dma descriptor 
> buffer size.
>  3. replace the IS_RX/IS_TX with RX/TX, which is more readable.
>  4. fix checkpatch warnings.
>
>v1 -> v2: none
>
> drivers/net/macb.c |   61 ++++++++++++++++++++++++++++++++++++++++++++++++----
> 1 file changed, 57 insertions(+), 4 deletions(-)

applied to u-boot-atmel/master, thanks!

Best regards,
Andreas Bießmann
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to