Commit f62eb932 authored by Aya Levin's avatar Aya Levin Committed by Saeed Mahameed

net/mlx5: Tolerate failures in debug features while driver load

FW tracer and resource dump are debug features. Although failing to
initialize them may indicate an error, don't let this stop device
loading.
Signed-off-by: default avatarAya Levin <ayal@nvidia.com>
Reviewed-by: default avatarTariq Toukan <tariqt@nvidia.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@nvidia.com>
parent 2b0247e2
...@@ -1112,8 +1112,9 @@ static int mlx5_load(struct mlx5_core_dev *dev) ...@@ -1112,8 +1112,9 @@ static int mlx5_load(struct mlx5_core_dev *dev)
err = mlx5_fw_tracer_init(dev->tracer); err = mlx5_fw_tracer_init(dev->tracer);
if (err) { if (err) {
mlx5_core_err(dev, "Failed to init FW tracer\n"); mlx5_core_err(dev, "Failed to init FW tracer %d\n", err);
goto err_fw_tracer; mlx5_fw_tracer_destroy(dev->tracer);
dev->tracer = NULL;
} }
mlx5_fw_reset_events_start(dev); mlx5_fw_reset_events_start(dev);
...@@ -1121,8 +1122,9 @@ static int mlx5_load(struct mlx5_core_dev *dev) ...@@ -1121,8 +1122,9 @@ static int mlx5_load(struct mlx5_core_dev *dev)
err = mlx5_rsc_dump_init(dev); err = mlx5_rsc_dump_init(dev);
if (err) { if (err) {
mlx5_core_err(dev, "Failed to init Resource dump\n"); mlx5_core_err(dev, "Failed to init Resource dump %d\n", err);
goto err_rsc_dump; mlx5_rsc_dump_destroy(dev);
dev->rsc_dump = NULL;
} }
err = mlx5_fpga_device_start(dev); err = mlx5_fpga_device_start(dev);
...@@ -1192,11 +1194,9 @@ static int mlx5_load(struct mlx5_core_dev *dev) ...@@ -1192,11 +1194,9 @@ static int mlx5_load(struct mlx5_core_dev *dev)
mlx5_fpga_device_stop(dev); mlx5_fpga_device_stop(dev);
err_fpga_start: err_fpga_start:
mlx5_rsc_dump_cleanup(dev); mlx5_rsc_dump_cleanup(dev);
err_rsc_dump:
mlx5_hv_vhca_cleanup(dev->hv_vhca); mlx5_hv_vhca_cleanup(dev->hv_vhca);
mlx5_fw_reset_events_stop(dev); mlx5_fw_reset_events_stop(dev);
mlx5_fw_tracer_cleanup(dev->tracer); mlx5_fw_tracer_cleanup(dev->tracer);
err_fw_tracer:
mlx5_eq_table_destroy(dev); mlx5_eq_table_destroy(dev);
err_eq_table: err_eq_table:
mlx5_irq_table_destroy(dev); mlx5_irq_table_destroy(dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment