]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dma-mapping: benchmark: modify the framework to adapt to more map modes
authorQinxin Xia <xiaqinxin@huawei.com>
Wed, 25 Feb 2026 09:37:58 +0000 (17:37 +0800)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Wed, 4 Mar 2026 10:22:05 +0000 (11:22 +0100)
commit9cc60ec453fe5d58d4faa70829814769a8af24d4
treecd8bd382e7a04a639e13feedec6fd561edb35b64
parent6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f
dma-mapping: benchmark: modify the framework to adapt to more map modes

This patch adjusts the DMA map benchmark framework to make the DMA
map benchmark framework more flexible and adaptable to other mapping
modes in the future. By abstracting the framework into five interfaces:
prepare, unprepare, initialize_data, do_map, and do_unmap.
The new map schema can be introduced more easily
without major modifications to the existing code structure.

Reviewed-by: Barry Song <baohua@kernel.org>
Signed-off-by: Qinxin Xia <xiaqinxin@huawei.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Link: https://lore.kernel.org/r/20260225093800.3625054-2-xiaqinxin@huawei.com
include/uapi/linux/map_benchmark.h
kernel/dma/map_benchmark.c