]> git.baikalelectronics.ru Git - kernel.git/commit
Fix Intel IOMMU write-buffer flushing
authorDavid Woodhouse <dwmw2@infradead.org>
Fri, 13 Feb 2009 23:18:03 +0000 (23:18 +0000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 17 Feb 2009 22:02:57 +0000 (14:02 -0800)
commit8262874cc092c58397d0f3d8fd231e8b056b17f2
treefc237837eebc41da62ac67458e19e400ac4006b5
parentd3ffb0aa339a457258bc8eb899dab457c213e3f4
Fix Intel IOMMU write-buffer flushing

This is the cause of the DMA faults and disk corruption that people have
been seeing. Some chipsets neglect to report the RWBF "capability" --
the flag which says that we need to flush the chipset write-buffer when
changing the DMA page tables, to ensure that the change is visible to
the IOMMU.

Override that bit on the affected chipsets, and everything is happy
again.

Thanks to Chris and Bhavesh and others for helping to debug.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Tested-by: Chris Wright <chrisw@sous-sol.org>
Reviewed-by: Bhavesh Davda <bhavesh@vmware.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/pci/intel-iommu.c