Subject: bge(4) issues ?
To: None <current-users@netbsd.org>
From: A.R.S. <solics@romtelenet.org>
List: current-users
Date: 10/31/2004 20:37:46
given the folowing kernel config && dmesg i have this in my 
/var/log/messages every now and then with a distance of 30 mins, 1 hour 
between repeating:

bge1: watchdog timeout -- resetting
bge1: block failed to stop: reg 0x3400, bit 0x00000002
bge1: block failed to stop: reg 0x2400, bit 0x00000002
bge1: block failed to stop: reg 0x3c00, bit 0x00000002
bge1: block failed to stop: reg 0x4c00, bit 0x00000002
bge0: watchdog timeout -- resetting
bge0: block failed to stop: reg 0x3400, bit 0x00000002
bge0: block failed to stop: reg 0x2400, bit 0x00000002
bge0: block failed to stop: reg 0x1400, bit 0x00000002
bge0: block failed to stop: reg 0xc00, bit 0x00000002
bge0: block failed to stop: reg 0x3c00, bit 0x00000002
bge0: block failed to stop: reg 0x4c00, bit 0x00000002

also conectivity breaks to my isp plugged in the bge(4)s and THIS HURTS!


the setup is as follows:
              
isp1--------|bge0-(bridge0)-bge1|---->
isp2--------|ex0--(bridge1)--ex1|---->
isp3--------|wm0--(bridge2)--wm1|---->
                (this machine)         (router, lan)
here is my kernel config, a GENERIC with some tuneups


<kernel-config>
include "arch/i386/conf/GENERIC"

options         MULTIPROCESSOR
options         COM_MPLOCK      # com MP locking; REQUIRED on MP i386
options         APM_NO_IDLE
options         MPACPI          
acpi0          at mainbus0
options        ALTQ            # Manipulate network interfaces' output 
queues
options        ALTQ_BLUE       # Stochastic Fair Blue
options        ALTQ_CBQ        # Class-Based Queueing
options        ALTQ_CDNR       # Diffserv Traffic Conditioner
options        ALTQ_FIFOQ      # First-In First-Out Queue
options        ALTQ_FLOWVALVE  # RED/flow-valve (red-penalty-box)
options        ALTQ_HFSC       # Hierarchical Fair Service Curve
options        ALTQ_LOCALQ     # Local queueing discipline
options        ALTQ_PRIQ       # Priority Queueing
options        ALTQ_RED        # Random Early Detection
options        ALTQ_RIO        # RED with IN/OUT
options        ALTQ_WFQ        # Weighted Fair Queueing

options        BRIDGE_IPF
ioapic*         at mainbus? apid ?
acpitz*        at acpi?                # ACPI Thermal Zone

options NMBCLUSTERS=8192 # Increase number of network buffers.
options MAX_KMAPENT=3000 # Need more kmap entries due to extensive use 
of kernel virtual memory
</kernel-config>


and here the dmesg.boot

<dmesg.boot>
NetBSD 2.0_RC4 (GENERIC.MP-ACPI-HFSC) #0: Thu Oct 28 17:18:05 EEST 2004
        
