Skip to contentSkip to conversation

ionic: fw upgrade bug fixes

PATCH In review Shannon Nelson 2 participants 5 messages Apr 30, 2020 – May 1, 2020

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

v2 cover ionic: fw upgrade bug fixes

These patches address issues found in additional internal fw-upgrade testing.

Shannon Nelson (3):
ionic: no link check until after probe
ionic: refresh devinfo after fw-upgrade
ionic: add device reset to fw upgrade down

v2:
- replaced extra state flag with postponing first link check
- added device reset patch

 drivers/net/ethernet/pensando/ionic/ionic_lif.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Signature · 1 line
2.17.1
#1 lore raw

PATCH v2 1/3 ionic: no link check until after probe

Don't bother with the link check during probe, let the watchdog notice the first link-up. This allows probe to finish cleanly without any interruptions from over excited user programs opening the device as soon as it is registered.

Fixes c672412f6172 ("ionic: remove lifs on fw reset")
---
 drivers/net/ethernet/pensando/ionic/ionic_lif.c | 2 --
 1 file changed, 2 deletions(-)
drivers/net/ethernet/pensando/ionic/ionic_lif.c +0 -2
index 5acf4f46c268..bbc6c79e0f04 100644
@@ -2549,8 +2549,6 @@ int ionic_lifs_register(struct ionic *ionic)
 		dev_err(ionic->dev, "Cannot register net device, aborting\n");
 		return err;
 	}
-
-	ionic_link_status_check_request(ionic->master_lif);
 	ionic->master_lif->registered = true;
 
 	return 0;
Signature · 1 line
2.17.1
#2 lore raw

PATCH v2 2/3 ionic: refresh devinfo after fw-upgrade

In reply to Shannon Nelson

Make sure we can report the new FW version after a fw-upgrade has finished by re-reading the device's fw version information.

Fixes c672412f6172 ("ionic: remove lifs on fw reset")
---
 drivers/net/ethernet/pensando/ionic/ionic_lif.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/pensando/ionic/ionic_lif.c +1 -0
index bbc6c79e0f04..6fcfb634d809 100644
@@ -2116,6 +2116,7 @@ static void ionic_lif_handle_fw_up(struct ionic_lif *lif)
 
 	dev_info(ionic->dev, "FW Up: restarting LIFs\n");
 
+	ionic_init_devinfo(ionic);
 	err = ionic_qcqs_alloc(lif);
 	if (err)
 		goto err_out;
Signature · 1 line
2.17.1
#3 lore raw

PATCH v2 3/3 ionic: add device reset to fw upgrade down

In reply to Shannon Nelson

Doing a device reset addresses an obscure FW timing issue in the FW upgrade process.

---
 drivers/net/ethernet/pensando/ionic/ionic_lif.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/pensando/ionic/ionic_lif.c +1 -0
index 6fcfb634d809..d5293bfded29 100644
@@ -2101,6 +2101,7 @@ static void ionic_lif_handle_fw_down(struct ionic_lif *lif)
 		ionic_txrx_free(lif);
 	}
 	ionic_lifs_deinit(ionic);
+	ionic_reset(ionic);
 	ionic_qcqs_free(lif);
 
 	dev_info(ionic->dev, "FW Down: LIFs stopped\n");
Signature · 1 line
2.17.1
maintainer
#4 lore raw
In reply to Shannon Nelson

From: Shannon Nelson <[email protected]>
Date: Thu, 30 Apr 2020 14:33:40 -0700

Quoted 11 lines

These patches address issues found in additional internal fw-upgrade testing.

Shannon Nelson (3):
ionic: no link check until after probe
ionic: refresh devinfo after fw-upgrade
ionic: add device reset to fw upgrade down

v2:
- replaced extra state flag with postponing first link check
- added device reset patch

Series applied, thank you.