]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx5: Avoid load failure due to unknown link width
authorMichael Guralnik <michaelgur@mellanox.com>
Wed, 21 Nov 2018 13:03:54 +0000 (15:03 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 21 Nov 2018 21:18:02 +0000 (14:18 -0700)
commit6fc52560b3c50e8661e10cfbdef1c1d8ed08c1bb
tree7a890cef03239feca4ea8047fa0ae88ffdd1ad49
parent1d51fa57b9d81781db8ed1dedae54f5aa42a9fda
IB/mlx5: Avoid load failure due to unknown link width

If the firmware reports a connection width that is not 1x, 4x, 8x or 12x
it causes the driver to fail during initialization.

To prevent this failure every time a new width is introduced to the RDMA
stack, we will set a default 4x width for these widths which ar unknown to
the driver.

This is needed to allow to run old kernels with new firmware.

Cc: <stable@vger.kernel.org> # 4.1
Fixes: c0f7279f67c4 ("IB/mlx5: Avoid using the MAD_IFC command under ISSI > 0 mode")
Signed-off-by: Michael Guralnik <michaelgur@mellanox.com>
Reviewed-by: Majd Dibbiny <majd@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/main.c