Re: [PATCH v2 4/7] DMA-API: Add dma_(un)map_resource() documentation

2015-07-07 Thread Alex Williamson
On Tue, 2015-07-07 at 15:17 -0400, Mark Hounschell wrote: > On 07/07/2015 01:28 PM, Alex Williamson wrote: > > On Tue, 2015-07-07 at 13:14 -0400, Mark Hounschell wrote: > >> Hi Bjorn. > >> > >> On 07/07/2015 11:15 AM, Bjorn Helgaas wrote: > >>> [+cc Alex] > >>> > >>> Hi Mark, > >>> > >>> On Wed, Ma

Re: [PATCH v2 4/7] DMA-API: Add dma_(un)map_resource() documentation

2015-07-07 Thread Mark Hounschell
On 07/07/2015 01:28 PM, Alex Williamson wrote: On Tue, 2015-07-07 at 13:14 -0400, Mark Hounschell wrote: Hi Bjorn. On 07/07/2015 11:15 AM, Bjorn Helgaas wrote: [+cc Alex] Hi Mark, On Wed, May 20, 2015 at 08:11:17AM -0400, Mark Hounschell wrote: Most currently available hardware doesn't allo

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

2015-07-07 Thread Will Davis
> [+cc Mark, Joerg, Konrad, Alex] > > Hi Will, > > On Wed, Jul 01, 2015 at 01:14:30PM -0500, Will Davis wrote: > > > 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 f

Re: [PATCH v2 4/7] DMA-API: Add dma_(un)map_resource() documentation

2015-07-07 Thread Alex Williamson
On Tue, 2015-07-07 at 13:14 -0400, Mark Hounschell wrote: > Hi Bjorn. > > On 07/07/2015 11:15 AM, Bjorn Helgaas wrote: > > [+cc Alex] > > > > Hi Mark, > > > > On Wed, May 20, 2015 at 08:11:17AM -0400, Mark Hounschell wrote: > >> Most currently available hardware doesn't allow reads but will allow

Re: [PATCH v2 4/7] DMA-API: Add dma_(un)map_resource() documentation

2015-07-07 Thread Mark Hounschell
Hi Bjorn. On 07/07/2015 11:15 AM, Bjorn Helgaas wrote: [+cc Alex] Hi Mark, On Wed, May 20, 2015 at 08:11:17AM -0400, Mark Hounschell wrote: Most currently available hardware doesn't allow reads but will allow writes on PCIe peer-to-peer transfers. All current AMD chipsets are this way. I'm pr

Re: [PATCH v2 4/7] DMA-API: Add dma_(un)map_resource() documentation

2015-07-07 Thread Alex Williamson
On Tue, 2015-07-07 at 11:16 -0500, Bjorn Helgaas wrote: > On Tue, Jul 7, 2015 at 10:41 AM, Alex Williamson > wrote: > > On Tue, 2015-07-07 at 10:15 -0500, Bjorn Helgaas wrote: > >> [+cc Alex] > >> > >> Hi Mark, > >> > >> On Wed, May 20, 2015 at 08:11:17AM -0400, Mark Hounschell wrote: > >> > Most

Re: [PATCH v2 4/7] DMA-API: Add dma_(un)map_resource() documentation

2015-07-07 Thread Bjorn Helgaas
On Tue, Jul 7, 2015 at 10:41 AM, Alex Williamson wrote: > On Tue, 2015-07-07 at 10:15 -0500, Bjorn Helgaas wrote: >> [+cc Alex] >> >> Hi Mark, >> >> On Wed, May 20, 2015 at 08:11:17AM -0400, Mark Hounschell wrote: >> > Most currently available hardware doesn't allow reads but will allow >> > write

Re: [PATCH v2 4/7] DMA-API: Add dma_(un)map_resource() documentation

2015-07-07 Thread Alex Williamson
On Tue, 2015-07-07 at 10:15 -0500, Bjorn Helgaas wrote: > [+cc Alex] > > Hi Mark, > > On Wed, May 20, 2015 at 08:11:17AM -0400, Mark Hounschell wrote: > > Most currently available hardware doesn't allow reads but will allow > > writes on PCIe peer-to-peer transfers. All current AMD chipsets are >

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

2015-07-07 Thread Bjorn Helgaas
[+cc Mark, Joerg, Konrad, Alex] Hi Will, On Wed, Jul 01, 2015 at 01:14:30PM -0500, Will Davis wrote: > > 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 ho

Re: [PATCH v2 4/7] DMA-API: Add dma_(un)map_resource() documentation

2015-07-07 Thread Bjorn Helgaas
[+cc Alex] Hi Mark, On Wed, May 20, 2015 at 08:11:17AM -0400, Mark Hounschell wrote: > Most currently available hardware doesn't allow reads but will allow > writes on PCIe peer-to-peer transfers. All current AMD chipsets are > this way. I'm pretty sure all Intel chipsets are this way also. What

Re: [PATCH v2 0/9] bugfixs and add support for non-pci devices

2015-07-07 Thread Will Deacon
Hi Zhen Lei, On Tue, Jul 07, 2015 at 04:30:13AM +0100, Zhen Lei wrote: > Changelog: > v1 -> v2: > update the implementation of patch 1/9 according to Will Deacon's suggestion. > update the comment of patch 3/9 and 4/9. > use arm_smmu_options to skip the execution of command CMD_PREFETCH_CONFIG, >

Re: [PATCH v2 2/4] iommu: Implement common IOMMU ops for DMA mapping

2015-07-07 Thread Yong Wu
On Fri, 2015-07-03 at 17:44 +0100, Robin Murphy wrote: > On 03/07/15 10:27, Yong Wu wrote: > [...] > >> +/** > >> + * iommu_dma_alloc - Allocate and map a buffer contiguous in IOVA space > >> + * @dev: Device to allocate memory for. Must be a real device > >> + * attached to an iommu_dma_do