Re: [PATCH] VMXNET3: Add support for virtual IOMMU

2013-08-27 Thread David Miller
From: Andy King Date: Fri, 23 Aug 2013 09:33:49 -0700 > This patch adds support for virtual IOMMU to the vmxnet3 module. We > switch to DMA consistent mappings for anything we pass to the device. > There were a few places where we already did this, but using pci_blah(); > these have been fixed

Re: [PATCH] VMXNET3: Add support for virtual IOMMU

2013-08-27 Thread David Miller
From: Andy King ack...@vmware.com Date: Fri, 23 Aug 2013 09:33:49 -0700 This patch adds support for virtual IOMMU to the vmxnet3 module. We switch to DMA consistent mappings for anything we pass to the device. There were a few places where we already did this, but using pci_blah(); these

[PATCH] VMXNET3: Add support for virtual IOMMU

2013-08-23 Thread Andy King
This patch adds support for virtual IOMMU to the vmxnet3 module. We switch to DMA consistent mappings for anything we pass to the device. There were a few places where we already did this, but using pci_blah(); these have been fixed to use dma_blah(), along with all new occurrences where we've

[PATCH] VMXNET3: Add support for virtual IOMMU

2013-08-23 Thread Andy King
This patch adds support for virtual IOMMU to the vmxnet3 module. We switch to DMA consistent mappings for anything we pass to the device. There were a few places where we already did this, but using pci_blah(); these have been fixed to use dma_blah(), along with all new occurrences where we've

Re: [PATCH] VMXNET3: Add support for virtual IOMMU

2013-08-21 Thread Andy King
Adding Greg, since this will apply to a similar patchset I sent out for VMCI. - Original Message - > From: Andy King > Date: Tue, 20 Aug 2013 10:33:32 -0700 > > > We can't just do virt_to_phys() on memory that we pass to the device and > > expect it to work in presence of a virtual

Re: [PATCH] VMXNET3: Add support for virtual IOMMU

2013-08-21 Thread David Miller
From: Andy King Date: Tue, 20 Aug 2013 10:33:32 -0700 > We can't just do virt_to_phys() on memory that we pass to the device and > expect it to work in presence of a virtual IOMMU. We need to add IOMMU > mappings for such DMAs to work correctly. Fix that with > pci_alloc_consistent() where

Re: [PATCH] VMXNET3: Add support for virtual IOMMU

2013-08-21 Thread David Miller
From: Andy King ack...@vmware.com Date: Tue, 20 Aug 2013 10:33:32 -0700 We can't just do virt_to_phys() on memory that we pass to the device and expect it to work in presence of a virtual IOMMU. We need to add IOMMU mappings for such DMAs to work correctly. Fix that with

Re: [PATCH] VMXNET3: Add support for virtual IOMMU

2013-08-21 Thread Andy King
Adding Greg, since this will apply to a similar patchset I sent out for VMCI. - Original Message - From: Andy King ack...@vmware.com Date: Tue, 20 Aug 2013 10:33:32 -0700 We can't just do virt_to_phys() on memory that we pass to the device and expect it to work in presence of a

[PATCH] VMXNET3: Add support for virtual IOMMU

2013-08-20 Thread Andy King
We can't just do virt_to_phys() on memory that we pass to the device and expect it to work in presence of a virtual IOMMU. We need to add IOMMU mappings for such DMAs to work correctly. Fix that with pci_alloc_consistent() where possible, or pci_map_single() where the mapping is short-lived or

[PATCH] VMXNET3: Add support for virtual IOMMU

2013-08-20 Thread Andy King
We can't just do virt_to_phys() on memory that we pass to the device and expect it to work in presence of a virtual IOMMU. We need to add IOMMU mappings for such DMAs to work correctly. Fix that with pci_alloc_consistent() where possible, or pci_map_single() where the mapping is short-lived or