summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/if_re_pci.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* match on Realtek RTL8168H ids for Killer E2500V2 and E2600jsg2021-01-241-1/+3
| | | | checked against linux and windows drivers
* match on another Realtek RTL8168 idjsg2021-01-231-1/+2
| | | | reported and tested by John Batteen on a TP-Link TG-3468
* Remove the bus specific sc_ih (interrup handle) variable and use the commonclaudio2020-06-171-7/+6
| | | | | | 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@
* Some (probably newer) re(4) cards don't have the 32-bit memory BAR thatpatrick2018-04-111-7/+13
| | | | | | | | | 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@
* From FreeBSD (r227593, r307982):kevlo2017-06-121-2/+10
| | | | | | | | | | | | | | | 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@
* Rework re_start and re_txeof to only check the producer/consumer ringjmatthew2015-12-281-3/+3
| | | | | | | | | | | | | | 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@
* You only need <net/if_dl.h> if you're using LLADDR() or a sockaddr_dl.mpi2015-11-241-2/+1
|
* Remove some includes include-what-you-use claims don'tjsg2015-03-141-2/+1
| | | | | | | have any direct symbols used. Tested for indirect use by compiling amd64/i386/sparc64 kernels. ok tedu@ deraadt@
* Revert patch responsible for locking up machines withtobiasu2015-03-081-22/+2
| | | | | | | | | | | | | | | | | | | | | | | | | "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
* when reading the max packet size in the pcie device config anddlg2015-02-191-2/+2
| | | | | | | 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
* Set PCIe max read request size to 2K to help with TX performance.brad2015-01-261-2/+22
| | | | | | From FreeBSD Tested with 8168C, 8168D and 8168G.
* unifdef INETtedu2014-12-221-3/+1
|
* Always put controller into known state before device intialization.brad2014-10-241-2/+1
| | | | | | From FreeBSD ok sthen@ chris@
* Various changes to the re(4) feature flags..brad2014-09-061-1/+3
| | | | | | | | | | | 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@
* Fewer <netinet/in_systm.h>mpi2014-07-221-3/+1
|
* Enable MSI on the remaining chipsets.brad2013-11-181-7/+22
| | | | ok naddy@ sthen@
* Most network drivers include netinet/in_var.h, but apparently theybluhm2013-08-071-2/+1
| | | | | don't have to. Just remove these include lines. Compiled on amd64 i386 sparc64; OK henning@ mikeb@
* Enable MSI on RT810xE.kettenis2013-08-031-2/+7
| | | | ok jsg@
* Sort the PCI ids.brad2013-01-161-6/+6
| | | | ok dtucker@ jsing@
* Convert a number of old private copies of code which predatesderaadt2012-10-181-28/+2
| | | | | | | | 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
* add D-Link DGE-530T to re(4), update re(4) manpagerfreeman2012-09-261-1/+2
| | | | tested on i386, ok brad@ sthen@ phessler@
* Backout MSI change. People are seeing watchdog timeouts, which must be causedkettenis2011-06-091-2/+2
| | | | | by missed interrupts. Commits to the FreeBSD driver suggest that the hardware has issues. Having MSI for this driver isn't terribly important anyway.
* Add MSI support.kettenis2011-05-291-2/+2
| | | | ok dlg@, oga@
* use nitems(); no binary change for drivers that are compiled on amd64.jasper2011-04-031-2/+2
| | | | ok claudio@
* Wake On LAN support for re(4).stsp2011-03-131-1/+6
| | | | ok deraadt
* remove the powerhook code. All architectures now use the ca_activate treederaadt2010-09-071-5/+1
| | | | | traversal code to suspend/resume ok oga kettenis blambert
* spacing; ok deraadt@todd2010-07-271-2/+2
|
* Make sure we stop DMA before we suspend. Remove unused argument to re_stop()kettenis2010-07-271-2/+4
| | | | | | to avoid the dilemma what meaningless value to pass. ok deraadt@
* Only re-initialise interfaces on suspend if they were IFF_RUNNING.kettenis2009-11-261-2/+3
| | | | ok deraadt@, claudio@
* Reset the chip an re-initialise the interface after reset. Resetting thekettenis2009-11-241-2/+23
| | | | | | | | 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@
* More cases of shutdown hooks not needed after card is already stopped. Inderaadt2009-08-101-3/+1
| | | | | | 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
* Make re(4) at pci(4) detachable.kettenis2009-01-221-6/+45
| | | | ok jsg@, miod@
* If re_attach() fails at any point make sure to disestablish variousbrad2008-10-121-2/+5
| | | | | | | | 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().
* Detect if the adapter is a PCIe adapter and set the RL_FLAG_PCIE flagbrad2008-10-051-1/+8
| | | | if so.
* Remove unused flags.brad2008-04-201-3/+1
| | | | ok dlg@
* Simplify the hw revision handling by removing the use of thebrad2008-02-171-12/+2
| | | | | | | | | 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@
* move printing of the interrupt string into re_attach().brad2006-11-281-3/+2
|
* noone needs to know about the D0 state change; ok miodderaadt2006-11-061-1/+3
|
* Fix some "is is"s. ok otto@.tom2006-10-161-2/+2
|
* fix message printing when resetting the power state.brad2006-08-061-4/+3
|
* (fxp/re)_attach_common -> (fxp/re)_attachbrad2006-07-011-2/+2
|
* do not bother playing tag with the PCI_COMMAND_STATUS_REGderaadt2006-06-301-16/+4
|
* add new RealTek PCI ids.brad2006-06-271-1/+3
|
* de-register, ANSI functions and a little cleaning.brad2006-06-241-3/+3
|
* add sys/timeout.hbrad2006-06-171-1/+2
|
* identify 8139's in C+ mode with RL_8139CPLUS instead of RL_8139; no functional change.brad2006-06-091-3/+3
|
* rename the Realtek RT8111B entry to RT8168.brad2006-06-071-2/+2
|
* according to the Linux 8139cp driver the TTTech MC322 adapter usesbrad2006-05-231-3/+10
| | | | | | the 8139C+ chipset, so attach with re(4) instead of rl(4). ok dlg@
* attach 8139's capable of C+ mode to the re(4) driver, instead of the rl(4)brad2006-05-161-2/+12
| | | | driver.
* revert a small part of the last commit that wasn't supposed to go in.brad2006-03-271-7/+2
|