[RFC] dma-mapping: dma_alloc_coherent_mask return dma_addr_t

2013-12-10 Thread Stefano Panella
it in the current way of which I am not awere. This is why I am just asking for a RFC. The current patch apply to v3.13-rc3-74-g6c843f5 Signed-off-by: Stefano Panella --- Documentation/DMA-API.txt |5 ++--- arch/x86/include/asm/dma-mapping.h |8 arch/x86/kernel/pci-dm

[PATCH] sound: memalloc.h - fix wrong truncation of dma_addr_t

2013-12-10 Thread Stefano Panella
nd will result to a non working audio but can corrupt host memory at a random location. The current patch apply to v3.13-rc3-74-g6c843f5 Signed-off-by: Stefano Panella Reviewed-by: Frediano Ziglio --- include/sound/memalloc.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --g

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

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

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

[PATCH 1/1] XEN: Use correct masking in xen_swiotlb_alloc_coherent.

2012-08-31 Thread Stefano Panella
: Ronny Hegewald Signed-off-by: Stefano Panella --- drivers/xen/swiotlb-xen.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/xen/swiotlb-xen.c b/drivers/xen/swiotlb-xen.c index 1afb4fb..4d51948 100644 --- a/drivers/xen/swiotlb-xen.c +++ b/drivers/xen/swiotlb