diff mbox series

[infiniband-diags] Add latest new device ID to device white lists

Message ID 777403e4-c407-c220-e0de-f93b73d4ca27@dev.mellanox.co.il (mailing list archive)
State Not Applicable
Headers show
Series [infiniband-diags] Add latest new device ID to device white lists | expand

Commit Message

Hal Rosenstock Sept. 14, 2018, 1:52 p.m. UTC
Add BlueField device ID

Signed-off-by: Hal Rosenstock <hal@mellanox.com>
---
 libibnetdisc/src/ibnetdisc.c | 2 +-
 src/ibdiag_common.c          | 1 +
 src/vendstat.c               | 1 +
 3 files changed, 3 insertions(+), 1 deletion(-)

Comments

Ira Weiny Sept. 19, 2018, 5:50 p.m. UTC | #1
> -----Original Message-----
> From: Hal Rosenstock [mailto:hal@dev.mellanox.co.il]
> Sent: Friday, September 14, 2018 6:53 AM
> To: Weiny, Ira <ira.weiny@intel.com>
> Cc: linux-rdma@vger.kernel.org
> Subject: [PATCH infiniband-diags] Add latest new device ID to device white
> lists
> 
> 
> Add BlueField device ID
> 
> Signed-off-by: Hal Rosenstock <hal@mellanox.com>

Thanks applied,
Ira


> ---
>  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 */
> --
> 2.8.4
diff mbox series

Patch

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 */