[PATCH v1 1/2] drivers: dma-coherent: Fix DMA coherent size for less than page

2016-09-15 Thread Mark Craske
-ENXIO as dma_mmap_from_coherent() assumes we want to map zero pages. Signed-off-by: George G. Davis Signed-off-by: Jiada Wang Signed-off-by: Mark Craske --- drivers/base/dma-coherent.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/base/dma-coherent.c b/drivers/base/dma-

[PATCH v1 0/2] Two small dma-coherent bug fixes

2016-09-15 Thread Mark Craske
This patchset contains the following commits: Bastian Hecht (1): drivers: dma-coherent: Move spinlock in dma_alloc_from_coherent() George G. Davis (1): drivers: dma-coherent: Fix DMA coherent size for less than page drivers/base/dma-coherent.c |8 +--- 1 file changed, 5 insertions(+

[PATCH v1 2/2] drivers: dma-coherent: Move spinlock in dma_alloc_from_coherent()

2016-09-15 Thread Mark Craske
From: Bastian Hecht We don't need to hold the spinlock while zeroing the allocated memory. In case we handle big buffers this is a severe issue as other CPUs might be spinning half a second or longer. Signed-off-by: Bastian Hecht Signed-off-by: George G. Davis Signed-off-by: Mark C

[PATCH v2 0/2] Two small dma-coherent bug fixes

2016-09-28 Thread Mark Craske
This patchset contains the following commits: Bastian Hecht (1): drivers: dma-coherent: Move spinlock in dma_alloc_from_coherent() George G. Davis (1): drivers: dma-coherent: Fix DMA coherent size for less than page drivers/base/dma-coherent.c |8 +--- 1 file changed, 5 insertions(+

[PATCH v2 1/2] drivers: dma-coherent: Fix DMA coherent size for less than page

2016-09-28 Thread Mark Craske
-ENXIO as dma_mmap_from_coherent() assumes we want to map zero pages. Signed-off-by: George G. Davis Signed-off-by: Jiada Wang Signed-off-by: Mark Craske --- drivers/base/dma-coherent.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/base/dma-coherent.c b/drivers/base/dma-

[PATCH v2 2/2] drivers: dma-coherent: Move spinlock in dma_alloc_from_coherent()

2016-09-28 Thread Mark Craske
From: Bastian Hecht We don't need to hold the spinlock while zeroing the allocated memory. In case we handle big buffers this is a severe issue as other CPUs might be spinning half a second or longer. Signed-off-by: Bastian Hecht Signed-off-by: George G. Davis Signed-off-by: Mark C