History log of /src/sys/dev/pci/if_stge.c |
Revision | | Date | Author | Comments |
1.93 |
| 05-Jul-2024 |
rin | sys: Drop redundant NULL check before m_freem(9)
m_freem(9) safely has accepted NULL argument at least since 4.2BSD: https://www.tuhs.org/cgi-bin/utree.pl?file=4.2BSD/usr/src/sys/sys/uipc_mbuf.c
Compile-tested on amd64/ALL.
Suggested by knakahara@
|
1.92 |
| 29-Jun-2024 |
riastradh | if_stats(9): Add ifp argument to if_stat..._ref.
This will enable us to pass the ifp through to a dtrace probe inside.
No functional change intended in this change, but this is an API change visible to modules so it shouldn't be pulled up.
PR kern/58377
|
1.91 |
| 10-Feb-2024 |
andvar | s/alloted/allotted/ in comments.
|
1.90 |
| 24-Sep-2022 |
thorpej | Remove unnecessary include of <sys/malloc.h>.
|
1.89 |
| 22-Jan-2022 |
martin | Explicitly cast a __MASK(40) to bus_addr_t (for 32bit bus_addr_t archs)
|
1.88 |
| 22-Jan-2022 |
skrll | Ensure bus_dmatag_subregion is called with an inclusive max_addr everywhere.
|
1.87 |
| 02-Jul-2020 |
msaitoh | prop_data_data_nocopy -> prop_data_value
|
1.86 |
| 15-Mar-2020 |
thorpej | Don't bother with IFF_OACTIVE.
|
1.85 |
| 13-Mar-2020 |
thorpej | Support MBUFTRACE.
|
1.84 |
| 07-Mar-2020 |
thorpej | If bus_dmatag_subregion(), actually fall back on the base 64-bit DMA tag.
|
1.83 |
| 02-Mar-2020 |
thorpej | Duh, acctually use all 64-bits when giving the rings to the chip.
|
1.82 |
| 01-Mar-2020 |
thorpej | Add explicit casts in bus_dmatag_subregion() calls to avoid overflow / truncation warnings on 32-bit platforms.
|
1.81 |
| 01-Mar-2020 |
thorpej | Harmonize bus_dmatag_subregion() handling with other drivers.
|
1.80 |
| 29-Feb-2020 |
thorpej | Use the 64-bit PCI DMA tag if it's available, but range-limit to 40-bit because that's what the hardware can do.
|
1.79 |
| 07-Feb-2020 |
thorpej | Use callout_setfunc() / callout_schedule().
|
1.78 |
| 30-Jan-2020 |
thorpej | Adopt <net/if_stats.h>.
|
1.77 |
| 14-Jan-2020 |
msaitoh | No functional change:
- Move some definitions from if_stgereg.h to if_stge.c again because those are not chip (registers or descriptors) definitions. - Use proplib to pass information that loading DSP code is required when PHY reset.
|
1.76 |
| 09-Jan-2020 |
msaitoh | Reduce diff against OpenBSD. No functional change.
- USE CSR_{READ,WRITE}_*() macro. - Move some macros from if_stge.c to if_stgereg.h
|
1.75 |
| 26-Dec-2019 |
msaitoh | branches: 1.75.2; Improve flow control.
|
1.74 |
| 26-Dec-2019 |
msaitoh | Apply OpenBSD rev. 1.34:
> Set Rx early threshold and Tx DMA thesholds. > > From Linux via FreeBSD
|
1.73 |
| 10-Nov-2019 |
msaitoh | Add missing initialization of sc_dev.
|
1.72 |
| 30-Oct-2019 |
msaitoh | if_percpuq(9) automatically increments if_ipackets, so don't add number of RX frames from device's statistics counter to if_ipackets to avoid double count.
|
1.71 |
| 07-Oct-2019 |
msaitoh | Add support IC Plus IP1000* PHYs. PR/kern 42314 first reported by Tomokazu HARADA and patch provided by Andrius V.
|
1.70 |
| 09-Jul-2019 |
msaitoh | branches: 1.70.2; Don't automatically set ec_capenable's ETHERCAP_VLAN_HWTAGGING bit in vlan_config() to make it user-controllable. Instead, set the bit in xxx_attach().
|
1.69 |
| 28-May-2019 |
msaitoh | Use ETHER_LOCK()/ETHER_UNLOCK() for all ethernet drivers to protect ec_multi*.
|
1.68 |
| 23-May-2019 |
msaitoh | No functional change: - Simplify MII structure initialization and reference. - u_int*_t -> uint*_t. - KNF
|
1.67 |
| 22-Jan-2019 |
msaitoh | Change MII PHY read/write API from:
int (*mii_readreg_t)(device_t, int, int); void (*mii_writereg_t)(device_t, int, int, int); to:
int (*mii_readreg_t)(device_t, int, int, uint16_t *); int (*mii_writereg_t)(device_t, int, int, uint16_t);
Now we can test if a read/write operation failed or not by the return value.
In 802.3 spec says that the PHY shall not respond to read/write transaction to the unimplemented register(22.2.4.3). Detecting timeout can be used to check whether a register is implemented or not (if the register conforms to the spec). ukphy(4) can be used this for MII_MMDACR and MII_MMDAADR.
Note that I noticed that the following code do infinite loop in the read/wirte function. If it accesses unimplemented PHY register, it will hang. It should be fixed:
arm/at91/at91emac.c arm/ep93xx/epe.c arm/omap/omapl1x_emac.c mips/ralink/ralink_eth.c arch/powerpc/booke/dev/pq3etsec.c(read) dev/cadence/if_cemac.c <- hkenken dev/ic/lan9118.c
Tested with the following device:
axe+ukphy axe+rgephy axen+rgephy (tested by Andrius V) wm+atphy wm+ukphy wm+igphy wm+ihphy wm+makphy sk+makphy sk+brgphy sk+gentbi msk+makphy sip+icsphy sip+ukphy re+rgephy bge+brgphy bnx+brgphy gsip+gphyter rtk+rlphy fxp+inphy (tested by Andrius V) tlp+acphy ex+exphy epic+qsphy vge+ciphy (tested by Andrius V) vr+ukphy (tested by Andrius V) vte+ukphy (tested by Andrius V)
Not tested (MAC): arm:at91emac arm:cemac arm:epe arm:geminigmac arm:enet arm:cpsw arm:emac(omac) arm:emac(sunxi) arm:npe evbppc:temac macppc:bm macppc:gm mips:aumac mips:ae mips:cnmac mips:reth mips:sbmac playstation2:smap powerpc:tsec powerpc:emac(ibm4xx) sgimips:mec sparc:be sf ne(ax88190, dl10019) awge ep gem hme smsh mtd sm age alc ale bce cas et jme lii nfe pcn ste stge tl xi aue mue smsc udav url
Not tested (PHY): amhphy bmtphy dmphy etphy glxtphy ikphy iophy lxtphy nsphyter pnaphy rdcphy sqphy tlphy tqphy urlphy
|
1.66 |
| 09-Dec-2018 |
jdolecek | use pci_intr_establish_xname() everywhere
|
1.65 |
| 26-Jun-2018 |
msaitoh | branches: 1.65.2; Implement the BPF direction filter (BIOC[GS]DIRECTION). It provides backward compatibility with BIOC[GS]SEESENT ioctl. The userland interface is the same as FreeBSD.
This change also fixes a bug that the direction is misunderstand on some environment by passing the direction to bpf_mtap*() instead of checking m->m_pkthdr.rcvif.
|
1.64 |
| 28-Sep-2017 |
christos | branches: 1.64.2; only get vtag when we have vtag like the other drivers.
|
1.63 |
| 26-Sep-2017 |
knakahara | VLAN ID uses pkthdr instead of mtag now. Contributed by s-yamaguchi@IIJ.
I just commit by proxy. Reviewed by joerg@n.o and christos@n.o, thanks. See http://mail-index.netbsd.org/tech-net/2017/09/26/msg006459.html
XXX need pullup to -8 branch
|
1.62 |
| 15-Dec-2016 |
ozaki-r | branches: 1.62.8; Move bpf_mtap and if_ipackets++ on Rx of each driver to percpuq if_input
The benefits of the change are: - We can reduce codes - We can provide the same behavior between drivers - Where/When if_ipackets is counted up - Note that some drivers still update packet statistics in their own way (periodical update) - Moved bpf_mtap run in softint - This makes it easy to MP-ify bpf
Proposed on tech-kern and tech-net
|
1.61 |
| 08-Dec-2016 |
ozaki-r | Apply deferred if_start framework
if_schedule_deferred_start checks if the if_snd queue contains packets, so drivers don't need to check it by themselves.
|
1.60 |
| 07-Jul-2016 |
msaitoh | branches: 1.60.2; KNF. Remove extra spaces. No functional change.
|
1.59 |
| 10-Jun-2016 |
ozaki-r | Introduce m_set_rcvif and m_reset_rcvif
The API is used to set (or reset) a received interface of a mbuf. They are counterpart of m_get_rcvif, which will come in another commit, hide internal of rcvif operation, and reduce the diff of the upcoming change.
No functional change.
|
1.58 |
| 09-Feb-2016 |
ozaki-r | Introduce softint-based if_input
This change intends to run the whole network stack in softint context (or normal LWP), not hardware interrupt context. Note that the work is still incomplete by this change; to that end, we also have to softint-ify if_link_state_change (and bpf) which can still run in hardware interrupt.
This change softint-ifies at ifp->if_input that is called from each device driver (and ieee80211_input) to ensure Layer 2 runs in softint (e.g., ether_input and bridge_input). To this end, we provide a framework (called percpuq) that utlizes softint(9) and percpu ifqueues. With this patch, rxintr of most drivers just queues received packets and schedules a softint, and the softint dequeues packets and does rest packet processing.
To minimize changes to each driver, percpuq is allocated in struct ifnet for now and that is initialized by default (in if_attach). We probably have to move percpuq to softc of each driver, but it's future work. At this point, only wm(4) has percpuq in its softc as a reference implementation.
Additional information including performance numbers can be found in the thread at tech-kern@ and tech-net@: http://mail-index.netbsd.org/tech-kern/2016/01/14/msg019997.html
Acknowledgment: riastradh@ greatly helped this work. Thank you very much!
|
1.57 |
| 29-Mar-2014 |
christos | branches: 1.57.6; make pci_intr_string and eisa_intr_string take a buffer and a length instead of relying in local static storage.
|
1.56 |
| 30-Mar-2013 |
christos | branches: 1.56.4; remove trailing whitespace
|
1.55 |
| 22-Jul-2012 |
matt | branches: 1.55.2; Fix mii_statchg to take a 'struct ifnet *' instead of device_t. This fixes problem with a common MDIO bus used for multiple interfaces. Some drivers converted to CFATTACL_DECL_NEW.
|
1.54 |
| 30-Jan-2012 |
drochner | Use pci_aprint_devinfo(9) instead of pci_devinfo+aprint_{normal,naive} where it looks straightforward, and pci_aprint_devinfo_fancy in a few others where drivers want to supply their own device names instead of the pcidevs generated one. More complicated cases, where names are composed at runtime, are left alone for now. It certainly makes sense to simplify the drivers here rather than inventing a catch-all API. This should serve as as example for new drivers, and also ensure consistent output in the AB_QUIET ("boot -q") case. Also, it avoids excessive stack usage where drivers attach child devices because the buffer for the device name is not kept on the local stack anymore.
|
1.53 |
| 12-Mar-2011 |
phx | branches: 1.53.4; 1.53.8; When shutting down the network interface it is not enough to stop it. Some boards also need to reset the chip, otherwise bad things can happen.
|
1.52 |
| 08-Mar-2011 |
phx | On the ST1023 (and compatible, like IP1000A), the mac-address can also be passed via device properties, when the serial EEPROM is missing or empty.
|
1.51 |
| 13-Nov-2010 |
uebayasi | branches: 1.51.2; Don't pull in the whole uvm(9) API to access only PAGE_SIZE and some other constants. These are provided by sys/param.h now.
|
1.50 |
| 05-Apr-2010 |
joerg | Push the bpf_ops usage back into bpf.h. Push the common ifp->if_bpf check into the inline functions as well the fourth argument for bpf_attach.
|
1.49 |
| 19-Jan-2010 |
pooka | branches: 1.49.2; 1.49.4; Redefine bpf linkage through an always present op vector, i.e. #if NBPFILTER is no longer required in the client. This change doesn't yet add support for loading bpf as a module, since drivers can register before bpf is attached. However, callers of bpf can now be modularized.
Dynamically loadable bpf could probably be done fairly easily with coordination from the stub driver and the real driver by registering attachments in the stub before the real driver is loaded and doing a handoff. ... and I'm not going to ponder the depths of unload here.
Tested with i386/MONOLITHIC, modified MONOLITHIC without bpf and rump.
|
1.48 |
| 14-Sep-2009 |
tsutsui | Replace shutdownhook_establish(9) with pmf_device_register1(9). Tested on D-Link DL-4000.
|
1.47 |
| 17-May-2009 |
tsutsui | Split device_t/softc. Tested on D-Link DL-4000.
|
1.46 |
| 06-May-2009 |
cegger | struct cfdata * -> cfdata_t, no functional changes intended.
|
1.45 |
| 28-Apr-2008 |
martin | branches: 1.45.14; Remove clause 3 and 4 from TNF licenses
|
1.44 |
| 10-Apr-2008 |
cegger | branches: 1.44.2; 1.44.4; use aprint_*_dev and device_xname
|
1.43 |
| 21-Mar-2008 |
dyoung | pci_activate() expects for its void * argument to be a device_t, so change the type of the argument to device_t. Update each use of pci_activate().
Use device_t and accessors. Use aprint_*_dev().
|
1.42 |
| 11-Mar-2008 |
dyoung | Prepare for PMF self-suspension: in the if_stop() methods, clear IFF_UP and IFF_RUNNING before running the 'disable' step, instead of after. Soon I will handle the 'disable' step by calling into PMF, which may call if_stop(, 0). Ordinarily, that is harmless. This change lets the if_stop() routines exit early when they find on entry that IFF_RUNNING is not set.
|
1.41 |
| 07-Feb-2008 |
dyoung | branches: 1.41.2; 1.41.6; Start patching up the kernel so that a network driver always has the opportunity to handle an ioctl before generic ifioctl handling occurs. This will ease extending the kernel and sharing of code between drivers.
First steps: Make the signature of ifioctl_common() match struct ifinet->if_ioctl. Convert SIOCSIFCAP and SIOCSIFMTU to the new ifioctl() regime, throughout the kernel.
|
1.40 |
| 19-Jan-2008 |
dyoung | Make many ethernet drivers share the common code for MII media handling, ether_mediastatus() and ether_mediachange(). Check for a non-ENXIO error return from mii_mediachg(). (ENXIO indicates that a PHY is suspended.)
This patch shrinks the source code size by 979 lines. There was a 5100-byte savings on the NetBSD/i386 kernel configuration, ALL.
I have made a few miscellaneous changes, too:
gem(4): use LIST_EMPTY(), LIST_FOREACH(). mtd(4): handle media ioctls, for a change! axe(4): do not track link status in sc->axe_link any longer nfe(4), aue(4), axe(4), udav(4), url(4): do not reset all PHYs on a change of media
Except for the change to mtd(4), no functional changes are intended.
XXX This patch affects more architectures than I can feasibly XXX compile and run. I have compiled macppc, sparc64, i386. I XXX have run the patches on i386 boxen with bnx(4) and sip(4). XXX Compiling and running on evbmips (MERAKI, ADM5120) is in XXX progress.
|
1.39 |
| 19-Oct-2007 |
ad | branches: 1.39.2; 1.39.8; machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
|
1.38 |
| 26-Aug-2007 |
dyoung | branches: 1.38.2; 1.38.6; Constify: LLADDR -> CLLADDR. I'm aiming here to make it easier to identify sockaddr_dl abuse that remains in the kernel, especially the potential for overwriting memory past the end of a sockaddr_dl with, e.g., memcpy(LLADDR(), ...).
|
1.37 |
| 09-Jul-2007 |
ad | branches: 1.37.2; 1.37.6; Merge some of the less invasive changes from the vmlocking branch:
- kthread, callout, devsw API changes - select()/poll() improvements - miscellaneous MT safety improvements
|
1.36 |
| 04-Mar-2007 |
christos | branches: 1.36.2; 1.36.4; Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
1.35 |
| 16-Nov-2006 |
christos | branches: 1.35.4; __unused removal on arguments; approved by core.
|
1.34 |
| 12-Oct-2006 |
christos | - sprinkle __unused on function decls. - fix a couple of unused bugs - no more -Wno-unused for i386
|
1.33 |
| 17-Jun-2006 |
christos | branches: 1.33.4; 1.33.6; re-factor the pci powestate api. reviewed by gimpy
|
1.32 |
| 11-Dec-2005 |
christos | branches: 1.32.4; 1.32.8; 1.32.14; 1.32.16; merge ktrace-lwp.
|
1.31 |
| 28-Jul-2005 |
christos | Don't use a global variable to indicate that we are stge1023. Use an sc member. Pointed out by thorpej.
|
1.30 |
| 25-Jul-2005 |
kleink | Add missing brace to previous.
|
1.29 |
| 25-Jul-2005 |
christos | PR/29925: Mihai CHELARU: Fix for stge 1023.
|
1.28 |
| 25-Jun-2005 |
bouyer | branches: 1.28.2; Write the station address using 8-bits writes instead of 16-bits. This is what the linux driver does, and makes the DGE-550T work without the STGE_CU_BUG hack. So remove the STGE_CU_BUG hack. Set bit 0x0020 in STGE_DebugCtrl too, the linux driver does it (the comments note this as a workaround, without more details. This doesn't seem to make things worse). Also initialize STGE_RxDMABurstThresh and STGE_RxDMAUrgentThresh, using values from the linux driver.
Approved by Jason Thorpe.
|
1.27 |
| 16-May-2005 |
bouyer | Fix some big-endian issues. stge(4) now works on sparc64 with hardware checksums.
|
1.26 |
| 13-May-2005 |
wiz | Fix typo reported by Brad at comstyle com.
|
1.25 |
| 02-May-2005 |
yamt | split IFCAP_CSUM_xxx to IFCAP_CSUM_xxx_Rx and IFCAP_CSUM_xxx_Tx.
|
1.24 |
| 27-Feb-2005 |
perry | branches: 1.24.2; nuke trailing whitespace
|
1.23 |
| 20-Feb-2005 |
jdolecek | use VLAN_* macros for VLAN tag extraction/addition
|
1.22 |
| 30-Oct-2004 |
thorpej | branches: 1.22.4; 1.22.6; When adding/deleting multicast addresses, only whack the address filter if the interface is marked RUNNING.
Fixes kern/27678.
|
1.21 |
| 02-Oct-2004 |
wiz | Fix typo reported by Alexander Yurchenko in private mail.
|
1.20 |
| 21-Aug-2004 |
thorpej | Use ANSI function decls and make use of static.
|
1.19 |
| 01-Mar-2003 |
mjacob | branches: 1.19.2; 1.19.6; Argh. Commited the wrong file.
|
1.18 |
| 01-Mar-2003 |
mjacob | Fix RFD_TCI macro.
|
1.17 |
| 10-Feb-2003 |
christos | Centralize the interrupt bits for the 3 registers where they are being used.
|
1.16 |
| 10-Feb-2003 |
christos | make this compile again.
|
1.15 |
| 10-Feb-2003 |
mjacob | Add in h/w VLAN tag support.
Put in code that, if enabled, makes *my* copper Sundance TI cards work- promiscuous mode is needed for this for now. The default is to have this off until I or somebody figures out what is broken- I think it's stuff with the Marvell PHY.
|
1.14 |
| 23-Dec-2002 |
tsutsui | Replace magic numbers for power management control with PCI_PMCSR* macros.
XXX Should we use pci_get_powerstate() and pci_set_powerstate() in pci.c?
|
1.13 |
| 21-Oct-2002 |
fair | Change the "dontcare bits" argument to ifmedia_init() to IFM_IMASK so that it is possible select PHY instances other than the first one (instance zero), if there is more than one PHY attached.
|
1.12 |
| 02-Oct-2002 |
thorpej | Add trailing ; to CFATTACH_DECL.
|
1.11 |
| 30-Sep-2002 |
thorpej | Use CFATTACH_DECL().
|
1.10 |
| 27-Sep-2002 |
thorpej | Declare all cfattach structures const.
|
1.9 |
| 13-Nov-2001 |
lukem | add RCSID
|
1.8 |
| 10-Oct-2001 |
mjacob | The flow control registers are 16 bits wide, not 32.
|
1.7 |
| 06-Oct-2001 |
thorpej | Create the Tx DMA maps with a size large enough for a jumbo Ethernet frame.
|
1.6 |
| 30-Jul-2001 |
thorpej | branches: 1.6.2; 1.6.4; 1.6.6; Oops, make Rx interrupt deferral actually work.
|
1.5 |
| 27-Jul-2001 |
thorpej | Tell the MII layer to advertise PAUSE capability, and configure the chip's PAUSE threshold.
|
1.4 |
| 25-Jul-2001 |
thorpej | Jumbo frames do not currently work (chip goes catatonic -- silicon bug?), so don't set the capability.
|
1.3 |
| 25-Jul-2001 |
thorpej | Match the Antares Gigabit Ethernet.
|
1.2 |
| 25-Jul-2001 |
thorpej | Remove a debugging #define.
|
1.1 |
| 25-Jul-2001 |
thorpej | Driver for the Sundance Tech./Tamarack TC9021 Gigabit Ethernet controller.
|
1.6.6.1 |
| 11-Oct-2001 |
fvdl | Catch up with -current. Fix some bogons in the sparc64 kbd/ms attach code. cd18xx conversion provided by mrg.
|
1.6.4.7 |
| 29-Dec-2002 |
thorpej | Sync with HEAD.
|
1.6.4.6 |
| 11-Nov-2002 |
nathanw | Catch up to -current
|
1.6.4.5 |
| 18-Oct-2002 |
nathanw | Catch up to -current.
|
1.6.4.4 |
| 14-Nov-2001 |
nathanw | Catch up to -current.
|
1.6.4.3 |
| 22-Oct-2001 |
nathanw | Catch up to -current.
|
1.6.4.2 |
| 24-Aug-2001 |
nathanw | Catch up with -current.
|
1.6.4.1 |
| 30-Jul-2001 |
nathanw | file if_stge.c was added on branch nathanw_sa on 2001-08-24 00:10:08 +0000
|
1.6.2.4 |
| 10-Oct-2002 |
jdolecek | sync kqueue with -current; this includes merge of gehenna-devsw branch, merge of i386 MP branch, and part of autoconf rototil work
|
1.6.2.3 |
| 10-Jan-2002 |
thorpej | Sync kqueue branch with -current.
|
1.6.2.2 |
| 03-Aug-2001 |
lukem | update to -current
|
1.6.2.1 |
| 30-Jul-2001 |
lukem | file if_stge.c was added on branch kqueue on 2001-08-03 04:13:16 +0000
|
1.19.6.3 |
| 05-Jul-2005 |
riz | Pull up revision 1.28 (requested by bouyer in ticket #2062): Write the station address using 8-bits writes instead of 16-bits. This is what the linux driver does, and makes the DGE-550T work without the STGE_CU_BUG hack. So remove the STGE_CU_BUG hack. Set bit 0x0020 in STGE_DebugCtrl too, the linux driver does it (the comments note this as a workaround, without more details. This doesn't seem to make things worse). Also initialize STGE_RxDMABurstThresh and STGE_RxDMAUrgentThresh, using values from the linux driver. Approved by Jason Thorpe.
|
1.19.6.2 |
| 21-Jun-2005 |
riz | Pull up revision 1.27 (requested by bouyer in ticket #2009): Fix some big-endian issues. stge(4) now works on sparc64 with hardware checksums.
|
1.19.6.1 |
| 24-Jan-2005 |
he | Pull up revision 1.22 (requested by thorpej in ticket #939): When adding or deleting multicast addresses, only change the address filter if the interface is marked RUNNING. Fixes PR#27678.
|
1.19.2.7 |
| 10-Nov-2005 |
skrll | Sync with HEAD. Here we go again...
|
1.19.2.6 |
| 04-Mar-2005 |
skrll | Sync with HEAD.
Hi Perry!
|
1.19.2.5 |
| 02-Nov-2004 |
skrll | Sync with HEAD.
|
1.19.2.4 |
| 19-Oct-2004 |
skrll | Sync with HEAD
|
1.19.2.3 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.19.2.2 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.19.2.1 |
| 25-Aug-2004 |
skrll | Sync with HEAD.
|
1.22.6.1 |
| 19-Mar-2005 |
yamt | sync with head. xen and whitespace. xen part is not finished.
|
1.22.4.1 |
| 29-Apr-2005 |
kent | sync with -current
|
1.24.2.2 |
| 05-Jul-2005 |
tron | Pull up revision 1.28 (requested by bouyer in ticket #548): Write the station address using 8-bits writes instead of 16-bits. This is what the linux driver does, and makes the DGE-550T work without the STGE_CU_BUG hack. So remove the STGE_CU_BUG hack. Set bit 0x0020 in STGE_DebugCtrl too, the linux driver does it (the comments note this as a workaround, without more details. This doesn't seem to make things worse). Also initialize STGE_RxDMABurstThresh and STGE_RxDMAUrgentThresh, using values from the linux driver. Approved by Jason Thorpe.
|
1.24.2.1 |
| 22-Jun-2005 |
tron | Pull up revision 1.27 (requested by bouyer in ticket #477): Fix some big-endian issues. stge(4) now works on sparc64 with hardware checksums.
|
1.28.2.8 |
| 24-Mar-2008 |
yamt | sync with head.
|
1.28.2.7 |
| 17-Mar-2008 |
yamt | sync with head.
|
1.28.2.6 |
| 11-Feb-2008 |
yamt | sync with head.
|
1.28.2.5 |
| 21-Jan-2008 |
yamt | sync with head
|
1.28.2.4 |
| 27-Oct-2007 |
yamt | sync with head.
|
1.28.2.3 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.28.2.2 |
| 30-Dec-2006 |
yamt | sync with head.
|
1.28.2.1 |
| 21-Jun-2006 |
yamt | sync with head.
|
1.32.16.1 |
| 13-Jul-2006 |
gdamore | Merge from HEAD.
|
1.32.14.1 |
| 19-Jun-2006 |
chap | Sync with head.
|
1.32.8.1 |
| 26-Jun-2006 |
yamt | sync with head.
|
1.32.4.1 |
| 09-Sep-2006 |
rpaulo | sync with head
|
1.33.6.2 |
| 10-Dec-2006 |
yamt | sync with head.
|
1.33.6.1 |
| 22-Oct-2006 |
yamt | sync with head
|
1.33.4.1 |
| 18-Nov-2006 |
ad | Sync with head.
|
1.35.4.1 |
| 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.36.4.1 |
| 11-Jul-2007 |
mjf | Sync with head.
|
1.36.2.3 |
| 23-Oct-2007 |
ad | Sync with head.
|
1.36.2.2 |
| 09-Oct-2007 |
ad | Sync with head.
|
1.36.2.1 |
| 01-Jul-2007 |
ad | Adapt to callout API change.
|
1.37.6.2 |
| 26-Oct-2007 |
joerg | Sync with HEAD.
Follow the merge of pmap.c on i386 and amd64 and move pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup code to restore CR4 before jumping back into kernel space as the large page option might cover that.
|
1.37.6.1 |
| 03-Sep-2007 |
jmcneill | Sync with HEAD.
|
1.37.2.1 |
| 03-Sep-2007 |
skrll | Sync with HEAD.
|
1.38.6.1 |
| 25-Oct-2007 |
bouyer | Sync with HEAD.
|
1.38.2.2 |
| 23-Mar-2008 |
matt | sync with HEAD
|
1.38.2.1 |
| 06-Nov-2007 |
matt | sync with HEAD
|
1.39.8.1 |
| 20-Jan-2008 |
bouyer | Sync with HEAD
|
1.39.2.1 |
| 18-Feb-2008 |
mjf | Sync with HEAD.
|
1.41.6.2 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.41.6.1 |
| 03-Apr-2008 |
mjf | Sync with HEAD.
|
1.41.2.1 |
| 24-Mar-2008 |
keiichi | sync with head.
|
1.44.4.6 |
| 11-Aug-2010 |
yamt | sync with head.
|
1.44.4.5 |
| 11-Mar-2010 |
yamt | sync with head
|
1.44.4.4 |
| 16-Sep-2009 |
yamt | sync with head
|
1.44.4.3 |
| 20-Jun-2009 |
yamt | sync with head
|
1.44.4.2 |
| 16-May-2009 |
yamt | sync with head
|
1.44.4.1 |
| 16-May-2008 |
yamt | sync with head.
|
1.44.2.1 |
| 18-May-2008 |
yamt | sync with head.
|
1.45.14.2 |
| 23-Jul-2009 |
jym | Sync with HEAD.
|
1.45.14.1 |
| 13-May-2009 |
jym | Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
|
1.49.4.3 |
| 21-Apr-2011 |
rmind | sync with head
|
1.49.4.2 |
| 05-Mar-2011 |
rmind | sync with head
|
1.49.4.1 |
| 30-May-2010 |
rmind | sync with head
|
1.49.2.1 |
| 30-Apr-2010 |
uebayasi | Sync with HEAD.
|
1.51.2.1 |
| 06-Jun-2011 |
jruoho | Sync with HEAD.
|
1.53.8.1 |
| 18-Feb-2012 |
mrg | merge to -current.
|
1.53.4.3 |
| 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|
1.53.4.2 |
| 30-Oct-2012 |
yamt | sync with head
|
1.53.4.1 |
| 17-Apr-2012 |
yamt | sync with head
|
1.55.2.3 |
| 03-Dec-2017 |
jdolecek | update from HEAD
|
1.55.2.2 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.55.2.1 |
| 23-Jun-2013 |
tls | resync from head
|
1.56.4.1 |
| 18-May-2014 |
rmind | sync with head
|
1.57.6.3 |
| 05-Feb-2017 |
skrll | Sync with HEAD
|
1.57.6.2 |
| 09-Jul-2016 |
skrll | Sync with HEAD
|
1.57.6.1 |
| 19-Mar-2016 |
skrll | Sync with HEAD
|
1.60.2.1 |
| 07-Jan-2017 |
pgoyette | Sync with HEAD. (Note that most of these changes are simply $NetBSD$ tag issues.)
|
1.62.8.3 |
| 14-Nov-2019 |
martin | Pull up following revision(s) (requested by msaitoh in ticket #1439):
sys/dev/sbus/sio16.c: revision 1.25 sys/dev/gpib/mt.c: revision 1.33 sys/arch/mvme68k/dev/wdsc.c: revision 1.33 sys/dev/gpib/ct.c: revision 1.31 sys/dev/isa/mcd.c: revision 1.119 sys/dev/pci/if_stge.c: revision 1.73 sys/dev/gpib/ppi.c: revision 1.25 sys/dev/pcmcia/if_tr_pcmcia.c: revision 1.29 sys/arch/amiga/dev/zssc.c: revision 1.46 sys/arch/mac68k/obio/iwm_fd.c: revision 1.57 sys/arch/amiga/dev/if_qn.c: revision 1.48 sys/dev/isa/tcic2_isa.c: revision 1.28 sys/dev/isa/uha_isa.c: revision 1.42 sys/dev/pci/neo.c: revision 1.55 sys/arch/next68k/dev/nextdisplay.c: revision 1.22 sys/dev/isa/if_iy.c: revision 1.111
Add missing initialization of sc_dev.
Initialize sc_dev correctly to avoid null pointer dereference when bus_space_map() failed.
Add missing initialization of sc_dev.
|
1.62.8.2 |
| 06-Nov-2019 |
martin | Pull up following revision(s) (requested by msaitoh in ticket #1427):
sys/arch/arm/broadcom/bcm53xx_eth.c: revision 1.39 sys/dev/pcmcia/if_xi.c: revision 1.91 sys/dev/ic/aic6915.c: revision 1.40 sys/dev/pci/if_tl.c: revision 1.117 sys/arch/arm/gemini/gemini_gmac.c: revision 1.18 sys/dev/ic/elinkxl.c: revision 1.133 sys/dev/pci/if_ste.c: revision 1.57 sys/dev/pci/if_alc.c: revision 1.43 sys/dev/pci/if_stge.c: revision 1.72 sys/dev/pci/if_ale.c: revision 1.34 sys/dev/pci/if_age.c: revision 1.62 sys/dev/pci/if_txp.c: revision 1.60 sys/dev/ic/i82557.c: revision 1.156 sys/dev/pci/if_vte.c: revision 1.27 sys/arch/powerpc/booke/dev/pq3etsec.c: revision 1.47 sys/arch/arm/gemini/if_gpn.c: revision 1.13
if_percpuq(9) and ether_input() automatically increment if_ipackets, so don't add number of RX frames from device's statistics counter to if_ipackets to avoid double count.
|
1.62.8.1 |
| 24-Oct-2017 |
snj | Pull up following revision(s) (requested by knakahara in ticket #302): sys/arch/powerpc/booke/dev/pq3etsec.c: 1.30-1.31 sys/arch/x86/pci/if_vmx.c: 1.20 sys/dev/ic/i82557.c: 1.148 sys/dev/ic/rtl8169.c: 1.152 sys/dev/pci/cxgb/cxgb_sge.c: 1.5 sys/dev/pci/if_age.c: 1.51 sys/dev/pci/if_alc.c: 1.25 sys/dev/pci/if_ale.c: 1.23 sys/dev/pci/if_bge.c: 1.311 sys/dev/pci/if_bge.c: 1.312 sys/dev/pci/if_bnx.c: 1.62 sys/dev/pci/if_jme.c: 1.32 sys/dev/pci/if_nfe.c: 1.64 sys/dev/pci/if_sip.c: 1.167 sys/dev/pci/if_stge.c: 1.63-1.64 sys/dev/pci/if_ti.c: 1.102 sys/dev/pci/if_txp.c: 1.48 sys/dev/pci/if_vge.c: 1.61 sys/dev/pci/if_wm.c: 1.538 sys/dev/pci/ixgbe/ix_txrx.c: 1.29 via patch sys/net/agr/if_agrether_hash.c: 1.4 sys/net/if_ether.h: 1.67-1.68 sys/net/if_ethersubr.c: 1.244 sys/net/if_vlan.c: 1.100 sys/net80211/ieee80211_input.c: 1.89 sys/net80211/ieee80211_output.c: 1.59 sys/sys/mbuf.h: 1.171 VLAN ID uses pkthdr instead of mtag now. Contributed by s-yamaguchi@IIJ. I just commit by proxy. Reviewed by joerg@n.o and christos@n.o, thanks. See http://mail-index.netbsd.org/tech-net/2017/09/26/msg006459.html -- only get vtag when we have vtag like the other drivers. -- - only get the vtag if we have it like the other drivers - mask the hardware vlan tag -- - add a constant for the vlan mask. - enforce that we have a tag before we get it. only get vtag when we have vtag like the other drivers. like if_bge.c:1.312 and if_stge.c:1.64. fixed by s-yamaguchi@IIJ, thanks.
|
1.64.2.3 |
| 26-Jan-2019 |
pgoyette | Sync with HEAD
|
1.64.2.2 |
| 26-Dec-2018 |
pgoyette | Sync with HEAD, resolve a few conflicts
|
1.64.2.1 |
| 28-Jul-2018 |
pgoyette | Sync with HEAD
|
1.65.2.2 |
| 13-Apr-2020 |
martin | Mostly merge changes from HEAD upto 20200411
|
1.65.2.1 |
| 10-Jun-2019 |
christos | Sync with HEAD
|
1.70.2.3 |
| 25-Nov-2019 |
martin | Pull up following revision(s) (requested by msaitoh in ticket #476):
sys/dev/pci/if_stgereg.h: revision 1.6 sys/arch/amd64/conf/ALL: revision 1.124 sys/dev/mii/files.mii: revision 1.51 share/man/man4/vge.4: revision 1.8 share/man/man4/vge.4: revision 1.9 distrib/sets/lists/man/mi: revision 1.1656 sys/arch/i386/conf/ALL: revision 1.471 share/man/man4/mii.4: revision 1.28 sys/dev/pci/if_stge.c: revision 1.71 sys/dev/mii/ipgphy.c: revision 1.1 sys/dev/mii/ipgphy.c: revision 1.2 share/man/man4/Makefile: revision 1.684 sys/dev/mii/ipgphy.c: revision 1.3 sys/dev/mii/ipgphyreg.h: revision 1.1 sys/dev/mii/ipgphy.c: revision 1.4 sys/dev/mii/ipgphyreg.h: revision 1.2 sys/dev/mii/ipgphy.c: revision 1.5 sys/dev/mii/ipgphyreg.h: revision 1.3 sys/dev/DEVNAMES: revision 1.322 sys/arch/i386/conf/GENERIC: revision 1.1211 sys/arch/amd64/conf/GENERIC: revision 1.537 share/man/man4/ipgphy.4: revision 1.1 share/man/man4/ipgphy.4: revision 1.2
Add support IC Plus IP1000* PHYs. PR/kern 42314 first reported by
Tomokazu HARADA and patch provided by Andrius V.
New sentence, new line. Fix date. Add RCS Id.
KNF. No functional change.
STGE_PhyCtrl is not PHY register but MAC register, so use ukphy_status() for IP1000A device.
- Use auto-negotiation when forcing 1000BASE-T. - Add XXX comment for strange pause setting code. I suspect this is wrong. - On my environments, 1000BASE-T half duplex doesn't work, so we might remove IFM_1000T_HDX from this device in future. - Define IPGPHY_SCR's address. - Whitespace fix.
Add missing NetBSD RCS Id. Reported by Andrius V.
|
1.70.2.2 |
| 14-Nov-2019 |
martin | Pull up following revision(s) (requested by msaitoh in ticket #425):
sys/dev/sbus/sio16.c: revision 1.25 sys/dev/gpib/mt.c: revision 1.33 sys/arch/mvme68k/dev/wdsc.c: revision 1.33 sys/dev/gpib/ct.c: revision 1.31 sys/dev/isa/mcd.c: revision 1.119 sys/dev/pci/if_stge.c: revision 1.73 sys/dev/gpib/ppi.c: revision 1.25 sys/dev/pcmcia/if_tr_pcmcia.c: revision 1.29 sys/arch/amiga/dev/zssc.c: revision 1.46 sys/arch/mac68k/obio/iwm_fd.c: revision 1.57 sys/arch/amiga/dev/if_qn.c: revision 1.48 sys/dev/isa/tcic2_isa.c: revision 1.28 sys/dev/isa/uha_isa.c: revision 1.42 sys/dev/pci/neo.c: revision 1.55 sys/arch/next68k/dev/nextdisplay.c: revision 1.22 sys/dev/isa/if_iy.c: revision 1.111
Add missing initialization of sc_dev.
Initialize sc_dev correctly to avoid null pointer dereference when bus_space_map() failed.
Add missing initialization of sc_dev.
|
1.70.2.1 |
| 06-Nov-2019 |
martin | Pull up following revision(s) (requested by msaitoh in ticket #403):
sys/arch/arm/broadcom/bcm53xx_eth.c: revision 1.39 sys/dev/pcmcia/if_xi.c: revision 1.91 sys/dev/ic/aic6915.c: revision 1.40 sys/dev/pci/if_tl.c: revision 1.117 sys/arch/arm/gemini/gemini_gmac.c: revision 1.18 sys/dev/ic/elinkxl.c: revision 1.133 sys/dev/pci/if_ste.c: revision 1.57 sys/dev/pci/if_alc.c: revision 1.43 sys/dev/pci/if_stge.c: revision 1.72 sys/dev/pci/if_ale.c: revision 1.34 sys/dev/pci/if_age.c: revision 1.62 sys/dev/pci/if_txp.c: revision 1.60 sys/dev/ic/i82557.c: revision 1.156 sys/dev/pci/if_vte.c: revision 1.27 sys/arch/powerpc/booke/dev/pq3etsec.c: revision 1.47 sys/arch/arm/gemini/if_gpn.c: revision 1.13
if_percpuq(9) and ether_input() automatically increment if_ipackets, so don't add number of RX frames from device's statistics counter to if_ipackets to avoid double count.
|
1.75.2.2 |
| 29-Feb-2020 |
ad | Sync with head.
|
1.75.2.1 |
| 17-Jan-2020 |
ad | Sync with head.
|