Files
linux-bredos/include/linux
Mark Zhang 45d339fefa 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: 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>
2025-01-03 09:17:19 -04:00
..
2024-10-22 15:54:11 +02:00
2024-10-11 14:34:11 -04:00
2024-10-13 17:16:57 +02:00
2024-10-11 14:37:29 +05:30
2024-10-14 23:27:57 +05:30
2024-11-22 21:32:25 +01:00
2024-11-11 10:45:03 +01:00
2024-10-09 15:42:48 +01:00
2024-11-11 09:06:45 -07:00
2024-11-07 14:38:07 -08:00
2024-10-14 18:33:04 -07:00
2024-11-05 13:32:21 +01:00
2024-10-22 11:16:56 +02:00
2024-10-19 14:16:45 +02:00
2024-10-01 17:01:40 +02:00
2024-11-09 14:55:33 +01:00
2024-11-24 17:05:27 -08:00
2024-10-16 21:56:59 +02:00
2024-10-30 19:47:20 +01:00
2024-09-20 18:28:26 +03:00
2024-11-05 16:56:26 -08:00
2024-10-14 16:33:24 -05:00
2024-09-23 15:03:30 -04:00
2024-11-05 16:56:26 -08:00
2024-11-16 10:09:30 -06:00
2024-10-02 16:23:10 -05:00
2024-11-05 12:55:38 +01:00
2024-11-03 21:13:21 +01:00
2024-11-05 17:12:31 -08:00
2024-09-11 20:44:31 -07:00
2024-09-11 20:44:32 -07:00
2024-11-30 22:41:35 -05:00
2024-11-11 00:26:44 -08:00
2024-11-06 12:59:44 -05:00
2024-10-02 16:53:38 +02:00
2024-11-18 11:56:21 +00:00
2024-09-12 12:20:39 +02:00
2024-11-06 12:59:44 -05:00