24 Commits

Author SHA1 Message Date
Zhou Juan
9004055930 Backport bugfix for hns
1.Fix the owner bit error of sq in new io
2.Fix incorrect post-send with direct wqe of
3.Add a judgment to the congestion control algorithm

Singed-off-by: Juan Zhou <zhoujuan51@h-partners.com>
(cherry picked from commit 092143ba858a7aba0630fadd416faa2a4e7eaf06)
2023-06-02 17:10:16 +08:00
Zhou Juan
43c14b7340 Fix the sge number related errors and remove local invalidate operation
1. The hns hardware logic requires wr->num_sge to be 1 when
performing atomic operations. The code does not judge this
condition, and the current patch adds this constraint.

2. In the sq inline scenario, when num_sge in post_send is not 1, sge
array appears in the for loop without rotation and directly copy
out of bounds.

3. Currently local invalidate operation don't work properly.
Disable it for the time being.
HIP08 and HIP09 hardware does not support this feature, so
delete the associated code.

Signed-off-by: Juan Zhou <zhoujuan51@h-partners.com>
2023-05-15 18:40:59 +08:00
Zhou Juan
268e25f937 Add support for SVE Direct WQE
Some Kunpeng SoCs do not support the DWQE through NEON
instructions. In this case, the IO path works normally,
but the performance will deteriorate.

For these SoCs that do not support NEON DWQE, they support
DWQE through SVE instructions. This patch supports SVE DWQE
to guarantee the performance of these SoCs. In addition, in
this scenario, DWQE only supports acceleration through SVE's
ldr and str instructions. Other load and store instructions
also cause performance degradation.

Signed-off-by: Juan Zhou <zhoujuan51@h-partners.com>
2023-04-19 11:36:35 +08:00
Zhou Juan
48ccef6ba0 Support congestion control algorithm configuration
Added the use of direct verbs to implement QP-level
user-configurable congestion control algorithms. Among them,
the user mode driver mainly provides interfaces for users to
choose, and the kernel mode driver is responsible for filling
the resources of different algorithms and providing the
supported algorithm types for user mode.

At the same time, provide a direct verbs interface for users to
query the type of congestion control algorithm.

Signed-off-by: Juan Zhou <zhoujuan51@h-partners.com>
2023-04-13 15:22:58 +08:00
Yixing Liu
62cc5a52dc Support libhns stop sending db mechanism after reset
Add an interface to the user space, which is used to receive
the kernel reset state. After receiving the reset flag, the
user space stops sending db.

Signed-off-by: Yixing Liu <liuyixing1@huawei.com>
(cherry picked from commit 8b56ab8b70262183cac5995dcb395ec099cc89a4)
2022-12-16 10:01:48 +08:00
Chengchang Tang
b731de85ba Support hns roce DCA
DCA(Dynamic context attachment) support many RC QPs to share the WQE
buffer in a memory pool, this help reducing the memory consumption
when there are many QPs are inactive.

Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
(cherry picked from commit b88a370b79cd9b93f9a587c1e4e0d9c89d0b1d1e)
2022-12-01 09:04:57 +08:00
Yixing Liu
3a7b51373c Add supoort libhns td unlock
This patch add libhns td unlock function.

Signed-off-by: Yixing Liu <liuyixing1@huawei.com>
(cherry picked from commit 1c38175fa12c69b790201fae078017a74fdb0a41)
(cherry picked from commit 72a6679aea8e4e5c8d1864bb0caa5edafb6ad1ea)
2022-11-29 16:03:31 +08:00
Guofeng Yue
2fd3eea19c Support hns RoH mode
These patches support running the roce function in hns roh mode

Signed-off-by: Guofeng Yue <yueguofeng@hisilicon.com>
(cherry picked from commit 648d17f1efa1ca1c458618421ab01a0c4b8872af)
(cherry picked from commit 08d265affcb38d014d69436b5200692612baa394)
2022-11-29 15:44:50 +08:00
Chengchang Tang
0f64d55dba Backport patches from 41.1
Backport patches from rdma-core 41.1.

And bugfix patches reported by #I5Q3S5 has also been included.

Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
(cherry picked from commit 6f27f67e51b251ea5185fa61a635ab9fdb64d467)
2022-11-07 14:32:09 +08:00
Chengchang Tang
0025a5cf22 Add support for hns DSCP
Support DSCP for hns RoCE.

Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
2022-11-01 21:03:57 +08:00
Luoyouming
9f33bcde0c Bugfix for sge num and support inline feature
Fix sge num bug, add compatibility for rq inline, support cqe inline

Signed-off-by: Luoyouming <luoyouming@huawei.com>
2022-10-31 17:10:02 +08:00
Chengchang Tang
3cf87668d0 Update to 41.0
Update rdma-core version from 35.1 to 41.0.

Version 41.0 is the latest version in community until
2022/7/27. It includes some new bugfixes and new features,
we choose this version to facilitate future development.

The patches added to this repo has already included in the
new version, so remove them.

Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
2022-09-27 11:42:43 +08:00
zhengfeng luo
425b445513 libhns: Remove support for HIP06
HIP06 is no longer supported. So, backport these patches from
rdma-core v41 to remove support for HIP06.

Signed-off-by: zhengfeng luo <luozhengfeng@h-partners.com>
Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
2022-09-09 17:05:34 +08:00
zhengfeng luo
910edf6453 Support CQ_EX for hns
Add support for hns CQ_EX and all its dependent patches are also added.

Signed-off-by: zhengfeng luo <luozhengfeng@h-partners.com>
Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
2022-08-29 21:05:59 +08:00
zhengfeng luo
123f94ea3f Backport batch of bugfix and refactor patches for hns from rdma-core v39
These patches are mainly related to IO operations.

Signed-off-by: zhengfeng luo <luozhengfeng@h-partners.com>
Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
2022-08-29 21:05:49 +08:00
zhengfeng luo
8a4dc015b4 Backport logging API and some cleanups for hns from rdma-core v37
1.Adding logging API for rdma-core.

2.Adding hns cleanups in rdma-core v37.

Signed-off-by: zhengfeng luo <luozhengfeng@h-partners.com>
Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
2022-08-05 11:48:52 +08:00
zhengfeng luo
ae045a5e81 Backport bugfix for hns SRQ and SGE from rdma-core V36.
Bugfix for hns SRQ and SGE. And also added all related cleanups and
refactorings.

Signed-off-by: zhengfeng luo <luozhengfeng@h-partners.com>
Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
(cherry picked from commit 1725c906505414af1774a0e787b286c6ced8c027)
2022-07-14 21:15:21 +08:00
konglidong
b5f58b84e8 modify bad date in changelog 2022-06-20 14:20:56 +08:00
Chengchang Tang
964c2273a1 Support hns DWQE
Add support for hns DWQE. All its dependent patches are also added.

Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
2022-01-10 18:24:17 +08:00
eaglegai
ac3cd71307 update to 35.1 2021-12-09 19:23:20 +08:00
Yangyang Li
e696cb029a Update to 35.0
update rdma-core version from 28.1 to 35.0, version 35.0 is
the latest version in community until 2021/7/5. It includes
some bugfixes and new features, we choose this version to
facilitate future development.

Signed-off-by: Yangyang Li <liyangyang20@huawei.com>
2021-07-05 11:14:43 +08:00
cuibb1
19b916d795 update to 28.1 2020-07-27 18:25:57 +08:00
zhuchunyi
2dc66b67f4 update code 2019-11-06 19:51:11 +08:00
overweight
bf1981a0b4 Package init 2019-09-30 11:16:12 -04:00