Fenghua Yu 6aa03ab069 Fix iwlan DMA mapping direction
When iwlan runs on IOMMU, IOMMU generates a lot of PTE write faults
because PTE write bit is not set on some of PTE's.  This is because
iwlan driver calls DMA mapping with PCI_DMA_TODEVICE which is read only
in mapping PTE.  But iwlan device actually writes to the mapped page to
update its contents.  This issue is not exposed in swiotlb.  But VT-d
hardware can capture this fault and stop the fault transaction.

The following patch fixes the issue.

Signed-off-by: Fenghua Yu <fenghua.yu@intel.com>
Reviewed-by: Bhavesh Davda <bhavesh@vmware.com>
Tested-by: Chris Wright <chrisw@sous-sol.org>
Acked-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-02-25 09:30:56 -08:00
..
2009-01-06 10:41:56 -08:00
2008-12-17 15:37:55 -08:00
2009-02-18 17:47:57 -08:00
2009-01-26 12:16:26 -08:00
2009-02-12 16:42:31 -08:00
2009-01-15 20:43:56 -08:00
2009-02-03 15:13:26 -08:00
2009-02-25 09:30:56 -08:00
2009-01-11 00:06:32 -08:00
2009-01-07 18:09:58 -08:00
2009-01-07 18:10:24 -08:00
2009-02-12 16:53:48 -08:00
2009-02-12 16:53:22 -08:00
2009-01-19 16:20:15 -08:00
2009-01-19 16:20:15 -08:00
2009-01-19 16:20:15 -08:00
2009-01-07 17:34:36 -08:00
2009-01-07 17:34:36 -08:00
2009-01-07 17:30:09 -08:00
2009-01-07 17:27:39 -08:00
2009-01-07 17:57:47 -08:00
2009-01-29 17:31:13 -08:00
2009-01-07 18:13:49 -08:00
2009-01-06 10:47:44 -08:00
2009-01-07 17:26:14 -08:00
2009-01-19 16:23:01 -08:00
2009-01-07 17:57:19 -08:00
2009-01-07 17:26:48 -08:00
2008-12-25 18:03:28 -08:00
2009-01-07 17:56:54 -08:00
2009-01-07 17:35:41 -08:00
2009-01-07 18:09:36 -08:00
2009-02-20 00:52:19 -08:00
2009-01-07 17:58:17 -08:00
2009-02-20 00:35:45 -08:00
2009-02-02 21:39:02 -08:00
2009-02-18 17:42:42 -08:00
2009-01-19 16:57:45 -08:00
2009-01-07 17:27:15 -08:00
2009-02-08 17:49:17 -08:00
2009-01-07 17:29:46 -08:00
2009-01-20 14:44:01 -08:00
2009-01-11 00:06:36 -08:00