Re: [PATCH v3 3/7] dma-mapping: pci: add pci_(un)map_resource

2015-07-01 Thread Bjorn Helgaas
On Wed, Jul 01, 2015 at 11:06:06AM -0500, Bjorn Helgaas wrote: > On Fri, May 29, 2015 at 12:14:42PM -0500, wda...@nvidia.com wrote: > > From: Will Davis > > > > Simply route these through to the new dma_(un)map_resource APIs. > > > > Signed-off-by: Will Davis > > Reviewed-by: Terence Ripperda

Re: [PATCH v3 7/7] x86: add pci-nommu implementation of map_resource

2015-07-01 Thread Will Davis
> From: Bjorn Helgaas > On Fri, May 29, 2015 at 12:14:46PM -0500, wda...@nvidia.com wrote: > > From: Will Davis > > > > Lookup the bus address of the resource by finding the parent host bridge, > > which may be different than the parent host bridge of the target device. > > > > Signed-off-by: W

Re: [PATCH v3 7/7] x86: add pci-nommu implementation of map_resource

2015-07-01 Thread Bjorn Helgaas
On Fri, May 29, 2015 at 12:14:46PM -0500, wda...@nvidia.com wrote: > From: Will Davis > > Lookup the bus address of the resource by finding the parent host bridge, > which may be different than the parent host bridge of the target device. > > Signed-off-by: Will Davis > --- > arch/x86/kernel/p

[git pull] IOMMU Fixes for Linux v4.2

2015-07-01 Thread Joerg Roedel
Hi Linus, The following changes since commit 5ffde2f67181195d457b95df44b8f88e8d969d89: Merge branches 'arm/rockchip', 'arm/exynos', 'arm/smmu', 'x86/vt-d', 'x86/amd', 'default-domains' and 'core' into next (2015-06-19 17:17:47 +0200) are available in the git repository at: git://git.kerne

Re: [PATCH v3 5/7] iommu/amd: Implement (un)map_resource

2015-07-01 Thread Bjorn Helgaas
On Fri, May 29, 2015 at 12:14:44PM -0500, wda...@nvidia.com wrote: > From: Will Davis > > Implement 'map_resource' for the AMD IOMMU driver. Generalize the existing > map_page implementation to operate on a physical address, and make both > map_page and map_resource wrappers around that helper (a

Re: [PATCH v3 3/7] dma-mapping: pci: add pci_(un)map_resource

2015-07-01 Thread Bjorn Helgaas
On Fri, May 29, 2015 at 12:14:42PM -0500, wda...@nvidia.com wrote: > From: Will Davis > > Simply route these through to the new dma_(un)map_resource APIs. > > Signed-off-by: Will Davis > Reviewed-by: Terence Ripperda > Reviewed-by: John Hubbard > --- > include/asm-generic/pci-dma-compat.h |

Re: dma_ops_domain_alloc causes kernel 4.1.0-next-20150626+ panic

2015-07-01 Thread George Wang
On Tue, Jun 30, 2015 at 3:44 PM, Joerg Roedel wrote: > On Tue, Jun 30, 2015 at 11:55:24AM +0800, George Wang wrote: >> [ 11.734774] Call Trace: >> [ 11.735635] [] __mutex_lock_slowpath+0x91/0x120 >> [ 11.737676] [] ? ida_simple_get+0x98/0x100 >> [ 11.739682] [] mutex_lock+0x23/0x37 >> [

RE: [PATCH v3 0/7] IOMMU/DMA map_resource support for peer-to-peer

2015-07-01 Thread William Davis
> From: Will Davis > > > From: Will Davis > > > > Hi, > > > > This is the third version of a patchset to add the DMA APIs necessary to > > map and unmap a struct resource to and from a PCI device's IOVA domain. > > This allows a PCI device to access a peer device's BAR resource when a > > hardwar

Re: [PATCH 0/2] iommu/arm-smmu: fixes for 4.2

2015-07-01 Thread Will Deacon
On Wed, Jul 01, 2015 at 08:09:02AM +0100, Joerg Roedel wrote: > On Mon, Jun 29, 2015 at 05:47:41PM +0100, Will Deacon wrote: > > Since you're sending a batch of IOMMU fixes tomorrow, could you include > > these two ARM SMMU fixes as well please? > > Sorry, this got delayed because I was waiting fo

Re: [PATCH 0/2] iommu/arm-smmu: fixes for 4.2

2015-07-01 Thread Joerg Roedel
On Mon, Jun 29, 2015 at 05:47:41PM +0100, Will Deacon wrote: > Since you're sending a batch of IOMMU fixes tomorrow, could you include > these two ARM SMMU fixes as well please? Sorry, this got delayed because I was waiting for a testing result of another fix. But this one is pushed out too now an