opnsense-src/sys
Mike Silbersack b72d483eb5 Fixes from Thomas Nystrom to fix hanging problems experienced by vr cards
under load.

This patch has been tested by Thomas and other for more than a month now,
and all (known) hangs seem to be solved.

Thomas's explanation of the patch:

*  Fix the problem with the printing of the RX-error.

*  Code from if_fet do better deal with the RX-recovery including a
   timeout of the RX-turnoff.

*  The call to vr_rxeof before vr_rxeoc have been moved to a point
   where the RX-part of the chip is turned off. Otherwise there is a
   window where new data could have been written to the buffer chain
   before the RX-part is turned off. If this happens the chip will see
   a busy rx-buffer. I have no evidence that this have occured but
   god knows what the chip will do in this case!

*  I have added a timeout of the TX-turnoff. I have checked and in
   my 900 MHz system the flags for turnoff (both RX & TX) is seen at
   the first check in the loop.

*  I could see that I got the VR_ISR_DROPPED interrupt sometimes and
   started to thinking about this. I then realized that no recovery is
   needed for this case and therefore I only count it as an rxerror
   (which was not done before).

*  Finally I have changed the FIFO RX threshhold to 128 bytes. When I
   did this the VR_ISR_DROPPED interrupt went away. Theory: The chip
   will receive a complete frame before it tries to write it out to
   memory then the RX threshold is set to store'n'forward. IF the frame
   is large AND the next rx frame also is large AND the bus is busy
   transfering a TX frame to the TX fifo THEN the second received
   frame wont fit in the FIFO and is then dropped. By having the RX
   threshold set to 128 the RX fifo is emptied faster.

MFC after:	5 days
2003-01-31 07:37:06 +00:00
..
alpha Implement bus_dmamem_alloc_size() and bus_dmamem_free_size() as 2003-01-29 07:25:27 +00:00
amd64 Make tsc_freq a 64bit quantity. 2003-01-29 11:36:39 +00:00
arm MB_LEN_MAX is not MD, move it to the MI limits.h. 2002-12-22 06:38:45 +00:00
boot MFi386: Install the "boot" image which is boot1 + boot2. 2003-01-30 14:50:25 +00:00
cam NO_GEOM cleanup: retire disk_invalidate() 2003-01-30 19:43:50 +00:00
coda Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0. 2003-01-21 08:56:16 +00:00
compat Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0. 2003-01-21 08:56:16 +00:00
conf Remove pc98/wfd and pc98/wst drivers, they have been broken to the 2003-01-30 12:13:59 +00:00
contrib Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0. 2003-01-21 08:56:16 +00:00
crypto Remove some unnecessary casts. 2003-01-25 22:41:22 +00:00
ddb Move UPCALL related data structure out of kse, introduce a new 2003-01-26 11:41:35 +00:00
dev Fixes from Thomas Nystrom to fix hanging problems experienced by vr cards 2003-01-31 07:37:06 +00:00
fs NODEVFS cleanup: remove #ifdefs. 2003-01-29 22:36:45 +00:00
geom Add some agility to the disk_create() API: 2003-01-30 20:34:23 +00:00
gnu Use VOP_SPECSTRATEGY() instead of VOP_STRATEGY(). 2003-01-28 21:46:21 +00:00
i4b Add a fix for the case where the dialout fails. In this case the isp 2003-01-30 14:19:58 +00:00
i386 Make tsc_freq a 64bit quantity. 2003-01-29 11:36:39 +00:00
ia64 Remove D_CANFREE from sscdisk.c. 2003-01-30 11:48:50 +00:00
isa Make tsc_freq a 64bit quantity. 2003-01-29 11:36:39 +00:00
isofs/cd9660 Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0. 2003-01-21 08:56:16 +00:00
kern NO_GEOM cleanup: unifdef; 2003-01-30 19:22:27 +00:00
libkern Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0. 2003-01-21 08:56:16 +00:00
modules Add ac97_patch.[ch] that provide space for ac97 codec specific patches. 2003-01-25 16:54:05 +00:00
net - bpf is now working (tested with tcpdump) 2003-01-30 15:55:02 +00:00
netatalk Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0. 2003-01-21 08:56:16 +00:00
netatm Band-XXX-aid an easy to provoke panic. 2003-01-28 12:10:11 +00:00
netgraph Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0. 2003-01-21 08:56:16 +00:00
netinet FAST_IPSEC bandaid: act like KAME and ignore ENOENT error codes from 2003-01-30 05:45:45 +00:00
netinet6 Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0. 2003-01-21 08:56:16 +00:00
netipsec Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0. 2003-01-21 08:56:16 +00:00
netipx add forgotten IFA_LOCK_INIT 2003-01-23 23:36:45 +00:00
netkey Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0. 2003-01-21 08:56:16 +00:00
netnatm Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0. 2003-01-21 08:56:16 +00:00
netncp Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0. 2003-01-21 08:56:16 +00:00
netns Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0. 2003-01-21 08:56:16 +00:00
netsmb Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0. 2003-01-21 08:56:16 +00:00
nfs Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0. 2003-01-21 08:56:16 +00:00
nfsclient Provide a sysctl to allow defaulting of the connectionless (-c) feature 2003-01-22 19:57:31 +00:00
nfsserver Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0. 2003-01-21 08:56:16 +00:00
opencrypto Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0. 2003-01-21 08:56:16 +00:00
pc98 MFi386: revision 1.192. 2003-01-30 13:23:18 +00:00
pccard Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0. 2003-01-21 08:56:16 +00:00
pci Fixes from Thomas Nystrom to fix hanging problems experienced by vr cards 2003-01-31 07:37:06 +00:00
posix4 Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0. 2003-01-21 08:56:16 +00:00
powerpc Rework of how memory resources are discovered and dealt with in macio. 2003-01-30 11:28:29 +00:00
rpc
security Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0. 2003-01-21 08:56:16 +00:00
sparc64 Fix another mistake in the bus_dmamem_alloc_size() thing 2003-01-29 20:36:08 +00:00
sys Add some agility to the disk_create() API: 2003-01-30 20:34:23 +00:00
tools Remove miidevs.h and generate it from miidevs at compile time. 2003-01-19 02:59:34 +00:00
ufs Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0. 2003-01-21 08:56:16 +00:00
vm Simplify vm_object_page_remove(): The object's memq is now ordered. The 2003-01-27 01:12:35 +00:00
Makefile