diff options
author | Leonid Ravich <Leonid.Ravich@emc.com> | 2020-04-16 20:06:21 +0300 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2020-04-17 14:58:39 +0300 |
commit | bd2bf302eef21aafa6da2cf829b87a9e33150658 (patch) | |
tree | 1887924dc5c14c2c3e5eec3d3f8289474e184c99 /drivers/dma/ioat/init.c | |
parent | 2fea2906b5cbeffe49911e4735451af62fc121b4 (diff) | |
download | linux-bd2bf302eef21aafa6da2cf829b87a9e33150658.tar.xz |
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.c | 2 |
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; |