Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4079118imm; Mon, 17 Sep 2018 07:54:20 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbJ3cUBpVPM4nH8vPGQy/dTTJc58iMF8ks2hujgDecmmeMIWu+cZzfmbWSjWCtCL5lTPeDZ X-Received: by 2002:a17:902:4403:: with SMTP id k3-v6mr24890735pld.243.1537196060823; Mon, 17 Sep 2018 07:54:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537196060; cv=none; d=google.com; s=arc-20160816; b=XqQ/WjCIYLYm0UneYNUF836UNvJk8eqkVayroDLAxZepLWmbUB6nHzxFQ/5TkLyM32 CYPat1DGUdTeKuTQ+kZcaGzMoqJaqEVOuQiQslbOExBGz67CRHO/LMl3s8eJhEw3JGGR KnL4RG0fUeffXuZWM2bawwIZRYjeHWxCa8ZNDe/WJHKOE7UK8RIESeNii3YkG62zr6Ys cDtFJpyC7V+PnSGSFzDkcAcRw7b/sm1BtzX5OZSeE7Nt6m6pA7c9Mxs9YvUErfxW+uKk hFU43X7yjKU2Nx2Q17OeX6JQCLniiyM8HEEUuNEkhGFdZHhXTWrv1W0WAr8bFPHpDfkh ukdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Bq3Dv7WvshUpIPYxkw9jvdBU40mGWOQA/v/A/QmMhg8=; b=E+CWmkl7QePo171ypSn2daDX6ONekV76jLOc4hCCLnasM+Xlltdud7s3CRPPibwZrr Iar5tk5tx8T5MLQrPOo9w03s9+fpIW57BYosLG2kh9e7ctMdIgqpr/uiVPtAemlYSyFC rKMC7Uymcz1SPsJca3Wu2zpzoWAIFubijcYyZ1ZRxr9kLUAp/M5WYn+9I+Jb9jd8PhA3 trYH//hq0e4BLV6d/hmy3TXXmlXYYmHQFgB9UULOWH4+kxT52rwenLtxN6pyOotYeX0/ O/B1mQfzlelxnxW7drOyEOkz2Y8YbiZr2O/u7qH3t0xYznk+LUFNZ5mPInUDKlA6v/BM b3Rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=nju4Yq1j; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i12-v6si15912566pgr.267.2018.09.17.07.54.05; Mon, 17 Sep 2018 07:54:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=nju4Yq1j; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729074AbeIQUVV (ORCPT + 99 others); Mon, 17 Sep 2018 16:21:21 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:59736 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728614AbeIQUVV (ORCPT ); Mon, 17 Sep 2018 16:21:21 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w8HEhnsO070894; Mon, 17 Sep 2018 14:53:31 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=Bq3Dv7WvshUpIPYxkw9jvdBU40mGWOQA/v/A/QmMhg8=; b=nju4Yq1jh/W6Lq+2ZTaD37oeAkp/PuF8O2dlmNOTjesgDnjvATU1Ciyj1XOsgFNKxtud 7C8WGH6eODXyzEgNxtH59jLQp+IQ9YAPeM29CTO156PLyyns0WXTVk6DoD+W+yYdFrwv UVMnlV3Hqof3XxNYAe7knzvhdKrkPF1mQusqO8ppTcOQX/Kyw/ZsIyifGxu6NF6Hrm+P 534ortIQsmhzN9WfD7y0LoZcutBbAcq94g0FUtez0HAZwIFhrMDBGI7VQH5GaoP32D5h QPbCZM410Mc1m0y1NrdPJ2w5Zh01woUxaI4tagfpDs5gekkZj5tZivNelTfwWDy9y+db GA== Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp2120.oracle.com with ESMTP id 2mgtqqpmu2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 17 Sep 2018 14:53:30 +0000 Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w8HErPxg006042 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 17 Sep 2018 14:53:25 GMT Received: from abhmp0009.oracle.com (abhmp0009.oracle.com [141.146.116.15]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w8HErPBP005193; Mon, 17 Sep 2018 14:53:25 GMT Received: from lab02.no.oracle.com (/10.172.144.56) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 17 Sep 2018 07:53:24 -0700 From: =?UTF-8?q?H=C3=A5kon=20Bugge?= To: Doug Ledford , yishaih@mellanox.com, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, jgg@ziepe.ca Cc: jackm@dev.mellanox.co.il Subject: [PATCH 1/2] IB/mlx4: Enable debug print of SMPs Date: Mon, 17 Sep 2018 16:53:08 +0200 Message-Id: <20180917145309.1255642-2-Haakon.Bugge@oracle.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180917145309.1255642-1-Haakon.Bugge@oracle.com> References: <20180917145309.1255642-1-Haakon.Bugge@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9018 signatures=668708 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=712 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1809170149 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org IB Subnet Management Packets (SMPs) were excluded from debug prints. Fixed by enabling print even on QP0 MADs. Signed-off-by: HÃ¥kon Bugge --- drivers/infiniband/hw/mlx4/mad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/mlx4/mad.c b/drivers/infiniband/hw/mlx4/mad.c index e5466d786bb1..1718715cc094 100644 --- a/drivers/infiniband/hw/mlx4/mad.c +++ b/drivers/infiniband/hw/mlx4/mad.c @@ -807,7 +807,7 @@ static int ib_process_mad(struct ib_device *ibdev, int mad_flags, u8 port_num, int err; struct ib_port_attr pattr; - if (in_wc && in_wc->qp->qp_num) { + if (in_wc && in_wc->qp) { pr_debug("received MAD: slid:%d sqpn:%d " "dlid_bits:%d dqpn:%d wc_flags:0x%x, cls %x, mtd %x, atr %x\n", in_wc->slid, in_wc->src_qp, -- 2.14.3