aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNavdeep Parhar <np@FreeBSD.org>2023-04-20 19:43:45 +0000
committerNavdeep Parhar <np@FreeBSD.org>2024-01-11 05:06:59 +0000
commitb9ead2c2e71c732e488e9f358ec36e1d4417e0d2 (patch)
treec210be65fb05c4d3e5cc32bb5b33a9f0ab633711
parent8b7e008183c94f8763c18390a9dc95c75b5f55b3 (diff)
downloadsrc-b9ead2c2e71c732e488e9f358ec36e1d4417e0d2.tar.gz
src-b9ead2c2e71c732e488e9f358ec36e1d4417e0d2.zip
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)
-rw-r--r--sys/dev/cxgbe/t4_main.c1
1 files changed, 1 insertions, 0 deletions
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",