Re: [PATCH v5 12/13] swiotlb-xen: use xen_alloc/free_coherent_pages

2013-09-06 Thread Stefano Stabellini
On Fri, 6 Sep 2013, Konrad Rzeszutek Wilk wrote: > On Thu, Sep 05, 2013 at 05:50:45PM +0100, Stefano Stabellini wrote: > > On Fri, 30 Aug 2013, Konrad Rzeszutek Wilk wrote: > > > On Thu, Aug 29, 2013 at 07:32:33PM +0100, Stefano Stabellini wrote: > > > > Use xen_alloc_coherent_pages and

Re: [PATCH v5 12/13] swiotlb-xen: use xen_alloc/free_coherent_pages

2013-09-06 Thread Konrad Rzeszutek Wilk
On Thu, Sep 05, 2013 at 05:50:45PM +0100, Stefano Stabellini wrote: > On Fri, 30 Aug 2013, Konrad Rzeszutek Wilk wrote: > > On Thu, Aug 29, 2013 at 07:32:33PM +0100, Stefano Stabellini wrote: > > > Use xen_alloc_coherent_pages and xen_free_coherent_pages to allocate or > > > free coherent pages. >

Re: [PATCH v5 12/13] swiotlb-xen: use xen_alloc/free_coherent_pages

2013-09-06 Thread Konrad Rzeszutek Wilk
On Thu, Sep 05, 2013 at 05:50:45PM +0100, Stefano Stabellini wrote: On Fri, 30 Aug 2013, Konrad Rzeszutek Wilk wrote: On Thu, Aug 29, 2013 at 07:32:33PM +0100, Stefano Stabellini wrote: Use xen_alloc_coherent_pages and xen_free_coherent_pages to allocate or free coherent pages. We

Re: [PATCH v5 12/13] swiotlb-xen: use xen_alloc/free_coherent_pages

2013-09-06 Thread Stefano Stabellini
On Fri, 6 Sep 2013, Konrad Rzeszutek Wilk wrote: On Thu, Sep 05, 2013 at 05:50:45PM +0100, Stefano Stabellini wrote: On Fri, 30 Aug 2013, Konrad Rzeszutek Wilk wrote: On Thu, Aug 29, 2013 at 07:32:33PM +0100, Stefano Stabellini wrote: Use xen_alloc_coherent_pages and

Re: [PATCH v5 12/13] swiotlb-xen: use xen_alloc/free_coherent_pages

2013-09-05 Thread Stefano Stabellini
On Fri, 30 Aug 2013, Konrad Rzeszutek Wilk wrote: > On Thu, Aug 29, 2013 at 07:32:33PM +0100, Stefano Stabellini wrote: > > Use xen_alloc_coherent_pages and xen_free_coherent_pages to allocate or > > free coherent pages. > > > > We need to be careful handling the pointer returned by > >

Re: [PATCH v5 12/13] swiotlb-xen: use xen_alloc/free_coherent_pages

2013-09-05 Thread Stefano Stabellini
On Fri, 30 Aug 2013, Konrad Rzeszutek Wilk wrote: On Thu, Aug 29, 2013 at 07:32:33PM +0100, Stefano Stabellini wrote: Use xen_alloc_coherent_pages and xen_free_coherent_pages to allocate or free coherent pages. We need to be careful handling the pointer returned by

Re: [PATCH v5 12/13] swiotlb-xen: use xen_alloc/free_coherent_pages

2013-08-30 Thread Konrad Rzeszutek Wilk
On Thu, Aug 29, 2013 at 07:32:33PM +0100, Stefano Stabellini wrote: > Use xen_alloc_coherent_pages and xen_free_coherent_pages to allocate or > free coherent pages. > > We need to be careful handling the pointer returned by > xen_alloc_coherent_pages, because on ARM the pointer is not equal to >

Re: [PATCH v5 12/13] swiotlb-xen: use xen_alloc/free_coherent_pages

2013-08-30 Thread Konrad Rzeszutek Wilk
On Thu, Aug 29, 2013 at 07:32:33PM +0100, Stefano Stabellini wrote: Use xen_alloc_coherent_pages and xen_free_coherent_pages to allocate or free coherent pages. We need to be careful handling the pointer returned by xen_alloc_coherent_pages, because on ARM the pointer is not equal to

[PATCH v5 12/13] swiotlb-xen: use xen_alloc/free_coherent_pages

2013-08-29 Thread Stefano Stabellini
Use xen_alloc_coherent_pages and xen_free_coherent_pages to allocate or free coherent pages. We need to be careful handling the pointer returned by xen_alloc_coherent_pages, because on ARM the pointer is not equal to phys_to_virt(*dma_handle). In fact virt_to_phys on the returned pointer doesn't

[PATCH v5 12/13] swiotlb-xen: use xen_alloc/free_coherent_pages

2013-08-29 Thread Stefano Stabellini
Use xen_alloc_coherent_pages and xen_free_coherent_pages to allocate or free coherent pages. We need to be careful handling the pointer returned by xen_alloc_coherent_pages, because on ARM the pointer is not equal to phys_to_virt(*dma_handle). In fact virt_to_phys on the returned pointer doesn't