@@ -23,7 +23,7 @@ struct scatterlist;
* must be a power of 2. What is the appropriate value ?
* The complexity of {map,unmap}_single is linearly dependent on this value.
*/
-#define IO_TLB_SEGSIZE 128
+#define IO_TLB_SEGSIZE CONFIG_SWIOTLB_SEGSIZE
/*
* log of the size of each IO TLB slab. The number of slabs is command line
@@ -102,6 +102,13 @@ config SWIOTLB_DYNAMIC
If unsure, say N.
+config SWIOTLB_SEGSIZE
+ int "SWIOTLB segment size"
+ default 128
+ help
+ Set the maximum allowable number of contiguous slabs to map.
+ Must be a power of 2.
+
config DMA_BOUNCE_UNALIGNED_KMALLOC
bool
depends on SWIOTLB