: cxgb4/rdma patches
Subsystems (2)
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
PATCH 1/2 cxgb4/rdma:Increase epd buff size for debug interface
In reply to a message not in the archiveIPv6 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
@@ -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
PATCH 2/2 cxgb4/rdma: configure 0B MRs to match HW implementation
In reply to a message not in the archive0B 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
@@ -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
Re: [PATCH 2/2] cxgb4/rdma: configure 0B MRs to match HW implementation
In reply to a message not in the archiveQuoted 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
RE: [PATCH 2/2] cxgb4/rdma: configure 0B MRs to match HW implementation
In reply to a message not in the archiveQuoted 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