Re: [PATCH]iwlan dma mapping read and write changes

From: Chris Wright
Date: Wed Feb 11 2009 - 14:03:51 EST


* Fenghua Yu (fenghua.yu@xxxxxxxxx) wrote:
> 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.

Yes, plain old driver bug! This fixes the iwlagn vt-d issue.


> Signed-off-by: Fenghua Yu <fenghua.yu@xxxxxxxxx>

Tested-by: Chris Wright <chrisw@xxxxxxxxxxxx>

thanks,
chris
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/