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:
huzhen
2024-04-11 17:22:05 +08:00
committed by zhangmeng
parent 2571faf3c3
commit 75362ec2c6

View File

@@ -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