[openib-general] [PATCH] ofed_1_2 Copy in the library cq rptr address only for non T3A devices.

Steve Wise swise at opengridcomputing.com
Mon Jan 29 06:40:49 PST 2007


This fixes a bug with the rev 0 Chelsio T3 hardware...

It needs to be pulled into ofed_1_2.  

Roland, it will need to be merged in with the T3 rdma driver.  I'm
maintaining this in my git tree, so I can resend it to you once you
finish reviewing/merging the T3 driver.

Thanks,

Steve.

-------


Don't copy in the library cq rptr address for T3A devices.

T3A doesn't support kernel bypass, so we must _not_ save off the lib's
cq rptr address for these devices.  Otherwise the re-arm logic will try
and use the library rptr value for T3A re-arm.

Signed-off-by: Steve Wise <swise at opengridcomputing.com>
---

 drivers/infiniband/hw/cxgb3/iwch_provider.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/infiniband/hw/cxgb3/iwch_provider.c b/drivers/infiniband/hw/cxgb3/iwch_provider.c
index 28be418..dbb3f71 100644
--- a/drivers/infiniband/hw/cxgb3/iwch_provider.c
+++ b/drivers/infiniband/hw/cxgb3/iwch_provider.c
@@ -151,7 +151,7 @@ static struct ib_cq *iwch_create_cq(stru
 	if (!chp)
 		return ERR_PTR(-ENOMEM);
 
-	if (context) {
+	if (context && !t3a_device(rhp)) {
 		if (ib_copy_from_udata(&ureq, udata, sizeof (ureq))) {
 			kfree(chp);
 			return ERR_PTR(-EFAULT);





More information about the general mailing list