[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250103141117.GA137209@nvidia.com>
Date: Fri, 3 Jan 2025 10:11:17 -0400
From: Jason Gunthorpe <jgg@...dia.com>
To: Leon Romanovsky <leon@...nel.org>
Cc: Mark Zhang <markzhang@...dia.com>,
Francesco Poli <invernomuto@...anoici.org>,
linux-rdma@...r.kernel.org, netdev@...r.kernel.org,
Saeed Mahameed <saeedm@...dia.com>,
Tariq Toukan <tariqt@...dia.com>
Subject: Re: [PATCH mlx5-next] RDMA/mlx5: Enable multiplane mode only when it
is supported
On Thu, Dec 19, 2024 at 02:23:36PM +0200, Leon Romanovsky wrote:
> From: Mark Zhang <markzhang@...dia.com>
>
> 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")
> Cc: stable@...r.kernel.org
> Reported-by: Francesco Poli <invernomuto@...anoici.org>
> Closes: https://lore.kernel.org/all/nvs4i2v7o6vn6zhmtq4sgazy2hu5kiulukxcntdelggmznnl7h@so3oul6uwgbl/
> Signed-off-by: Mark Zhang <markzhang@...dia.com>
> Signed-off-by: Leon Romanovsky <leonro@...dia.com>
> Reviewed-by: Michal Swiatkowski <michal.swiatkowski@...ux.intel.com>
> ---
> drivers/infiniband/hw/mlx5/main.c | 2 +-
> include/linux/mlx5/mlx5_ifc.h | 4 +++-
> 2 files changed, 4 insertions(+), 2 deletions(-)
Applied to for-rc thanks
Jason
Powered by blists - more mailing lists