ixgbe: Check for fw_recovery

The x550 uses an upgradable flash code.  Check for recovery condition
like other flashable intel cards do in case of fw errors.

MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D31869
This commit is contained in:
Kevin Bowling
2023-08-09 17:31:49 -07:00
parent 517e0978db
commit 8b4a3fbdd5
+9
View File
@@ -919,6 +919,15 @@ ixgbe_if_attach_pre(if_ctx_t ctx)
goto err_pci;
}
if (hw->mac.ops.fw_recovery_mode && hw->mac.ops.fw_recovery_mode(hw)) {
device_printf(dev, "Firmware recovery mode detected. Limiting "
"functionality.\nRefer to the Intel(R) Ethernet Adapters "
"and Devices User Guide for details on firmware recovery "
"mode.");
error = ENOSYS;
goto err_pci;
}
if (hw->mbx.ops.init_params)
hw->mbx.ops.init_params(hw);