mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-19 09:04:51 +08:00
9a33f39809
Replacing kmalloc/kfree/dma_map_single/dma_unmap_single() with dma_alloc_coherent/dma_free_coherent() helps to reduce code size, and simplify the code, and coherent DMA will not clear the cache every time. The SOC that this driver supports does not have incoherent DMA, so this makes the code follow the DMA API properly with no performance impact. Currently there are missing dma sync calls around the DMA transfers. Link: https://lore.kernel.org/r/20210926061116.282-1-caihuoqing@baidu.com Signed-off-by: Cai Huoqing <caihuoqing@baidu.com> Reviewed-by: Wenpeng Liang <liangwenpeng@huawei.com> Tested-by: Wenpeng Liang <liangwenpeng@huawei.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com> |
||
---|---|---|
.. | ||
hns_roce_ah.c | ||
hns_roce_alloc.c | ||
hns_roce_cmd.c | ||
hns_roce_cmd.h | ||
hns_roce_common.h | ||
hns_roce_cq.c | ||
hns_roce_db.c | ||
hns_roce_device.h | ||
hns_roce_hem.c | ||
hns_roce_hem.h | ||
hns_roce_hw_v1.c | ||
hns_roce_hw_v1.h | ||
hns_roce_hw_v2_dfx.c | ||
hns_roce_hw_v2.c | ||
hns_roce_hw_v2.h | ||
hns_roce_main.c | ||
hns_roce_mr.c | ||
hns_roce_pd.c | ||
hns_roce_qp.c | ||
hns_roce_restrack.c | ||
hns_roce_srq.c | ||
Kconfig | ||
Makefile |