]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
net/mlx5: Add icm_mng_function_id_mode cap bit
authorMoshe Shemesh <moshe@nvidia.com>
Fri, 3 Apr 2026 09:00:28 +0000 (12:00 +0300)
committerLeon Romanovsky <leon@kernel.org>
Thu, 9 Apr 2026 09:26:39 +0000 (05:26 -0400)
Introduce the capability bit icm_mng_function_id_mode to indicate that
the device firmware uses vhca_id instead of function_id as the effective
identifier for the firmware commands MANAGE_PAGES, QUERY_PAGES, and page
request event.

Signed-off-by: Moshe Shemesh <moshe@nvidia.com>
Reviewed-by: Akiva Goldberger <agoldberger@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/20260403090028.137783-3-tariqt@nvidia.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
include/linux/mlx5/mlx5_ifc.h

index 2400b4c38c772f7ea8cf7df2d260aad8c38d2623..007f5138db2b5878116944b86267ffa487a0b9af 100644 (file)
@@ -1654,6 +1654,11 @@ enum {
        MLX5_STEERING_FORMAT_CONNECTX_8   = 3,
 };
 
+enum {
+       MLX5_ID_MODE_FUNCTION_INDEX   = 0,
+       MLX5_ID_MODE_FUNCTION_VHCA_ID = 1,
+};
+
 struct mlx5_ifc_cmd_hca_cap_bits {
        u8         reserved_at_0[0x6];
        u8         page_request_disable[0x1];
@@ -1916,7 +1921,8 @@ struct mlx5_ifc_cmd_hca_cap_bits {
        u8         reserved_at_280[0x10];
        u8         max_wqe_sz_sq[0x10];
 
-       u8         reserved_at_2a0[0x7];
+       u8         icm_mng_function_id_mode[0x1];
+       u8         reserved_at_2a1[0x6];
        u8         mkey_pcie_tph[0x1];
        u8         reserved_at_2a8[0x1];
        u8         tis_tir_td_order[0x1];