From: "Michael Büsch" <m@bues.ch>
To: b43-dev@lists.infradead.org
Subject: [PATCH] b43: Add RX side DMA memory barrier
Date: Mon, 4 Jul 2011 19:51:11 +0200 [thread overview]
Message-ID: <20110704195111.272bbb3b@maggie> (raw)
This adds a memory barrier to ensure the writes to the ring memory
are committed before the DMA ring pointer is updated.
We do a similar thing on the TX side already.
Signed-off-by: Michael Buesch <m@bues.ch>
---
There's no bug report or known breakage (as far as I know) on this,
so no CC to stable.
Index: linux-2.6.39/drivers/net/wireless/b43/dma.c
===================================================================
--- linux-2.6.39.orig/drivers/net/wireless/b43/dma.c 2011-05-19 06:06:34.000000000 +0200
+++ linux-2.6.39/drivers/net/wireless/b43/dma.c 2011-07-04 17:24:56.327210182 +0200
@@ -1599,6 +1599,7 @@ void b43_dma_rx(struct b43_dmaring *ring
dma_rx(ring, &slot);
update_max_used_slots(ring, ++used_slots);
}
+ wmb();
ops->set_current_rxslot(ring, slot);
ring->current_slot = slot;
}
--
Greetings, Michael.
reply other threads:[~2011-07-04 17:51 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20110704195111.272bbb3b@maggie \
--to=m@bues.ch \
--cc=b43-dev@lists.infradead.org \
/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;
as well as URLs for NNTP newsgroup(s).