106 Commits

Author SHA1 Message Date
Xin Tian
e30985bd56 libxscale: Add Yunsilicon User Space RDMA Driver
Introduce xscale provider for Yunsilicon devices.

Signed-off-by: Xin Tian <tianx@yunsilicon.com>
2025-03-04 10:11:56 +08:00
openeuler-ci-bot
8163145507
!199 libhns: Fix missing fields for SRQ WC
From: @cxh269 
Reviewed-by: @hellotcc 
Signed-off-by: @hellotcc
2025-01-23 08:24:00 +00:00
Xinghai Cen
101e41698a 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>
2025-01-23 14:41:44 +08:00
openeuler-ci-bot
5239605b29
!195 [sync] PR-193: Try sync with master codebase
From: @openeuler-sync-bot 
Reviewed-by: @LemmyHuang 
Signed-off-by: @LemmyHuang
2025-01-10 04:33:24 +00:00
Funda Wang
3c9e565e44 Try sync with master codebase
(cherry picked from commit 6ff361b3e9766a469223a94dc4aad32a7dddc20e)
2025-01-10 10:58:41 +08:00
openeuler-ci-bot
94d769ec47
!191 libhns: Fixed several bugs in libhns to openEuler-24.03-LTS
From: @cxh269 
Reviewed-by: @hellotcc 
Signed-off-by: @hellotcc
2025-01-10 02:57:22 +00:00
Xinghai Cen
b6ac52e2e9 libhns: Fixed several bugs in libhns to openEuler-24.03-LTS
Fixed several bugs in libhns:
libhns: Add error logs to help diagnosis
libhns: Fix coredump during QP destruction when send_cq == recv_cq
libhns: Fix memory leakage when DCA is enabled
libhns: Fix the exception branch of wr_start() is not locked
libhns: Fix reference to uninitialized cq pointer
libhns: Fix out-of-order issue of requester when setting FENCE
2025-01-09 20:02:07 +08:00
openeuler-ci-bot
cd89bc8a33
!158 [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:26:44 +00:00
dufuhang
e785d29dff 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:32 +08:00
openeuler-ci-bot
0908e9ea6c
!156 [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:46:16 +00:00
zhangyaqi
658eb46f18 Fix an overflow bug in qsort comparison function
(cherry picked from commit 7bbc9554fe6ed4bf441bbcde2c1b72b04ce88d8c)
2024-07-24 09:38:17 +08:00
openeuler-ci-bot
5129e28699
!140 first check if Valgrind supports the build architecture
From: @yinist 
Reviewed-by: @hellotcc 
Signed-off-by: @hellotcc
2024-05-23 14:23:04 +00:00
Yinsist
505cb66c30 first check if Valgrind supports the architecture 2024-05-12 07:43:31 +00:00
openeuler-ci-bot
80941e7b9e
!146 [sync] PR-145: libhns: Some bugfixes and cleanups
From: @openeuler-sync-bot 
Reviewed-by: @hellotcc 
Signed-off-by: @hellotcc
2024-05-11 15:13:36 +00:00
Juan Zhou
fea67b4274 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:02 +08:00
openeuler-ci-bot
ddcddf6190
!143 [sync] PR-141: Fix flexible WQE buffer page related issues
From: @openeuler-sync-bot 
Reviewed-by: @hellotcc 
Signed-off-by: @hellotcc
2024-05-08 02:38:21 +00:00
Juan Zhou
058cb01e3d 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 16:43:00 +08:00
openeuler-ci-bot
6cf19bb5af
!135 [sync] PR-134: hns roce支持ROH
From: @openeuler-sync-bot 
Reviewed-by: @hellotcc 
Signed-off-by: @hellotcc
2024-04-15 01:50:07 +00:00
Ke Chen
8146c3b058 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-12 17:07:53 +08:00
openeuler-ci-bot
381a8f927a
!133 [sync] PR-132: 支持hns roce DCA模式
From: @openeuler-sync-bot 
Reviewed-by: @hellotcc 
Signed-off-by: @hellotcc
2024-04-12 06:40:53 +00:00
Ran Zhou
b95203b1fa 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-11 20:05:17 +08:00
openeuler-ci-bot
49c53bf1fd
!131 [sync] PR-129: Support reporting wc as software mode
From: @openeuler-sync-bot 
Reviewed-by: @hellotcc 
Signed-off-by: @hellotcc
2024-03-28 13:23:03 +00:00
Ran Zhou
e56042b4e2 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-03-28 20:21:14 +08:00
openeuler-ci-bot
16fac3674f
!130 [sync] PR-128: Support thread domain and parent domain for lock-free
From: @openeuler-sync-bot 
Reviewed-by: @hellotcc 
Signed-off-by: @hellotcc
2024-03-28 12:20:32 +00:00
Ran Zhou
4e8e4d8653 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-03-28 19:19:24 +08:00
openeuler-ci-bot
2e016d7323
!126 [sync] PR-125: Backport congestion control from mainline
From: @openeuler-sync-bot 
Reviewed-by: @hellotcc 
Signed-off-by: @hellotcc
2024-03-21 09:25:02 +00:00
Ran Zhou
5e22b65799 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:10 +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
openeuler-ci-bot
23d0687033
!106 [sync] PR-105: Bugfix for wrong timing of modifying ibv_qp state to err
From: @openeuler-sync-bot 
Reviewed-by: @hellotcc 
Signed-off-by: @hellotcc
2023-12-04 08:51:11 +00:00
Ran Zhou
3a00a8a05a Bugfix for wrong timing of modifying ibv_qp state to err
Currently the QPC state in HW is modified inside the critical section of
spinlock but the ibv_qp state is modified outside. There will be a short
period when QPC state has been modified to err with ibv_qp state still
remaining RTS. WQEs during this period will still be post-send by RTS-state
ibv_qp but then dropped by err-state HW with no flush CQEs generated.

To fix this problem, the QPC state in HW and ibv_qp state should be both
modified to err inside the critical section of spinlock.

Signed-off-by: Ran Zhou <zhouran10@h-partners.com>
Signed-off-by: Yangyang Li <liyangyang20@huawei.com>
(cherry picked from commit e221c2d5c69b00dc1f1aca09781cc3ebed23b5f3)
2023-12-03 15:26:46 +08:00
openeuler-ci-bot
d9b79ed5fe
!103 [sync] PR-102: Corrects several minor issues found in review
From: @openeuler-sync-bot 
Reviewed-by: @hellotcc 
Signed-off-by: @hellotcc
2023-11-28 06:17:26 +00:00
Ran Zhou
ba7a351bb3 Corrects several minor issues found in review
The issues mainly lies in the memory empty check, variable range
inconsistency, parameter verification, and print format.

Signed-off-by: Luoyouming <luoyouming@huawei.com>
Signed-off-by: Chengchang Tang <tangchengchang@huawei.com
Signed-off-by: Ran Zhou <zhouran10@h-partners.com>
(cherry picked from commit 918525387673e173835fd287995470cbaccad784)
2023-11-28 13:19:20 +08:00
openeuler-ci-bot
648c1d4556
!100 [sync] PR-99: libhns: Get dmac from kernel driver
From: @openeuler-sync-bot 
Reviewed-by: @hellotcc 
Signed-off-by: @hellotcc
2023-11-23 06:56:29 +00:00
Ran Zhou
e6e062a6d7 Get dmac from kernel driver
As dmac is already resolved in kernel while creating AH, there is no
need to repeat the resolving in userspace. Prioritizes getting dmac
from kernel driver, unless kernel driver didn't response one.

Signed-off-by: Junxian Huang <huangjunxian6@hisilicon.com>
Signed-off-by: Ran Zhou <zhouran10@h-partners.com>
(cherry picked from commit e6ea204613586ab8d53dadee2b83eccadde447ec)
2023-11-23 13:52:17 +08:00
openeuler-ci-bot
8da2bd129c
!95 [sync] PR-84: RDMA/hns: Support STARS over RDMA
From: @openeuler-sync-bot 
Reviewed-by: @hellotcc 
Signed-off-by: @hellotcc
2023-11-03 05:54:34 +00:00
Ran Zhou
c350a79ab7 STARS is a HW scheduler. These patches support hns RoCE working in STARS mode which means RoCE will be scheduled by STARS.
Signed-off-by: Chengchang Tang <tangchengchang@huawei.com
Signed-off-by: Ran Zhou <zhouran10@h-partners.com>
(cherry picked from commit 6407ae1c796015fecebc9c82cfbc8f2988e23d43)
2023-11-03 11:54:55 +08:00
openeuler-ci-bot
bc114599bc
!94 [sync] PR-82: Add support for RDMA VF over UBL
From: @openeuler-sync-bot 
Reviewed-by: @hellotcc 
Signed-off-by: @hellotcc
2023-11-03 03:48:08 +00:00