Message ID | d0984a4e-a2f6-b920-b605-c6c4d575f23f@dev.mellanox.co.il (mailing list archive) |
---|---|
State | Accepted |
Delegated to: | Ira Weiny |
Headers | show |
PiANCj4gU2lnbmVkLW9mZi1ieTogSGFsIFJvc2Vuc3RvY2sgPGhhbEBtZWxsYW5veC5jb20+DQoN ClRoYW5rcyBhcHBsaWVkLA0KSXJhDQoNCg0KPiAtLS0NCj4gIGxpYmlibmV0ZGlzYy9zcmMvaWJu ZXRkaXNjLmMgfCA2ICsrKystLQ0KPiAgc3JjL2liZGlhZ19jb21tb24uYyAgICAgICAgICB8IDYg KysrKy0tDQo+ICBzcmMvdmVuZHN0YXQuYyAgICAgICAgICAgICAgIHwgMyArKy0NCj4gIDMgZmls ZXMgY2hhbmdlZCwgMTAgaW5zZXJ0aW9ucygrKSwgNSBkZWxldGlvbnMoLSkNCj4gDQo+IGRpZmYg LS1naXQgYS9saWJpYm5ldGRpc2Mvc3JjL2libmV0ZGlzYy5jIGIvbGliaWJuZXRkaXNjL3NyYy9p Ym5ldGRpc2MuYyBpbmRleA0KPiAyNmJkMDlhLi4wNWYxZGM5IDEwMDY0NA0KPiAtLS0gYS9saWJp Ym5ldGRpc2Mvc3JjL2libmV0ZGlzYy5jDQo+ICsrKyBiL2xpYmlibmV0ZGlzYy9zcmMvaWJuZXRk aXNjLmMNCj4gQEAgLTE5OCw3ICsxOTgsOSBAQCBzdGF0aWMgaW50DQo+IGlzX21sbnhfZXh0X3Bv cnRfaW5mb19zdXBwb3J0ZWQoaWJuZF9wb3J0X3QgKiBwb3J0KQ0KPiAgCXVpbnQxNl90IGRldmlk ID0gKHVpbnQxNl90KSBtYWRfZ2V0X2ZpZWxkKHBvcnQtPm5vZGUtPmluZm8sIDAsDQo+IElCX05P REVfREVWSURfRik7DQo+ICAJdWludDMyX3QgdmVuZG9yaWQgPSAodWludDMyX3QpIG1hZF9nZXRf ZmllbGQocG9ydC0+bm9kZS0+aW5mbywgMCwNCj4gSUJfTk9ERV9WRU5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JhMH0sCS8qIEJ1bGwgU3dpdGNo SUIgKi8NCj4gLS0NCj4gMi44LjQNCg0K -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/libibnetdisc/src/ibnetdisc.c b/libibnetdisc/src/ibnetdisc.c index 26bd09a..05f1dc9 100644 --- a/libibnetdisc/src/ibnetdisc.c +++ b/libibnetdisc/src/ibnetdisc.c @@ -198,7 +198,9 @@ static int is_mlnx_ext_port_info_supported(ibnd_port_t * port) uint16_t devid = (uint16_t) mad_get_field(port->node->info, 0, IB_NODE_DEVID_F); uint32_t vendorid = (uint32_t) mad_get_field(port->node->info, 0, IB_NODE_VENDORID_F); - if ((devid >= 0xc738 && devid <= 0xc73b) || devid == 0xcb20 || devid == 0xcf08 || + if ((devid >= 0xc738 && devid <= 0xc73b) || + devid == 0xc839 || devid == 0xcb20 || devid == 0xcf08 || + devid == 0xcf09 || devid == 0xd2f0 || ((vendorid == 0x119f) && /* Bull SwitchX */ (devid == 0x1b02 || devid == 0x1b50 || @@ -206,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 <= 0x1019) || + if ((devid >= 0x1003 && devid <= 0x101b) || ((vendorid == 0x119f) && /* Bull ConnectX3 */ (devid == 0x1b33 || devid == 0x1b73 || diff --git a/src/ibdiag_common.c b/src/ibdiag_common.c index a57a04b..41b749c 100644 --- a/src/ibdiag_common.c +++ b/src/ibdiag_common.c @@ -542,7 +542,9 @@ int is_mlnx_ext_port_info_supported(uint32_t vendorid, { if (ibd_ibnetdisc_flags & IBND_CONFIG_MLX_EPI) { - if ((devid >= 0xc738 && devid <= 0xc73b) || devid == 0xcb20 || devid == 0xcf08 || + if ((devid >= 0xc738 && devid <= 0xc73b) || + devid == 0xc839 || devid == 0xcb20 || devid == 0xcf08 || + devid == 0xcf09 || devid == 0xd2f0 || ((vendorid == 0x119f) && /* Bull SwitchX */ (devid == 0x1b02 || devid == 0x1b50 || @@ -550,7 +552,7 @@ int is_mlnx_ext_port_info_supported(uint32_t vendorid, devid == 0x1ba0 || (devid >= 0x1bd0 && devid <= 0x1bd5)))) return 1; - if ((devid >= 0x1003 && devid <= 0x1019) || + if ((devid >= 0x1003 && devid <= 0x101b) || ((vendorid == 0x119f) && /* Bull ConnectX3 */ (devid == 0x1b33 || devid == 0x1b73 || diff --git a/src/vendstat.c b/src/vendstat.c index f3b3d42..5a3af21 100644 --- a/src/vendstat.c +++ b/src/vendstat.c @@ -147,8 +147,9 @@ static uint16_t ext_fw_info_device[][2] = { {0xc738, 0xc73b}, /* Switch-X */ {0xcb20, 0xcb20}, /* Switch-IB */ {0xcf08, 0xcf08}, /* Switch-IB2 */ + {0xd2f0, 0xd2f0}, /* Quantum */ {0x01b3, 0x01b3}, /* IS-4 */ - {0x1003, 0x1019}, /* Connect-X */ + {0x1003, 0x101b}, /* Connect-X */ {0x1b02, 0x1b02}, /* Bull SwitchX */ {0x1b50, 0x1b50}, /* Bull SwitchX */ {0x1ba0, 0x1ba0}, /* Bull SwitchIB */
Signed-off-by: Hal Rosenstock <hal@mellanox.com> --- libibnetdisc/src/ibnetdisc.c | 6 ++++-- src/ibdiag_common.c | 6 ++++-- src/vendstat.c | 3 ++- 3 files changed, 10 insertions(+), 5 deletions(-)