Module Name: src Committed By: msaitoh Date: Thu Apr 30 16:09:06 UTC 2015
Modified Files: src/sys/dev/pci: if_bge.c if_bgereg.h Log Message: Use another firmware command in bge_asf_driver_up(). This change fixes a bug that watchdog timeout occurs every 20-30 minutes on HP ML110 G6 reported enami@ in PR#49657. To generate a diff of this commit: cvs rdiff -u -r1.284 -r1.285 src/sys/dev/pci/if_bge.c cvs rdiff -u -r1.89 -r1.90 src/sys/dev/pci/if_bgereg.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/pci/if_bge.c diff -u src/sys/dev/pci/if_bge.c:1.284 src/sys/dev/pci/if_bge.c:1.285 --- src/sys/dev/pci/if_bge.c:1.284 Thu Apr 30 15:48:46 2015 +++ src/sys/dev/pci/if_bge.c Thu Apr 30 16:09:06 2015 @@ -1,4 +1,4 @@ -/* $NetBSD: if_bge.c,v 1.284 2015/04/30 15:48:46 msaitoh Exp $ */ +/* $NetBSD: if_bge.c,v 1.285 2015/04/30 16:09:06 msaitoh Exp $ */ /* * Copyright (c) 2001 Wind River Systems @@ -79,7 +79,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.284 2015/04/30 15:48:46 msaitoh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.285 2015/04/30 16:09:06 msaitoh Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -4726,7 +4726,7 @@ bge_asf_driver_up(struct bge_softc *sc) bge_wait_for_event_ack(sc); bge_writemem_ind(sc, BGE_SRAM_FW_CMD_MB, - BGE_FW_CMD_DRV_ALIVE); + BGE_FW_CMD_DRV_ALIVE3); bge_writemem_ind(sc, BGE_SRAM_FW_CMD_LEN_MB, 4); bge_writemem_ind(sc, BGE_SRAM_FW_CMD_DATA_MB, BGE_FW_HB_TIMEOUT_SEC); Index: src/sys/dev/pci/if_bgereg.h diff -u src/sys/dev/pci/if_bgereg.h:1.89 src/sys/dev/pci/if_bgereg.h:1.90 --- src/sys/dev/pci/if_bgereg.h:1.89 Thu Apr 30 15:48:47 2015 +++ src/sys/dev/pci/if_bgereg.h Thu Apr 30 16:09:06 2015 @@ -1,4 +1,4 @@ -/* $NetBSD: if_bgereg.h,v 1.89 2015/04/30 15:48:47 msaitoh Exp $ */ +/* $NetBSD: if_bgereg.h,v 1.90 2015/04/30 16:09:06 msaitoh Exp $ */ /* * Copyright (c) 2001 Wind River Systems * Copyright (c) 1997, 1998, 1999, 2001 @@ -100,6 +100,7 @@ #define BGE_FW_CMD_DRV_ALIVE 0x00000001 #define BGE_FW_CMD_PAUSE 0x00000002 +#define BGE_FW_CMD_DRV_ALIVE3 0x0000000e #define BGE_FW_HB_TIMEOUT_SEC 3