From: Marek Szyprowski <m.szyprowski@samsung.com>
To: Qinxin Xia <xiaqinxin@huawei.com>,
21cnbao@gmail.com, jonathan.cameron@huawei.com,
wangzhou1@hisilicon.com
Cc: iommu@lists.linux.dev, prime.zeng@huawei.com,
fanghao11@huawei.com, linux-kernel@vger.kernel.org,
linuxarm@huawei.com
Subject: Re: [PATCH v7 0/3] dma-mapping: benchmark: Add support for dma_map_sg
Date: Fri, 6 Mar 2026 09:50:56 +0100 [thread overview]
Message-ID: <a55de232-4355-4fae-85c6-b4bbebdf345d@samsung.com> (raw)
In-Reply-To: <20260225093800.3625054-1-xiaqinxin@huawei.com>
On 25.02.2026 10:37, Qinxin Xia 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
Applied to dma-mapping-next. Thanks! Next time please CC: me directly.
> ---
> Changes since V6:
> - Address the comments from Barry, update the comment of the granule.
> - Link: https://lore.kernel.org/lkml/20260112093436.3456315-1-xiaqinxin@huawei.com/
>
> Changes since V5:
> - Address the comments from Barry, the incorrect and unnecessary 'prepare_data' judgment
> is deleted and renamed 'prepare_data()' to 'initialize_data()'. The mode and
> other parameters in the output print are placed in the same print. In addition, the incorrect
> map_mode judgment in ioctrl and the wrong path in sg:prepare() does not release 'params' is fixed.
> - Link: https://lore.kernel.org/all/20251222153246.2220659-1-xiaqinxin@huawei.com/
>
> Changes since V4:
> - Address the comments from Barry and Jonathan, irrelevant patches are deleted and
> the original cache processing logic is restored with add prepare_data().
> - Link: https://lore.kernel.org/all/20250614143454.2927363-3-xiaqinxin@huawei.com/
>
> Changes since V3:
> - Address the comments from Barry, change mode to a more specific namespace.
> - Link: https://lore.kernel.org/all/20250509020238.3378396-1-xiaqinxin@huawei.com/
>
> Changes since V2:
> - Address the comments from Barry and ALOK, some commit information and function
> input parameter names are modified to make them more accurate.
> - Link: https://lore.kernel.org/all/20250506030100.394376-1-xiaqinxin@huawei.com/
>
> Changes since V1:
> - Address the comments from Barry, added some comments and changed the unmap type to void.
> - Link: https://lore.kernel.org/lkml/20250212022718.1995504-1-xiaqinxin@huawei.com/
>
> Qinxin Xia (3):
> dma-mapping: benchmark: modify the framework to adapt to more map
> modes
> dma-mapping: benchmark: add support for dma_map_sg
> tools/dma: Add dma_map_sg support
>
> include/uapi/linux/map_benchmark.h | 13 +-
> kernel/dma/map_benchmark.c | 246 ++++++++++++++++++++++++++---
> tools/dma/dma_map_benchmark.c | 23 ++-
> 3 files changed, 254 insertions(+), 28 deletions(-)
>
Best regards
--
Marek Szyprowski, PhD
Samsung R&D Institute Poland
next prev parent reply other threads:[~2026-03-06 8:51 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-25 9:37 Qinxin Xia
2026-02-25 9:37 ` [PATCH v7 1/3] dma-mapping: benchmark: modify the framework to adapt to more map modes Qinxin Xia
2026-02-25 9:37 ` [PATCH v7 2/3] dma-mapping: benchmark: add support for dma_map_sg Qinxin Xia
2026-02-25 9:38 ` [PATCH v7 3/3] tools/dma: Add dma_map_sg support Qinxin Xia
2026-02-25 10:42 ` [PATCH v7 0/3] dma-mapping: benchmark: Add support for dma_map_sg Barry Song
2026-03-06 7:54 ` Marek Szyprowski
[not found] ` <CGME20260306085057eucas1p176a39f28514d3c7481f5813d597086ca@eucas1p1.samsung.com>
2026-03-06 8:50 ` Marek Szyprowski [this message]
2026-03-07 7:46 ` Qinxin Xia
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a55de232-4355-4fae-85c6-b4bbebdf345d@samsung.com \
--to=m.szyprowski@samsung.com \
--cc=21cnbao@gmail.com \
--cc=fanghao11@huawei.com \
--cc=iommu@lists.linux.dev \
--cc=jonathan.cameron@huawei.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxarm@huawei.com \
--cc=prime.zeng@huawei.com \
--cc=wangzhou1@hisilicon.com \
--cc=xiaqinxin@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®