diff options
author | Wei Hu\(Xavier\) <[email protected]> | 2017-11-28 15:10:27 +0800 |
---|---|---|
committer | Jason Gunthorpe <[email protected]> | 2017-12-01 12:21:27 -0700 |
commit | b1c158350968d6717ec1889f07ea3a89432e8574 (patch) | |
tree | ed2aef3f6cce7be029ac48b4cb2e202c068bd85f /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
parent | db270c41900d39a388990701da3ee2971094ebaa (diff) |
RDMA/hns: Get rid of virt_to_page and vmap calls after dma_alloc_coherent
In general dma_alloc_coherent() returns a CPU virtual address and
a DMA address, and we have no guarantee that the virtual address
is either in the linear map or vmalloc. It could be in some other special
place. We have no guarantee that the underlying memory even has
an associated struct page at all.
In current code, there are incorrect usage as below:
dma_alloc_coherent + virt_to_page + vmap. There will probably
introduce coherency problem. This patch fixes it to get rid of
virt_to_page and vmap calls at Leon's suggestion. The related
link: https://lkml.org/lkml/2017/11/7/34
Fixes: 9a44353("IB/hns: Add driver files for hns RoCE driver")
Signed-off-by: Wei Hu (Xavier) <[email protected]>
Signed-off-by: Shaobo Xu <[email protected]>
Signed-off-by: Lijun Ou <[email protected]>
Signed-off-by: Yixian Liu <[email protected]>
Signed-off-by: Xiping Zhang (Francis) <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions