Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4273544imm; Mon, 17 Sep 2018 10:59:34 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZv51jFasbBcTQ28hOGf75HkE6JUyOOQGOykmn6ICpY7QnKLe6xA1LHgT/hKYyoyDx+Sj6v X-Received: by 2002:a65:6086:: with SMTP id t6-v6mr24568571pgu.424.1537207174804; Mon, 17 Sep 2018 10:59:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537207174; cv=none; d=google.com; s=arc-20160816; b=cOO4e0woC5xMPRfMZBnfYakfR1jlKnq8SjH1BwlT4FzumJ9lmGAEZIEXda+vDkKkjH uD16I0UJJc7fOCLDVq3qVa1DPUJQCvnCQTU0MW0WWg5ythykNK3qrFtZnhsUO9SHQrkf 2N4VytnoFcocqp6o24a+TLjwZyNQvI+vKGSN2OH2JKEumFbfMcsEH1pbfinwuK6ZLhMu q4OahnTRUPeCOrUpEZSiXSixEpM9TjIT6uoSBM8e+nzjJz491QfRkVreqpGjrSRpBWhg dzdafbpwMnLuQ3n7sBjsMIn2pHGYmoOP110poh6P58+na0S9J9N9Rm0F21DWoJm3o16X BLwA== 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=cddsLqYoFZZHRTXEdtzTm++Zusjwjx0rLK1jB0jkx9BHNl3Uq84PwLiYVGhIZFDePR gDbQssz+BQMjjjByvzaTQBrTNDhGrXvqraiFhfyWhCAzNauYDFq6RlOvKax6MuA3v4IK nl5ZG419vkbwf8pzfvx4iYxDomidBTyf8cNAknRMni75eci1PXJdwQ8HTu4CbeBvAprF YG/lT/di0kZ3j2n4pk62HeJ92H0vaBDvmujSzI18pM3MmnA0z0c+4VMOuYG9uslh2OHK kCqXvL0PPQYkCObp+iJjguNjvVatiRIxiQALGcNUjscUAZHYniBVXtJ3KW36M69Un8jS rQ9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=QqKEe1ER; 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 f10-v6si15915345pfn.85.2018.09.17.10.59.19; Mon, 17 Sep 2018 10:59:34 -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=QqKEe1ER; 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 S1728242AbeIQXZq (ORCPT + 99 others); Mon, 17 Sep 2018 19:25:46 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:59088 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727329AbeIQXZq (ORCPT ); Mon, 17 Sep 2018 19:25:46 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w8HHs9OJ128930; Mon, 17 Sep 2018 17:57:15 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=QqKEe1ERBGDLQQb85Ix2lcdKyJThsvD8fhf7c2tAaOy2/TNkwmwWzbLuyxcZb06PRHiL JKTxrSPulO4lAFwNL2pSiwLZ0Z2qRf0oCl+Vz4vK8cNPQJV9Z4Kz5iYgSGx3/9ha7ajt tSIiqG8D7aaHOgdHnvH5CSF29Ch9wE9eeS4wMXChPxlivntqQuSm5Lzfu0JayruJR1ZF XRPXfekvGUNf0nMpkpOh24IxYQmjxQrqKKx19fo5XJ/suQcD/XUWAorrf8cOcATb2QRE XBemZiF0oSc2/lrINuHZ6Ms+XPhYh+Q39mfXRE1qpG2x6jQwvjjUUrcBzsc2FWGUxZtl Ag== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp2120.oracle.com with ESMTP id 2mgt1pfvwf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 17 Sep 2018 17:57:15 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w8HHvFiM008467 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 17 Sep 2018 17:57:15 GMT Received: from abhmp0010.oracle.com (abhmp0010.oracle.com [141.146.116.16]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w8HHvEYQ008974; Mon, 17 Sep 2018 17:57:14 GMT Received: from lab02.no.oracle.com (/10.172.144.56) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 17 Sep 2018 10:57:14 -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 19:56:57 +0200 Message-Id: <20180917175658.1261435-2-Haakon.Bugge@oracle.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180917175658.1261435-1-Haakon.Bugge@oracle.com> References: <20180917175658.1261435-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=9019 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-1809170178 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