linux/drivers/infiniband/hw/hns
Wei Hu\(Xavier\) db270c4190 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) <xavier.huwei@huawei.com>
Signed-off-by: Shaobo Xu <xushaobo2@huawei.com>
Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Yixian Liu <liuyixian@huawei.com>
Signed-off-by: Xiping Zhang (Francis) <zhangxiping3@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2017-12-01 12:21:27 -07:00
..
hns_roce_ah.c Merge branch 'for-next-early' into for-next 2017-10-18 13:07:13 -04:00
hns_roce_alloc.c RDMA/hns: Support WQE/CQE/PBL page size configurable feature in hip08 2017-10-25 13:37:07 -04:00
hns_roce_cmd.c RDMA/hns: Add mailbox's implementation for hip08 RoCE driver 2017-09-27 08:34:55 -04:00
hns_roce_cmd.h RDMA/hns: Add rereg mr support for hip08 2017-11-10 12:14:27 -05:00
hns_roce_common.h RDMA/hns: Configure mac&gid and user access region for hip08 RoCE driver 2017-09-27 08:34:56 -04:00
hns_roce_cq.c RDMA/hns: Modify the usage of cmd_sn in hip08 2017-11-10 12:32:43 -05:00
hns_roce_device.h RDMA/hns: Modify the usage of cmd_sn in hip08 2017-11-10 12:32:43 -05:00
hns_roce_eq.c IB/hns: Annotate iomem pointers correctly 2017-10-14 20:47:06 -04:00
hns_roce_eq.h IB/hns: Optimize code of aeq and ceq interrupt handle and fix the bug of qpn 2016-10-03 11:43:15 -04:00
hns_roce_hem.c RDMA/hns: Unify the calculation for hem index in hip08 2017-11-10 12:32:18 -05:00
hns_roce_hem.h RDMA/hns: Configure TRRL field in hip08 RoCE device 2017-11-10 12:29:47 -05:00
hns_roce_hw_v1.c RDMA/hns: Configure sgid type for hip08 RoCE 2017-11-10 12:14:27 -05:00
hns_roce_hw_v1.h RDMA/hns: Update the IRRL table chunk size in hip08 2017-10-25 13:37:07 -04:00
hns_roce_hw_v2.c RDMA/hns: Fix the issue of IOVA not page continuous in hip08 2017-12-01 12:21:27 -07:00
hns_roce_hw_v2.h RDMA/hns: Add sq_invld_flg field in QP context 2017-11-10 12:31:52 -05:00
hns_roce_main.c RDMA/hns: Configure TRRL field in hip08 RoCE device 2017-11-10 12:29:47 -05:00
hns_roce_mr.c RDMA/hns: Add rereg mr support for hip08 2017-11-10 12:14:27 -05:00
hns_roce_pd.c RDMA/hns: Configure mac&gid and user access region for hip08 RoCE driver 2017-09-27 08:34:56 -04:00
hns_roce_qp.c RDMA/hns: Configure TRRL field in hip08 RoCE device 2017-11-10 12:29:47 -05:00
Kconfig RDMA/hns: Initialize the PCI device for hip08 RoCE 2017-09-27 08:34:55 -04:00
Makefile RDMA/hns: Initialize the PCI device for hip08 RoCE 2017-09-27 08:34:55 -04:00