linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] IB/core: Set invalid active widths to 1X when port is not active
@ 2018-03-15  9:02 Honggang LI
  2018-03-15  9:02 ` [PATCH 1/2] IB/core: Set speed string to SDR for invalid active rates Honggang LI
  2018-03-15  9:02 ` [PATCH 2/2] IB/core: Set width to 1X for invalid active widths when port is down Honggang LI
  0 siblings, 2 replies; 10+ messages in thread
From: Honggang LI @ 2018-03-15  9:02 UTC (permalink / raw)
  To: dledford, jgg, linux-rdma; +Cc: noaos, linux-kernel, honli

From: Honggang Li <honli@redhat.com>

Before the mlx5 RoCE port negotiate the active rate and width
with remote side, the mlx5_ib driver set them to zero.

The tool 'ibstat' of 'infiniband-diags' package will panic as it
read invalid width from the sys file. Set the active widths to
lowest valid vaule as what ib_core module did for invalid rates.

Honggang Li (2):
  IB/core: Set speed string to SDR for invalid active rates
  IB/core: Set width to 1X for invalid active widths when port is down

 drivers/infiniband/core/sysfs.c | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

-- 
2.14.GIT

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-03-19 17:53 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-15  9:02 [PATCH 0/2] IB/core: Set invalid active widths to 1X when port is not active Honggang LI
2018-03-15  9:02 ` [PATCH 1/2] IB/core: Set speed string to SDR for invalid active rates Honggang LI
2018-03-19 17:53   ` Jason Gunthorpe
2018-03-15  9:02 ` [PATCH 2/2] IB/core: Set width to 1X for invalid active widths when port is down Honggang LI
2018-03-15 12:01   ` Hal Rosenstock
2018-03-15 12:27     ` Honggang LI
2018-03-15 12:32     ` Hal Rosenstock
2018-03-15 12:43       ` Honggang LI
2018-03-15 12:47         ` Hal Rosenstock
2018-03-16  2:38           ` Honggang LI

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).