dw_dmac: allocate dma descriptors from DMA_COHERENT memory
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 16 Jan 2013 13:48:50 +0000 (15:48 +0200)
committerVinod Koul <vinod.koul@intel.com>
Mon, 21 Jan 2013 04:49:21 +0000 (20:49 -0800)
commitf8122a82d2eae8ef42de48829deed0ca9d9e1f17
treeade059660ab99a330c93dffa90e7e4f4972270af
parent855372c013bbad8369223f7c75242bd3c94f9345
dw_dmac: allocate dma descriptors from DMA_COHERENT memory

Currently descriptors are allocated from normal cacheable memory and that slows
down filling the descriptors, as we need to call cache_coherency routines
afterwards. It would be better to allocate memory for these descriptors from
DMA_COHERENT memory. This would make code much cleaner too.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Tested-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/dw_dmac.c
drivers/dma/dw_dmac_regs.h