[vortex] RX overrun with 3COM 3c982

Claude Pignol cpignol@seismiccity.com
Wed Nov 20 09:50:01 2002


Donald Becker wrote:

>On Tue, 19 Nov 2002, Claude Pignol wrote:
>  
>
>>Donald Becker wrote:
>>    
>>
>>>On Mon, 18 Nov 2002, Claude Pignol wrote:
>>>      
>>>
>
>  
>
>>>>>>>Hmmm, this might be doing long PCI bursts, not leaving enough for the
>>>>>>>Ethernet.  If that's the case, the solution is to:
>>>>>>>Change the Min-grant / Max-Latency PCI settings
>>>>>>>              
>>>>>>>
>
>What are the settings.  This is really starting to look like a
>bug-hogging issue, or the 3Ware card sometimes holding the bus as a
>slave-target.
>
>  
>
>>>>>>>Set the PCI bursts to much longer values, although the '982 has
>>>>>>>  reasonable defaults.  The registers to change are the
>>>>>>>  UpBurstThreshold at offset 0x3e and
>>>>>>>  UpPriorityThreshold, offset 0x3c, default 4*32 = 128 bytes.
>>>>>>>              
>>>>>>>
>>>OK, more work, and an updated vortex-diag just for this:
>>> ftp://ftp.scyld.com/pub/diag/vortex-diag.c
>>>
>>>Try setting
>>> -G 512
>>>      
>>>
>..
>  
>
>>I try the new vortex-diag:
>>Registers berfore -G512
>>    
>>
>
>Could you show this with '-g'?
>I know that I should make that the default for the Cyclone.
>
>  
>
>>0x2410: **FIFO** 00000000 0000000f *STATUS*
>>0x2420: 00000020 3775daf0 00080000 00001404
>>0x2430: 00000000 0608f9f8 3775d8b0 00080004
>>    
>>
>
>Priority 128..
>
>  
>
>>Registers after the RX priority to 512 bytes
>>0x2430: 00000000 c3123cee 3775d990 00080010
>>    
>>
>
>Good, priority at 512 bytes.
>
>  
>
>>Error ratio: ( 127616 -123204)/(534880121-468076386)=.000066
>>For the same period an interface with the default value has a ratio .00018
>>It seems that it goes in the right direction (there is no interface with 
>>a ratio < .00012 with the default value).
>>    
>>
>
>This really points to the 3Ware.
>
>Try -G 1024...
>
>  
>
Index #1: Found a 3c982 Dual Port server NIC adapter at 0x2400.
DMA control register is 00000020.
Tx list starts at 3775da60.
Tx FIFO thresholds: min. burst 256 bytes, priority with 128 bytes to empty.
Rx FIFO thresholds: min. burst 256 bytes, priority with 1024 bytes to full.
This doesn't help.The transfer of 51630081 packets gives an error ratio 
of .00008 compare to 0.00006 with 512
So it seems that 512 bytes is the optimum.

CP.

-- 
------------------------------------------------------------------------
Claude Pignol SeismicCity, Inc. <http://www.seismiccity.com>
2900 Wilcrest Dr. Suite 370 Houston TX 77042
Phone:832 251 1471 Mob:281 703 2933 Fax:832 251 0586