]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
net/mlx5: FPGA, print SBU identification on init
authorIlan Tayari <ilant@mellanox.com>
Tue, 4 Jul 2017 09:53:29 +0000 (12:53 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Wed, 30 May 2018 00:27:50 +0000 (17:27 -0700)
Add print of the following values on init:
1. ieee vendor id
2. sandbox product id
3. sandbox product version

Signed-off-by: Ilan Tayari <ilant@mellanox.com>
Signed-off-by: Adi Nissim <adin@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/fpga/core.c

index 8531098a7f19a1f8b488f24e6ed329c889b3eae7..02319f779a49f7061d39fcc914ccfa35f34d14ca 100644 (file)
@@ -160,11 +160,14 @@ int mlx5_fpga_device_start(struct mlx5_core_dev *mdev)
                goto out;
 
        fpga_device_id = MLX5_CAP_FPGA(fdev->mdev, fpga_device);
-       mlx5_fpga_info(fdev, "%s:%u; %s image, version %u\n",
+       mlx5_fpga_info(fdev, "%s:%u; %s image, version %u; SBU %06x:%04x version %d\n",
                       mlx5_fpga_device_name(fpga_device_id),
                       fpga_device_id,
                       mlx5_fpga_image_name(fdev->last_oper_image),
-                      MLX5_CAP_FPGA(fdev->mdev, image_version));
+                      MLX5_CAP_FPGA(fdev->mdev, image_version),
+                      MLX5_CAP_FPGA(fdev->mdev, ieee_vendor_id),
+                      MLX5_CAP_FPGA(fdev->mdev, sandbox_product_id),
+                      MLX5_CAP_FPGA(fdev->mdev, sandbox_product_version));
 
        max_num_qps = MLX5_CAP_FPGA(mdev, shell_caps.max_num_qps);
        err = mlx5_core_reserve_gids(mdev, max_num_qps);