Title: [8925] trunk/arch/blackfin/include/asm/io.h: [#5873] Trunk kernel crashed when testing bonnie++ for usb1761 driver
- Revision
- 8925
- Author
- hennerich
- Date
- 2010-06-18 04:30:08 -0400 (Fri, 18 Jun 2010)
Log Message
[#5873] Trunk kernel crashed when testing bonnie++ for usb1761 driver
Add SSNYC to our implementation of I/O write barrier
Ensure ordering of I/O space writes. This will make sure that writes
following the barrier will arrive after all previous writes.
Modified Paths
Diff
Modified: trunk/arch/blackfin/include/asm/io.h (8924 => 8925)
--- trunk/arch/blackfin/include/asm/io.h 2010-06-17 08:16:50 UTC (rev 8924)
+++ trunk/arch/blackfin/include/asm/io.h 2010-06-18 08:30:08 UTC (rev 8925)
@@ -58,7 +58,13 @@
extern void dma_insw(unsigned long port, void *addr, unsigned short count);
extern void dma_insl(unsigned long port, void *addr, unsigned short count);
-#define mmiowb() wmb()
+/**
+ * I/O write barrier
+ *
+ * Ensure ordering of I/O space writes. This will make sure that writes
+ * following the barrier will arrive after all previous writes.
+ */
+#define mmiowb() do { SSYNC(); wmb(); } while (0)
#include <asm-generic/io.h>
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits