[PATCH v2] dma-mapping: benchmark: Extract a common header file for map_benchmark definition

2022-03-08 Thread Tian Tao via iommu
kernel/dma/map_benchmark.c and selftests/dma/dma_map_benchmark.c have duplicate map_benchmark definitions, which tends to lead to inconsistent changes to map_benchmark on both sides, extract a common header file to avoid this problem. Signed-off-by: Tian Tao Acked-by: Barry Song Reviewed

[RESEND] dma-mapping: benchmark: Extract a common header file for map_benchmark definition

2022-03-07 Thread Tian Tao via iommu
kernel/dma/map_benchmark.c and selftests/dma/dma_map_benchmark.c have duplicate map_benchmark definitions, which tends to lead to inconsistent changes to map_benchmark on both sides, extract a common header file to avoid this problem. Signed-off-by: Tian Tao Acked-by: Barry Song Reviewed

[PATCH] dma-mapping: benchmark: Extract a common header file for map_benchmark definition

2022-02-10 Thread Tian Tao via iommu
kernel/dma/map_benchmark.c and selftests/dma/dma_map_benchmark.c have duplicate map_benchmark definitions, which tends to lead to inconsistent changes to map_benchmark on both sides, extract a common header file to avoid this problem. Signed-off-by: Tian Tao --- kernel/dma/map_benchmark.c

[PATCH] dma-mapping: make map_benchmark compile into module

2021-03-23 Thread Tian Tao
-by: Tian Tao --- kernel/dma/Kconfig | 2 +- kernel/kthread.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/dma/Kconfig b/kernel/dma/Kconfig index 77b4055..0468293 100644 --- a/kernel/dma/Kconfig +++ b/kernel/dma/Kconfig @@ -223,7 +223,7 @@ config DMA_API_DEBUG_SG

[PATCH] iommu/vt-d: Fix duplicate included linux/dma-map-ops.h

2020-12-27 Thread Tian Tao
linux/dma-map-ops.h is included more than once, Remove the one that isn't necessary. Signed-off-by: Tian Tao --- drivers/iommu/intel/iommu.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/iommu/intel/iommu.c b/drivers/iommu/intel/iommu.c index 788119c..e6c8cc7 100644 --- a/drivers

[PATCH v2] iommu/arm-smmu-v3: Fix not checking return value about devm_add_action

2020-12-08 Thread Tian Tao
Use devm_add_action_or_reset to avoid the situation where the release function is not called when devm_add_action returns an error. Signed-off-by: Tian Tao --- v2: repositioning devm_add_action_or_reset in the function arm_smmu_setup_msis, and check the return value. --- drivers/iommu/arm/arm