Netdev List
 help / color / mirror / Atom feed
* [PATCH] [PATCH net] tg3: power down device only on SYSTEM_POWER_OFF
@ 2023-11-01 13:04 George Shuklin
  2023-11-01 15:20 ` Pavan Chebbi
  0 siblings, 1 reply; 8+ messages in thread
From: George Shuklin @ 2023-11-01 13:04 UTC (permalink / raw)
  To: netdev; +Cc: George Shuklin

Dell R650xs servers hangs if tg3 driver calls tg3_power_down.

This happens only if network adapters (BCM5720 for R650xs) were
initialized using SNP (e.g. by booting ipxe.efi).

This is partial revert of commit 2ca1c94ce0b.

The actual problem is on Dell side, but this fix allow servers
to come back alive after reboot.
---
 drivers/net/ethernet/broadcom/tg3.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/broadcom/tg3.c b/drivers/net/ethernet/broadcom/tg3.c
index 14b311196b8f..22b00912f7ac 100644
--- a/drivers/net/ethernet/broadcom/tg3.c
+++ b/drivers/net/ethernet/broadcom/tg3.c
@@ -18078,7 +18078,8 @@ static void tg3_shutdown(struct pci_dev *pdev)
 	if (netif_running(dev))
 		dev_close(dev);
 
-	tg3_power_down(tp);
+	if (system_state == SYSTEM_POWER_OFF)
+		tg3_power_down(tp);
 
 	rtnl_unlock();
 
-- 
2.42.0


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

end of thread, other threads:[~2023-11-03  3:48 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-01 13:04 [PATCH] [PATCH net] tg3: power down device only on SYSTEM_POWER_OFF George Shuklin
2023-11-01 15:20 ` Pavan Chebbi
2023-11-01 19:58   ` George Shuklin
2023-11-02  7:04     ` Pavan Chebbi
2023-11-02 14:14       ` George Shuklin
2023-11-02 17:11         ` Pavan Chebbi
2023-11-02 17:49           ` Michael Chan
2023-11-03  3:48             ` Pavan Chebbi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox