115 Commits

Author SHA1 Message Date
openeuler-ci-bot
6435a68e8a
!198 [sync] PR-196: libhns: Fix missing fields for SRQ WC
From: @openeuler-sync-bot 
Reviewed-by: @hellotcc 
Signed-off-by: @hellotcc
2025-01-23 08:21:13 +00:00
Xinghai Cen
55c3a85cb5 libhns: Fix missing fields for SRQ WC
mainline inclusion:
libhns: Fix missing fields for SRQ WC

Modify the information of some patch Fixes

Signed-off-by: Xinghai Cen <cenxinghai@h-partners.com>
(cherry picked from commit 7eebc68b5767eb9e2c89b8333628cd67785bc03c)
2025-01-17 17:58:19 +08:00
openeuler-ci-bot
b79aeacfd0
!194 [sync] PR-193: Try sync with master codebase
From: @openeuler-sync-bot 
Reviewed-by: @hellotcc 
Signed-off-by: @hellotcc
2025-01-09 11:17:45 +00:00
Funda Wang
2ef3ca7dfd Try sync with master codebase
(cherry picked from commit 6ff361b3e9766a469223a94dc4aad32a7dddc20e)
2025-01-09 14:48:07 +08:00
openeuler-ci-bot
fc3e056495
!189 [sync] PR-187: libhns: Add error logs to help diagnosis
From: @openeuler-sync-bot 
Reviewed-by: @hellotcc 
Signed-off-by: @hellotcc
2025-01-06 07:22:09 +00:00
Xinghai Cen
9dbe75625a libhns: Add error logs to help diagnosis
Add error logs to help diagnosis.

Signed-off-by: Xinghai Cen <cenxinghai@h-partners.com>
(cherry picked from commit 6aca7044b3705884610a49caac9bed7a7628eccc)
2025-01-06 13:58:59 +08:00
openeuler-ci-bot
04ee017869
!185 [sync] PR-183: libhns: Fix coredump during QP destruction when send_cq == recv_cq
From: @openeuler-sync-bot 
Reviewed-by: @hellotcc 
Signed-off-by: @hellotcc
2024-11-30 03:29:58 +00:00
Xinghai Cen
76d34bf06c libhns: Fix coredump during QP destruction when send_cq == recv_cq
driver inclusion
category: feature
bugzilla: https://gitee.com/src-openeuler/rdma-core/issues/IB7JZL

------------------------------------------------------------------

If the specified send CQ and recv CQ are both
the same CQ, the QP node in SCQ is not deleted.
which causes a segfault to occur when recreating
the QP. Here fix it.

Signed-off-by: Xinghai Cen <cenxinghai@h-partners.com>
(cherry picked from commit a8c29764ee5bbc28c181b8c57a6bd9d2802b25ca)
2024-11-28 15:22:52 +08:00
openeuler-ci-bot
f0e4558f89
!182 [sync] PR-180: libhns: Fixes several bugs for libhns
From: @openeuler-sync-bot 
Reviewed-by: @hellotcc 
Signed-off-by: @hellotcc
2024-11-26 11:18:48 +00:00
Xinghai Cen
70a9c89044 libhns: Fixes several bugs for libhns
Fixes several bugs for libhns:
libhns: Fix memory leakage when DCA is enabled
libhns: Fix the exception branch of wr_start() is not locked

Signed-off-by: Xinghai Cen <cenxinghai@h-partners.com>
(cherry picked from commit 62a65084134c9b3be711dc25ef02b900a7b9a345)
2024-11-25 17:11:45 +08:00
openeuler-ci-bot
cef90729ad
!177 [sync] PR-175: libhns: Two bugfixes in post_send flow
From: @openeuler-sync-bot 
Reviewed-by: @hellotcc 
Signed-off-by: @hellotcc
2024-11-19 02:05:11 +00:00
Xinghai Cen
9566f8a6ca libhns: Two bugfixes in post_send flow
Two bugfixes in post_send flow:
libhns: Fix out-of-order issue of requester when setting FENCE
libhns: Fix reference to uninitialized cq pointer

