git: b9ead2c2e71c - stable/13 - cxgbe(4): Dump the firmware log before falling back to a minimal config.

From: Navdeep Parhar <np_at_FreeBSD.org>
Date: Thu, 11 Jan 2024 05:34:30 UTC
The branch stable/13 has been updated by np:

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

commit b9ead2c2e71c732e488e9f358ec36e1d4417e0d2
Author:     Navdeep Parhar <np@FreeBSD.org>
AuthorDate: 2023-04-20 19:43:45 +0000
Commit:     Navdeep Parhar <np@FreeBSD.org>
CommitDate: 2024-01-11 05:06:59 +0000

    cxgbe(4): Dump the firmware log before falling back to a minimal config.
    
    It might have errors that explain why the attempted configuration
    failed.
    
    Sponsored by:   Chelsio Communications
    
    (cherry picked from commit 27913351047b2f49c49c5f3dfc3bcbe3672eea36)
---
 sys/dev/cxgbe/t4_main.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sys/dev/cxgbe/t4_main.c b/sys/dev/cxgbe/t4_main.c
index ebc341419946..8a4b31209501 100644
--- a/sys/dev/cxgbe/t4_main.c
+++ b/sys/dev/cxgbe/t4_main.c
@@ -5161,6 +5161,7 @@ partition_resources(struct adapter *sc)
 retry:
 	rc = apply_cfg_and_initialize(sc, cfg_file, &caps_allowed);
 	if (rc != 0 && fallback) {
+		dump_devlog(sc);
 		device_printf(sc->dev,
 		    "failed (%d) to configure card with \"%s\" profile, "
 		    "will fall back to a basic configuration and retry.\n",