Re: [Xen-devel] [PATCH 1/1] XEN: Use correct masking in xen_swiotlb_alloc_coherent.

2012-09-05 Thread Konrad Rzeszutek Wilk
On Tue, Sep 04, 2012 at 03:07:42PM +0100, Stefano Panella wrote: > On 08/31/2012 05:40 PM, Konrad Rzeszutek Wilk wrote: > >On Fri, Aug 31, 2012 at 01:47:05PM +0100, David Vrabel wrote: > >>On 31/08/12 10:57, Stefano Panella wrote: > >>>When running 32-bit pvops-dom0 and a driver tries to allocate a

Re: [Xen-devel] [PATCH 1/1] XEN: Use correct masking in xen_swiotlb_alloc_coherent.

2012-09-05 Thread Stefano Panella
On 09/04/2012 05:40 PM, Konrad Rzeszutek Wilk wrote: On Tue, Sep 04, 2012 at 05:44:46PM +0100, David Vrabel wrote: On 04/09/12 16:12, Stefano Panella wrote: On 09/04/2012 03:55 PM, David Vrabel wrote: On 04/09/12 15:37, Konrad Rzeszutek Wilk wrote: On Tue, Sep 04, 2012 at 03:07:42PM +0100, St

Re: [Xen-devel] [PATCH 1/1] XEN: Use correct masking in xen_swiotlb_alloc_coherent.

2012-09-04 Thread Konrad Rzeszutek Wilk
On Tue, Sep 04, 2012 at 05:44:46PM +0100, David Vrabel wrote: > On 04/09/12 16:12, Stefano Panella wrote: > > On 09/04/2012 03:55 PM, David Vrabel wrote: > >> On 04/09/12 15:37, Konrad Rzeszutek Wilk wrote: > >>> On Tue, Sep 04, 2012 at 03:07:42PM +0100, Stefano Panella wrote: > So if hwdev->c

Re: [Xen-devel] [PATCH 1/1] XEN: Use correct masking in xen_swiotlb_alloc_coherent.

2012-09-04 Thread David Vrabel
On 04/09/12 16:12, Stefano Panella wrote: > On 09/04/2012 03:55 PM, David Vrabel wrote: >> On 04/09/12 15:37, Konrad Rzeszutek Wilk wrote: >>> On Tue, Sep 04, 2012 at 03:07:42PM +0100, Stefano Panella wrote: So if hwdev->coherent_dma_mask is set to 0x our dma_mask will >>>

Re: [Xen-devel] [PATCH 1/1] XEN: Use correct masking in xen_swiotlb_alloc_coherent.

2012-09-04 Thread Stefano Panella
On 09/04/2012 03:55 PM, David Vrabel wrote: On 04/09/12 15:37, Konrad Rzeszutek Wilk wrote: On Tue, Sep 04, 2012 at 03:07:42PM +0100, Stefano Panella wrote: So if hwdev->coherent_dma_mask is set to 0x our dma_mask will be u64 set to 0x even if we set it to DMA_BI

Re: [Xen-devel] [PATCH 1/1] XEN: Use correct masking in xen_swiotlb_alloc_coherent.

2012-09-04 Thread David Vrabel
On 04/09/12 15:37, Konrad Rzeszutek Wilk wrote: > On Tue, Sep 04, 2012 at 03:07:42PM +0100, Stefano Panella wrote: >> >> So if hwdev->coherent_dma_mask is set to 0x our dma_mask will >> be u64 set to 0x even if we set it to DMA_BIT_MASK(32) >> previously. > > That

Re: [Xen-devel] [PATCH 1/1] XEN: Use correct masking in xen_swiotlb_alloc_coherent.

2012-09-04 Thread Konrad Rzeszutek Wilk
On Tue, Sep 04, 2012 at 03:07:42PM +0100, Stefano Panella wrote: > On 08/31/2012 05:40 PM, Konrad Rzeszutek Wilk wrote: > >On Fri, Aug 31, 2012 at 01:47:05PM +0100, David Vrabel wrote: > >>On 31/08/12 10:57, Stefano Panella wrote: > >>>When running 32-bit pvops-dom0 and a driver tries to allocate a

Re: [Xen-devel] [PATCH 1/1] XEN: Use correct masking in xen_swiotlb_alloc_coherent.

2012-09-04 Thread Stefano Panella
On 08/31/2012 05:40 PM, Konrad Rzeszutek Wilk wrote: On Fri, Aug 31, 2012 at 01:47:05PM +0100, David Vrabel wrote: On 31/08/12 10:57, Stefano Panella wrote: When running 32-bit pvops-dom0 and a driver tries to allocate a coherent DMA-memory the xen swiotlb-implementation returned memory beyond

Re: [Xen-devel] [PATCH 1/1] XEN: Use correct masking in xen_swiotlb_alloc_coherent.

2012-08-31 Thread Konrad Rzeszutek Wilk
On Fri, Aug 31, 2012 at 01:47:05PM +0100, David Vrabel wrote: > On 31/08/12 10:57, Stefano Panella wrote: > > When running 32-bit pvops-dom0 and a driver tries to allocate a coherent > > DMA-memory the xen swiotlb-implementation returned memory beyond 4GB. > > > > This caused for example not worki

Re: [Xen-devel] [PATCH 1/1] XEN: Use correct masking in xen_swiotlb_alloc_coherent.

2012-08-31 Thread David Vrabel
On 31/08/12 10:57, Stefano Panella wrote: > When running 32-bit pvops-dom0 and a driver tries to allocate a coherent > DMA-memory the xen swiotlb-implementation returned memory beyond 4GB. > > This caused for example not working sound on a system with 4 GB and a 64-bit > compatible sound-card with