net/mlx5: Control CR-space access by different PFs
authorFeras Daoud <ferasda@mellanox.com>
Sun, 2 Dec 2018 12:41:22 +0000 (14:41 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 13 Jun 2019 20:23:17 +0000 (13:23 -0700)
commit1ef6f1a17e56f9126472d2c50818f468f1fc43d2
tree8c6b27e64c0cba03e9eb3e65af1711535ccab94e
parent63cbc552eebf08818af2025aef4589a48ef849c0
net/mlx5: Control CR-space access by different PFs

Since the FW can be shared between different PFs/VFs it is common
that more than one health poll will detected a failure, this can
lead to multiple resets which are unneeded.

The solution is to use a FW locking mechanism using semaphore space
to provide a way to allow only one device to collect the cr-dump and
to issue a sw-reset.

Signed-off-by: Feras Daoud <ferasda@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/lib/pci_vsc.c
drivers/net/ethernet/mellanox/mlx5/core/lib/pci_vsc.h
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h