mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/3] dma mapping benchmark: add support for dma_map_sg
@ 2025-02-12  2:27 Qinxin Xia
  2025-02-12  2:27 ` [PATCH 1/3] dma mapping benchmark: modify the framework to adapt to more map modes Qinxin Xia
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Qinxin Xia @ 2025-02-12  2:27 UTC (permalink / raw)
  To: baohua, chenxiang66
  Cc: yangyicong, hch, iommu, jonathan.cameron, prime.zeng, fanghao11,
	linux-kernel, xiaqinxin

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 mode: DMA_MAP_SG_MODE
dma mapping benchmark: 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 mode: DMA_MAP_SINGLE_MODE
dma mapping benchmark: 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

---
Qinxin Xia (3):
  dma-mapping: benchmark: modify the framework to adapt to more map
    modes
  dma-mapping: benchmark: add support for dma_map_sg
  dma-mapping benchmark:add support for dma_map_sg

 include/linux/map_benchmark.h                 |   7 +
 kernel/dma/map_benchmark.c                    | 224 ++++++++++++++++--
 .../testing/selftests/dma/dma_map_benchmark.c |  16 +-
 3 files changed, 222 insertions(+), 25 deletions(-)

--
2.33.0


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2025-04-08  9:53 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-02-12  2:27 [PATCH 0/3] dma mapping benchmark: add support for dma_map_sg Qinxin Xia
2025-02-12  2:27 ` [PATCH 1/3] dma mapping benchmark: modify the framework to adapt to more map modes Qinxin Xia
2025-04-07  5:28   ` Barry Song
2025-04-08  9:42     ` Qinxin Xia
2025-02-12  2:27 ` [PATCH 2/3] dma-mapping: benchmark: add support for dma_map_sg Qinxin Xia
2025-02-17 20:59   ` Barry Song
2025-02-21  3:16     ` 回复: " xiaqinxin
2025-02-22  6:36       ` Barry Song
2025-03-04 13:49         ` Qinxin Xia
2025-03-04 13:56           ` Qinxin Xia
2025-03-06  9:28           ` Barry Song
2025-04-01 12:46             ` Qinxin Xia
2025-04-07  5:50   ` Barry Song
2025-04-08  9:53     ` Qinxin Xia
2025-02-12  2:27 ` [PATCH 3/3] dma mapping benchmark:add " Qinxin Xia

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®