diff options
author | Wei Hu\(Xavier\) <[email protected]> | 2017-11-28 15:10:26 +0800 |
---|---|---|
committer | Jason Gunthorpe <[email protected]> | 2017-12-01 12:21:27 -0700 |
commit | db270c41900d39a388990701da3ee2971094ebaa (patch) | |
tree | 27d0238a54c46ab323a7031a0fd8ffc6962c0d8a /net/unix/sysctl_net_unix.c | |
parent | a9cd1a673737dd81332fce1145801bfacfb90d90 (diff) |
RDMA/hns: Fix the issue of IOVA not page continuous in hip08
If the smmu is enabled, the length of sg obtained from
__iommu_map_sg_attrs is not 4kB. When the IOVA is set with the sg
dma address, the IOVA will not be page continuous. so, the current
code has MTPT configuration error that probably cause dma operation
failure. In order to fix this issue, the IOVA should be calculated
based on the sg length.
Fixes: 3958cc5("RDMA/hns: Configure the MTPT in hip08")
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 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions