public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: "Andreas Bießmann" <andreas.devel@googlemail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [U-Boot,RESEND,v2,1/3] net: macb: enable dcache in macb
Date: Sat, 14 Jun 2014 18:14:20 +0200	[thread overview]
Message-ID: <1402762460-20684-1-git-send-email-andreas.devel@googlemail.com> (raw)
In-Reply-To: <1401179465-17298-1-git-send-email-josh.wu@atmel.com> from Josh Wu on Tue, 27 May 2014 16:31:05 +0800

Dear Josh Wu,

Josh Wu <Josh.wu@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.wu@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

  reply	other threads:[~2014-06-14 16:14 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-19 11:51 [U-Boot] [PATCH v2 0/3] Enable ICache and DCache for at91 armv7 Soc Josh Wu
2014-05-19 11:51 ` [U-Boot] [PATCH v2 1/3] net: macb: enable dcache in macb Josh Wu
2014-05-20  1:50   ` Bo Shen
2014-05-26 21:06   ` Andreas Bießmann
2014-05-27  8:20     ` Josh Wu
2014-05-27  8:31     ` [U-Boot] [RESEND][PATCH " Josh Wu
2014-06-14 16:14       ` Andreas Bießmann [this message]
2014-05-19 11:51 ` [U-Boot] [PATCH v2 2/3] video: atmel_hlcdfb: enable dcache support Josh Wu
2014-05-19 14:38   ` Anatolij Gustschin
2014-06-14 16:14   ` [U-Boot] [U-Boot,v2,2/3] " Andreas Bießmann
2014-05-19 11:51 ` [U-Boot] [PATCH v2 3/3] ARMv7: at91: enable ICache and DCache Josh Wu
2014-06-14 16:14   ` [U-Boot] [U-Boot,v2,3/3] " Andreas Bießmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1402762460-20684-1-git-send-email-andreas.devel@googlemail.com \
    --to=andreas.devel@googlemail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox