mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
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 <[email protected]> Signed-off-by: Leonid Ravich <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
This commit is contained in:
1 parent
bd2bf302ee
commit
a02254f8a6
1 file changed
+1
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user