linux/drivers/infiniband/hw
Mark Zhang abf81fd09b RDMA/mlx5: Enable multiplane mode only when it is supported
commit 45d339fefa upstream.

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: 2a5db20fa5 ("RDMA/mlx5: Add support to multi-plane device and port")
Link: https://patch.msgid.link/r/1ef901acdf564716fcf550453cf5e94f343777ec.1734610916.git.leon@kernel.org
Cc: stable@vger.kernel.org
Reported-by: Francesco Poli <invernomuto@paranoici.org>
Closes: https://lore.kernel.org/all/nvs4i2v7o6vn6zhmtq4sgazy2hu5kiulukxcntdelggmznnl7h@so3oul6uwgbl/
Signed-off-by: Mark Zhang <markzhang@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Reviewed-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2025-01-09 13:33:48 +01:00
..
bnxt_re RDMA/bnxt_re: Fix error recovery sequence 2025-01-09 13:33:41 +01:00
cxgb4 RDMA/cxgb4: Dump vendor specific QP details 2024-10-21 13:22:33 -03:00
efa RDMA/efa: Add support for node guid 2024-08-23 11:52:45 -03:00
erdma RDMA/erdma: Return QP state in erdma_query_qp 2024-09-09 21:17:09 +03:00
hfi1 [tree-wide] finally take no_llseek out 2024-09-27 08:18:43 -07:00
hns RDMA/hns: Fix missing flush CQE for DWQE 2025-01-09 13:33:37 +01:00
irdma RDMA/irdma: Fix misspelling of "accept*" 2024-10-11 14:06:09 -03:00
mana RDMA/mana_ib: use the correct page size for mapping user-mode doorbell page 2024-09-02 10:32:08 +03:00
mlx4 RDMA/mlx4: Simplify an alloc_ordered_workqueue() invocation 2024-08-23 11:37:49 -03:00
mlx5 RDMA/mlx5: Enable multiplane mode only when it is supported 2025-01-09 13:33:48 +01:00
mthca RDMA: Pass entire uverbs attr bundle to create cq function 2024-06-27 16:28:21 -03:00
ocrdma RDMA/ocrdma: Don't inline statistics functions 2024-07-11 13:25:11 +03:00
qedr RDMA: Pass entire uverbs attr bundle to create cq function 2024-06-27 16:28:21 -03:00
qib IB/qib: Remove unused declarations in header file 2024-09-10 16:41:03 +03:00
usnic IOMMU Updates for Linux v6.11 2024-07-19 09:59:58 -07:00
vmw_pvrdma RDMA: Pass entire uverbs attr bundle to create cq function 2024-06-27 16:28:21 -03:00
Makefile RDMA/mana_ib: Add a driver for Microsoft Azure Network Adapter 2022-11-11 11:40:09 +02:00