| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
allow recovery from transmission lockups which occur in the middle
of the descriptor list, rather than just at the beginning.
For some unknown reason, Rhine II chips have a tendency to stop
transmitting while under heavy load, possibly due to collisions.
Whether this behavior is due to a hardware bug or a driver glitch
is unknown as of now.
In either case, this change allows the driver to gracefully recover
from such situations.
Special thanks go to The Anarcat <anarcat@anarcat.dyndns.org>, who
bugged me into looking at this and to
Dominic Marks <dominic_marks@btinternet.com>, who performed a great
deal of testing to help characterize this problem.
MFC after: 3 days
|
|
|
|
| |
with its own PCI ID.
|
|
|
|
|
|
|
| |
This is temporary hack, better and generalized solution probably
should be implemented at lower layer(MII or PCI?).
Tested by: shoko.araki@soliton.co.jp
MFC after: 1 week
|
|
|
|
| |
reversal.
|
| |
|
| |
|
|
|
|
| |
<sys/endian.h>. This puts us in line with NetBSD and OpenBSD.
|
| |
|
| |
|
|
|
|
|
|
| |
into if_txreg.h.
MFC after: 1 week
|
|
|
|
|
|
| |
The diffs are very similar to the ones for the "sis" driver.
MFC After: 5 days
|
|
|
|
|
|
|
| |
out of the way, so it won't cause trouble.
Submitted by: Frank Mayher <frank@exit.com>
MFC after: 1 week
|
|
|
|
|
|
| |
the same thing as the SMC 1211, but with their own vendor ID.
Update the device list to support this NIC. (Discovered these
cards lying around the lab at work.)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
doesn't support NWAY, the RealTek PHY (both the integrated ones on 8139
chips and the RTL8201L 10/100 PHY) will not report the link speed via
the ANLPAR or BMSR registers. For the 8201L, we need to look in magic
vendor-specific PHY register 0x19. For the 8139 MAC+PHY combo, we have
to be able to test the RL_MEDIASTAT register.
The changes to rlphy.c are based largely on the patch from PR 30836,
however I tried to eliminate some magic numbers by creating an entry
for the 8201 PHY in miidevs.
Also updated if_rl.c to allow the rlphy driver to read the RL_MEDIASTAT
register via the rl_miibus_readreg() routine.
|
|
|
|
|
|
|
| |
most cases NULL is passed, but in some cases such as network driver locks
(which use the MTX_NETWORK_LOCK macro) and UMA zone locks, a name is used.
Tested on: i386, alpha, sparc64
|
| |
|
|
|
|
|
|
|
|
| |
- VIA chipset SMBus controllers added
- alpm driver updated
- Support for dynamic modules added
- bktr FreeBSD smbus updated but not tested
- cleanup
|
| |
|
|
|
|
| |
well on machines with 64 bit pointers.
|
|
|
|
|
|
|
|
|
| |
depending on the MMIO addresses allocated to the board.
PR: 30965, 20845 (maybe)
Submitted by: Daniela Squassoni <daniela@cyclades.com>
Tested by: Arjan Knepper <arjan@jak.nl>
Scott Klement <klemscot@klements.com>
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
mbuf system in a rate-limited fashion now.
MFC after: 3 days
|
|
|
|
| |
Submitted by: nyan
|
|
|
|
| |
Suggested-by: Archie, Doug Ambrisko
|
|
|
|
|
|
|
| |
in the received packet size, but the upper level routines want
the length without it.
Reported-by: Doug Ambrisko, ambrisko@freebsd.org
|
|
|
|
|
|
|
| |
mii access mode. Fix the device ID and make it read the mac via sis_read_mac.
Reviewed by: imp
MFC after: 1 week
|
| |
|
| |
|
|
|
|
| |
uninitialized variable in the !CY_PCI_FASTINTR case (*blush*).
|
|
|
|
| |
Pointed out by: Shin-ichi YOSHIMOTO <yosimoto@waishi.jp>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
One to notify the system that the MTU for VLAN can be 1500 so the vlan
will automatically be configured with a 1500 MTU the other is to ignore
the error case if the received frame is to long.
The frame size notification came from code in the SIS driver, and
the support for long frames derived from the NetBSD Tulip driver.
Tested on: 4 port D-Link adapter DFE-570TX 4 Intel 21143
Netgear card with 82c169 PNIC 10/100BaseTX
Reviewed by: ru (manpage), wpaul (not objected to), archie
Approved by: imp
Obtained from: NetBSD
|
|
|
|
| |
decide how to read the station address.
|
|
|
|
|
|
|
| |
motherboard chipsets. We need to force the chip to reload its MAC address
into the receive filter, and enable software access mode for the PHY.
PR: kern/33294
|
|
|
|
|
| |
PR: kern/33032
MFC after: 1 month
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
to Phil Kernick:
"The problem is that in full duplex mode, the Conexant chip always reports a
carrier lost error, even when the frame is successfully sent. So, if we
have a Conexant chip, then ignore carrier lost when in full duplex
mode."
Since the Xircom chips seem to have the same issue and since we already
have a workaround for this, just expand the workaround test to also
check for DC_IS_CONEXANT().
|
|
|
|
|
|
| |
to a label is inside an #ifdef block, then the label should *also* be
inside an #ifdef block. Hide the "done:" label which is only used if
DEVICE_POLLING is enabled under #ifdef DEVICE_POLLING.
|
|
|
|
|
|
| |
using agp_get_info().
MFC after: 1 week
|
|
|
|
|
|
|
|
|
|
| |
a major slowdown, and re-enable stats overflow interrupts.
For future reference, the bug was in our code, and not
some bug in the 3com chips.
Reviewed by: wpaul
MFC after: 2 days
|
|
|
|
|
| |
Detected by: INVARIANTS
MFC after: 2 days
|
|
|
|
| |
DEVICE_POLLING stuff.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Non-SMP, i386-only, no polling in the idle loop at the moment.
To use this code you must compile a kernel with
options DEVICE_POLLING
and at runtime enable polling with
sysctl kern.polling.enable=1
The percentage of CPU reserved to userland can be set with
sysctl kern.polling.user_frac=NN (default is 50)
while the remainder is used by polling device drivers and netisr's.
These are the only two variables that you should need to touch. There
are a few more parameters in kern.polling but the default values
are adequate for all purposes. See the code in kern_poll.c for
more details on them.
Polling in the idle loop will be implemented shortly by introducing
a kernel thread which does the job. Until then, the amount of CPU
dedicated to polling will never exceed (100-user_frac).
The equivalent (actually, better) code for -stable is at
http://info.iet.unipi.it/~luigi/polling/
and also supports polling in the idle loop.
NOTE to Alpha developers:
There is really nothing in this code that is i386-specific.
If you move the 2 lines supporting the new option from
sys/conf/{files,options}.i386 to sys/conf/{files,options} I am
pretty sure that this should work on the Alpha as well, just that
I do not have a suitable test box to try it. If someone feels like
trying it, I would appreciate it.
NOTE to other developers:
sure some things could be done better, and as always I am open to
constructive criticism, which a few of you have already given and
I greatly appreciated.
However, before proposing radical architectural changes, please
take some time to possibly try out this code, or at the very least
read the comments in kern_poll.c, especially re. the reason why I
am using a soft netisr and cannot (I believe) replace it with a
simple timeout.
Quick description of files touched by this commit:
sys/conf/files.i386
new file kern/kern_poll.c
sys/conf/options.i386
new option
sys/i386/i386/trap.c
poll in trap (disabled by default)
sys/kern/kern_clock.c
initialization and hardclock hooks.
sys/kern/kern_intr.c
minor swi_net changes
sys/kern/kern_poll.c
the bulk of the code.
sys/net/if.h
new flag
sys/net/if_var.h
declaration for functions used in device drivers.
sys/net/netisr.h
NETISR_POLL
sys/dev/fxp/if_fxp.c
sys/dev/fxp/if_fxpvar.h
sys/pci/if_dc.c
sys/pci/if_dcreg.h
sys/pci/if_sis.c
sys/pci/if_sisreg.h
device driver modifications
|
|
|
|
|
|
|
| |
equivalent and less dangerous (rate limited) messages in
the mbuf allocation code.
MFC after: 3 days
|
|
|
|
|
|
|
|
| |
Introduce an additional device flag for those NICs which require the
transmit buffers to be aligned to 32-bit boundaries.
(the equivalen fix for STABLE is slightly simpler because there are
no supported chips which require this alignment there.)
|
|
|
|
| |
also don't use ANSI string concatenation.
|
|
|
|
|
|
|
|
|
| |
controllers. There still seems to be some issues with the DRI copying code
for some adapters, at least it doesn't hang the system now. Input would be
appreciated.
PR: 32301
Obtained from: Eric Anhlot <eanholt@gladstone.uoregon.edu>, Joe <joeo@nks.net>
|
|
|
|
|
|
| |
The reason we are required to commit to -current first is so that later
MFC's do not risk the loss of existing bug fixes. Even if this was not
strictly required in -current, it should still be fixed there too.
|
|
|
|
|
|
| |
The reason we are required to commit to -current first is so that later
MFC's do not risk the loss of existing bug fixes. Even if this was not
strictly required in -current, it should still be fixed there too.
|