Signed-off-by: Xinghai Cen <cenxinghai@h-partners.com>
(cherry picked from commit 4793d5d71084589b70422fc241883aef0784e847)
2024-11-15 16:18:15 +08:00
openeuler-ci-bot
cb1fee4bd4
!174 [sync] PR-172: [Cherry pick] sync master
From: @openeuler-sync-bot 
Reviewed-by: @hellotcc 
Signed-off-by: @hellotcc
2024-11-15 02:58:31 +00:00
Funda Wang
5577a652e3 chore: migrated to SPDX license
chore: drop useless setup macro, cause it duplicates with autosetup

chore: drop useless ldconfig_scriptlets, it has been done through glibc filetriggers since openeuler 1.0
(cherry picked from commit 0f50343f43d30330f821f366cdba55fb65537b37)
2024-11-15 09:18:51 +08:00
openeuler-ci-bot
e054e1b08e
!169 [sync] PR-165: ZTE Dinghai rdma-core驱动合入
From: @openeuler-sync-bot 
Reviewed-by: @hellotcc 
Signed-off-by: @hellotcc
2024-11-14 07:41:36 +00:00
李富艳
cf00311534 add ZTE Dinghai rdma driver
Signed-off-by: 李富艳 <li.fuyan@zte.com.cn>
(cherry picked from commit bc9537acadff7ef3930afceec74adc3968d5a6da)
2024-11-14 14:17:23 +08:00
openeuler-ci-bot
1b8dfae59f
!157 [sync] PR-154: bnxt_re/lib: Fix the stride calculation for MSN/PSN area
From: @openeuler-sync-bot 
Reviewed-by: @hellotcc 
Signed-off-by: @hellotcc
2024-07-24 03:27:28 +00:00
dufuhang
1a676dcbcd Fix the stride calculation for MSN/PSN area
[ Upstream commit 65197a4 ]

Library expects ilog2 of psn_size while calculating the stride.
ilog32 returns log2(v) + 1 and the calculation fails since
the psn size is a power of 2 value. Fix by passing psn_size - 1.

Fixes: 0a0e0d0 ("bnxt_re/lib: Adds MSN table capability for Gen P7 adapters")
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Signed-off-by: Nicolas Morey <nmorey@suse.com>
(cherry picked from commit ac4be7ab029ef79b45c1055fb7504643fd129194)
2024-07-24 10:47:30 +08:00
openeuler-ci-bot
ca9771a25f
!155 [sync] PR-151: librdmacm: Fix an overflow bug in qsort comparison function
From: @openeuler-sync-bot 
Reviewed-by: @hellotcc 
Signed-off-by: @hellotcc
2024-07-24 02:45:50 +00:00
zhangyaqi
49eb75e804 Fix an overflow bug in qsort comparison function
(cherry picked from commit 7bbc9554fe6ed4bf441bbcde2c1b72b04ce88d8c)
2024-07-24 09:38:15 +08:00
openeuler-ci-bot
39bac7e40d
!149 [sync] PR-140: first check if Valgrind supports the build architecture
From: @openeuler-sync-bot 
Reviewed-by: @hellotcc 
Signed-off-by: @hellotcc
2024-05-29 07:26:16 +00:00
Yinsist
48502eb237 first check if Valgrind supports the architecture
(cherry picked from commit 505cb66c308f971b5ef07d95034f9b54babda4b2)
2024-05-23 22:23:12 +08:00
openeuler-ci-bot
86dfdad4b1
!147 [sync] PR-145: libhns: Some bugfixes and cleanups
From: @openeuler-sync-bot 
Reviewed-by: @hellotcc 
Signed-off-by: @hellotcc
2024-05-11 15:32:41 +00:00
Juan Zhou
0c68661b7a Some bugfixes and cleanups
1#2. Replace private patch
3. Remove unused return value
4. Fix several context locks issue
5. libhns: Clean up signed-unsigned mix with relational issue
6. libhns: Fix missing flag when creating qp with hnsdv interface

