summaryrefslogtreecommitdiff
path: root/drivers/dma/fsl_raid.h
diff options
context:
space:
mode:
authorPeter Ujfalusi <peter.ujfalusi@ti.com>2017-09-18 08:16:26 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-10-18 07:35:38 (GMT)
commit618c786d2bbacbb802c6e9c9b629f9adc21e00bf (patch)
tree9739ea1b89b40c8ffa5ebc7fe79580821716de91 /drivers/dma/fsl_raid.h
parentb7309209b020afc78097b2927db3de7fbd88d3cc (diff)
downloadlinux-618c786d2bbacbb802c6e9c9b629f9adc21e00bf.tar.xz
dmaengine: edma: Align the memcpy acnt array size with the transfer
commit 87a2f622cc6446c7d09ac655b7b9b04886f16a4c upstream. Memory to Memory transfers does not have any special alignment needs regarding to acnt array size, but if one of the areas are in memory mapped regions (like PCIe memory), we need to make sure that the acnt array size is aligned with the mem copy parameters. Before "dmaengine: edma: Optimize memcpy operation" change the memcpy was set up in a different way: acnt == number of bytes in a word based on __ffs((src | dest | len), bcnt and ccnt for looping the necessary number of words to comlete the trasnfer. Instead of reverting the commit we can fix it to make sure that the ACNT size is aligned to the traswnfer. Fixes: df6694f80365a (dmaengine: edma: Optimize memcpy operation) Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/dma/fsl_raid.h')
0 files changed, 0 insertions, 0 deletions