On Mon, Mar 08, 2021 at 06:13:52PM +0800, Zhu Yanjun wrote: > And I delved into the source code of __sg_alloc_table_from_pages. I > found that this function is related with ib_dma_max_seg_size. So > when ib_dma_max_seg_size is set to UINT_MAX, the sg dma address is > 4K (one page). When ib_dma_max_seg_size is set to SZ_2M, the sg dma > address is 2M now. That seems like a bug, you should fix it Jason