Repository navigation
Commit a990756
IB/mlx5: Avoid load failure due to unknown link width
commit db7a691 upstream.
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: 1b5daf1 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent a41e946 commit a990756
1 file changed
Lines changed: 11 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1094 | 1094 | | |
1095 | 1095 | | |
1096 | 1096 | | |
1097 | | - | |
| 1097 | + | |
1098 | 1098 | | |
1099 | 1099 | | |
1100 | 1100 | | |
1101 | | - | |
1102 | 1101 | | |
1103 | | - | |
| 1102 | + | |
1104 | 1103 | | |
1105 | | - | |
1106 | | - | |
1107 | | - | |
1108 | | - | |
1109 | | - | |
| 1104 | + | |
1110 | 1105 | | |
1111 | | - | |
| 1106 | + | |
1112 | 1107 | | |
1113 | | - | |
| 1108 | + | |
1114 | 1109 | | |
1115 | | - | |
1116 | | - | |
| 1110 | + | |
| 1111 | + | |
1117 | 1112 | | |
1118 | | - | |
| 1113 | + | |
1119 | 1114 | | |
1120 | 1115 | | |
1121 | | - | |
| 1116 | + | |
1122 | 1117 | | |
1123 | 1118 | | |
1124 | 1119 | | |
| |||
1225 | 1220 | | |
1226 | 1221 | | |
1227 | 1222 | | |
1228 | | - | |
1229 | | - | |
1230 | | - | |
1231 | | - | |
| 1223 | + | |
| 1224 | + | |
1232 | 1225 | | |
1233 | 1226 | | |
1234 | 1227 | | |
| |||
0 commit comments