NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/54448: bge stops working after suspend
The following reply was made to PR kern/54448; it has been noted by GNATS.
From: coypu%sdf.org@localhost
To: gnats-bugs%netbsd.org@localhost
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);
Home |
Main Index |
Thread Index |
Old Index