On Sunday 24 June 2007 13:50, patrick keshishian wrote:
> Hi,
>
> I've been noticing some strange problems with the built-in nfe0
> interface on my desktop. Actually I've seen it on two such
> computers, but the description below is for my current desktop PC.
>
> The PC is running `cvs up -dP -rOPENBSD_4_1' built. I'm including
> netstat, ifconfig output[1] and dmesg below[2].
>
> I've noticed that once in a while the nfe0 interface will stop
> sending and receiving data. At this point I can not make it work
> again. The only solution I have is to reboot the box. I have
> installed a dc0 card in the box since. The problem seemed
> intermittent and not reliably reproducible. But I think I found
> a way to reproduce this problem on demand (at least for the time
> being). I have an ssh session to another box, on which I run
> '/usr/bin/nm somelib.so'. After a page or two of output the
> terminal "hangs". At this point nfe0 becomes unresponsive.
>
> I switch to the dc0 interface and the terminal finishes the output.
> Running the nm command while using the dc0 interface doesn't cause
> any problems.
I experienced similar problems last year and can empathize.
The following items improved my situation somewhat:
1) BIOS upgrade
2) Removing dual boot (I had both OpenBSD and Windows 2003 on one
machine. There were more errors if I did not power off after shutting
down Windows 2003 and just did a restart from within Windows. If I did
not unplug the machine after shutting down Windows, most of the time I
saw watchdog timeouts but if I powered off the host, and then powered
it back on, there were fewer errors)
I experimented with different combinations and different switches
(10/100/1000, 10/100, and 10-Base-T). When all the hosts connected to a
10/100 switch were running at 100 MB/s then changing nfe0 from
autoselect to full-duplex using
ifconfig nfe0 media 100baseTX mediaopt full-duplex
seemed to eliminate nfe0 hangs as well as timeouts completely. I am not
sure whether this has any rational basis or is specific to some weird
situation in my network, but that has been my experience.
Vijay
>
> Interestingly enough, if I redirect the output of nm to a file
> and subsequently cat the file the nfe0 interface doesn't seem
> to exhibit the same problem.
>
> I am not sure how to diagnose this problem further. I've enabled
> debug on the nfe0 interface (/sbin/ifconfig nfe0 debug), but don't
> see any output.
>
> Any and all suggestions are welcome.
> --patrick
>
> [1] netstat and ifconfig outputs:
> $ /usr/bin/netstat -in
> Name Mtu Network Address Ipkts Ierrs Opkts
> Oerrs Colls lo0 33224 <Link> 1
> 0 1 0 0 lo0 33224 127/8 127.0.0.1
> 1 0 1 0 0 lo0 33224 ::1/128 ::1
> 1 0 1 0 0 lo0 33224 fe80::%lo0/
> fe80::1%lo0 1 0 1 0 0 dc0 1500
> <Link> 00:02:e3:07:cc:df 1713 0 424 7 0 dc0
> 1500 fe80::%dc0/ fe80::202:e3ff:fe 1713 0 424 7
> 0 nfe0 1500 <Link> 00:16:e6:82:17:da 1520 613
> 878 0 0 nfe0 1500 fe80::%nfe0 fe80::216:e6ff:fe 1520
> 613 878 0 0 nfe0 1500 xx.yy.ww.zz xx.yy.ww.zz2
> 1520 613 878 0 0 pflog0 33224 <Link>
> 0 0 0 0 0 enc0* 1536 <Link>
> 0 0 0 0 0
>
> $ /usr/bin/netstat -rnfinet
> Routing tables
>
> Internet:
> Destination Gateway Flags Refs Use Mtu
> Interface default xx.yy.ww.zz9 UGS 0
> 0 - nfe0 xx.yy.ww.zz8/28 link#2 UC 4
> 0 - nfe0 xx.yy.ww.zz9 00:20:6f:03:a2:e5 UHLc
> 1 0 - nfe0 xx.yy.ww.zz1 link#2 UHLc
> 0 2 - nfe0 xx.yy.ww.zz3 00:01:02:c2:a1:b9
> UHLc 1 159 - nfe0 xx.yy.ww.zz0
> 00:20:e0:68:5d:c8 UHLc 1 11 - L nfe0 127/8
> 127.0.0.1 UGRS 0 0 33224 lo0 127.0.0.1
> 127.0.0.1 UH 1 0 33224 lo0 224/4
> 127.0.0.1 URS 0 0 33224 lo0
>
>
> $ /sbin/ifconfig
> lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33224
> groups: lo
> inet 127.0.0.1 netmask 0xff000000
> inet6 ::1 prefixlen 128
> inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5
> dc0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
> lladdr 00:02:e3:07:cc:df
> media: Ethernet autoselect (none)
> status: no carrier
> inet6 fe80::202:e3ff:fe07:ccdf%dc0 prefixlen 64 scopeid 0x1
> nfe0: flags=8847<UP,BROADCAST,DEBUG,RUNNING,SIMPLEX,MULTICAST> mtu
> 1500 lladdr 00:16:e6:82:17:da
> groups: egress
> media: Ethernet autoselect (100baseTX full-duplex)
> status: active
> inet6 fe80::216:e6ff:fe82:17da%nfe0 prefixlen 64 scopeid 0x2
> inet xx.yy.ww.zz2 netmask 0xfffffff0 broadcast xx.yy.ww.zz3
> pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33224
> enc0: flags=0<> mtu 1536
>
>
>
> [2] dmesg
> OpenBSD 4.1-stable (GENERIC) #0: Mon May 28 18:06:28 PDT 2007
> [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
> cpu0: AMD Athlon(tm) 64 Processor 3200+ ("AuthenticAMD" 686-class,
> 512KB L2 cach e) 2.02 GHz
> cpu0:
> FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE
>36,CF LUSH,MMX,FXSR,SSE,SSE2,SSE3
> cpu0: AMD erratum 89 present, BIOS upgrade may be required
> real mem = 536375296 (523804K)
> avail mem = 481710080 (470420K)
> using 4278 buffers containing 26943488 bytes (26312K) of memory
> mainbus0 (root)
> bios0 at mainbus0: AT/286+ BIOS, date 05/11/06, BIOS32 rev. 0 @
> 0xfb5f0, SMBIOS rev. 2.3 @ 0xf0100 (43 entries)
> bios0: Gigabyte Technology Co., Ltd. GA-K8N-SLi / GA-K8N-SLi-RH
> apm0 at bios0: Power Management spec V1.2
> apm0: AC on, battery charge unknown
> apm0: flags 70102 dobusy 1 doidle 1
> pcibios0 at bios0: rev 3.0 @ 0xf0000/0xdd64
> pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdc00/352 (20 entries)
> pcibios0: PCI Exclusive IRQs: 5 10 11 12
> pcibios0: no compatible PCI ICU found
> pcibios0: Warning, unable to fix up PCI interrupt routing
> pcibios0: PCI bus #5 is the last bus
> bios0: ROM list: 0xc0000/0x10000 0xd0000/0x1800
> acpi at mainbus0 not configured
> cpu0 at mainbus0
> cpu0: Cool'n'Quiet K8 2011 MHz: speeds: 2000 1000 MHz
> pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
> "NVIDIA nForce4 DDR" rev 0xa3 at pci0 dev 0 function 0 not configured
> pcib0 at pci0 dev 1 function 0 "NVIDIA nForce4 ISA" rev 0xa3
> nviic0 at pci0 dev 1 function 1 "NVIDIA nForce4 SMBus" rev 0xa2
> iic0 at nviic0
> iic1 at nviic0
> iic1: addr 0x4e 01=06 02=10 03=72 05=80 06=0f 0a=ff 0e=e0 0f=ff
> ohci0 at pci0 dev 2 function 0 "NVIDIA nForce4 USB" rev 0xa2: irq 5,
> version 1.0 , legacy support
> usb0 at ohci0: USB revision 1.0
> uhub0 at usb0
> uhub0: NVIDIA OHCI root hub, rev 1.00/1.00, addr 1
> uhub0: 10 ports with 10 removable, self powered
> ehci0 at pci0 dev 2 function 1 "NVIDIA nForce4 USB" rev 0xa3: irq 12
> usb1 at ehci0: USB revision 2.0
> uhub1 at usb1
> uhub1: NVIDIA EHCI root hub, rev 2.00/1.00, addr 1
> uhub1: 10 ports with 10 removable, self powered
> auich0 at pci0 dev 4 function 0 "NVIDIA nForce4 AC97" rev 0xa2: irq
> 10, nForce4 AC97
> ac97: codec id 0x414c4790 (Avance Logic ALC850 rev 0)
> audio0 at auich0
> pciide0 at pci0 dev 6 function 0 "NVIDIA nForce4 IDE" rev 0xf2: DMA,
> channel 0 c onfigured to compatibility, channel 1 configured to
> compatibility wd0 at pciide0 channel 0 drive 0: <HDS722525VLAT80>
> wd0: 16-sector PIO, LBA48, 238474MB, 488395055 sectors
> atapiscsi0 at pciide0 channel 0 drive 1
> scsibus0 at atapiscsi0: 2 targets
> cd0 at scsibus0 targ 0 lun 0: <_NEC, DVD_RW ND-3540A, 1.01> SCSI0
> 5/cdrom remova ble
> wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
> cd0(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 2
> pciide0: channel 1 disabled (no drives)
> pciide1 at pci0 dev 7 function 0 "NVIDIA nForce4 SATA" rev 0xf3: DMA
> pciide1: using irq 11 for native-PCI interrupt
> pciide2 at pci0 dev 8 function 0 "NVIDIA nForce4 SATA" rev 0xf3: DMA
> pciide2: using irq 10 for native-PCI interrupt
> ppb0 at pci0 dev 9 function 0 "NVIDIA nForce4 PCI-PCI" rev 0xa2
> pci1 at ppb0 bus 1
> dc0 at pci1 dev 7 function 0 "Lite-On PNIC" rev 0x20: irq 12, address
> 00:02:e3:0 7:cc:df
> bmtphy0 at dc0 phy 1: BCM5201 10/100 PHY, rev. 2
> nfe0 at pci0 dev 10 function 0 "NVIDIA CK804 LAN" rev 0xa3: irq 5,
> address 00:16
>
> :e6:82:17:da
>
> ciphy0 at nfe0 phy 7: Cicada CS8201 10/100/1000TX PHY, rev. 3
> ppb1 at pci0 dev 11 function 0 "NVIDIA nForce4 PCIE" rev 0xa3
> pci2 at ppb1 bus 2
> ppb2 at pci0 dev 12 function 0 "NVIDIA nForce4 PCIE" rev 0xa3
> pci3 at ppb2 bus 3
> ppb3 at pci0 dev 13 function 0 "NVIDIA nForce4 PCIE" rev 0xa3
> pci4 at ppb3 bus 4
> ppb4 at pci0 dev 14 function 0 "NVIDIA nForce4 PCIE" rev 0xa3
> pci5 at ppb4 bus 5
> vga1 at pci5 dev 0 function 0 "ATI Radeon X300" rev 0x00
> wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
> wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
> "ATI Radeon X300 Sec" rev 0x00 at pci5 dev 0 function 1 not
> configured pchb0 at pci0 dev 24 function 0 "AMD AMD64 HyperTransport"
> rev 0x00 pchb1 at pci0 dev 24 function 1 "AMD AMD64 Address Map" rev
> 0x00 pchb2 at pci0 dev 24 function 2 "AMD AMD64 DRAM Cfg" rev 0x00
> pchb3 at pci0 dev 24 function 3 "AMD AMD64 Misc Cfg" rev 0x00 isa0 at
> pcib0
> isadma0 at isa0
> pckbc0 at isa0 port 0x60/5
> 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>
> spkr0 at pcppi0
> lpt0 at isa0 port 0x378/4 irq 7
> it0 at isa0 port 0x290/8: IT87
> npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
> pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
> pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
> biomask ff65 netmask ff65 ttymask ffe7
> pctr: user-level cycle counter enabled
> uhub2 at uhub0 port 5
> uhub2: ALCOR Generic USB Hub, rev 1.10/3.14, addr 2
> uhub2: 4 ports with 4 removable, self powered
> uhub3 at uhub0 port 6
> uhub3: Sun Microsystems product 0x100e, rev 2.00/1.03, addr 3
> uhub3: 4 ports with 3 removable, bus powered
> uhidev0 at uhub3 port 2 configuration 1 interface 0
> uhidev0: Microsoft Microsoft 3-Button Mouse with IntelliEye(TM), rev
> 1.10/3.00, addr 4, iclass 3/1
> ums0 at uhidev0: 3 buttons and Z dir.
> wsmouse0 at ums0 mux 0
> uhidev1 at uhub3 port 4 configuration 1 interface 0
> uhidev1: Sun Microsystems Type 7 Keyboard, rev 2.00/1.03, addr 5,
> iclass 3/1 ukbd0 at uhidev1: 8 modifier keys, 6 key codes, layout 33
> wskbd1 at ukbd0 mux 1
> wskbd1: connecting to wsdisplay0
> dkcsum: wd0 matches BIOS drive 0x80
> root on wd0a
> rootdev=0x0 rrootdev=0x300 rawdev=0x302
>
>
> !DSPAM:1,467ebe0296819752976205!
--
Vijay Sankar
ForeTell Technologies Limited
59 Flamingo Avenue, Winnipeg, MB, Canada R3J 0X6
Phone: +1 (204) 885-9535, E-Mail: [EMAIL PROTECTED]