]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: SF, do not use ecpu bit for vhca state processing
authorParav Pandit <parav@nvidia.com>
Thu, 11 Mar 2021 18:19:25 +0000 (20:19 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Mon, 22 Mar 2021 20:16:41 +0000 (13:16 -0700)
commitae1390ca6376fce8b5d5bc6de9d0febe1358dae3
tree43f7781184c90393819e7dc74a5edcf99c893362
parentc912b0fa9788f442d1566a02c6257ca32157b964
net/mlx5: SF, do not use ecpu bit for vhca state processing

Device firmware doesn't handle ecpu bit for vhca state processing
events and commands. Instead device firmware refers to the unique
function id to distinguish SF of different PCI functions.

When ecpu bit is used, firmware returns a syndrome.

mlx5_cmd_check:780:(pid 872): MODIFY_VHCA_STATE(0xb0e) op_mod(0x0) failed, status bad parameter(0x3), syndrome (0x263211)
mlx5_sf_dev_table_create:248:(pid 872): SF DEV table create err = -22

Hence, avoid using ecpu bit.

Fixes: dfb17a831774 ("net/mlx5: SF, Add port add delete functionality")
Fixes: 1a5d5fb07b8e ("net/mlx5: SF, Add auxiliary device support")
Signed-off-by: Parav Pandit <parav@nvidia.com>
Reviewed-by: Vu Pham <vuhuong@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/sf/dev/dev.c
drivers/net/ethernet/mellanox/mlx5/core/sf/hw_table.c
drivers/net/ethernet/mellanox/mlx5/core/sf/vhca_event.c
drivers/net/ethernet/mellanox/mlx5/core/sf/vhca_event.h