summaryrefslogtreecommitdiffstats
path: root/sys/dev/bge
diff options
context:
space:
mode:
authoryongari <yongari@FreeBSD.org>2010-01-22 18:35:50 +0000
committeryongari <yongari@FreeBSD.org>2010-01-22 18:35:50 +0000
commit8a255fcbd16b22731b3ccb976ebf1d8073064a99 (patch)
tree77bc9263d8a573f675aaa83b46bb2754ad885288 /sys/dev/bge
parent6f01777da83a92f207d22f531ce63bf764e50bc9 (diff)
downloadFreeBSD-src-8a255fcbd16b22731b3ccb976ebf1d8073064a99.zip
FreeBSD-src-8a255fcbd16b22731b3ccb976ebf1d8073064a99.tar.gz
Fix a long standing ASF heartbeat sending bug. The initial
implementation of heartbeat interval was 2 but there was typo which caused the heartbeat is sent approximately every 5 seconds. This caused unintended controller reset by firmware because firmware thought OS was crashed. Submitted by: Floris Bos < info <> je-eigen-domein dot nl > Tested by: Andrzej Tobola < ato <> iem dot pw dot edu dot pl >
Diffstat (limited to 'sys/dev/bge')
-rw-r--r--sys/dev/bge/if_bge.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/bge/if_bge.c b/sys/dev/bge/if_bge.c
index b321d79..fdbb08c 100644
--- a/sys/dev/bge/if_bge.c
+++ b/sys/dev/bge/if_bge.c
@@ -3677,7 +3677,7 @@ bge_asf_driver_up(struct bge_softc *sc)
if (sc->bge_asf_count)
sc->bge_asf_count --;
else {
- sc->bge_asf_count = 5;
+ sc->bge_asf_count = 2;
bge_writemem_ind(sc, BGE_SOFTWARE_GENCOMM_FW,
BGE_FW_DRV_ALIVE);
bge_writemem_ind(sc, BGE_SOFTWARE_GENNCOMM_FW_LEN, 4);
OpenPOWER on IntegriCloud