Signed-off-by: Juan Zhou <zhoujuan51@h-partners.com>
(cherry picked from commit 43ec513a2eec4e13e258257bf1daa1a1b71ff1e4)
2024-05-11 23:02:12 +08:00
openeuler-ci-bot
afdae2718e
!142 [sync] PR-141: Fix flexible WQE buffer page related issues
From: @openeuler-sync-bot 
Reviewed-by: @hellotcc 
Signed-off-by: @hellotcc
2024-05-07 08:24:40 +00:00
Juan Zhou
976b7cb732 Fix flexible WQE buffer page related issues
1. Fix missing flexible WQE buffer page flag
2. Fix ext_sge page size

Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
Signed-off-by: Juan Zhou <zhoujuan51@h-partners.com>
(cherry picked from commit e8a0671cf69d32baa72c4430f2b3ac279fbce147)
2024-05-07 09:37:51 +08:00
openeuler-ci-bot
15b9649106
!139 [sync] PR-134: hns roce支持ROH
From: @openeuler-sync-bot 
Reviewed-by: @hellotcc 
Signed-off-by: @hellotcc
2024-04-25 08:45:38 +00:00
Ke Chen
11ba1f81cf Support hns ROH mode
These patches support running the roce function in hns roh mode

Signed-off-by: Ke Chen <chenke54@huawei.com>
(cherry picked from commit 1938be0036f3cfe14d1b5a77b03884a06f9009e5)
2024-04-25 16:20:30 +08:00
openeuler-ci-bot
ba7f5eacd4
!138 [sync] PR-132: 支持hns roce DCA模式
From: @openeuler-sync-bot 
Reviewed-by: @hellotcc 
Signed-off-by: @hellotcc
2024-04-25 08:17:10 +00:00
Ran Zhou
1873a08ca9 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: Ran Zhou <zhouran10@h-partners.com>
(cherry picked from commit 994c08d7e68ba906b7f7c16e8528700508af94b1)
2024-04-25 15:45:54 +08:00
openeuler-ci-bot
3b12fff100
!137 [sync] PR-129: Support reporting wc as software mode
From: @openeuler-sync-bot 
Reviewed-by: @hellotcc 
Signed-off-by: @hellotcc
2024-04-25 07:45:39 +00:00
Ran Zhou
bcec11e416 Support reporting wc as software mode.
When HW is in resetting stage, we could not poll back all the
expected work completions as the HW won't generate cqe anymore.
This patch allows driver to compose the expected wc instead of the HW
during resetting stage. Once the hardware finished resetting, we can
poll cq from hardware again.

Signed-off-by: Ran Zhou <zhouran10@h-partners.com>
(cherry picked from commit 5494e44cf97e65d858c8f7376c0424a833dc8323)
2024-04-25 15:26:12 +08:00
openeuler-ci-bot
ecc5044f28
!136 [sync] PR-128: Support thread domain and parent domain for lock-free
From: @openeuler-sync-bot 
Reviewed-by: @hellotcc 
Signed-off-by: @hellotcc
2024-04-25 07:24:18 +00:00
Ran Zhou
17e81e0a29 Support thread domain and parent domain for lock-free
Add support for thread domain (TD) and parent domain (PAD).
When a parent domain holds a thread domain, the associated
data path will be set to lock-free mode to improve performance.

Signed-off-by: Ran Zhou <zhouran10@h-partners.com>
(cherry picked from commit 60b829d79704e6b4611d7040265a7cf852057931)
2024-04-25 14:54:08 +08:00
openeuler-ci-bot
ed1f1b7464
!127 [sync] PR-125: Backport congestion control from mainline
From: @openeuler-sync-bot 
Reviewed-by: @hellotcc 
Signed-off-by: @hellotcc
2024-04-25 06:48:31 +00:00
Ran Zhou
4ef1840696 Backport congestion control from mainline
Add support for configuration of congestion control algorithms in QP
granularity with direct verbs hnsdv_create_qp().

Reference: https://github.com/linux-rdma/rdma-core/pull/1426/commits

Signed-off-by: Ran Zhou <zhouran10@h-partners.com>
(cherry picked from commit f4a8396bcf41ea12bf3e7b73793e60bfba097377)
2024-03-15 17:17:24 +08:00
openeuler-ci-bot
860790edbe
!124 Support DSCP
From: @zzry 
Reviewed-by: @hellotcc 
Signed-off-by: @hellotcc
2024-02-26 07:08:36 +00:00
Ran Zhou
0ecff9e585 Support DSCP
Add user mode DSCP function throughthe
mapping of dscp-tc configured in kernel mode.

