Patch "net/mlx5: Check FW limitations on log_max_qp before setting it" has been added to the 4.9-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
net/mlx5: Check FW limitations on log_max_qp before setting it
to the 4.9-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
net-mlx5-check-fw-limitations-on-log_max_qp-before-setting-it.patch
and it can be found in the queue-4.9 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From foo@baz Thu Jan 12 21:37:26 CET 2017
From: Noa Osherovich <[email protected]>
Date: Wed, 28 Dec 2016 14:58:32 +0200
Subject: net/mlx5: Check FW limitations on log_max_qp before setting it
From: Noa Osherovich <[email protected]>
[ Upstream commit 883371c453b937f9eb581fb4915210865982736f ]
When setting HCA capabilities, set log_max_qp to be the minimum between the selected profile's value and the HCA limitation.
--- drivers/net/ethernet/mellanox/mlx5/core/main.c | 7 +++++++ 1 file changed, 7 insertions(+)
drivers/net/ethernet/mellanox/mlx5/core/main.c +7 -0
@@ -468,6 +468,13 @@ static int handle_hca_cap(struct mlx5_coMLX5_SET (cmd_hca_cap, set_hca_cap, pkey_table_size,to_fw_pkey_sz (dev,128 )); +/* Check log_max_qp from HCA caps to set in current profile */ +if (MLX5_CAP_GEN_MAX (dev, log_max_qp) < profile[prof_sel].log_max_qp) { +mlx5_core_warn (dev,"log_max_qp value in current profile is %d, changing it to HCA capability limit (%d)\n" , + profile[prof_sel].log_max_qp, +MLX5_CAP_GEN_MAX (dev, log_max_qp)); + profile[prof_sel].log_max_qp =MLX5_CAP_GEN_MAX (dev, log_max_qp); + }if (prof->mask &MLX5_PROF_MASK_QP_SIZE )MLX5_SET (cmd_hca_cap, set_hca_cap, log_max_qp, prof->log_max_qp);
Patches currently in stable-queue which might be from [email protected] are
queue-4.9/net-mlx5-check-fw-limitations-on-log_max_qp-before-setting-it.patch