swiotlb: adjust the size and segsize of io tlb
Increase the maximum allowable number of contiguous slabs to 256, because the PCIe may try allocate 512Kbyte buffer. Change-Id: Ib2f787e448991e2bc4a6088e9d4175467d6c3428
This commit is contained in:
@@ -23,7 +23,11 @@ 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.
|
||||
*/
|
||||
#if defined(CONFIG_SOC_SPACEMIT_K1X)
|
||||
#define IO_TLB_SEGSIZE 256
|
||||
#else
|
||||
#define IO_TLB_SEGSIZE 128
|
||||
#endif
|
||||
|
||||
/*
|
||||
* log of the size of each IO TLB slab. The number of slabs is command line
|
||||
|
||||
Reference in New Issue
Block a user