]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Handle sync reset now event
authorMoshe Shemesh <moshe@mellanox.com>
Wed, 7 Oct 2020 06:00:50 +0000 (09:00 +0300)
committerJakub Kicinski <kuba@kernel.org>
Fri, 9 Oct 2020 19:06:52 +0000 (12:06 -0700)
commit9b73f26336e4c8828df52dfeb50ad95b8dfb915d
tree087e0a465b4dc6b88ef8828ec3cb150ec49a377f
parent150b862b8b27c7a02c7b12f4d5d339a5933b829e
net/mlx5: Handle sync reset now event

On sync_reset_now event the driver does reload and PCI link toggle to
activate firmware upgrade reset. When the firmware sends this event it
syncs the event on all PFs, so all PFs will do PCI link toggle at once.
To do PCI link toggle, the driver ensures that no other device ID under
the same bridge by checking that all the PF functions under the same PCI
bridge have same device ID. If no other device it uses PCI bridge link
control to turn link down and up.

Signed-off-by: Moshe Shemesh <moshe@mellanox.com>
Reviewed-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/fw_reset.c