components/open-fabrics/libmlx4/patches/005-libmlx4-blueflame.patch
author Alex Chiu <Alex.Chiu@Oracle.COM>
Tue, 20 Sep 2016 10:52:06 -0700
changeset 6935 6b52769f860f
permissions -rw-r--r--
24617163 Missing code in libmlx4 when upgrading from ofed-1.5.3 to ofed-3.18
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6935
6b52769f860f 24617163 Missing code in libmlx4 when upgrading from ofed-1.5.3 to ofed-3.18
Alex Chiu <Alex.Chiu@Oracle.COM>
parents:
diff changeset
     1
#This patch was developed both in-house and from outside. We plan to submit it
6b52769f860f 24617163 Missing code in libmlx4 when upgrading from ofed-1.5.3 to ofed-3.18
Alex Chiu <Alex.Chiu@Oracle.COM>
parents:
diff changeset
     2
#upstream, but do not yet have a target date for doing so
6b52769f860f 24617163 Missing code in libmlx4 when upgrading from ofed-1.5.3 to ofed-3.18
Alex Chiu <Alex.Chiu@Oracle.COM>
parents:
diff changeset
     3
#
6b52769f860f 24617163 Missing code in libmlx4 when upgrading from ofed-1.5.3 to ofed-3.18
Alex Chiu <Alex.Chiu@Oracle.COM>
parents:
diff changeset
     4
# HG changeset patch
6b52769f860f 24617163 Missing code in libmlx4 when upgrading from ofed-1.5.3 to ofed-3.18
Alex Chiu <Alex.Chiu@Oracle.COM>
parents:
diff changeset
     5
# Parent  710c2a999a0a5469c1dd4ea1c21b279debb26a3b
6b52769f860f 24617163 Missing code in libmlx4 when upgrading from ofed-1.5.3 to ofed-3.18
Alex Chiu <Alex.Chiu@Oracle.COM>
parents:
diff changeset
     6
24617163 Missing code in libmlx4 when upgrading from ofed-1.5.3 to ofed-3.18
6b52769f860f 24617163 Missing code in libmlx4 when upgrading from ofed-1.5.3 to ofed-3.18
Alex Chiu <Alex.Chiu@Oracle.COM>
parents:
diff changeset
     7
6b52769f860f 24617163 Missing code in libmlx4 when upgrading from ofed-1.5.3 to ofed-3.18
Alex Chiu <Alex.Chiu@Oracle.COM>
parents:
diff changeset
     8
diff -r 710c2a999a0a src/qp.c
6b52769f860f 24617163 Missing code in libmlx4 when upgrading from ofed-1.5.3 to ofed-3.18
Alex Chiu <Alex.Chiu@Oracle.COM>
parents:
diff changeset
     9
--- a/src/qp.c	Fri Sep 16 10:24:06 2016 -0700
6b52769f860f 24617163 Missing code in libmlx4 when upgrading from ofed-1.5.3 to ofed-3.18
Alex Chiu <Alex.Chiu@Oracle.COM>
parents:
diff changeset
    10
+++ b/src/qp.c	Tue Sep 20 08:12:11 2016 -0700
6b52769f860f 24617163 Missing code in libmlx4 when upgrading from ofed-1.5.3 to ofed-3.18
Alex Chiu <Alex.Chiu@Oracle.COM>
parents:
diff changeset
    11
@@ -405,7 +405,8 @@
6b52769f860f 24617163 Missing code in libmlx4 when upgrading from ofed-1.5.3 to ofed-3.18
Alex Chiu <Alex.Chiu@Oracle.COM>
parents:
diff changeset
    12
 out:
6b52769f860f 24617163 Missing code in libmlx4 when upgrading from ofed-1.5.3 to ofed-3.18
Alex Chiu <Alex.Chiu@Oracle.COM>
parents:
diff changeset
    13
 	ctx = to_mctx(ibqp->context);
6b52769f860f 24617163 Missing code in libmlx4 when upgrading from ofed-1.5.3 to ofed-3.18
Alex Chiu <Alex.Chiu@Oracle.COM>
parents:
diff changeset
    14
 
6b52769f860f 24617163 Missing code in libmlx4 when upgrading from ofed-1.5.3 to ofed-3.18
Alex Chiu <Alex.Chiu@Oracle.COM>
parents:
diff changeset
    15
-	if (nreq == 1 && inl && size > 1 && size <= ctx->bf_buf_size / 16) {
6b52769f860f 24617163 Missing code in libmlx4 when upgrading from ofed-1.5.3 to ofed-3.18
Alex Chiu <Alex.Chiu@Oracle.COM>
parents:
diff changeset
    16
+	if (ctx->ibv_ctx.device->blueflame_enabled && nreq == 1 && inl &&
6b52769f860f 24617163 Missing code in libmlx4 when upgrading from ofed-1.5.3 to ofed-3.18
Alex Chiu <Alex.Chiu@Oracle.COM>
parents:
diff changeset
    17
+	    size > 1 && size <= ctx->bf_buf_size / 16) {
6b52769f860f 24617163 Missing code in libmlx4 when upgrading from ofed-1.5.3 to ofed-3.18
Alex Chiu <Alex.Chiu@Oracle.COM>
parents:
diff changeset
    18
 		ctrl->owner_opcode |= htonl((qp->sq.head & 0xffff) << 8);
6b52769f860f 24617163 Missing code in libmlx4 when upgrading from ofed-1.5.3 to ofed-3.18
Alex Chiu <Alex.Chiu@Oracle.COM>
parents:
diff changeset
    19
 		*(uint32_t *) ctrl->reserved |= qp->doorbell_qpn;
6b52769f860f 24617163 Missing code in libmlx4 when upgrading from ofed-1.5.3 to ofed-3.18
Alex Chiu <Alex.Chiu@Oracle.COM>
parents:
diff changeset
    20
 		/*