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

2015-07-09 Thread Rafael J. Wysocki
On 7/8/2015 5:11 PM, Bjorn Helgaas wrote: [+cc Rafael] On Tue, Jul 07, 2015 at 01:14:27PM -0400, Mark Hounschell wrote: On 07/07/2015 11:15 AM, Bjorn Helgaas wrote: On Wed, May 20, 2015 at 08:11:17AM -0400, Mark Hounschell wrote: Most currently available hardware doesn't allow reads but will

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

2015-07-08 Thread Mark Hounschell
On 07/08/2015 11:11 AM, Bjorn Helgaas wrote: [+cc Rafael] On Tue, Jul 07, 2015 at 01:14:27PM -0400, Mark Hounschell wrote: On 07/07/2015 11:15 AM, Bjorn Helgaas wrote: On Wed, May 20, 2015 at 08:11:17AM -0400, Mark Hounschell wrote: Most currently available hardware doesn't allow reads but wi

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

2015-07-08 Thread Bjorn Helgaas
[+cc Rafael] On Tue, Jul 07, 2015 at 01:14:27PM -0400, Mark Hounschell wrote: > On 07/07/2015 11:15 AM, Bjorn Helgaas wrote: > >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

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 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 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 4/7] DMA-API: Add dma_(un)map_resource() documentation

2015-06-02 Thread William Davis
hn Hubbard; > jgli...@redhat.com > Subject: Re: [PATCH v2 4/7] DMA-API: Add dma_(un)map_resource() > documentation > > On Mon, May 18, 2015 at 01:25:01PM -0500, wda...@nvidia.com wrote: > > From: Will Davis > > > > Add references to both the general API documentation

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

2015-06-01 Thread Konrad Rzeszutek Wilk
On Mon, May 18, 2015 at 01:25:01PM -0500, wda...@nvidia.com wrote: > From: Will Davis > > Add references to both the general API documentation as well as the HOWTO. > > Signed-off-by: Will Davis > --- > Documentation/DMA-API-HOWTO.txt | 39 +-- > Documentati

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

2015-05-29 Thread j...@8bytes.org
On Wed, May 20, 2015 at 03:15:59PM -0400, Mark Hounschell wrote: > On 05/20/2015 01:30 PM, William Davis wrote: > >In an IOMMU environment, the DMA ops would be one of the IOMMU > >implementations, so these APIs would create a mapping for the peer device > >resource, even if it's on the same bus. W

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

2015-05-27 Thread William Davis
d; jgli...@redhat.com; konrad.w...@oracle.com; Jonathan Corbet; > David S. Miller > Subject: Re: [PATCH v2 4/7] DMA-API: Add dma_(un)map_resource() documentation > > >> > >> I currently just do > >> > >> page = virt_to_page(__va(bus_address)

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

2015-05-20 Thread Mark Hounschell
; John Hubbard; jgli...@redhat.com; konrad.w...@oracle.com; Jonathan Corbet; David S. Miller Subject: Re: [PATCH v2 4/7] DMA-API: Add dma_(un)map_resource() documentation On 05/20/2015 01:30 PM, William Davis wrote: -Original Message- From: Mark Hounschell [mailto:ma...@compro.net] Sent

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

2015-05-20 Thread William Davis
jgli...@redhat.com; > konrad.w...@oracle.com; Jonathan Corbet; David S. Miller > Subject: Re: [PATCH v2 4/7] DMA-API: Add dma_(un)map_resource() > documentation > > On 05/20/2015 01:30 PM, William Davis wrote: > > > > > >> -Original Message- > >

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

2015-05-20 Thread Mark Hounschell
; John Hubbard; jgli...@redhat.com; konrad.w...@oracle.com; Jonathan Corbet; David S. Miller Subject: Re: [PATCH v2 4/7] DMA-API: Add dma_(un)map_resource() documentation On 05/19/2015 07:43 PM, Bjorn Helgaas wrote: [+cc Dave, Jonathan] On Mon, May 18, 2015 at 01:25:01PM -0500, wda...@nvidia.com

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

2015-05-20 Thread William Davis
jgli...@redhat.com; > konrad.w...@oracle.com; Jonathan Corbet; David S. Miller > Subject: Re: [PATCH v2 4/7] DMA-API: Add dma_(un)map_resource() > documentation > > On 05/19/2015 07:43 PM, Bjorn Helgaas wrote: > > [+cc Dave, Jonathan] > > > > On Mon, May 18, 2015 at 0

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

2015-05-20 Thread Mark Hounschell
On 05/19/2015 07:43 PM, Bjorn Helgaas wrote: [+cc Dave, Jonathan] On Mon, May 18, 2015 at 01:25:01PM -0500, wda...@nvidia.com wrote: From: Will Davis Add references to both the general API documentation as well as the HOWTO. Signed-off-by: Will Davis --- Documentation/DMA-API-HOWTO.txt |

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

2015-05-19 Thread Bjorn Helgaas
[+cc Dave, Jonathan] On Mon, May 18, 2015 at 01:25:01PM -0500, wda...@nvidia.com wrote: > From: Will Davis > > Add references to both the general API documentation as well as the HOWTO. > > Signed-off-by: Will Davis > --- > Documentation/DMA-API-HOWTO.txt | 39

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

2015-05-18 Thread wdavis
From: Will Davis Add references to both the general API documentation as well as the HOWTO. Signed-off-by: Will Davis --- Documentation/DMA-API-HOWTO.txt | 39 +-- Documentation/DMA-API.txt | 36 +++- 2 files changed, 68