net/mlx5: Do not query MPIR on embedded CPU function
authorTariq Toukan <tariqt@nvidia.com>
Wed, 22 May 2024 19:26:53 +0000 (22:26 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 May 2024 12:27:07 +0000 (13:27 +0100)
commitfca3b4791850b7e2181f0b3195b66d53df83151b
tree7f7640722053e7da3f3e9d7984c4476fcba828ed
parent51ef9305b8f40946d65c40368ffb4c14636d369a
net/mlx5: Do not query MPIR on embedded CPU function

A proper query to MPIR needs to set the correct value in the depth field.
On embedded CPU this value is not necessarily zero. As there is no real
use case for multi-PF netdev on the embedded CPU of the smart NIC, block
this option.

This fixes the following failure:
ACCESS_REG(0x805) op_mod(0x1) failed, status bad system state(0x4), syndrome (0x685f19), err(-5)

Fixes: 678eb448055a ("net/mlx5: SD, Implement basic query and instantiation")
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/lib/sd.c