root@host.domain.tld:/usr/work/obj/usr/src/sys/arch/i386/compile/GENERIC.MP-ACPI-HFSC
total memory = 1023 MB
avail memory = 993 MB
BIOS32 rev. 0 found at 0xfd6e0
mainbus0 (root)
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel Xeon (686-class), 2392.37 MHz, id 0xf24
cpu0: features 3febfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features 3febfbff<PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX>
cpu0: features 3febfbff<FXSR,SSE,SSE2,SS,HTT,TM>
cpu0: I-cache 12K uOp cache 8-way, D-cache 8 KB 64B/line 4-way
cpu0: L2 cache 512 KB 64B/line 8-way
cpu0: ITLB 4K/4M: 64 entries
cpu0: DTLB 4K/4M: 64 entries
cpu0: calibrating local timer
cpu0: apic clock running at 99 MHz
cpu0: 16 page colors
cpu1 at mainbus0: apid 6 (application processor)
cpu1: starting
cpu1: Intel Xeon (686-class), 2392.25 MHz, id 0xf24
cpu1: features 3febfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu1: features 3febfbff<PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX>
cpu1: features 3febfbff<FXSR,SSE,SSE2,SS,HTT,TM>
cpu1: I-cache 12K uOp cache 8-way, D-cache 8 KB 64B/line 4-way
cpu1: L2 cache 512 KB 64B/line 8-way
cpu1: ITLB 4K/4M: 64 entries
cpu1: DTLB 4K/4M: 64 entries
cpu2 at mainbus0: apid 1 (application processor)
cpu2: starting
cpu2: Intel Xeon (686-class), 2392.24 MHz, id 0xf24
cpu2: features 3febfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu2: features 3febfbff<PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX>
cpu2: features 3febfbff<FXSR,SSE,SSE2,SS,HTT,TM>
cpu2: I-cache 12K uOp cache 8-way, D-cache 8 KB 64B/line 4-way
cpu2: L2 cache 512 KB 64B/line 8-way
cpu2: ITLB 4K/4M: 64 entries
cpu2: DTLB 4K/4M: 64 entries
cpu3 at mainbus0: apid 7 (application processor)
cpu3: starting
cpu3: Intel Xeon (686-class), 2392.24 MHz, id 0xf24
cpu3: features 3febfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu3: features 3febfbff<PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX>
cpu3: features 3febfbff<FXSR,SSE,SSE2,SS,HTT,TM>
cpu3: I-cache 12K uOp cache 8-way, D-cache 8 KB 64B/line 4-way
cpu3: L2 cache 512 KB 64B/line 8-way
cpu3: ITLB 4K/4M: 64 entries
cpu3: DTLB 4K/4M: 64 entries
ioapic0 at mainbus0 apid 2 (I/O APIC)
ioapic0: pa 0xfec00000, version 20, 24 pins
ioapic1 at mainbus0 apid 3 (I/O APIC)
ioapic1: pa 0xfec80000, version 20, 24 pins
ioapic2 at mainbus0 apid 4 (I/O APIC)
ioapic2: pa 0xfec80400, version 20, 24 pins
cpu4 at mainbus0: (uniprocessor)
cpu4: Intel Xeon (686-class), 2392.24 MHz, id 0xf24
cpu4: features 3febfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu4: features 3febfbff<PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX>
cpu4: features 3febfbff<FXSR,SSE,SSE2,SS,HTT,TM>
cpu4: I-cache 12K uOp cache 8-way, D-cache 8 KB 64B/line 4-way
cpu4: L2 cache 512 KB 64B/line 8-way
cpu4: ITLB 4K/4M: 64 entries
cpu4: DTLB 4K/4M: 64 entries
acpi0 at mainbus0
acpi0: using Intel ACPI CA subsystem version 20040211
acpi0: X/RSDT: OemId <PTLTD ,  RSDT  ,06040000>, AslId < LTP,00000000>
acpi0: SCI interrupting at int 9
acpi0: fixed-feature power button present
ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
PNP0A03 at acpi0 not configured
PNP0C0F at acpi0 not configured
PNP0C0F at acpi0 not configured
PNP0C0F at acpi0 not configured
PNP0C0F at acpi0 not configured
PNP0C0F at acpi0 not configured
PNP0C0F at acpi0 not configured
PNP0C0F at acpi0 not configured
INT0800 at acpi0 not configured
PNP0C02 at acpi0 not configured
PNP0200 at acpi0 not configured
PNP0C04 at acpi0 not configured
PNP0000 at acpi0 not configured
PNP0B00 at acpi0 not configured
:
PNP0800 at acpi0 not configured
PNP0100 at acpi0 not configured
PNP0A06 at acpi0 not configured
PNP0303 at acpi0 not configured
PNP0C0C at acpi0 not configured
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: Intel E7501 MCH Host (rev. 0x01)
Intel E7500 MCH DRAM Controller (undefined subclass 0x00, revision 0x01) 
at pci0 dev 0 function 1 not configured
ppb0 at pci0 dev 2 function 0: Intel E7500 MCH HI_B vppb 1 (rev. 0x01)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
Intel 82870P2 P64H2 IOxAPIC (interrupt system, interface 0x20, revision 
0x04) at pci1 dev 28 function 0 not configured
ppb1 at pci1 dev 29 function 0: Intel 82870P2 P64H2 PCI-to-PCI Bridge 
(rev. 0x04)
pci2 at ppb1 bus 2
pci2: i/o space, memory space enabled
bge0 at pci2 dev 1 function 0: Broadcom BCM5701 Gigabit Ethernet
bge0: interrupting at ioapic1 pin 0 (irq 11)
bge0: pcistate failed to revert
bge0: ASIC BCM5701 B5 (0x0105), Ethernet address 00:0a:5e:23:86:cd
brgphy0 at bge0 phy 1: BCM5701 1000BASE-T media interface, rev. 0
brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 
1000baseT-FDX, auto
bge1 at pci2 dev 2 function 0: Broadcom BCM5701 Gigabit Ethernet
bge1: interrupting at ioapic1 pin 4 (irq 11)
bge1: pcistate failed to revert
bge1: ASIC BCM5701 B5 (0x0105), Ethernet address 00:0a:5e:23:86:07
brgphy1 at bge1 phy 1: BCM5701 1000BASE-T media interface, rev. 0
brgphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 
1000baseT-FDX, auto
Intel 82870P2 P64H2 IOxAPIC (interrupt system, interface 0x20, revision 
0x04) at pci1 dev 30 function 0 not configured
ppb2 at pci1 dev 31 function 0: Intel 82870P2 P64H2 PCI-to-PCI Bridge 
(rev. 0x04)
pci3 at ppb2 bus 3
pci3: i/o space, memory space enabled
wm0 at pci3 dev 1 function 0: Intel i82544EI 1000BASE-T Ethernet, rev. 2
wm0: interrupting at ioapic2 pin 0 (irq 11)
wm0: 64-bit 133MHz PCIX bus
wm0: 64 word (6 address bits) MicroWire EEPROM
wm0: Ethernet address 00:02:b3:d7:83:f6
makphy0 at wm0 phy 1: Marvell 88E1000 Gigabit PHY, rev. 0
makphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 
1000baseT-FDX, auto
Intel E7500 MCH HI_B vppb 2 (undefined subclass 0x00, revision 0x01) at 
pci0 dev 2 function 1 not configured
ppb3 at pci0 dev 30 function 0: Intel 82801BA Hub-to-PCI Bridge (rev. 0x42)
pci4 at ppb3 bus 4
pci4: i/o space, memory space enabled
ex0 at pci4 dev 1 function 0: 3Com 3c905C-TX 10/100 Ethernet with mngmt 
(rev. 0x78)
ex0: interrupting at ioapic0 pin 17 (irq 7)
ex0: MAC address 00:0a:5e:3c:e5:2c
exphy0 at ex0 phy 24: 3Com internal media interface
exphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
ex1 at pci4 dev 2 function 0: 3Com 3c905C-TX 10/100 Ethernet with mngmt 
(rev. 0x78)
ex1: interrupting at ioapic0 pin 19 (irq 5)
ex1: MAC address 00:0a:5e:4b:2e:59
exphy1 at ex1 phy 24: 3Com internal media interface
exphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
vga1 at pci4 dev 3 function 0: ATI Technologies Rage XL (rev. 0x27)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
fxp0 at pci4 dev 4 function 0: i82550 Ethernet, rev 13
fxp0: interrupting at ioapic0 pin 20 (irq 4)
fxp0: Ethernet address 00:0e:0c:4e:02:8b
inphy0 at fxp0 phy 1: i82555 10/100 media interface, rev. 4
inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
wm1 at pci4 dev 5 function 0: Intel i82540EM 1000BASE-T Ethernet, rev. 2
wm1: interrupting at ioapic0 pin 23 (irq 12)
wm1: 32-bit 33MHz PCI bus
wm1: 64 word (6 address bits) MicroWire EEPROM
wm1: Ethernet address 00:0e:0c:4d:fe:4b
makphy1 at wm1 phy 1: Marvell 88E1011 Gigabit PHY, rev. 3
makphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 
1000baseT-FDX, auto
pcib0 at pci0 dev 31 function 0
pcib0: Intel 82801CA LPC Interface (rev. 0x02)
piixide0 at pci0 dev 31 function 1
piixide0: Intel 82801CA IDE Controller (ICH3) (rev. 0x02)
piixide0: bus-master DMA support present
piixide0: primary channel wired to compatibility mode
piixide0: primary channel interrupting at ioapic0 pin 14 (irq 14)
atabus0 at piixide0 channel 0
piixide0: secondary channel wired to compatibility mode
piixide0: secondary channel interrupting at ioapic0 pin 15 (irq 15)
atabus1 at piixide0 channel 1
Intel 82801CA/CAM SMBus Controller (SMBus serial bus, revision 0x02) at 
pci0 dev 31 function 3 not configured
isa0 at pcib0
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
isapnp0: no ISA Plug 'n Play devices found
ioapic2: enabling
ioapic1: enabling
ioapic0: enabling
Kernelized RAIDframe activated
wd0 at atabus0 drive 0: <WDC WD400EB-11CPF0>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 38166 MB, 77545 cyl, 16 head, 63 sec, 512 bytes/sect x 78165360 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd0(piixide0:0:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using 
DMA data transfers)
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
cpu2: CPU 1 running
cpu1: CPU 6 running
cpu3: CPU 7 running
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
</dmesg.boot>