Re: CFT: vr(4)

From: Pyun YongHyeon <pyunyh_at_gmail.com>
Date: Mon, 11 Feb 2008 14:46:36 +0900
On Sun, Feb 10, 2008 at 03:59:16PM +0000, Marcin Wisnicki wrote:
 > On Mon, 04 Feb 2008 17:47:44 +0000, Marcin Wisnicki wrote:
 > 
 > > I'm not 100% sure if this is all that is required for RELENG6, but it
 > > works wonderfully so far.
 > > 
 > > Even fixed Rx errors I was seeing for some time and didn't have the time
 > > to investigate whether they were caused by some recent commit to releng6
 > > (like the last mfc) or simply a hardware failure.
 > > 
 > > Thank you Pyun YongHyeon!
 > > 
 > >>From my dmesg:
 > > vr0: <VIA VT6102 Rhine II 10/100BaseTX> port 0xd800-0xd8ff mem
 > > 0xdffefd00-0xdffefdff irq 5 at device 18.0 on pci0 vr0: Quirks: 0x0
 > > vr0: Revision: 0x74
 > > miibus1: <MII bus> on vr0
 > > ukphy0: <Generic IEEE 802.3u media interface> on miibus1 ukphy0: 
 > > 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto vr0: Ethernet
 > > address: 42:00:e6:65:9b:11 vr0: [GIANT-LOCKED]
 > > 
 > 
 > Just noticed in dmesg after reboot:
 > 
 > vr0: Tx underrun -- increasing Tx threshold(128 -> 256)
 > vr0: Tx underrun -- increasing Tx threshold(256 -> 512)
 > vr0: Tx underrun -- increasing Tx threshold(512 -> 1024)
 > vr0: Tx underrun -- using store and forward mode
 > vr0: Tx underrun --
 > 
 > at this moment I started copying files in and out using samba
 > and then last message started to repeat for some time with decreasing 
 > frequency until finally:
 > 
 > vr0: watchdog timeout
 > 
 > and no more errors were reported.
 > 

Due to the poor Tx performance of the hardware, I frequently
saw Tx underrun errors on fast machines. The driver automatically
attempts to double Tx threshold for each Tx underrun error. It
seems that vr(4) still spews Tx underrun errors even with
store-and-forward method. If this is the case I have no idea how
to fix that. I've not encountered this on CURRENT so it could be
related with Giant lock. I'll let you know if I find more clue.

 > Despite the errors in dmesg everything seems to work fine at all times 
 > with samba tx performance of 9.5mb/s and rx of 8.5mb/s using Vista as a 
 > client.
 > 

-- 
Regards,
Pyun YongHyeon
Received on Mon Feb 11 2008 - 04:46:43 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:27 UTC