netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] tg3: power down device only on SYSTEM_POWER_OFF
@ 2023-11-03 11:50 George Shuklin
  2023-11-03 12:19 ` Pavan Chebbi
  2023-11-07  1:30 ` patchwork-bot+netdevbpf
  0 siblings, 2 replies; 4+ messages in thread
From: George Shuklin @ 2023-11-03 11:50 UTC (permalink / raw)
  To: netdev; +Cc: kai.heng.feng, George Shuklin

Dell R650xs servers hangs on reboot 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).

The actual problem is on Dell side, but this fix allows servers
to come back alive after reboot.

Signed-off-by: George Shuklin <george.shuklin@gmail.com>
Fixes: 2ca1c94ce0b6 ("tg3: Disable tg3 device on system reboot to avoid triggering AER")
---
 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] 4+ messages in thread

* Re: [PATCH v2] tg3: power down device only on SYSTEM_POWER_OFF
  2023-11-03 11:50 [PATCH v2] tg3: power down device only on SYSTEM_POWER_OFF George Shuklin
@ 2023-11-03 12:19 ` Pavan Chebbi
  2023-11-03 23:04   ` Michael Chan
  2023-11-07  1:30 ` patchwork-bot+netdevbpf
  1 sibling, 1 reply; 4+ messages in thread
From: Pavan Chebbi @ 2023-11-03 12:19 UTC (permalink / raw)
  To: George Shuklin; +Cc: netdev, kai.heng.feng

[-- Attachment #1: Type: text/plain, Size: 1269 bytes --]

On Fri, Nov 3, 2023 at 5:21 PM George Shuklin <george.shuklin@gmail.com> wrote:
>
> Dell R650xs servers hangs on reboot 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).
>
> The actual problem is on Dell side, but this fix allows servers
> to come back alive after reboot.
>
> Signed-off-by: George Shuklin <george.shuklin@gmail.com>
> Fixes: 2ca1c94ce0b6 ("tg3: Disable tg3 device on system reboot to avoid triggering AER")
> ---
>  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
>
>

Reviewed-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Thank you.

[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4209 bytes --]

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

* Re: [PATCH v2] tg3: power down device only on SYSTEM_POWER_OFF
  2023-11-03 12:19 ` Pavan Chebbi
@ 2023-11-03 23:04   ` Michael Chan
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Chan @ 2023-11-03 23:04 UTC (permalink / raw)
  To: Pavan Chebbi; +Cc: George Shuklin, netdev, kai.heng.feng

[-- Attachment #1: Type: text/plain, Size: 727 bytes --]

On Fri, Nov 3, 2023 at 5:19 AM Pavan Chebbi <pavan.chebbi@broadcom.com> wrote:
>
> On Fri, Nov 3, 2023 at 5:21 PM George Shuklin <george.shuklin@gmail.com> wrote:
> >
> > Dell R650xs servers hangs on reboot 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).
> >
> > The actual problem is on Dell side, but this fix allows servers
> > to come back alive after reboot.
> >
> > Signed-off-by: George Shuklin <george.shuklin@gmail.com>
> > Fixes: 2ca1c94ce0b6 ("tg3: Disable tg3 device on system reboot to avoid triggering AER")

Thanks.

Reviewed-by: Michael Chan <michael.chan@broadcom.com>

[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4209 bytes --]

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

* Re: [PATCH v2] tg3: power down device only on SYSTEM_POWER_OFF
  2023-11-03 11:50 [PATCH v2] tg3: power down device only on SYSTEM_POWER_OFF George Shuklin
  2023-11-03 12:19 ` Pavan Chebbi
@ 2023-11-07  1:30 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 4+ messages in thread
From: patchwork-bot+netdevbpf @ 2023-11-07  1:30 UTC (permalink / raw)
  To: George Shuklin; +Cc: netdev, kai.heng.feng

Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Fri,  3 Nov 2023 13:50:29 +0200 you wrote:
> Dell R650xs servers hangs on reboot 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).
> 
> The actual problem is on Dell side, but this fix allows servers
> to come back alive after reboot.
> 
> [...]

Here is the summary with links:
  - [v2] tg3: power down device only on SYSTEM_POWER_OFF
    https://git.kernel.org/netdev/net/c/9fc3bc764334

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



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

end of thread, other threads:[~2023-11-07  1:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-03 11:50 [PATCH v2] tg3: power down device only on SYSTEM_POWER_OFF George Shuklin
2023-11-03 12:19 ` Pavan Chebbi
2023-11-03 23:04   ` Michael Chan
2023-11-07  1:30 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).