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
2008-12-08 01:14:16 -08:00
2008-11-25 18:12:49 -08:00
2008-10-27 17:06:18 -07:00
2009-01-07 18:09:58 -08:00
2008-11-25 18:25:32 -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
2008-08-13 16:05:38 -07:00
2008-08-13 16:05:37 -07: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
2008-09-22 19:27:10 -07:00
2009-01-07 17:34:36 -08:00
2009-01-07 17:34:36 -08:00
2008-11-21 17:31:51 -08:00
2008-02-01 20:54:03 +11:00
2008-11-16 12:41:35 -08:00
2008-11-20 20:28:00 -08:00
2008-12-08 01:14:16 -08:00
2009-01-07 17:30:09 -08:00
2009-01-07 17:27:39 -08:00
2008-11-21 17:37:54 -08:00
2008-11-25 18:23:59 -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
2008-11-25 18:24:57 -08:00
2009-01-06 10:47:44 -08:00
2009-01-07 17:26:14 -08:00
2008-08-14 04:26:38 -04:00
2008-10-27 17:06:18 -07:00
2009-01-19 16:23:01 -08:00
2008-12-08 01:14:16 -08:00
2008-11-25 18:24:38 -08:00
2008-10-27 17:06:18 -07:00
2007-10-19 11:53:42 -07:00
2008-12-08 01:14:16 -08:00
2009-01-07 17:57:19 -08:00
2008-11-25 18:23:35 -08:00
2008-10-27 17:06:18 -07:00
2008-03-26 00:18:00 -04:00
2008-03-05 16:34:41 -06:00
2008-12-08 01:14:16 -08:00
2009-01-07 17:26:48 -08:00
2008-12-25 18:03:28 -08:00
2008-01-28 15:11:27 -08:00
2008-12-16 01:23:49 -08:00
2008-10-17 02:38:35 +11:00
2008-10-27 17:06:18 -07:00
2008-11-10 15:11:56 -05:00
2009-01-07 17:56:54 -08:00
2008-08-07 02:20:57 -04:00
2009-01-07 17:35:41 -08:00
2008-08-07 01:55:50 -04:00
2008-01-28 15:11:27 -08:00
2009-01-07 18:09:36 -08:00
2008-10-27 17:06:18 -07:00
2009-02-20 00:52:19 -08:00
2008-04-16 20:06:50 -04:00
2009-01-07 17:58:17 -08:00
2008-11-25 18:25:49 -08:00
2008-12-08 01:14:16 -08:00
2008-12-08 01:14:16 -08:00
2008-08-29 02:13:33 -07:00
2009-02-20 00:35:45 -08:00
2008-01-28 15:07:10 -08:00
2008-08-29 02:14:29 -07:00
2009-02-02 21:39:02 -08:00
2008-08-29 02:14:43 -07: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
2008-05-30 22:18:02 -04: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
2008-10-27 17:06:18 -07:00