mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/4] dma mapping benchmark: add support for dma_map_sg
@ 2025-05-06  3:00 Qinxin Xia
  2025-05-06  3:00 ` [PATCH v2 1/4] dma-mapping: benchmark: Add padding to ensure uABI remained consistent Qinxin Xia
                   ` (4 more replies)
  0 siblings, 5 replies; 17+ messages in thread
From: Qinxin Xia @ 2025-05-06  3:00 UTC (permalink / raw)
  To: baohua, xiaqinxin
  Cc: yangyicong, hch, iommu, jonathan.cameron, prime.zeng, fanghao11,
	linux-kernel, linuxarm

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

---
Changes since V1:
- Address the comments from Masami, added some comments and changed the unmap type to void.
- Link: https://lore.kernel.org/lkml/20250212022718.1995504-1-xiaqinxin@huawei.com/

Qinxin Xia (4):
  dma-mapping: benchmark: Add padding to ensure uABI remained consistent
  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                 |  46 +++-
 kernel/dma/map_benchmark.c                    | 222 ++++++++++++++++--
 .../testing/selftests/dma/dma_map_benchmark.c |  16 +-
 3 files changed, 249 insertions(+), 35 deletions(-)

--
2.33.0


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

end of thread, other threads:[~2025-05-07  9:18 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-05-06  3:00 [PATCH v2 0/4] dma mapping benchmark: add support for dma_map_sg Qinxin Xia
2025-05-06  3:00 ` [PATCH v2 1/4] dma-mapping: benchmark: Add padding to ensure uABI remained consistent Qinxin Xia
2025-05-07  1:52   ` Barry Song
2025-05-07  2:08     ` Barry Song
2025-05-07  9:10       ` Qinxin Xia
2025-05-07  9:09     ` Qinxin Xia
2025-05-06  3:00 ` [PATCH v2 2/4] dma mapping benchmark: modify the framework to adapt to more map modes Qinxin Xia
2025-05-07  2:30   ` Barry Song
2025-05-07  9:14     ` Qinxin Xia
2025-05-06  3:00 ` [PATCH v2 3/4] dma-mapping: benchmark: add support for dma_map_sg Qinxin Xia
2025-05-07  2:39   ` Barry Song
2025-05-07  9:17     ` Qinxin Xia
2025-05-06  3:01 ` [PATCH v2 4/4] dma mapping benchmark:add " Qinxin Xia
2025-05-07  2:44   ` Barry Song
2025-05-07  9:18     ` Qinxin Xia
2025-05-06 12:20 ` [PATCH v2 0/4] dma mapping benchmark: add " ALOK TIWARI
2025-05-06 12:25   ` 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®