diff options
| author | Mark Zhang <[email protected]> | 2024-12-19 12:23:36 +0000 |
|---|---|---|
| committer | Jason Gunthorpe <[email protected]> | 2025-01-03 13:17:19 +0000 |
| commit | 45d339fefaa3dcd237038769e0d34584fb867390 (patch) | |
| tree | 753409fb11f3344069f191735ec988df47c1f820 /drivers/fpga/xilinx-spi.c | |
| parent | RDMA/bnxt_re: Fix error recovery sequence (diff) | |
| download | kernel-45d339fefaa3dcd237038769e0d34584fb867390.tar.gz kernel-45d339fefaa3dcd237038769e0d34584fb867390.zip | |
RDMA/mlx5: Enable multiplane mode only when it is supported
Driver queries vport_cxt.num_plane and enables multiplane when it is
greater then 0, but some old FWs (versions from x.40.1000 till x.42.1000),
report vport_cxt.num_plane = 1 unexpectedly.
Fix it by querying num_plane only when HCA_CAP2.multiplane bit is set.
Fixes: 2a5db20fa532 ("RDMA/mlx5: Add support to multi-plane device and port")
Link: https://patch.msgid.link/r/1ef901acdf564716fcf550453cf5e94f343777ec.1734610916.git.leon@kernel.org
Cc: [email protected]
Reported-by: Francesco Poli <[email protected]>
Closes: https://lore.kernel.org/all/nvs4i2v7o6vn6zhmtq4sgazy2hu5kiulukxcntdelggmznnl7h@so3oul6uwgbl/
Signed-off-by: Mark Zhang <[email protected]>
Signed-off-by: Leon Romanovsky <[email protected]>
Reviewed-by: Michal Swiatkowski <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'drivers/fpga/xilinx-spi.c')
0 files changed, 0 insertions, 0 deletions