Signed-off-by: Ran Zhou <zhouran10@h-partners.com>
2024-02-22 17:35:22 +08:00
openeuler-ci-bot
e86a397cfb
!123 Updata to v50.0
From: @zzry 
Reviewed-by: @hellotcc 
Signed-off-by: @hellotcc
2024-02-06 13:23:54 +00:00
Ran Zhou
66a7e0b9a7 Update to v50.0
Update version of rdma-core to v50.0.The subsequent maintenance
and upgrade will be performed based on this baseline.

Signed-off-by: Ran Zhou <zhouran10@h-partners.com>
2024-02-06 20:18:17 +08:00
openeuler-ci-bot
ea5b17cb96
!121 Add neccessary dependencies for rdma-core-devel
From: @zzry 
Reviewed-by: @hellotcc 
Signed-off-by: @hellotcc
2024-01-26 06:41:12 +00:00
Ran Zhou
652f065dfe Add neccessary dependencies for rdma-core-devel
Add neccessary dependencies for the rdma-core-devel to
avoid missing link to shared object after packaging.

Signed-off-by: Ran Zhou <zhouran10@h-partners.com>
2024-01-25 20:48:02 +08:00
openeuler-ci-bot
295554e2a6
!117 Separate some packages from rdma-core
From: @stinft 
Reviewed-by: @hellotcc 
Signed-off-by: @hellotcc
2023-12-22 09:40:12 +00:00
孙苏皖
daa7746018 Separate some packages from rdma-core
Separate some functions from the rdma-core main package to reduce the
dependencies required by the main package.

Signed-off-by: 孙苏皖 <sunsuwan3@huawei.com>
Singed-off-by: Juan Zhou <zhoujuan51@h-partners.com>
2023-12-22 13:48:17 +08:00
openeuler-ci-bot
31cdd94ae6
!114 Fix congest type flags error and replace a corrupt patch
From: @zzry 
Reviewed-by: @hellotcc 
Signed-off-by: @hellotcc
2023-12-12 12:55:05 +00:00
Ran Zhou
4a7be9bb67 Fix congest type flags error and replace a corrupt patch
Currently, there is a repeated judgement in check_qp_congest_type
whenever enable LDCP or HC3, the congest type flags all will be set
on LDCP.

This patch fixes this bug and replace a corrupt patch--0077, which
has a change that directly acts on patch but not code. This act
will disrupt the patch format.

Signed-off-by: Ran Zhou <zhouran10@h-partners.com>
2023-12-12 19:03:06 +08:00
openeuler-ci-bot
254fe16d77
!113 [sync] PR-111: Fix missing DB when compiler does not support SVE
From: @openeuler-sync-bot 
Reviewed-by: @li-yangyang20 
Signed-off-by: @li-yangyang20
2023-12-08 09:42:42 +00:00
Ran Zhou
19429f69c9 Fix missing DB when compiler does not support SVE
Currently, if compiler does not support SVE, hns_roce_sve_write512() will
be a empty function, which means that this doorbell will be missed when
HNS_ROCE_QP_CAP_SVE_DIRECT_WQE is set in qp flag.

This patch ensures that driver will at least generate the DB regardless
of whether SVE DWQE is supported or not.

Signed-off-by: Chengchang Tang <tangchengchang@huawei.com
Signed-off-by: Ran Zhou <zhouran10@h-partners.com>
(cherry picked from commit e5fcbc2552eda0d654e55ae0758280d6e51804ea)
2023-12-08 17:23:51 +08:00
openeuler-ci-bot
65a51ac02e
!110 [sync] PR-108: Bugfix for lock and owner bit
From: @openeuler-sync-bot 
Reviewed-by: @hellotcc 
Signed-off-by: @hellotcc
2023-12-08 03:58:42 +00:00
Ran Zhou
626267239b Bugfix for lock and owner bit
Correct the return of error code, add init of pthread spinlock and mutex
judgement, remove a repeated init of pthread lock init, fix owner bit
when SQ wrqps.

Signed-off-by: Wenpeng Liang <liangwenpeng@huawei.com>
Signed-off-by: Chengchang Tang <tangchengchang@huawei.com
Signed-off-by: Ran Zhou <zhouran10@h-partners.com>
(cherry picked from commit 794f3792a7267d0586bfac7d67507a27a5e61305)
2023-12-07 19:10:53 +08:00