Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Aug 2023 00:30:59 GMT
From:      Kevin Bowling <kbowling@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: a6b804a4f6f4 - stable/13 - ixgbe: Check for fw_recovery
Message-ID:  <202308170030.37H0Ux5U037371@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by kbowling:

URL: https://cgit.FreeBSD.org/src/commit/?id=a6b804a4f6f499a63f428f73fba67ea8ccacb07a

commit a6b804a4f6f499a63f428f73fba67ea8ccacb07a
Author:     Kevin Bowling <kbowling@FreeBSD.org>
AuthorDate: 2023-08-10 00:31:49 +0000
Commit:     Kevin Bowling <kbowling@FreeBSD.org>
CommitDate: 2023-08-17 00:30:47 +0000

    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.
    
    Differential Revision:  https://reviews.freebsd.org/D31869
    
    (cherry picked from commit 8b4a3fbdd57215cffde530e2fa3098c272a985fe)
---
 sys/dev/ixgbe/if_ix.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/sys/dev/ixgbe/if_ix.c b/sys/dev/ixgbe/if_ix.c
index 150fdff03d05..4245f4f08eb7 100644
--- a/sys/dev/ixgbe/if_ix.c
+++ b/sys/dev/ixgbe/if_ix.c
@@ -921,6 +921,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);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202308170030.37H0Ux5U037371>