Age | Commit message (Collapse) | Author |
|
|
|
|
|
[1] add EN_ENIDMAFIX - the byte-aligner on the ENI version of the card
appears to lose under heavy load so avoid using it. see comment
in midway.c for full details.
note that the Adaptec version of the card works properly under
load.
detected by Kenjiro Cho <kjc@csl.sony.co.jp> [confirmed by chuck]
fix by chuck & kjc
[2] update some freebsd specific code [from kjc]
[3] for circular buffers: ensure there is always one free slot so
that we can easily tell the difference between a full and
empty list. re-structure a few loops to reflect this.
fixes a problem with mbufs being free'd while still in DMA,
and makes drive a bit more robust.
detected and fixed by kjc
also, pull in the following changes from netbsd:
revision 1.29
date: 1997/07/07 22:52:17; author: cgd; state: Exp; lines: +29 -22
fix static inline functions' prototypes so they're correctly marked
'inline' as well as static. mark prototypes for static inline functions
as possibly unused (with __attribute__ ((unused))), to avoid generating
warnings when compiling without optimization but with most ports'
default warning flags. Clean up prototype list spacing, and make it more
consistent.
---------------------------
revision 1.28
date: 1997/04/28 17:04:06; author: mycroft; state: Exp; lines: +2 -1
Oops; forgot to GC the last mbuf allocated when out of clusters.
---------------------------
revision 1.27
date: 1997/04/24 02:25:37; author: mycroft; state: Exp; lines: +2 -2
Do not force the initial part of a packet into a separate mbuf.
---------------------------
revision 1.26
date: 1997/04/24 02:24:07; author: mycroft; state: Exp; lines: +6 -3
If we fail to allocate a cluster to hold a large packet, simply
drop it rather than using a chain of tiny mbufs.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Apologies if this breaks anyone else using the MI ESP driver...
|
|
|
|
Fix bug of 'tp' not being initialized in cyopen - patch from Theo de Raadt.
Thanks to Niklas Hallqvist and Theo de Raadt for finding this bug.
|
|
something, thx.
|
|
|
|
Some KNF too.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(21140-AC-based) SMC Etherpower cards.
|
|
|
|
|
|
lack of a better name (anyone have any documentation?)
|
|
|
|
by gibbs@freebsd.org
|
|
|
|
|
|
Anne Hutton <hutton@isi.edu>]:
- add support for Adaptec 155 PCI ATM cards (e.g. ANA-5940)
- add sc->is_adaptec to handle differences between cards.
- break out MID_MK_TXQ/MID_MK_RXQ seperate macros to handle
the new Adaptec format TXQ/RXQ.
- adjust en_dqneed to return 1 on ADP (since the Adaptec can
DMA anything in one DRQ/DTQ!)
- add hook for a bus specific reset function (adaptec has
a seperate reset register that needs to be hit when
resettting the midway).
- adjust DMA test to not worry about burst sizes on the
adaptec (since it handles it all for us!) and to handle
the new DTQ/DRQ format.
- add Adaptec DMA support to en_txlaunch() and en_service()
BUG FIXES:
- fixed receiver panic under heavy load ("lost mbuf in slot 0!").
when the reassembly buffer overflows, the T-bit is set in
the RDB and the data field is empty. en_service() sets up
a 4-byte (RDB size) dummy DMA without IF_ENQUEUE. but the
recv intr handling in en_intr() always does IF_DEQUEUE.
as a result, a successive recv intr loses its mbuf and
leads to a panic. the solution is to only IF_DEQUEUE if
the interrupt has non-zero length (indicating that there
is an mbuf to get). in order for this to work, EN_DQ_MK
must always be non-zero. we do this by or'ing in an unused
bit (0x80000).
reported by: Kenjiro Cho <kjc@csl.sony.co.jp>
- fix setting of transmit channel when txspeed[] is non-zero
(e.g. traffic shaping). the old scheme didn't work
properly (it allowed the same VCI to use multiple tx channels
thus defeating the txspeed[] parameter). the new scheme
statically assigns a VC to a channel when txspeed[] is set.
[note that the code to set txspeed[] isn't in the driver right
now since a MI interface to do this hasn't been made yet]
we add sc->txvc2slot[] and sc->txslot[n].nref for this.
reported by: Kenjiro Cho <kjc@csl.sony.co.jp>,
Milind M Buddihikot <milind@ccrc.wustl.edu>,
Dong Lin <dong@eecs.harvard.edu>
- if aal5 frame has a CRC error then the length field in the aal5 trailer
may not be valid, so we can not use it [and we must dump the frame]
contributed by: Yuhang Sun <sunyh@dworkin.wustl.edu> & chuck
- when doing SRAM copies, be sure to round up the length to the next
largest word (otherwise the driver will try to do a byte clean
up DMA and then get an ID error interrupt).
MINOR CLEANUPS:
- add some extra support for a few more versions of FreeBSD
contributed by: Kenjiro Cho <kjc@csl.sony.co.jp>
- clean up loops in DMA test
contributed by: Kenjiro Cho <kjc@csl.sony.co.jp>
- restructure and cleanup of en_read/en_write macros/inlines
- clean up some byte ordering stuff so that we are consistant throughout
the driver
|
|
|
|
|
|
|
|
|
|
|
|
and NetBSD.
|
|
|
|
|
|
- if aal5 frame has a CRC error then the length field in the aal5 trailer
may not be valid, so we can not use it [and we must dump the frame]
[Yuhang Sun <sunyh@dworkin.wustl.edu> & chuck@ccrc.wustl.edu]
|
|
to 8 internally so that drivers do not need to init it for regular scsi :-)
|
|
|
|
|
|
|
|
|
|
|
|
As well, at this point I've also done fancy cvs repository mangling to
ensure that the com* files in sys/dev/ic maintain the history we had
before. (Yes, I cleaned up the 2.0 tags too..)
|
|
|