]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Tweak the Macronix driver to hopefully make it more reliable:
authorBill Paul <wpaul@FreeBSD.org>
Thu, 6 May 1999 15:32:52 +0000 (15:32 +0000)
committerBill Paul <wpaul@FreeBSD.org>
Thu, 6 May 1999 15:32:52 +0000 (15:32 +0000)
commit727c88e9da5d7edf68d371ab364c71c25c770180
tree8640d88e8e3a1f65c5330a226bbd19608d58d0a2
parent70c03db51c35de54f6f99d9a35d6fcabd69478d6
Tweak the Macronix driver to hopefully make it more reliable:

- Change to the same transmit scheme as the PNIC driver.
- Dynamically set the cache alignment, and set burst size the same as
  the PNIC driver in mx_init().
- Enable 'store and forward' mode by default. This is the slowest option
  and it does reduce 100Mbps performance somewhat, but it's the most
  reliable setting I can find. I'm more interested in having the driver
  work reliably than trying to squeeze the best performance out of it.
  The reason I'm doing this is that on *some* systems you may see a lot
  of transmit underruns (which I can't explain: these are *fast* test
  systems) and these errors seem to cause unusual and decidedly
  non-tulip-like behavior. In normal 10Mbps mode, performance is fine
  (you can easily saturate a 10Mbps link).

Also tweak some of the other drivers:

- Increase the size of the TX ring for the Winbond, ASIX, VIA Rhine
  and PNIC drivers.
- Set a larger value for ifq_maxlen in the ThunderLAN driver. The setting
  of TL_TX_LIST_CNT - 1 is too low (the ThunderLAN driver only allocates
  20 transmit descriptors, and I don't want to fiddle with that now
  because the ThunderLAN's descriptor structure is an oddball size
  compared to the others).
sys/dev/vr/if_vrreg.h
sys/pci/if_axreg.h
sys/pci/if_mx.c
sys/pci/if_mxreg.h
sys/pci/if_pnreg.h
sys/pci/if_tl.c
sys/pci/if_vrreg.h
sys/pci/if_wbreg.h