NetBSD Problem Report #54448
From www@netbsd.org Thu Aug 8 19:17:08 2019
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 48F337A170
for <gnats-bugs@gnats.NetBSD.org>; Thu, 8 Aug 2019 19:17:08 +0000 (UTC)
Message-Id: <20190808191707.79DA67A178@mollari.NetBSD.org>
Date: Thu, 8 Aug 2019 19:17:07 +0000 (UTC)
From: armihu@gmail.com
Reply-To: armihu@gmail.com
To: gnats-bugs@NetBSD.org
Subject: bge stops working after suspend
X-Send-Pr-Version: www-1.0
>Number: 54448
>Category: kern
>Synopsis: bge stops working after suspend
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Aug 08 19:20:00 +0000 2019
>Last-Modified: Sat Aug 10 06:50:01 +0000 2019
>Originator: Arto Huusko
>Release: 9.99.2
>Organization:
>Environment:
>Description:
On Acer Aspire V5-131 with bge attached as
[ 1.080991] bge0 at pci3 dev 0 function 0: Broadcom BCM57785 Gigabit Ethernet
[ 1.080991] bge0: interrupting at msix1 vec 0
[ 1.080991] bge0: HW config 000a0554, 00004004, 00000008, 00000000 00000000
[ 1.080991] bge0: ASIC BCM57765 B0 (0x57785100), Ethernet address 20:89:84:7a:91:02
[ 1.080991] bge0: setting short Tx thresholds
[ 1.080991] brgphy0 at bge0 phy 1: BCM57765 1000BASE-T media interface, rev. 4
the network interface stops working after the system is suspended and resumed. Any network activity causes the following kernel message after a short delay
[ 19072.538167] bge0: autoconfiguration error: watchdog timeout -- resetting
>How-To-Repeat:
Boot -current on Acer Aspire V5-131, configure bge, suspend (sysctl -w hw.acpi.sleep.state=3) and resume, ping a host
>Fix:
N/A
>Audit-Trail:
From: coypu@sdf.org
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: kern/54448: bge stops working after suspend
Date: Thu, 8 Aug 2019 20:29:39 +0000
I expect the openbsd bge to have this fixed. so this is something
openbsd does different worth exploring. does it help?
Index: dev/pci/if_bge.c
===================================================================
RCS file: /cvsroot/src/sys/dev/pci/if_bge.c,v
retrieving revision 1.336
diff -u -r1.336 if_bge.c
--- dev/pci/if_bge.c 30 Jul 2019 15:50:08 -0000 1.336
+++ dev/pci/if_bge.c 8 Aug 2019 20:27:13 -0000
@@ -5932,6 +5932,7 @@
BGE_SETBIT(sc, BGE_PCI_MISC_CTL, BGE_PCIMISCCTL_MASK_PCI_INTR);
bge_writembx_flush(sc, BGE_MBX_IRQ0_LO, 1);
+ if (!disable) {
/*
* Tell firmware we're shutting down.
*/
@@ -5998,6 +5999,9 @@
else
BGE_CLRBIT(sc, BGE_MODE_CTL, BGE_MODECTL_STACKUP);
+
+ }
+
/* Free the RX lists. */
bge_free_rx_ring_std(sc, disable);
From: Arto Huusko <armihu@gmail.com>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: kern/54448: bge stops working after suspend
Date: Sat, 10 Aug 2019 09:49:41 +0300
On 8.8.2019 23.30, coypu@sdf.org wrote:
> I expect the openbsd bge to have this fixed. so this is something
> openbsd does different worth exploring. does it help?
Unfortunately the patch did not fix the problem.
However, I found out that if I detach bge with drvctl before suspend,
and then reattach with drvctl -r pci3 after resume it works correctly.
Arto
(Contact us)
$NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.