cvs commit: src/sys/dev/vr if_vr.c if_vrreg.h

Pyun YongHyeon pyunyh at gmail.com
Thu Mar 20 02:13:07 UTC 2008


On Wed, Mar 19, 2008 at 05:05:34PM +0100, Sameh Ghane wrote:
 > Le (On) Tue, Mar 11, 2008 at 04:51:22AM +0000, Pyun YongHyeon ecrivit (wrote):
 > > yongari     2008-03-11 04:51:22 UTC
 > > 
 > >   FreeBSD src repository
 > > 
 > >   Modified files:
 > >     sys/dev/vr           if_vr.c if_vrreg.h 
 > >   Log:
 > A LOT.
 > 
 > Hi,
 > 
 > Is this a candidate for MFC ?
 > 
 > I get a lot of errors on a 7-stable kernel, but not sure if they're really
 > hardware or kernel related:

I think it may not be related with hardware.

 > kernel: vr0: rx packet lost
 > kernel: vr0: rx packet lost
 > kernel: vr0: rx packet lost
 > kernel: vr0: rx packet lost
 > kernel: vr0: rx packet lost
 > kernel: vr0: watchdog timeout
 > kernel: vr0: Using force reset command.
 > kernel: vr0: rx packet lost
 > kernel: vr0: rx packet lost
 > 
 > 
 > I still hope this commit might help, though I don't have this problem on a
 > different server, using an 8-current kernel from before your commit.
 > 

Normally, it should not be a problem if you don't see too many of
dropped packets. These dropping of packets can come from various
reasons such as Rx FIFO overrun, bad CRC, duplex/speed mismatch,
out of receive descriptors etc. But I guess the other errors such
as watchdog timeouts or force reset messages indicate the hardware
is in stuck condition. Previously vr(4) lacked proper handling of
link state changes as well as reliable error recovery. I think
I've fixed most of them. If you can still see these errors it
should be fixed in vr(4). You can see these errors with
'dev.vr.0.stats' sysctl on CURRENT.

 > 
 > And both cards really look the same :)
 > 
 > vr0: <VIA VT6102 Rhine II 10/100BaseTX> port 0xd800-0xd8ff mem
 > 0xfaefbc00-0xfaefbcff irq 23 at device 18.0 on pci0
 > 
 > vr0: <VIA VT6102 Rhine II 10/100BaseTX> port 0xe000-0xe0ff mem
 > 0xfbfff800-0xfbfff8ff irq 23 at device 18.0 on pci0
 > 
 > 
 > 
 > The good thing is that I might be losing packets, but it still works !
 > 

Yes it should. Dropping packets may severely decrease network
performance and reliability though.

-- 
Regards,
Pyun YongHyeon


More information about the cvs-src mailing list