summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorMaher Sanalla <msanalla@nvidia.com>2023-01-22 23:24:56 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-02-14 19:11:47 +0100
commitee128b700fd0c6689785196577d00ec968857e8e (patch)
tree11481382d86f67135b690639dc51e7f48e77e248 /include
parentbbdfebb08ff5eb67ae65539c8cbb728c8f246552 (diff)
downloadlinux-ee128b700fd0c6689785196577d00ec968857e8e.tar.gz
net/mlx5: Expose SF firmware pages counter
[ Upstream commit 9965bbebae59b3563a4d95e4aed121e8965dfdc2 ]

Currently, each core device has VF pages counter which stores number of
fw pages used by its VFs and SFs.

The current design led to a hang when performing firmware reset on DPU,
where the DPU PFs stalled in sriov unload flow due to waiting on release
of SFs pages instead of waiting on only VFs pages.

Thus, Add a separate counter for SF firmware pages, which will prevent
the stall scenario described above.

Fixes: 1958fc2f0712 ("net/mlx5: SF, Add auxiliary device driver")
Signed-off-by: Maher Sanalla <msanalla@nvidia.com>
Reviewed-by: Shay Drory <shayd@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mlx5/driver.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h
index 9b300aa4eb95..fff61e6d6d4d 100644
--- a/include/linux/mlx5/driver.h
+++ b/include/linux/mlx5/driver.h
@@ -576,6 +576,7 @@ struct mlx5_debugfs_entries {
 enum mlx5_func_type {
 	MLX5_PF,
 	MLX5_VF,
+	MLX5_SF,
 	MLX5_HOST_PF,
 	MLX5_FUNC_TYPE_NUM,
 };