Linux MIPS Architecture development
 help / color / mirror / Atom feed
* mb() calls in octeon / loongson swiotlb dma_map_ops
@ 2017-12-30 16:09 Christoph Hellwig
  2018-01-02  2:28 ` Huacai Chen
  0 siblings, 1 reply; 4+ messages in thread
From: Christoph Hellwig @ 2017-12-30 16:09 UTC (permalink / raw)
  To: David Daney, Huacai Chen
  Cc: Hongliang Tao, Hua Yan, Alex Smith, Ralf Baechle,
	Rafał Miłecki, linux-mips

Hi David and others,

I've recently been refactoring the dma direct mapping and swiotlb
code, and one odd thing I noticed is that the octeon and loongson
swiotlb ops have mb() calls after basically all swiotlb calls.

None of that is explained in either the earlier octeon dma map
commits, nor the commit that added the octeon swiotlb support
(b93b2abce497873be97d765b848e0a955d29f200), and neither in the
loonsoon commit that apparently copy and pasted it
(1299b0e05e106f621fff1504df5251f2a678097e).

Can someone explain what these memory barrier are supposed to do?

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-01-09 18:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-30 16:09 mb() calls in octeon / loongson swiotlb dma_map_ops Christoph Hellwig
2018-01-02  2:28 ` Huacai Chen
2018-01-05  1:21   ` David Daney
2018-01-09 18:31     ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox