[PATCH v5 0/2] Tiny bug fix and move dma map benchmark to /tools/dma

Qinxin Xia posted 2 patches 3 months, 1 week ago
include/{ => uapi}/linux/map_benchmark.h      | 14 +++--
kernel/dma/map_benchmark.c                    |  2 +-
tools/Makefile                                | 13 +++--
tools/dma/.gitignore                          |  3 +
tools/dma/Makefile                            | 55 +++++++++++++++++++
tools/{testing/selftests => }/dma/config      |  0
.../selftests => }/dma/dma_map_benchmark.c    |  1 -
tools/testing/selftests/dma/Makefile          |  7 ---
8 files changed, 75 insertions(+), 20 deletions(-)
rename include/{ => uapi}/linux/map_benchmark.h (76%)
create mode 100644 tools/dma/.gitignore
create mode 100644 tools/dma/Makefile
rename tools/{testing/selftests => }/dma/config (100%)
rename tools/{testing/selftests => }/dma/dma_map_benchmark.c (99%)
delete mode 100644 tools/testing/selftests/dma/Makefile
[PATCH v5 0/2] Tiny bug fix and move dma map benchmark to /tools/dma
Posted by Qinxin Xia 3 months, 1 week ago
1) Fix the bug of droped 'expansion' field in previous submission.
2) Move dma_map_benchmark from selftests to tools/dma.
 
---
Changes since v4: 
1) Addressed comments from Barry:
   - The hotfix is separated as a patch.
Link: https://lore.kernel.org/all/20251022035528.1981892-1-xiaqinxin@huawei.com/
 
Changes since v3: 
1) Addressed comments from Barry:
   - Make a few minor modifications from gpio Makefile to dma.
   - Remove include/linux/map_benchmark.h.
Link: https://lore.kernel.org/all/20251021011739.1468912-1-xiaqinxin@huawei.com/                                                                                                                                                                                   
 
Changes since v2:    
1) Fix some x86_64 build errors.
Link: https://lore.kernel.org/all/20251018101402.3079372-1-xiaqinxin@huawei.com/
 
Changes since v1: 
1) Addressed comments from Barry:
   - Moved map_benchmark.h from include/linux to include/uapi/linux/.
   - Modified CFLAGS in Makefile to reflect the new header location.
 
2) Added a .gitignore file to exclude unnecessary files.
 
3) Restored the 'expansion' field in 'struct map_benchmark':
   - This field was accidentally removed in commit 8ddde07a3d.
   - The change ensures that the structure remains compatible with existing codebases.
Link: https://lore.kernel.org/all/20250814133527.2679261-1-xiaqinxin@huawei.com/

Qinxin Xia (2):
  dma-mapping: benchmark: Restore padding to ensure uABI remained
    consistent
  tools/dma: move dma_map_benchmark from selftests to tools/dma

 include/{ => uapi}/linux/map_benchmark.h      | 14 +++--
 kernel/dma/map_benchmark.c                    |  2 +-
 tools/Makefile                                | 13 +++--
 tools/dma/.gitignore                          |  3 +
 tools/dma/Makefile                            | 55 +++++++++++++++++++
 tools/{testing/selftests => }/dma/config      |  0
 .../selftests => }/dma/dma_map_benchmark.c    |  1 -
 tools/testing/selftests/dma/Makefile          |  7 ---
 8 files changed, 75 insertions(+), 20 deletions(-)
 rename include/{ => uapi}/linux/map_benchmark.h (76%)
 create mode 100644 tools/dma/.gitignore
 create mode 100644 tools/dma/Makefile
 rename tools/{testing/selftests => }/dma/config (100%)
 rename tools/{testing/selftests => }/dma/dma_map_benchmark.c (99%)
 delete mode 100644 tools/testing/selftests/dma/Makefile

-- 
2.33.0