Skip to contentSkip to conversation

b43: Add RX side DMA memory barrier

PATCH New Michael Büsch 1 participant 1 message Jul 4, 2011 Networking drivers (wireless)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 b43: Add RX side DMA memory barrier

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.

---

There's no bug report or known breakage (as far as I know) on this, so no CC to stable.

drivers/net/wireless/b43/dma.c +1 -0
Index: linux-2.6.39/drivers/net/wireless/b43/dma.c
===================================================================
@@ -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;
 }
Signature · 1 line
Greetings, Michael.