[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <429e9093-62dd-9d28-9209-d8022e564e7f@oracle.com>
Date: Fri, 27 Oct 2017 17:29:15 -0700
From: Ghazale Hosseinabadi <ghazale.hosseinabadi@...cle.com>
To: Hal Rosenstock <hal@....mellanox.co.il>
Cc: matanb@...lanox.com, leonro@...lanox.com, parav@...lanox.com,
linux-kernel@...r.kernel.org, dledford@...hat.com
Subject: Re: [PATCH] IB/mlx5: give back valid speed/width even without plugged
in SFP module
On 10/27/2017 05:17 PM, Hal Rosenstock wrote:
> On 10/27/2017 7:19 PM, Hal Rosenstock wrote:
>> On 10/27/2017 7:04 PM, Ghazale Hosseinabadi wrote:
>>>
>>> On 10/27/2017 03:52 PM, Hal Rosenstock wrote:
>>>> On 10/27/2017 5:54 PM, Ghazale Hosseinabadi wrote:
>>>>> When running ibstat (if transceiver is not connected in adapter):
>>>>>
>>>>> ibpanic: [7851] main: stat of IB device 'mlx5_1' failed: Invalid
>>>>> argument
>>>> Any output before that ?
>>> no, It only prints this line.
>> and setting the width to 1x in the driver so the rate file is properly
>> populated fixes this ? I must be missing something as to what is going
>> on in this scenario.
> [off list...]
> Are you using libibumad or rdma-core package ?
rdma-core
> Which version ?
rdma-core-13-25
> What version of infiniband-diags are you using ?
infiniband-diags-1.6.7-1
> Can you build from sources ?
> I have patch to libibumad/rdma-core and another patch to ibstat
> (infiniband-diags) which I'd like you to try. Is that possible ?
I haven't built user-land packages myself, but I can definitely try it.
Please send me the patches and I will try to build.
Thanks,
Ghazale
>
> Thanks.
>
> -- Hal
>
>> sysfs.c:rate_show is inconsistent as it paves over an invalid speed
>> setting that to SDR but does not pave over invalid width returning
>> -EINVAL but this comment is in another "direction".
>>
>> -- Hal
>>
>>> -- Ghazale
>>>> I'm trying to understand how far it gets. It
>>>> looks to me that empty rate file would be parsed as 0 and ibstat would
>>>> show that rate. ibpanic would occur if file was not found but I could be
>>>> missing something.
>>>>
>>>
Powered by blists - more mailing lists