summaryrefslogtreecommitdiffstats
path: root/drivers/dma/ioat/init.c
diff options
context:
space:
mode:
authorLeonid Ravich <Leonid.Ravich@emc.com>2020-04-16 20:06:21 +0300
committerVinod Koul <vkoul@kernel.org>2020-04-17 17:28:39 +0530
commitbd2bf302eef21aafa6da2cf829b87a9e33150658 (patch)
tree1887924dc5c14c2c3e5eec3d3f8289474e184c99 /drivers/dma/ioat/init.c
parent2fea2906b5cbeffe49911e4735451af62fc121b4 (diff)
downloadlinux-bd2bf302eef21aafa6da2cf829b87a9e33150658.tar.gz
linux-bd2bf302eef21aafa6da2cf829b87a9e33150658.tar.bz2
linux-bd2bf302eef21aafa6da2cf829b87a9e33150658.zip
dmaengine: ioat: fixing chunk sizing macros dependency
changing macros which assumption is chunk size of 2M, which can be other size prepare for changing allocation chunk size. Acked-by: Dave Jiang <dave.jiang@intel.com> Signed-off-by: Leonid Ravich <Leonid.Ravich@emc.com> Link: https://lore.kernel.org/r/20200416170628.16196-1-leonid.ravich@dell.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma/ioat/init.c')
-rw-r--r--drivers/dma/ioat/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/ioat/init.c b/drivers/dma/ioat/init.c
index 60e9afbb896c..58d13564f88b 100644
--- a/drivers/dma/ioat/init.c
+++ b/drivers/dma/ioat/init.c
@@ -651,7 +651,7 @@ static void ioat_free_chan_resources(struct dma_chan *c)
}
for (i = 0; i < ioat_chan->desc_chunks; i++) {
- dma_free_coherent(to_dev(ioat_chan), SZ_2M,
+ dma_free_coherent(to_dev(ioat_chan), IOAT_CHUNK_SIZE,
ioat_chan->descs[i].virt,
ioat_chan->descs[i].hw);
ioat_chan->descs[i].virt = NULL;