[ewg] [PATCH] RDMA/nes: Fix for fast memory registration length
Tatyana Nikolova
Tatyana.E.Nikolova at intel.com
Fri Jan 6 16:18:30 PST 2012
Zero high order word of fast memory registration (FMR) length field.
FMR length field is 32 bits, so high word should always be zero.
Signed-off-by: Tatyana Nikolova <Tatyana.E.Nikolova at intel.com>
Signed-off-by: Donald Wood <Donald.E.Wood at intel.com>
---
kernel_patches/fixes/nes_0067_fmr_length_fix.patch | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
create mode 100644 kernel_patches/fixes/nes_0067_fmr_length_fix.patch
diff --git a/kernel_patches/fixes/nes_0067_fmr_length_fix.patch b/kernel_patches/fixes/nes_0067_fmr_length_fix.patch
new file mode 100644
index 0000000..a5ae034
--- /dev/null
+++ b/kernel_patches/fixes/nes_0067_fmr_length_fix.patch
@@ -0,0 +1,16 @@
+diff --git a/drivers/infiniband/hw/nes/nes_verbs.c b/drivers/infiniband/hw/nes/nes_verbs.c
+index d33f563..bd09a19 100644
+--- a/drivers/infiniband/hw/nes/nes_verbs.c
++++ b/drivers/infiniband/hw/nes/nes_verbs.c
+@@ -3651,6 +3651,8 @@ static int nes_post_send(struct ib_qp *ibqp, struct ib_send_wr *ib_wr,
+ NES_IWARP_SQ_FMR_WQE_LENGTH_LOW_IDX,
+ ib_wr->wr.fast_reg.length);
+ set_wqe_32bit_value(wqe->wqe_words,
++ NES_IWARP_SQ_FMR_WQE_LENGTH_HIGH_IDX, 0);
++ set_wqe_32bit_value(wqe->wqe_words,
+ NES_IWARP_SQ_FMR_WQE_MR_STAG_IDX,
+ ib_wr->wr.fast_reg.rkey);
+ /* Set page size: */
+--
+1.7.1
+
--
1.7.1
More information about the ewg
mailing list