From 27913351047b2f49c49c5f3dfc3bcbe3672eea36 Mon Sep 17 00:00:00 2001 From: Navdeep Parhar Date: Thu, 20 Apr 2023 12:43:45 -0700 Subject: [PATCH] cxgbe(4): Dump the firmware log before falling back to a minimal config. It might have errors that explain why the attempted configuration failed. MFC after: 1 week Sponsored by: Chelsio Communications --- 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 18698ff468f3..ebf830d4db70 100644 --- a/sys/dev/cxgbe/t4_main.c +++ b/sys/dev/cxgbe/t4_main.c @@ -5096,6 +5096,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",