All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 net 0/3] ionic: fw upgrade bug fixes
@ 2020-04-30 21:33 Shannon Nelson
  2020-04-30 21:33 ` [PATCH v2 net 1/3] ionic: no link check until after probe Shannon Nelson
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Shannon Nelson @ 2020-04-30 21:33 UTC (permalink / raw)
  To: netdev, davem; +Cc: Shannon Nelson

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(-)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH v2 net 1/3] ionic: no link check until after probe
  2020-04-30 21:33 [PATCH v2 net 0/3] ionic: fw upgrade bug fixes Shannon Nelson
@ 2020-04-30 21:33 ` Shannon Nelson
  2020-04-30 21:33 ` [PATCH v2 net 2/3] ionic: refresh devinfo after fw-upgrade Shannon Nelson
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Shannon Nelson @ 2020-04-30 21:33 UTC (permalink / raw)
  To: netdev, davem; +Cc: Shannon Nelson

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")
Signed-off-by: Shannon Nelson <snelson@pensando.io>
---
 drivers/net/ethernet/pensando/ionic/ionic_lif.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/net/ethernet/pensando/ionic/ionic_lif.c b/drivers/net/ethernet/pensando/ionic/ionic_lif.c
index 5acf4f46c268..bbc6c79e0f04 100644
--- a/drivers/net/ethernet/pensando/ionic/ionic_lif.c
+++ b/drivers/net/ethernet/pensando/ionic/ionic_lif.c
@@ -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;
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH v2 net 2/3] ionic: refresh devinfo after fw-upgrade
  2020-04-30 21:33 [PATCH v2 net 0/3] ionic: fw upgrade bug fixes Shannon Nelson
  2020-04-30 21:33 ` [PATCH v2 net 1/3] ionic: no link check until after probe Shannon Nelson
@ 2020-04-30 21:33 ` Shannon Nelson
  2020-04-30 21:33 ` [PATCH v2 net 3/3] ionic: add device reset to fw upgrade down Shannon Nelson
  2020-05-01  1:03 ` [PATCH v2 net 0/3] ionic: fw upgrade bug fixes David Miller
  3 siblings, 0 replies; 5+ messages in thread
From: Shannon Nelson @ 2020-04-30 21:33 UTC (permalink / raw)
  To: netdev, davem; +Cc: 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")
Signed-off-by: Shannon Nelson <snelson@pensando.io>
---
 drivers/net/ethernet/pensando/ionic/ionic_lif.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/ethernet/pensando/ionic/ionic_lif.c b/drivers/net/ethernet/pensando/ionic/ionic_lif.c
index bbc6c79e0f04..6fcfb634d809 100644
--- a/drivers/net/ethernet/pensando/ionic/ionic_lif.c
+++ b/drivers/net/ethernet/pensando/ionic/ionic_lif.c
@@ -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;
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH v2 net 3/3] ionic: add device reset to fw upgrade down
  2020-04-30 21:33 [PATCH v2 net 0/3] ionic: fw upgrade bug fixes Shannon Nelson
  2020-04-30 21:33 ` [PATCH v2 net 1/3] ionic: no link check until after probe Shannon Nelson
  2020-04-30 21:33 ` [PATCH v2 net 2/3] ionic: refresh devinfo after fw-upgrade Shannon Nelson
@ 2020-04-30 21:33 ` Shannon Nelson
  2020-05-01  1:03 ` [PATCH v2 net 0/3] ionic: fw upgrade bug fixes David Miller
  3 siblings, 0 replies; 5+ messages in thread
From: Shannon Nelson @ 2020-04-30 21:33 UTC (permalink / raw)
  To: netdev, davem; +Cc: Shannon Nelson

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

Signed-off-by: Shannon Nelson <snelson@pensando.io>
---
 drivers/net/ethernet/pensando/ionic/ionic_lif.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/ethernet/pensando/ionic/ionic_lif.c b/drivers/net/ethernet/pensando/ionic/ionic_lif.c
index 6fcfb634d809..d5293bfded29 100644
--- a/drivers/net/ethernet/pensando/ionic/ionic_lif.c
+++ b/drivers/net/ethernet/pensando/ionic/ionic_lif.c
@@ -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");
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH v2 net 0/3] ionic: fw upgrade bug fixes
  2020-04-30 21:33 [PATCH v2 net 0/3] ionic: fw upgrade bug fixes Shannon Nelson
                   ` (2 preceding siblings ...)
  2020-04-30 21:33 ` [PATCH v2 net 3/3] ionic: add device reset to fw upgrade down Shannon Nelson
@ 2020-05-01  1:03 ` David Miller
  3 siblings, 0 replies; 5+ messages in thread
From: David Miller @ 2020-05-01  1:03 UTC (permalink / raw)
  To: snelson; +Cc: netdev

From: Shannon Nelson <snelson@pensando.io>
Date: Thu, 30 Apr 2020 14:33:40 -0700

> 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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-05-01  1:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-30 21:33 [PATCH v2 net 0/3] ionic: fw upgrade bug fixes Shannon Nelson
2020-04-30 21:33 ` [PATCH v2 net 1/3] ionic: no link check until after probe Shannon Nelson
2020-04-30 21:33 ` [PATCH v2 net 2/3] ionic: refresh devinfo after fw-upgrade Shannon Nelson
2020-04-30 21:33 ` [PATCH v2 net 3/3] ionic: add device reset to fw upgrade down Shannon Nelson
2020-05-01  1:03 ` [PATCH v2 net 0/3] ionic: fw upgrade bug fixes David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.