Skip to content

Commit 9947204

Browse files
mosheshemesh2kuba-moo
authored andcommitted
net/mlx5: Add device cap for supporting hot reset in sync reset flow
New devices with new FW can support sync reset for firmware activate using hot reset. Add capability for supporting it and add MFRL field to query from FW which type of PCI reset method to use while handling sync reset events. Signed-off-by: Moshe Shemesh <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]> Reviewed-by: Jacob Keller <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 1217e69 commit 9947204

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

include/linux/mlx5/mlx5_ifc.h

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1856,7 +1856,8 @@ struct mlx5_ifc_cmd_hca_cap_bits {
18561856
u8 reserved_at_328[0x2];
18571857
u8 relaxed_ordering_read[0x1];
18581858
u8 log_max_pd[0x5];
1859-
u8 reserved_at_330[0x6];
1859+
u8 reserved_at_330[0x5];
1860+
u8 pcie_reset_using_hotreset_method[0x1];
18601861
u8 pci_sync_for_fw_update_with_driver_unload[0x1];
18611862
u8 vnic_env_cnt_steering_fail[0x1];
18621863
u8 vport_counter_local_loopback[0x1];
@@ -11188,6 +11189,11 @@ struct mlx5_ifc_mcda_reg_bits {
1118811189
u8 data[][0x20];
1118911190
};
1119011191

11192+
enum {
11193+
MLX5_MFRL_REG_PCI_RESET_METHOD_LINK_TOGGLE = 0,
11194+
MLX5_MFRL_REG_PCI_RESET_METHOD_HOT_RESET = 1,
11195+
};
11196+
1119111197
enum {
1119211198
MLX5_MFRL_REG_RESET_STATE_IDLE = 0,
1119311199
MLX5_MFRL_REG_RESET_STATE_IN_NEGOTIATION = 1,
@@ -11215,7 +11221,8 @@ struct mlx5_ifc_mfrl_reg_bits {
1121511221
u8 pci_sync_for_fw_update_start[0x1];
1121611222
u8 pci_sync_for_fw_update_resp[0x2];
1121711223
u8 rst_type_sel[0x3];
11218-
u8 reserved_at_28[0x4];
11224+
u8 pci_reset_req_method[0x3];
11225+
u8 reserved_at_2b[0x1];
1121911226
u8 reset_state[0x4];
1122011227
u8 reset_type[0x8];
1122111228
u8 reset_level[0x8];

0 commit comments

Comments
 (0)