All of lore.kernel.org
 help / color / mirror / Atom feed
From: Prabhakar Kushwaha <prabhakar@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 02/12][v3] driver/ldpaa_eth:Flush buffer before seeding BMAN after TX_conf
Date: Sun, 28 Jun 2015 10:08:51 +0530	[thread overview]
Message-ID: <1435466341-22901-2-git-send-email-prabhakar@freescale.com> (raw)
In-Reply-To: <1435466341-22901-1-git-send-email-prabhakar@freescale.com>

Flush buffer before releasing to BMan after TX_conf to ensure, the core does
not have any cachelines that the WRIOP will DMA to.

Signed-off-by: Prabhakar Kushwaha <prabhakar@freescale.com>
---
Changes for v2: Sending as it is for patchset
Changes for v3: Sending as it is for patchset

 drivers/net/ldpaa_eth/ldpaa_eth.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/ldpaa_eth/ldpaa_eth.c b/drivers/net/ldpaa_eth/ldpaa_eth.c
index d4be1ba..5636511 100644
--- a/drivers/net/ldpaa_eth/ldpaa_eth.c
+++ b/drivers/net/ldpaa_eth/ldpaa_eth.c
@@ -153,6 +153,7 @@ static void ldpaa_eth_tx_conf(struct ldpaa_eth_priv *priv,
 		}
 	}
 
+	flush_dcache_range(fd_addr, fd_addr + LDPAA_ETH_RX_BUFFER_SIZE);
 	qbman_release_desc_clear(&releasedesc);
 	qbman_release_desc_set_bpid(&releasedesc, dflt_dpbp->dpbp_attr.bpid);
 	do {
-- 
1.9.1

  reply	other threads:[~2015-06-28  4:38 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-28  4:38 [U-Boot] [PATCH 01/12][v3] drivers/fsl-mc: Make MC boot error messages more readable Prabhakar Kushwaha
2015-06-28  4:38 ` Prabhakar Kushwaha [this message]
2015-06-28  4:38 ` [U-Boot] [PATCH 03/12][v3] drivers/fsl-mc: Autoload AOIP image from NOR flash Prabhakar Kushwaha
2015-06-28  4:38 ` [U-Boot] [PATCH 04/12][v3] drivers: fsl-mc: Update flibs to mc-0.6.0.1 Prabhakar Kushwaha
2015-06-28  4:38 ` [U-Boot] [PATCH 05/12][v3] drivers: fsl-mc: Update qbman driver Prabhakar Kushwaha
2015-06-28  4:38 ` [U-Boot] [PATCH 06/12][v3] drivers: fsl-mc: Return error for major version mismatch Prabhakar Kushwaha
2015-06-29 19:49   ` Joe Hershberger
2015-06-28  4:38 ` [U-Boot] [PATCH 07/12][v3] armv8/fsl-lsch3: partition stream IDs Prabhakar Kushwaha
2015-06-28  4:38 ` [U-Boot] [PATCH 08/12][v3] drivers/fsl-mc: dynamically create ICID pool in DPC Prabhakar Kushwaha
2015-06-28  4:38 ` [U-Boot] [PATCH 09/12][v3] armv8/fsl-lsch3: device tree fixups for PCI stream IDs Prabhakar Kushwaha
2015-06-28  4:38 ` [U-Boot] [PATCH 10/12][v3] driver/ldpaa_eth: Retry enqueue if portal was busy Prabhakar Kushwaha
2015-06-29 19:55   ` Joe Hershberger
2015-06-28  4:39 ` [U-Boot] [PATCH 11/12][v3] driver/ldpaa_eth: Add timeout handling DQRR entry read Prabhakar Kushwaha
2015-06-29 20:01   ` Joe Hershberger
2015-06-28  4:39 ` [U-Boot] [PATCH 12/12][v3] driver/ldpaa_eth: Avoid TX conf frames Prabhakar Kushwaha

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=1435466341-22901-2-git-send-email-prabhakar@freescale.com \
    --to=prabhakar@freescale.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.