net/mlx5: FPGA, Add SBU bypass and reset flows
The Innova FPGA includes shell hardware and Sandbox-Unit (SBU) hardware. The shell hardware is handled by mlx5_core itself, while the SBU is handled by a client driver. Reset the SBU to a well-known initial state when initializing a new device, and set the FPGA to bypass mode when uninitializing a device. This allows the client driver to assume that its device has been reset when a new device is detected. During SBU reset, the FPGA is put into SBU-bypass mode. In this mode packets do not pass through the SBU, so it cannot affect the network data stream at all. A factory-image does not have an SBU, so skip these flows. Signed-off-by: Ilan Tayari <ilant@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
This commit is contained in:

committed by
Saeed Mahameed

parent
537a505741
commit
c43051d72a
@@ -108,6 +108,15 @@ struct mlx5_ifc_fpga_cap_bits {
|
||||
u8 reserved_at_500[0x300];
|
||||
};
|
||||
|
||||
enum {
|
||||
MLX5_FPGA_CTRL_OPERATION_LOAD = 0x1,
|
||||
MLX5_FPGA_CTRL_OPERATION_RESET = 0x2,
|
||||
MLX5_FPGA_CTRL_OPERATION_FLASH_SELECT = 0x3,
|
||||
MLX5_FPGA_CTRL_OPERATION_SANDBOX_BYPASS_ON = 0x4,
|
||||
MLX5_FPGA_CTRL_OPERATION_SANDBOX_BYPASS_OFF = 0x5,
|
||||
MLX5_FPGA_CTRL_OPERATION_RESET_SANDBOX = 0x6,
|
||||
};
|
||||
|
||||
struct mlx5_ifc_fpga_ctrl_bits {
|
||||
u8 reserved_at_0[0x8];
|
||||
u8 operation[0x8];
|
||||
|
Reference in New Issue
Block a user