Skip to contentSkip to conversation

: cxgb4/rdma patches

PATCH In review Pramod Kumar 3 participants 5 messages Oct 16, 2014 3 messages not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover : cxgb4/rdma patches

PATCH 1/2: Handles debug interface buffer size. Since IPv6 size is bigger than IPv4 hence increased debug interface buffer size.

PATCH 2/2: 0B MRs need some tweaks to work correctly with HW hence handling the same throug this patch.

Pramod Kumar (2):
cxgb4/rdma:Increase epd buff size for debug interface cxgb4/rdma: configure 0B MRs to match HW implementation

 drivers/infiniband/hw/cxgb4/device.c |    2 +-
 drivers/infiniband/hw/cxgb4/mem.c    |    6 ++++--
 2 files changed, 5 insertions(+), 3 deletions(-)

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 1413452189-5427-1-git-send-email-pramod-ut6Up61K2wZBDgjK7y7TUQ@public.gmane.org

#2 lore raw

PATCH 1/2 cxgb4/rdma:Increase epd buff size for debug interface

IPv6 address string lengths require increasing
the buffer size for debugfs handlers.

---
 drivers/infiniband/hw/cxgb4/device.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/infiniband/hw/cxgb4/device.c +1 -1
index 72f1f05..eb5df4e 100644
@@ -670,7 +670,7 @@ static int ep_open(struct inode *inode, struct file *file)
 	idr_for_each(&epd->devp->stid_idr, count_idrs, &count);
 	spin_unlock_irq(&epd->devp->lock);
 
-	epd->bufsize = count * 160;
+	epd->bufsize = count * 240;
 	epd->buf = vmalloc(epd->bufsize);
 	if (!epd->buf) {
 		ret = -ENOMEM;
Signature · 6 lines
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#3 lore raw

PATCH 2/2 cxgb4/rdma: configure 0B MRs to match HW implementation

In reply to a message not in the archive

0B MRs need some tweaks to work correctly with HW. So when writing the TPTE, if the MR length is zero we now do:

1) turn off all permissions
2) set the length to -1

While functionality/capabilities of the MR is the same with these
changes, it resolves a dapltest 0B RDMA Read test failure
Based on original work by Steve Wise <[email protected]>

---
 drivers/infiniband/hw/cxgb4/mem.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
drivers/infiniband/hw/cxgb4/mem.c +4 -2
index ec7a298..a299ba8 100644
@@ -369,9 +369,11 @@ static int register_mem(struct c4iw_dev *rhp, struct c4iw_pd *php,
 	int ret;
 
 	ret = write_tpt_entry(&rhp->rdev, 0, &stag, 1, mhp->attr.pdid,
-			      FW_RI_STAG_NSMR, mhp->attr.perms,
+			      FW_RI_STAG_NSMR, mhp->attr.len ?
+			      mhp->attr.perms : 0,
 			      mhp->attr.mw_bind_enable, mhp->attr.zbva,
-			      mhp->attr.va_fbo, mhp->attr.len, shift - 12,
+			      mhp->attr.va_fbo, mhp->attr.len ?
+			      mhp->attr.len : -1, shift - 12,
 			      mhp->attr.pbl_size, mhp->attr.pbl_addr);
 	if (ret)
 		return ret;
Signature · 6 lines
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 1413452189-5427-3-git-send-email-pramod-ut6Up61K2wZBDgjK7y7TUQ@public.gmane.org

#5 lore raw

Re: [PATCH 2/2] cxgb4/rdma: configure 0B MRs to match HW implementation

Quoted 1 line · Pramod Kumar

0B MRs need some tweaks to work correctly with HW.

What's the use case?
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 543F9C7D.8010401-VPRAkNaXOzVWk0Htik3J/[email protected]

#7 lore raw

RE: [PATCH 2/2] cxgb4/rdma: configure 0B MRs to match HW implementation

Quoted 10 lines

-----Original Message-----
From: Or Gerlitz [mailto:ogerlitz-VPRAkNaXOzVWk0Htik3J/[email protected]]
Sent: Thursday, October 16, 2014 5:23 AM
To: Pramod Kumar
Cc: [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH 2/2] cxgb4/rdma: configure 0B MRs to match HW implementation

Quoted 4 lines
Quoted 1 line · Pramod Kumar

0B MRs need some tweaks to work correctly with HW.

What's the use case?

The dapltest tool does this if you run the transaction test and do 0B IO. A customer discovered the issue.

Steve.

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html