summary refs log tree commit diff
path: root/drivers/dma/ioat
diff options
context:
space:
mode:
authorLeonid Ravich <Leonid.Ravich@emc.com>2020-04-16 20:06:22 +0300
committerVinod Koul <vkoul@kernel.org>2020-04-17 17:28:39 +0530
commita02254f8a676f5fdb98ebeb6cc420a71e652574a (patch)
tree3d4df882397a9c98da0c456412b36fcc41207024 /drivers/dma/ioat
parentbd2bf302eef21aafa6da2cf829b87a9e33150658 (diff)
downloadlinux-a02254f8a676f5fdb98ebeb6cc420a71e652574a.tar.gz
dmaengine: ioat: Decreasing allocation chunk size 2M->512K
requreing kmalloc of 2M high chance to fail in
fragmented memory.
IOAT ring requires 64k * 64B memory
which will be achived by 512k * 8 allocation
instead of 2M * 2.

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-2-leonid.ravich@dell.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma/ioat')
-rw-r--r--drivers/dma/ioat/dma.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/ioat/dma.h b/drivers/dma/ioat/dma.h
index 5216c6b7c99e..e6b622e1ba92 100644
--- a/drivers/dma/ioat/dma.h
+++ b/drivers/dma/ioat/dma.h
@@ -83,7 +83,7 @@ struct ioatdma_device {
 
 #define IOAT_MAX_ORDER 16
 #define IOAT_MAX_DESCS (1 << IOAT_MAX_ORDER)
-#define IOAT_CHUNK_SIZE (SZ_2M)
+#define IOAT_CHUNK_SIZE (SZ_512K)
 #define IOAT_DESCS_PER_CHUNK (IOAT_CHUNK_SIZE / IOAT_DESC_SZ)
 
 struct ioat_descs {