]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Added MCQI and MCQS registers' description to ifc
authorShay Agroskin <shayag@mellanox.com>
Fri, 28 Jun 2019 22:35:50 +0000 (22:35 +0000)
committerSaeed Mahameed <saeedm@mellanox.com>
Mon, 1 Jul 2019 23:40:30 +0000 (16:40 -0700)
commit20a413a4fc8267e1edf2e862852abd7773a927fa
tree089543a017666f491976e3a1e948abf2893d84c8
parent790715cdb28d29a524192263d4bf4c62bf4b9862
net/mlx5: Added MCQI and MCQS registers' description to ifc

Given a fw component index, the MCQI register allows us to query
this component's information (e.g. its version and capabilities).

Given a fw component index, the MCQS register allows us to query the
status of a fw component, including its type and state
(e.g. PRESET/IN_USE).
It can be used to find the index of a component of a specific type, by
sequentially increasing the component index, and querying each time the
type of the returned component.
If max component index is reached, 'last_index_flag' is set by the HCA.

These registers' description was added to query the running and pending
fw version of the HCA.

Signed-off-by: Shay Agroskin <shayag@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
include/linux/mlx5/driver.h
include/linux/mlx5/mlx5_ifc.h