net/mlx5: Check with FW that sync reset completed successfully
authorMoshe Shemesh <moshe@nvidia.com>
Wed, 31 May 2023 10:50:21 +0000 (13:50 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Mon, 14 Aug 2023 21:40:21 +0000 (14:40 -0700)
commita9f168e4c6e1f623dcf2640b9d76a4f61b9731e5
tree5ccb4a9012a8d773672ad1fc1fd63469025980e4
parent6486c0f44ed8e91073c1b08e83075e3832618ae5
net/mlx5: Check with FW that sync reset completed successfully

Even if the PF driver had no error on his part of the sync reset flow,
the firmware can see wider picture as it syncs all the PFs in the flow.
So add at end of sync reset flow check with firmware by reading MFRL
register and initialization segment that the flow had no issue from
firmware point of view too.

Signed-off-by: Moshe Shemesh <moshe@nvidia.com>
Reviewed-by: Shay Drory <shayd@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/devlink.c
drivers/net/ethernet/mellanox/mlx5/core/fw_reset.c
drivers/net/ethernet/mellanox/mlx5/core/fw_reset.h
include/linux/mlx5/mlx5_ifc.h