From patchwork Sun Sep 14 13:47:51 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eli Cohen X-Patchwork-Id: 4901441 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id E677EBEEA5 for ; Sun, 14 Sep 2014 13:48:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 28CFE20200 for ; Sun, 14 Sep 2014 13:48:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 46339201FB for ; Sun, 14 Sep 2014 13:48:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752489AbaINNsR (ORCPT ); Sun, 14 Sep 2014 09:48:17 -0400 Received: from mail-wg0-f48.google.com ([74.125.82.48]:38012 "EHLO mail-wg0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752462AbaINNsR (ORCPT ); Sun, 14 Sep 2014 09:48:17 -0400 Received: by mail-wg0-f48.google.com with SMTP id m15so2704305wgh.7 for ; Sun, 14 Sep 2014 06:48:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=xpEVRCUkqE4Pldbbnusf2qkJHxe/ga1aERksmlASRAs=; b=JeOYqaAhUo9gISOWhghAhvKiEz87RM4Z8dtrybQ57MiI+l4zsMtKVen477LRZqxgeq IgVTISY9iiG5N82uR80n2+idzb2Pfrqgf+ef41piAe5beAo3ndRtqRRJHEkJ90UoozDs oDbJOCHg8BXsuPVNzGTU5/hLdikHxLi9hXPN/KCt9FyqxaahPW3pWSOpX8yqHZlSDdk1 bkgeIM9hkx/ANOmEODlElIYh3kddBe+dPOwrHubxw5jxPvqyjrbUXLzJczQQQrHc0JCl ScayCpjP2oawszNEeYF4cW4M/s2ZwTylBISzGTz8TJ/PDPK6d1tDpg+jyZdyuv0eAB3A YRtg== X-Gm-Message-State: ALoCoQmALL2bwB5g9badaODavYz8tjqWJEOhD0PeiA/dxN2ruUVan1Suy/qN/SlaCfjVjZsmDEup X-Received: by 10.180.94.40 with SMTP id cz8mr6905896wib.3.1410702485808; Sun, 14 Sep 2014 06:48:05 -0700 (PDT) Received: from localhost (out.voltaire.com. [193.47.165.251]) by mx.google.com with ESMTPSA id mc20sm8248154wic.2.2014.09.14.06.48.05 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 14 Sep 2014 06:48:05 -0700 (PDT) From: Eli Cohen X-Google-Original-From: Eli Cohen To: roland@kernel.org, dledford@redhat.com Cc: linux-rdma@vger.kernel.org, ogerlitz@mellanox.com, amirv@mellanox.com, Eli Cohen Subject: [PATCH for-next 2/6] IB/mlx5: Improve debug prints in mlx5_ib_reg_user_mr Date: Sun, 14 Sep 2014 16:47:51 +0300 Message-Id: <1410702475-28826-3-git-send-email-eli@mellanox.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1410702475-28826-1-git-send-email-eli@mellanox.com> References: <1410702475-28826-1-git-send-email-eli@mellanox.com> Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Print access flags and error code from ib_umem_get. Signed-off-by: Eli Cohen --- drivers/infiniband/hw/mlx5/mr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/infiniband/hw/mlx5/mr.c b/drivers/infiniband/hw/mlx5/mr.c index 80b3c63eab5d..8ee7cb46e059 100644 --- a/drivers/infiniband/hw/mlx5/mr.c +++ b/drivers/infiniband/hw/mlx5/mr.c @@ -881,12 +881,12 @@ struct ib_mr *mlx5_ib_reg_user_mr(struct ib_pd *pd, u64 start, u64 length, int order; int err; - mlx5_ib_dbg(dev, "start 0x%llx, virt_addr 0x%llx, length 0x%llx\n", - start, virt_addr, length); + mlx5_ib_dbg(dev, "start 0x%llx, virt_addr 0x%llx, length 0x%llx, access_flags 0x%x\n", + start, virt_addr, length, access_flags); umem = ib_umem_get(pd->uobject->context, start, length, access_flags, 0); if (IS_ERR(umem)) { - mlx5_ib_dbg(dev, "umem get failed\n"); + mlx5_ib_dbg(dev, "umem get failed (%ld)\n", PTR_ERR(umem)); return (void *)umem; }