From: Vincent Ficet <jean-vincent.ficet-BUmcmmAb0Fc@public.gmane.org>
To: "ira.weiny" <ira.weiny-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
Hal Rosenstock
<hal-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
Cc: "linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [PATCH infiniband-diags] Add Bull device ID support to device white lists
Date: Fri, 9 Dec 2016 11:32:03 +0100 [thread overview]
Message-ID: <584A8823.4070506@atos.net> (raw)
In-Reply-To: <20161207145338.GD24724-W4f6Xiosr+yv7QzWx2u06xL4W9x8LtSr@public.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 2327 bytes --]
Hello,
The patch proposed by Hal Rosenstock does not list all Bull device IDs.
Please apply the attached patch which contains an up to date list of such IDs.
Best Regards,
Vincent
On 12/07/2016 03:53 PM, ira.weiny wrote:
> On Tue, Dec 06, 2016 at 02:22:52PM -0500, Hal Rosenstock wrote:
>> Signed-off-by: Hal Rosenstock <hal-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
> Thanks applied,
> Ira
>
>> ---
>> diff --git a/libibnetdisc/src/ibnetdisc.c b/libibnetdisc/src/ibnetdisc.c
>> index 6ef7805..223e097 100644
>> --- a/libibnetdisc/src/ibnetdisc.c
>> +++ b/libibnetdisc/src/ibnetdisc.c
>> @@ -197,7 +197,7 @@ 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);
>>
>> - if ((devid >= 0xc738 && devid <= 0xc73b) || devid == 0xcb20 || devid == 0xcf08)
>> + if ((devid >= 0xc738 && devid <= 0xc73b) || devid == 0xcb20 || devid == 0xcf08 || devid == 0x1b02)
>> return 1;
>> if (devid >= 0x1003 && devid <= 0x1016)
>> return 1;
>> diff --git a/src/ibdiag_common.c b/src/ibdiag_common.c
>> index 2a1e971..6809a1e 100644
>> --- a/src/ibdiag_common.c
>> +++ b/src/ibdiag_common.c
>> @@ -530,7 +530,7 @@ int is_port_info_extended_supported(ib_portid_t * dest, int port,
>> int is_mlnx_ext_port_info_supported(uint32_t devid)
>> {
>> if (ibd_ibnetdisc_flags & IBND_CONFIG_MLX_EPI) {
>> - if ((devid >= 0xc738 && devid <= 0xc73b) || devid == 0xcb20 || devid == 0xcf08)
>> + if ((devid >= 0xc738 && devid <= 0xc73b) || devid == 0xcb20 || devid == 0xcf08 || devid == 0x1b02)
>> return 1;
>> if (devid >= 0x1003 && devid <= 0x1016)
>> return 1;
>> diff --git a/src/vendstat.c b/src/vendstat.c
>> index fb42a78..284ef93 100644
>> --- a/src/vendstat.c
>> +++ b/src/vendstat.c
>> @@ -149,6 +149,7 @@ static uint16_t ext_fw_info_device[][2] = {
>> {0xcf08, 0xcf08}, /* Switch-IB2 */
>> {0x01b3, 0x01b3}, /* IS-4 */
>> {0x1003, 0x1016}, /* Connect-X */
>> + {0x1b02, 0x1b02}, /* Bull */
>> {0x0000, 0x0000}};
>>
>> static int is_ext_fw_info_supported(uint16_t device_id) {
> --
> To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
[-- Attachment #2: infiniband-diags_fix_bull_device_IDs.patch --]
[-- Type: text/x-patch, Size: 1849 bytes --]
diff --git a/libibnetdisc/src/ibnetdisc.c b/libibnetdisc/src/ibnetdisc.c
index 7ba5c91..758d3cd 100644
--- a/libibnetdisc/src/ibnetdisc.c
+++ b/libibnetdisc/src/ibnetdisc.c
@@ -196,10 +196,23 @@ static void debug_port(ib_portid_t * portid, ibnd_port_t * port)
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);
-
- if ((devid >= 0xc738 && devid <= 0xc73b) || devid == 0xcb20 || devid == 0xcf08 || devid == 0x1b02)
+ 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 ||
+ ((vendorid == 0x119f) &&
+ /* Bull SwitchX */
+ (devid == 0x1b02 || devid == 0x1b50 ||
+ /* Bull SwitchIB */
+ (devid >= 0x1bd0 && devid <= 0x1bd2) ||
+ /* Bull SwitchIB2 */
+ (devid >= 0x1bd3 && devid <= 0x1bd5))))
return 1;
- if (devid >= 0x1003 && devid <= 0x1016)
+ if ((devid >= 0x1003 && devid <= 0x1016) ||
+ ((vendorid == 0x119f) &&
+ /* Bull ConnectIB */
+ (devid == 0x1b83 || devid == 0x1b93 || devid == 0x1b94 ||
+ /* Bull ConnectX4 */
+ devid == 0x1bb4 || devid == 0x1bb5 || devid == 0x1bc4)))
return 1;
return 0;
}
diff --git a/src/vendstat.c b/src/vendstat.c
index 284ef93..ac456f4 100644
--- a/src/vendstat.c
+++ b/src/vendstat.c
@@ -149,7 +149,10 @@ static uint16_t ext_fw_info_device[][2] = {
{0xcf08, 0xcf08}, /* Switch-IB2 */
{0x01b3, 0x01b3}, /* IS-4 */
{0x1003, 0x1016}, /* Connect-X */
- {0x1b02, 0x1b02}, /* Bull */
+ {0x1b02, 0x1b02}, /* Bull SwitchX */
+ {0x1b50, 0x1b50}, /* Bull SwitchX */
+ {0x1bd0, 0x1bd2}, /* Bull SwitchIB */
+ {0x1bd3, 0x1bd5}, /* Bull SwitchIB2 */
{0x0000, 0x0000}};
static int is_ext_fw_info_supported(uint16_t device_id) {
next prev parent reply other threads:[~2016-12-09 10:32 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-06 19:22 [PATCH infiniband-diags] Add Bull device ID support to device white lists Hal Rosenstock
[not found] ` <e5ad4256-53fe-9ecc-f880-89347134ec42-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2016-12-07 14:53 ` ira.weiny
[not found] ` <20161207145338.GD24724-W4f6Xiosr+yv7QzWx2u06xL4W9x8LtSr@public.gmane.org>
2016-12-09 10:32 ` Vincent Ficet [this message]
[not found] ` <584A8823.4070506-BUmcmmAb0Fc@public.gmane.org>
2016-12-09 14:15 ` Hal Rosenstock
[not found] ` <703b953b-7165-72d1-3c1e-c3b1f8c54f28-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2016-12-09 14:29 ` Vincent Ficet
[not found] ` <584ABFE6.4070902-BUmcmmAb0Fc@public.gmane.org>
2016-12-09 14:40 ` Hal Rosenstock
[not found] ` <46fac349-4687-961a-4d63-697064f391da-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2016-12-19 7:10 ` Weiny, Ira
[not found] ` <2807E5FD2F6FDA4886F6618EAC48510E3C611A58-8k97q/ur5Z2krb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2016-12-19 8:44 ` Vincent Ficet
[not found] ` <58579DFD.2040206-BUmcmmAb0Fc@public.gmane.org>
2016-12-20 16:56 ` ira.weiny
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=584A8823.4070506@atos.net \
--to=jean-vincent.ficet-bumcmmab0fc@public.gmane.org \
--cc=hal-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org \
--cc=ira.weiny-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox