* where are the memory barriers in net driver rx DMA operations?
@ 2010-07-30 15:19 Chris Friesen
0 siblings, 0 replies; only message in thread
From: Chris Friesen @ 2010-07-30 15:19 UTC (permalink / raw)
To: netdev, Linux Kernel Mailing List, davem
Documentation/DMA-API-HOWTO.txt says that memory barriers are still
required when accessing consistent mappings. The example they give is
for reordering stores to consistent memory but I assume this also
applies to reordering loads.
However, I see many net drivers accessing the descriptor ring (in
consistent memory), checking the status bit for the buffer, then calling
dma_unmap_single() and accessing the data without any explicit memory
barrier. Does the unmapping call act as a barrier in this case?
Thanks,
Chris
--
Chris Friesen
Software Developer
GENBAND
chris.friesen@genband.com
www.genband.com
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-07-30 18:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-30 15:19 where are the memory barriers in net driver rx DMA operations? Chris Friesen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox