| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
checked against linux and windows drivers
|
|
|
|
| |
reported and tested by John Batteen on a TP-Link TG-3468
|
|
|
|
|
|
| |
sc_ih value of struct rl_softc. This fixes a crash in re(4) because
intr_barrier(9) is called with the rl_softc sc_ih which was NULL.
OK kettenis@
|
|
|
|
|
|
|
|
|
| |
we try to map first. Instead there's a 64-bit memory BAR in the follow-
ing BAR. Since on the MACCHIATObin we currently do not support the IO
space, we have to use the 64-bit memory BAR. Thus, try to map the 64-
bit BAR before falling back to the 32-bit BAR and the IO bar.
ok deraadt@ kettenis@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
More and more RealTek controllers started to implement EEE feature.
Vendor driver seems to load a kind of firmware for EEE with
additional PHY fixups. It is known that the EEE feature may need
ASPM support. Unfortunately there is no documentation for EEE of
the controller so enabling ASPM may cause more problems.
The Realtek vendor drivers for FreeBSD and Linux also disable ASPM and
clock request. While here, add a define for the ECPM (Enable Clock Power
Management) bit.
Tested by stsp@ and myself.
ok stsp@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
positions when deciding how much work to do, and to adjust rl_tx_free with
atomic operations; split the flag that indicates whether we're using
timer based interrupts or not out into a separate field so it can be
changed from interrupt context without needing a lock; take the kernel
lock when calling re_init and re_start from interrupt context; add an
interrupt barrier in re_stop; and finally mark the interrupt handler
as mpsafe.
started by Jim Smith a while ago, mostly finished up at n2k15
tested by dlg@, chris@ and Dimitris Papastamos on various hardware
ok dlg@
|
| |
|
|
|
|
|
|
|
| |
have any direct symbols used. Tested for indirect use by compiling
amd64/i386/sparc64 kernels.
ok tedu@ deraadt@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
"Realtek 8168" rev 0x01: RTL8168 2 (0x3800).
You will never guess who commited it without OK ;)
ok deraadt
revision 1.45
date: 2015/01/26 09:58:47; author: brad; state: Exp; lines: +22 -2; commitid: AppNYocFYbD7Hqgj;
Set PCIe max read request size to 2K to help with TX performance.
From FreeBSD
Tested with 8168C, 8168D and 8168G.
revision 1.46
date: 2015/02/19 04:58:34; author: dlg; state: Exp; lines: +2 -2; commitid: GSWXECXQW0LeGFmq;
when reading the max packet size in the pcie device config and
status register, correctly mask things so we're left with the mps
field instead of everything but the mps field.
tested by bcallah@ and jim smith
|
|
|
|
|
|
|
| |
status register, correctly mask things so we're left with the mps
field instead of everything but the mps field.
tested by bcallah@ and jim smith
|
|
|
|
|
|
| |
From FreeBSD
Tested with 8168C, 8168D and 8168G.
|
| |
|
|
|
|
|
|
| |
From FreeBSD
ok sthen@ chris@
|
|
|
|
|
|
|
|
|
|
|
| |
Changed RL_FLAG_MACLDPS to RL_FLAG_MACRESET.
Removed RL_FLAG_INVMAR and RL_FLAG_NOJUMBO.
Added RL_FLAG_FASTETHER, RL_FLAG_CMDSTOP_WAIT_TXQ, RL_FLAG_JUMBOV2, RL_FLAG_WOL_MANLINK,
RL_FLAG_WAIT_TXPOLL, RL_FLAG_WOLRXENB.
Also set in the softc the maximum MTU for the various generations of chips.
Input from and Ok jsg@
|
| |
|
|
|
|
| |
ok naddy@ sthen@
|
|
|
|
|
| |
don't have to. Just remove these include lines.
Compiled on amd64 i386 sparc64; OK henning@ mikeb@
|
|
|
|
| |
ok jsg@
|
|
|
|
| |
ok dtucker@ jsing@
|
|
|
|
|
|
|
|
| |
pci_set_powerstate() to using it instead. Many of these chunks of code had
bugs in them, especially missing delay() calls. Some of them were doing
things our PCI subsystem is now responsible for handling. If you have
any of the affected devices, please keep an eye out for regressions.
ok kettenis
|
|
|
|
| |
tested on i386, ok brad@ sthen@ phessler@
|
|
|
|
|
| |
by missed interrupts. Commits to the FreeBSD driver suggest that the hardware
has issues. Having MSI for this driver isn't terribly important anyway.
|
|
|
|
| |
ok dlg@, oga@
|
|
|
|
| |
ok claudio@
|
|
|
|
| |
ok deraadt
|
|
|
|
|
| |
traversal code to suspend/resume
ok oga kettenis blambert
|
| |
|
|
|
|
|
|
| |
to avoid the dilemma what meaningless value to pass.
ok deraadt@
|
|
|
|
| |
ok deraadt@, claudio@
|
|
|
|
|
|
|
|
| |
PHY doesn't seem to be necessary on re(4) so don't descend further for now.
Based on a diff from mlarkin@
ok deraadt@
|
|
|
|
|
|
| |
these cases the xxstop function is a bit more complicated and has a flag of
some sort, but the use of that flag does not matter; DMA is already ceased
ok dlg
|
|
|
|
| |
ok jsg@, miod@
|
|
|
|
|
|
|
|
| |
resources setup by the bus front ends, especially the shutdown hook.
Found while testing some other changes with a CardBus adapter and
re_attach() was failing early before the interface pointer was
assigned. Then the system was rebooted, the shutdown hook was called
and *boom* in re_stop().
|
|
|
|
| |
if so.
|
|
|
|
| |
ok dlg@
|
|
|
|
|
|
|
|
|
| |
rl_type softc field and only relying on the sc_hwrev softc
field thoughout the driver.
Tested by a number of users from tech@
ok dlg@
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
the 8139C+ chipset, so attach with re(4) instead of rl(4).
ok dlg@
|
|
|
|
| |
driver.
|
| |
|