From patchwork Tue Jun 14 20:59:21 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Wise X-Patchwork-Id: 880072 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p5EKxNIt008505 for ; Tue, 14 Jun 2011 20:59:24 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753699Ab1FNU7W (ORCPT ); Tue, 14 Jun 2011 16:59:22 -0400 Received: from smtp.opengridcomputing.com ([209.198.142.2]:43296 "EHLO smtp.opengridcomputing.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751214Ab1FNU7W (ORCPT ); Tue, 14 Jun 2011 16:59:22 -0400 Received: from build.ogc.int (build.ogc.int [10.10.0.2]) by smtp.opengridcomputing.com (Postfix) with ESMTP id D14197C773; Tue, 14 Jun 2011 15:59:21 -0500 (CDT) From: Steve Wise Subject: [PATCH 1/2] RDMA/cxgb4: Don't truncate MR lengths. To: roland@kernel.org Cc: linux-rdma@vger.kernel.org Date: Tue, 14 Jun 2011 15:59:21 -0500 Message-ID: <20110614205921.13310.85951.stgit@build.ogc.int> User-Agent: StGIT/0.14.3 MIME-Version: 1.0 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Tue, 14 Jun 2011 20:59:24 +0000 (UTC) This was left-over code from T3 that limited MR sizes to 32b. Signed-off-by: Steve Wise --- drivers/infiniband/hw/cxgb4/mem.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/infiniband/hw/cxgb4/mem.c b/drivers/infiniband/hw/cxgb4/mem.c index 273ffe4..0347eed 100644 --- a/drivers/infiniband/hw/cxgb4/mem.c +++ b/drivers/infiniband/hw/cxgb4/mem.c @@ -625,7 +625,7 @@ pbl_done: mhp->attr.perms = c4iw_ib_to_tpt_access(acc); mhp->attr.va_fbo = virt; mhp->attr.page_size = shift - 12; - mhp->attr.len = (u32) length; + mhp->attr.len = length; err = register_mem(rhp, php, mhp, shift); if (err)