127 Commits

Author SHA1 Message Date
Xinghai Cen
1f0e4e17fd libhns: Bugfixes and one debug improvement
The last commit was found when I created a XRC SRQ in
lock-free mode but failed to destroy it because of the
refcnt check added in the previous commit.

The failure was because the PAD was acquired through
ibv_srq->pd in destroy_srq(), while ibv_srq->pd wasn't
assigned when the SRQ was created by ibv_create_srq_ex().
So let's assign ibv_srq->pd in the common ibv_icmd_create_srq() ,
so that drivers can get the correct pd no matter
which api the SRQ is created by.

Signed-off-by: Xinghai Cen <cenxinghai@h-partners.com>
(cherry picked from commit 3ac30fc125c7cff122f21ff8593294060c92429f)
2025-04-29 09:55:35 +08:00
openeuler-ci-bot
d43abea599
!234 [sync] PR-231: libhns: Add support for LTTng tracing
From: @openeuler-sync-bot 
Reviewed-by: @hginjgerx 
Signed-off-by: @hginjgerx
2025-04-25 08:20:03 +00:00
Xinghai Cen
9c294146d7 libhns: Add support for LTTng tracing
Add support for LTTng tracing. For now it is used for post_send, post_recv and poll_cq.

Signed-off-by: Xinghai Cen <cenxinghai@h-partners.com>
(cherry picked from commit 76d4645e3b8a9e57b723e3f7297bda62e934d6f2)
2025-04-25 15:53:09 +08:00
openeuler-ci-bot
b8c8fcbcd2
!226 Sync some patches of master
From: @cxh269 
Reviewed-by: @hginjgerx 
Signed-off-by: @hginjgerx
2025-04-23 07:36:14 +00:00
Xinghai Cen
703ae1270e libhns: Cleanup and Bugfixes
Cleanup and Bugfixes:
        0053-libhns-Clean-up-data-type-issues.patch
        0054-libhns-Fix-wrong-max-inline-data-value.patch
        0055-libhns-Fix-wrong-order-of-spin-unlock-in-modify-qp.patch

Signed-off-by: Xinghai Cen <cenxinghai@h-partners.com>
2025-04-23 10:30:21 +08:00
Xinghai Cen
5a10c8bdbf fix some libzrdma bugs and add some optimization
Signed-off-by: 李富艳 <li.fuyan@zte.com.cn>
2025-04-23 10:30:13 +08:00
openeuler-ci-bot
e2c25aebb4
!219 libhns: Fixes some bugs for libhns
From: @cxh269 
Reviewed-by: @hginjgerx 
Signed-off-by: @hginjgerx
2025-03-31 12:54:20 +00:00
Xinghai Cen
4bfa460dd7 libhns: Fixes some bugs for libhns
driver inclusion
category: bugfix
bugzilla: https://gitee.com/src-openeuler/rdma-core/issues/IB66RT

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

Changes to be committed:
      modified:   0040-libhns-Fix-memory-leakage-when-DCA-is-enabled.patch
      new file:   0045-libhns-fix-incorrectly-using-fixed-pagesize.patch
      new file:   0046-libhns-fix-missing-new-IO-support-for-DCA.patch

Signed-off-by: Xinghai Cen <cenxinghai@h-partners.com>
2025-03-31 17:07:54 +08:00
openeuler-ci-bot
9e7e7ff539
!210 libxscale: Match dev by vid and did
From: @OGman 
Reviewed-by: @hginjgerx 
Signed-off-by: @hginjgerx
2025-03-21 02:39:00 +00:00
Xin Tian
61e358551a libxscale: Match dev by vid and did
Match dev by vid and did.

Signed-off-by: Xin Tian <tianx@yunsilicon.com>
2025-03-20 16:25:35 +08:00
openeuler-ci-bot
0cda3b8d53
!205 [sync] PR-201: libxscale: Add Yunsilicon User Space RDMA Driver
From: @openeuler-sync-bot 
Reviewed-by: @hellotcc 
Signed-off-by: @hellotcc
2025-03-05 02:47:39 +00:00
Xin Tian
881fea21ec libxscale: Add Yunsilicon User Space RDMA Driver
Introduce xscale provider for Yunsilicon devices.

Signed-off-by: Xin Tian <tianx@yunsilicon.com>
(cherry picked from commit 1eba17df9185c0ad5e2a18a696bf2098c9dd8c83)
2025-03-03 18:19:44 +08:00
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