Commit cff6495b authored by Michal Berger's avatar Michal Berger Committed by Tomasz Zawadzki
Browse files

pkgdep/git: Bump OOT irdma to latest release 1.12.55



This bump requires an extra patch ported from the upstream driver.

Change-Id: Idf61cc72ff0e0c20877cd3dbda34b156d26082e2
Signed-off-by: default avatarMichal Berger <michal.berger@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/20715


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarKonrad Sztyber <konrad.sztyber@intel.com>
Reviewed-by: default avatarTomasz Zawadzki <tomasz.zawadzki@intel.com>
parent d19c523a
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -304,7 +304,7 @@ function install_igb_uio() {
}

function install_irdma() {
	local RDMA_CORE_VERSION=42.0
	local RDMA_CORE_VERSION=44.0
	local RDMA_CORE=https://github.com/linux-rdma/rdma-core/releases/download/v$RDMA_CORE_VERSION/rdma-core-$RDMA_CORE_VERSION.tar.gz

	if [[ $ID != fedora ]]; then
@@ -321,6 +321,9 @@ function install_irdma() {
	curl -L -o- "$IRDMA_DRIVER" | tar -C "$GIT_REPOS" -xzf -
	[[ -e $GIT_REPOS/irdma-$IRDMA_VERSION/build.sh ]]

	if ge "$kernel_ver" 6.5.1; then
		patch --dir="$GIT_REPOS/irdma-$IRDMA_VERSION" -p1
	fi < "$rootdir/test/common/config/pkgdep/patches/irdma/0001-irdma-avoid-fortify-string-warning.patch"
	(
		cd "$GIT_REPOS/irdma-$IRDMA_VERSION"
		sed -i "s/IRDMA_FLUSH_DELAY_MS 1500/IRDMA_FLUSH_DELAY_MS 50/" \
@@ -496,7 +499,7 @@ function install_sources() {
}

GIT_VERSION=2.25.1
IRDMA_VERSION=1.11.16.6
IRDMA_VERSION=1.12.55
ICE_VERSION=1.12.7

BPFTRACE_VERSION=${BPFTRACE_VERSION:-42d55a0}
@@ -521,7 +524,7 @@ export DRIVER_LOCATION_QAT
export GIT_REPO_GIT
: ${GIT_REPO_DPDK_KMODS=http://dpdk.org/git/dpdk-kmods}
export GIT_REPO_DPDK_KMODS
: ${IRDMA_DRIVER=https://downloadmirror.intel.com/763932/irdma-$IRDMA_VERSION.tgz}
: ${IRDMA_DRIVER=https://downloadmirror.intel.com/786088/irdma-$IRDMA_VERSION.tgz}
export IRDMA_DRIVER
: ${ICE_DRIVER="https://sourceforge.net/projects/e1000/files/ice%20stable/$ICE_VERSION/ice-$ICE_VERSION.tar.gz"}
export ICE_DRIVER
+36 −0
Original line number Diff line number Diff line
This patch is a port of the upstream commit missing from latest oot irdma
release (1.12.55):

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b002760f877c0d91ecd3c78565b52f4bbac379dd

---
 src/irdma/uk.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/irdma/uk.c b/src/irdma/uk.c
index 13b9006..dcd98db 100644
--- a/src/irdma/uk.c
+++ b/src/irdma/uk.c
@@ -99,16 +99,16 @@ static int irdma_nop_1(struct irdma_qp_uk *qp)
  */
 void irdma_clr_wqes(struct irdma_qp_uk *qp, u32 qp_wqe_idx)
 {
-	__le64 *wqe;
+	struct irdma_qp_quanta *sq;
 	u32 wqe_idx;
 
 	if (!(qp_wqe_idx & 0x7F)) {
 		wqe_idx = (qp_wqe_idx + 128) % qp->sq_ring.size;
-		wqe = qp->sq_base[wqe_idx].elem;
+		sq = qp->sq_base + wqe_idx;
 		if (wqe_idx)
-			memset(wqe, qp->swqe_polarity ? 0 : 0xFF, 0x1000);
+			memset(sq, qp->swqe_polarity ? 0 : 0xFF, 128 * sizeof(*sq));
 		else
-			memset(wqe, qp->swqe_polarity ? 0xFF : 0, 0x1000);
+			memset(sq, qp->swqe_polarity ? 0xFF : 0, 128 * sizeof(*sq));
 	}
 }
 
--