Re: [PATCH v7 0/3] dma-mapping: benchmark: Add support for dma_map_sg
From: Marek Szyprowski
Date: Fri Mar 06 2026 - 02:55:05 EST
On 25.02.2026 11:42, Barry Song wrote:
> On Wed, Feb 25, 2026 at 5:38 PM Qinxin Xia <xiaqinxin@xxxxxxxxxx> wrote:
>> Modify the framework to adapt to more map modes, add benchmark
>> support for dma_map_sg, and add support sg map mode in ioctl.
>>
>> The result:
>> [root@localhost]# ./dma_map_benchmark -m 1 -g 8 -t 8 -s 30 -d 2
>> dma mapping benchmark(SG_MODE): threads:8 seconds:30 node:-1 dir:FROM_DEVICE granule/sg_nents: 8
>> average map latency(us):1.4 standard deviation:0.3
>> average unmap latency(us):1.3 standard deviation:0.3
>> [root@localhost]# ./dma_map_benchmark -m 0 -g 8 -t 8 -s 30 -d 2
>> dma mapping benchmark(SINGLE_MODE): threads:8 seconds:30 node:-1 dir:FROM_DEVICE granule/sg_nents: 8
>> average map latency(us):1.0 standard deviation:0.3
>> average unmap latency(us):1.3 standard deviation:0.5
>>
> + Marek,
>
> Hi Marek,
>
> Would you be willing to pick up Qinxin's series into the dma-mapping
> tree? I think that would be helpful, at least for my
> "dma-mapping: arm64: support batched cache sync" series[1] and for
> potential further optimizations to dma_map_sg().
>
> [1] https://lore.kernel.org/lkml/20251226225254.46197-1-21cnbao@xxxxxxxxx/
I would be easier for me to track that work if I were on CC:, but I will
take it.
Best regards
--
Marek Szyprowski, PhD
Samsung R&D Institute Poland