dmaengine: omap-dma: Allow DMA controller to prefetch data
PATCH 1/1 dmaengine: omap-dma: Allow DMA controller to prefetch data
From: "Mark A. Greer" <[email protected]>
Enable DMA prefetching for non-cyclic DMAs by setting the 'OMAP_DMA_DST_SYNC_PREFETCH' flag when there is a destination synchronized DMA transfer. Prefetching is not allowed on source synchronized DMA transfers. It is not allowed on cyclic DMAs either since that can cause issues with some users (e.g., suspending/resuming audio).
--- drivers/dma/omap-dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/dma/omap-dma.c +1 -1
@@ -310,7 +310,7 @@ static struct dma_async_tx_descriptor *omap_dma_prep_slave_sg( dev_addr = c->cfg.dst_addr; dev_width = c->cfg.dst_addr_width; burst = c->cfg.dst_maxburst; - sync_type =OMAP_DMA_DST_SYNC ; + sync_type =OMAP_DMA_DST_SYNC_PREFETCH ; }else {dev_err (chan->device->dev,"%s: bad direction?\n" , __func__);return NULL ;
Signature · 1 line
1.7.12
PATCH 1/1 dmaengine: omap-dma: Allow DMA controller to prefetch data
Quoted 31 lines · Mark A. Greer
From: "Mark A. Greer" <[email protected]>
Enable DMA prefetching for non-cyclic DMAs by setting the '
OMAP_DMA_DST_SYNC_PREFETCH' flag when there is a destination synchronized DMA transfer. Prefetching is not allowed on source synchronized DMA transfers. It is not allowed on cyclic DMAs either since that can cause issues with some users (e.g., suspending/resuming audio).CC Russell King <[email protected]>CC P?ter Ujfalusi <[email protected]>Signed-off-by Mark A. Greer <[email protected]>--- drivers/dma/omap-dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/dma/omap-dma.c +1
-1@@ -310,7 +310,7 @@ static struct dma_async_tx_descriptor *omap_dma_prep_slave_sg( dev_addr = c->cfg.dst_addr; dev_width = c->cfg.dst_addr_width; burst = c->cfg.dst_maxburst; - sync_type =OMAP_DMA_DST_SYNC ; + sync_type =OMAP_DMA_DST_SYNC_PREFETCH ; }else {dev_err (chan->device->dev,"%s: bad direction?\n" , __func__);return NULL ;Signature · 1 line
1.7.12
Ping?