From patchwork Fri Sep 14 13:52:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 10600803 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 567A7933 for ; Fri, 14 Sep 2018 13:52:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3C0242B75B for ; Fri, 14 Sep 2018 13:52:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 308452B75C; Fri, 14 Sep 2018 13:52:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BC1C82B754 for ; Fri, 14 Sep 2018 13:52:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727690AbeINTHV (ORCPT ); Fri, 14 Sep 2018 15:07:21 -0400 Received: from mail-qt0-f194.google.com ([209.85.216.194]:37837 "EHLO mail-qt0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727640AbeINTHV (ORCPT ); Fri, 14 Sep 2018 15:07:21 -0400 Received: by mail-qt0-f194.google.com with SMTP id n6-v6so8763848qtl.4 for ; Fri, 14 Sep 2018 06:52:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dev-mellanox-co-il.20150623.gappssmtp.com; s=20150623; h=to:cc:from:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=4degeznz0Y9AiqDRBdvgMrOigrrfeWgOcxw8mXd4uK8=; b=RH6ag1khD/SLQxSgHcHyFu6eV2D9pX7+ejx5pRnffKzE40/lPVua77zSXt8XmvgVoi J0csMTOfWeVTgYkCzTN7eLSgbSwNLyjnZMfXtxuQuB0U7R184BMv5BEz0OzcJRrRh4Nq ezUiqZJoWpxXm7RcfSVyoRfBB4EBPTqz722WI1zJgbgjKswRIkbKZ2r3zwI0m4SVT+yS YUMe1cYVmjbP6cBjvclBTSEh9v2Cwbf2xug2Lmy4tUJJ4oXARqwlKpGwGwMmSLggNK2h Wt7d8SKR0qd8c4EiUsNJWNxzJz00HzEq/UkIwDCmqWt7Rlfrjw/k49csYJhVEBW5zgOp 8TSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:cc:from:subject:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=4degeznz0Y9AiqDRBdvgMrOigrrfeWgOcxw8mXd4uK8=; b=lhoQA3FCpXhe5gXugFNMtG4EPq4M5KaC06iZ/sUt/Q0pwOROLRtTuZXlWhAdYkc6xv HEylgJ+N6MJFaKm2dlAqosLoS5sE0yqWAK0/DC1t1B1rdu2WqyuT9y5qK5mNqwl2Tzo0 vj/H2zsZA0JbQsRQTQ7IZUuPoLAAggb+M5SX0To2Jf/Q7/x2wqd8GSR8TisMJb3qKd/3 RA3Ly0mvssvB89EX61vSVnLOuwmOyt0ucSQZd5hVI+R9bh58DOROHQni3q/0RJQQJfU6 TAEeO/bmlDdmjmzVUZGCgxCuAAFih6PWiwr8/Qa4D8Ea2vQGFuI9VQj3KDV5SIRT+uq8 JQmA== X-Gm-Message-State: APzg51DkB2WdM4yRcjxXf5H3vczndUnK26M0Y8fuQanGQrV2aOwHctw/ jOqB2vZkNrq/kHlm12yIDJjwbsSmPyg= X-Google-Smtp-Source: ANB0Vdat6yZ6UB1obE1FvvdowRv1bLpPYGQgsdXaupjwxQLjWXZwfhZVWFb2Ds+fOcPa9AlBDkiVpw== X-Received: by 2002:a0c:882d:: with SMTP id 42-v6mr8778975qvl.38.1536933164247; Fri, 14 Sep 2018 06:52:44 -0700 (PDT) Received: from [192.168.1.183] (c-73-142-227-196.hsd1.ma.comcast.net. [73.142.227.196]) by smtp.googlemail.com with ESMTPSA id t17-v6sm4860172qtj.50.2018.09.14.06.52.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Sep 2018 06:52:43 -0700 (PDT) To: "Weiny, Ira" Cc: "linux-rdma@vger.kernel.org" From: Hal Rosenstock Subject: [PATCH infiniband-diags] Add latest new device ID to device white lists Message-ID: <777403e4-c407-c220-e0de-f93b73d4ca27@dev.mellanox.co.il> Date: Fri, 14 Sep 2018 09:52:41 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 Content-Language: en-US Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add BlueField device ID Signed-off-by: Hal Rosenstock --- libibnetdisc/src/ibnetdisc.c | 2 +- src/ibdiag_common.c | 1 + src/vendstat.c | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/libibnetdisc/src/ibnetdisc.c b/libibnetdisc/src/ibnetdisc.c index 05f1dc9..04bc5c5 100644 --- a/libibnetdisc/src/ibnetdisc.c +++ b/libibnetdisc/src/ibnetdisc.c @@ -208,7 +208,7 @@ static int is_mlnx_ext_port_info_supported(ibnd_port_t * port) devid == 0x1ba0 || (devid >= 0x1bd0 && devid <= 0x1bd5)))) return 1; - if ((devid >= 0x1003 && devid <= 0x101b) || + if ((devid >= 0x1003 && devid <= 0x101b) || (devid == 0xa2d2) || ((vendorid == 0x119f) && /* Bull ConnectX3 */ (devid == 0x1b33 || devid == 0x1b73 || diff --git a/src/ibdiag_common.c b/src/ibdiag_common.c index 41b749c..a3aaada 100644 --- a/src/ibdiag_common.c +++ b/src/ibdiag_common.c @@ -553,6 +553,7 @@ int is_mlnx_ext_port_info_supported(uint32_t vendorid, (devid >= 0x1bd0 && devid <= 0x1bd5)))) return 1; if ((devid >= 0x1003 && devid <= 0x101b) || + (devid == 0xa2d2) || ((vendorid == 0x119f) && /* Bull ConnectX3 */ (devid == 0x1b33 || devid == 0x1b73 || diff --git a/src/vendstat.c b/src/vendstat.c index 5a3af21..71d7b98 100644 --- a/src/vendstat.c +++ b/src/vendstat.c @@ -150,6 +150,7 @@ static uint16_t ext_fw_info_device[][2] = { {0xd2f0, 0xd2f0}, /* Quantum */ {0x01b3, 0x01b3}, /* IS-4 */ {0x1003, 0x101b}, /* Connect-X */ + {0xa2d2, 0xa2d2}, /* BlueField */ {0x1b02, 0x1b02}, /* Bull SwitchX */ {0x1b50, 0x1b50}, /* Bull SwitchX */ {0x1ba0, 0x1ba0}, /* Bull SwitchIB */