diff options
| author | Saeed Mahameed <saeedm@mellanox.com> | 2016-11-17 06:45:59 -0500 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2016-11-18 12:08:57 -0500 |
| commit | 0dbc6fe09fbe5f5191bcc606f3bdc9a829f97066 (patch) | |
| tree | bec856f13aa46a8c5e7a357623608cd171dd564e /include/linux/mlx5 | |
| parent | bedb7c909c1911270fcb084230245df4a00bd881 (diff) | |
net/mlx5: Set driver version infrastructure
Add driver_version capability bit is enabled, and set driver
version command in mlx5_ifc firmware header. The only purpose
of this command is to store a driver version/OS string in FW
to be reported and displayed in various management systems,
such as IPMI/BMC.
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Huy Nguyen <huyn@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/mlx5')
| -rw-r--r-- | include/linux/mlx5/mlx5_ifc.h | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/include/linux/mlx5/mlx5_ifc.h b/include/linux/mlx5/mlx5_ifc.h index cd1d530ca368..f08a06247fba 100644 --- a/include/linux/mlx5/mlx5_ifc.h +++ b/include/linux/mlx5/mlx5_ifc.h | |||
| @@ -83,6 +83,7 @@ enum { | |||
| 83 | MLX5_CMD_OP_SET_HCA_CAP = 0x109, | 83 | MLX5_CMD_OP_SET_HCA_CAP = 0x109, |
| 84 | MLX5_CMD_OP_QUERY_ISSI = 0x10a, | 84 | MLX5_CMD_OP_QUERY_ISSI = 0x10a, |
| 85 | MLX5_CMD_OP_SET_ISSI = 0x10b, | 85 | MLX5_CMD_OP_SET_ISSI = 0x10b, |
| 86 | MLX5_CMD_OP_SET_DRIVER_VERSION = 0x10d, | ||
| 86 | MLX5_CMD_OP_CREATE_MKEY = 0x200, | 87 | MLX5_CMD_OP_CREATE_MKEY = 0x200, |
| 87 | MLX5_CMD_OP_QUERY_MKEY = 0x201, | 88 | MLX5_CMD_OP_QUERY_MKEY = 0x201, |
| 88 | MLX5_CMD_OP_DESTROY_MKEY = 0x202, | 89 | MLX5_CMD_OP_DESTROY_MKEY = 0x202, |
| @@ -909,7 +910,7 @@ struct mlx5_ifc_cmd_hca_cap_bits { | |||
| 909 | u8 log_pg_sz[0x8]; | 910 | u8 log_pg_sz[0x8]; |
| 910 | 911 | ||
| 911 | u8 bf[0x1]; | 912 | u8 bf[0x1]; |
| 912 | u8 reserved_at_261[0x1]; | 913 | u8 driver_version[0x1]; |
| 913 | u8 pad_tx_eth_packet[0x1]; | 914 | u8 pad_tx_eth_packet[0x1]; |
| 914 | u8 reserved_at_263[0x8]; | 915 | u8 reserved_at_263[0x8]; |
| 915 | u8 log_bf_reg_size[0x5]; | 916 | u8 log_bf_reg_size[0x5]; |
| @@ -4005,6 +4006,25 @@ struct mlx5_ifc_query_issi_in_bits { | |||
| 4005 | u8 reserved_at_40[0x40]; | 4006 | u8 reserved_at_40[0x40]; |
| 4006 | }; | 4007 | }; |
| 4007 | 4008 | ||
| 4009 | struct mlx5_ifc_set_driver_version_out_bits { | ||
| 4010 | u8 status[0x8]; | ||
| 4011 | u8 reserved_0[0x18]; | ||
| 4012 | |||
| 4013 | u8 syndrome[0x20]; | ||
| 4014 | u8 reserved_1[0x40]; | ||
| 4015 | }; | ||
| 4016 | |||
| 4017 | struct mlx5_ifc_set_driver_version_in_bits { | ||
| 4018 | u8 opcode[0x10]; | ||
| 4019 | u8 reserved_0[0x10]; | ||
| 4020 | |||
| 4021 | u8 reserved_1[0x10]; | ||
| 4022 | u8 op_mod[0x10]; | ||
| 4023 | |||
| 4024 | u8 reserved_2[0x40]; | ||
| 4025 | u8 driver_version[64][0x8]; | ||
| 4026 | }; | ||
| 4027 | |||
| 4008 | struct mlx5_ifc_query_hca_vport_pkey_out_bits { | 4028 | struct mlx5_ifc_query_hca_vport_pkey_out_bits { |
| 4009 | u8 status[0x8]; | 4029 | u8 status[0x8]; |
| 4010 | u8 reserved_at_8[0x18]; | 4030 | u8 reserved_at_8[0x18]; |
