The NetBSD Project

CVS log for src/sys/dev/pci/if_nfe.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / dev / pci

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.80 / (download) - annotate - [select for diffs], Sat Jan 22 19:07:25 2022 UTC (2 years, 1 month ago) by martin
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.79: +3 -3 lines
Diff to previous 1.79 (colored)

Explicitly cast a __MASK(40) to bus_addr_t (for 32bit bus_addr_t archs)

Revision 1.79 / (download) - annotate - [select for diffs], Sat Jan 22 15:10:32 2022 UTC (2 years, 1 month ago) by skrll
Branch: MAIN
Changes since 1.78: +3 -3 lines
Diff to previous 1.78 (colored)

Ensure bus_dmatag_subregion is called with an inclusive max_addr
everywhere.

Revision 1.65.2.3 / (download) - annotate - [select for diffs], Mon Apr 13 08:04:26 2020 UTC (3 years, 10 months ago) by martin
Branch: phil-wifi
Changes since 1.65.2.2: +4 -2 lines
Diff to previous 1.65.2.2 (colored) to branchpoint 1.65 (colored) next main 1.66 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.65.2.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:08:09 2020 UTC (3 years, 10 months ago) by martin
Branch: phil-wifi
Changes since 1.65.2.1: +51 -45 lines
Diff to previous 1.65.2.1 (colored) to branchpoint 1.65 (colored)

Merge changes from current as of 20200406

Revision 1.71.2.1 / (download) - annotate - [select for diffs], Thu Mar 19 19:21:37 2020 UTC (3 years, 11 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE
Changes since 1.71: +17 -12 lines
Diff to previous 1.71 (colored) next main 1.72 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #786):

	sys/dev/pci/if_nfe.c: revision 1.77
	sys/dev/pci/if_nfe.c: revision 1.78
	sys/dev/mii/atphy.c: revision 1.28
	sys/dev/mii/atphy.c: revision 1.29
	sys/dev/mii/miidevs: revision 1.166

  Use unsigned to avoid undefined behavior. Found by kUBSan.
0x001374 is non-bitreversed value of Attansic OUI(0x00c82e).
Attansic/Atheros correctly uses ID1 and ID2 register, so delete all 0x001374
related entries.

Improve error check:
- We check PHY register read error correctly (timeout and NFE_PHY_ERROR), so
   don't check NFE_PHY_DATA register's value with 0xffffffff or 0. At least,
   some registers may have 0.
- Check NFE_PHY_ERROR bit in nfe_miibus_writereg().
- Improve debug printf

Fix a bug that atphy(4) doesn't work with Attansic L2 rev. 1.
Reported by Rocky Hotas.

- On ASUS M2N-MX SE Plus (NVIDIA MCP61 with Attansic L2 rev. 1), changing
   debug port 0x29's value makes the next PHY read fail with error.  Read any
   register to ignore this problem if the PHY is Attansic L2 revision 1.
   I don't know if this problem is from L2 rev. 1 itself or from the
   combination because I have only one machine which has L2 rev. "1".
   At least, ASUS eee pc 900 (Attansic L2 rev. "2") has no this problem.
- Add comment. AR8021 document has no description about the power saving
   control register(debug port 0x29).
- Add comment. AR8031 document says the lower 14 bits are reserved and the
   default value is 0x36d0. Shouldn't we clear those bits?
- I have no document neither L1(F1) nor L2(F2), so I don't know whether the
   debug port access is correct or not.
Tested with the following machines:
- ASUS P5B SE,         L1 rev. 5,            age(4)
- ASUS K50IJ,          L1 rev. 9,            ale(4)
- ASUS eee pc 900,     L2 rev. 2,            lii(4)
- ASUS M2N-MX SE Plus, L2 rev. 1,            nfe(4)
- Intel DP55WB,        82578(AR8021 rev. 2), wm(4)
- Dell inspiron 14z,   AR0835 rev. 9,        alc(4)

Revision 1.78 / (download) - annotate - [select for diffs], Fri Mar 13 05:10:39 2020 UTC (3 years, 11 months ago) by msaitoh
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh
Changes since 1.77: +14 -9 lines
Diff to previous 1.77 (colored)

Improve error check:

- We check PHY register read error correctly (timeout and NFE_PHY_ERROR), so
  don't check NFE_PHY_DATA register's value with 0xffffffff or 0. At least,
  some registers may have 0.
- Check NFE_PHY_ERROR bit in nfe_miibus_writereg().
- Improve debug printf

Revision 1.77 / (download) - annotate - [select for diffs], Sun Mar 8 14:10:24 2020 UTC (3 years, 11 months ago) by msaitoh
Branch: MAIN
Changes since 1.76: +5 -5 lines
Diff to previous 1.76 (colored)

 Use unsigned to avoid undefined behavior. Found by kUBSan.

Revision 1.76 / (download) - annotate - [select for diffs], Sun Mar 1 16:31:01 2020 UTC (4 years ago) by thorpej
Branch: MAIN
CVS Tags: is-mlppp-base, is-mlppp
Changes since 1.75: +3 -3 lines
Diff to previous 1.75 (colored)

Add explicit casts in bus_dmatag_subregion() calls to avoid overflow /
truncation warnings on 32-bit platforms.

Revision 1.75 / (download) - annotate - [select for diffs], Sun Mar 1 15:43:58 2020 UTC (4 years ago) by thorpej
Branch: MAIN
Changes since 1.74: +24 -24 lines
Diff to previous 1.74 (colored)

- Range-limit our DMA tag to 40-bit.
- Eliminate __LP64__ ifdefs.

Revision 1.72.2.1 / (download) - annotate - [select for diffs], Sat Feb 29 20:19:10 2020 UTC (4 years ago) by ad
Branch: ad-namecache
Changes since 1.72: +14 -13 lines
Diff to previous 1.72 (colored) next main 1.73 (colored)

Sync with head.

Revision 1.74 / (download) - annotate - [select for diffs], Tue Feb 4 05:44:14 2020 UTC (4 years ago) by thorpej
Branch: MAIN
CVS Tags: ad-namecache-base3
Changes since 1.73: +3 -2 lines
Diff to previous 1.73 (colored)

Use ifmedia_fini().

Revision 1.73 / (download) - annotate - [select for diffs], Thu Jan 30 05:42:00 2020 UTC (4 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.72: +13 -13 lines
Diff to previous 1.72 (colored)

Adopt <net/if_stats.h>.

Revision 1.72 / (download) - annotate - [select for diffs], Fri Sep 13 07:55:07 2019 UTC (4 years, 5 months ago) by msaitoh
Branch: MAIN
CVS Tags: phil-wifi-20191119, ad-namecache-base2, ad-namecache-base1, ad-namecache-base
Branch point for: ad-namecache
Changes since 1.71: +3 -3 lines
Diff to previous 1.71 (colored)

 if_flags is neither int nor short. It's unsigned short.

Revision 1.71 / (download) - annotate - [select for diffs], Tue Jul 9 08:46:59 2019 UTC (4 years, 7 months ago) by msaitoh
Branch: MAIN
CVS Tags: netbsd-9-base, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1
Branch point for: netbsd-9
Changes since 1.70: +5 -3 lines
Diff to previous 1.70 (colored)

 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().

Revision 1.65.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:07:16 2019 UTC (4 years, 8 months ago) by christos
Branch: phil-wifi
Changes since 1.65: +53 -45 lines
Diff to previous 1.65 (colored)

Sync with HEAD

Revision 1.70 / (download) - annotate - [select for diffs], Tue May 28 07:41:49 2019 UTC (4 years, 9 months ago) by msaitoh
Branch: MAIN
CVS Tags: phil-wifi-20190609
Changes since 1.69: +5 -2 lines
Diff to previous 1.69 (colored)

 Use ETHER_LOCK()/ETHER_UNLOCK() for all ethernet drivers to protect ec_multi*.

Revision 1.69 / (download) - annotate - [select for diffs], Thu May 23 10:51:39 2019 UTC (4 years, 9 months ago) by msaitoh
Branch: MAIN
Changes since 1.68: +27 -28 lines
Diff to previous 1.68 (colored)

No functional change:
 - Simplify MII structure initialization and reference.
 - u_int*_t -> uint*_t.
 - KNF

Revision 1.63.8.2 / (download) - annotate - [select for diffs], Mon May 13 12:40:13 2019 UTC (4 years, 9 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1
Changes since 1.63.8.1: +3 -3 lines
Diff to previous 1.63.8.1 (colored) to branchpoint 1.63 (colored) next main 1.64 (colored)

Pull up the following, via patch, requested by msaitoh in ticket #1263:

	sys/dev/mii/brgphy.c				1.84
	sys/dev/mii/ciphy.c				1.33 via patch
	sys/dev/mii/rgephy.c				1.53
	sys/arch/arm/imx/if_enet.c			1.18
	sys/arch/mips/adm5120/dev/if_admsw.c		1.19-1.20
	sys/dev/pci/if_bge.c				1.329
	sys/dev/pci/if_bnx.c				1.81
	sys/dev/pci/if_et.c				1.21
	sys/dev/pci/if_lii.c				1.22
	sys/dev/pci/if_msk.c				1.87
	sys/dev/pci/if_nfe.c				1.68
	sys/dev/pci/if_sk.c				1.95
	sys/dev/pci/if_ti.c				1.107
	sys/dev/pci/if_txp.c				1.52
	sys/dev/pci/if_vge.c				1.69
	sys/dev/usb/if_axen.c				1.38
	sys/dev/usb/if_aue.c				1.149

Fix a bug that the duplex of manual media setting may be wrong
when the IFM_GMASK bit other than IFM_[FH]DX is set.

Revision 1.68 / (download) - annotate - [select for diffs], Thu Apr 11 08:50:59 2019 UTC (4 years, 10 months ago) by msaitoh
Branch: MAIN
CVS Tags: isaki-audio2-base, isaki-audio2
Changes since 1.67: +3 -3 lines
Diff to previous 1.67 (colored)

 Fix a bug that the duplex of manual media setting may be wrong
when the IFM_GMASK bit other than IFM_[FH]DX is set.

Revision 1.64.2.3 / (download) - annotate - [select for diffs], Sat Jan 26 22:00:07 2019 UTC (5 years, 1 month ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.64.2.2: +22 -17 lines
Diff to previous 1.64.2.2 (colored) to branchpoint 1.64 (colored) next main 1.65 (colored)

Sync with HEAD

Revision 1.67 / (download) - annotate - [select for diffs], Tue Jan 22 03:42:27 2019 UTC (5 years, 1 month ago) by msaitoh
Branch: MAIN
CVS Tags: pgoyette-compat-20190127
Changes since 1.66: +22 -17 lines
Diff to previous 1.66 (colored)

 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

Revision 1.64.2.2 / (download) - annotate - [select for diffs], Wed Dec 26 14:01:50 2018 UTC (5 years, 2 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.64.2.1: +4 -3 lines
Diff to previous 1.64.2.1 (colored) to branchpoint 1.64 (colored)

Sync with HEAD, resolve a few conflicts

Revision 1.66 / (download) - annotate - [select for diffs], Sun Dec 9 11:14:02 2018 UTC (5 years, 2 months ago) by jdolecek
Branch: MAIN
CVS Tags: pgoyette-compat-20190118, pgoyette-compat-1226
Changes since 1.65: +4 -3 lines
Diff to previous 1.65 (colored)

use pci_intr_establish_xname() everywhere

Revision 1.64.2.1 / (download) - annotate - [select for diffs], Sat Jul 28 04:37:46 2018 UTC (5 years, 7 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.64: +3 -3 lines
Diff to previous 1.64 (colored)

Sync with HEAD

Revision 1.65 / (download) - annotate - [select for diffs], Tue Jun 26 06:48:01 2018 UTC (5 years, 8 months ago) by msaitoh
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, jdolecek-ncqfixes-base, jdolecek-ncqfixes
Branch point for: phil-wifi
Changes since 1.64: +3 -3 lines
Diff to previous 1.64 (colored)

 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.

Revision 1.56.2.4 / (download) - annotate - [select for diffs], Sun Dec 3 11:37:08 2017 UTC (6 years, 2 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.56.2.3: +7 -9 lines
Diff to previous 1.56.2.3 (colored) next main 1.57 (colored)

update from HEAD

Revision 1.63.8.1 / (download) - annotate - [select for diffs], Tue Oct 24 08:38:59 2017 UTC (6 years, 4 months ago) by snj
Branch: netbsd-8
CVS Tags: netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek
Changes since 1.63: +4 -5 lines
Diff to previous 1.63 (colored)

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.

Revision 1.64 / (download) - annotate - [select for diffs], Tue Sep 26 07:42:06 2017 UTC (6 years, 5 months ago) by knakahara
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, pgoyette-compat-base, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: pgoyette-compat
Changes since 1.63: +4 -5 lines
Diff to previous 1.63 (colored)

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

Revision 1.59.6.3 / (download) - annotate - [select for diffs], Sun Feb 5 13:40:29 2017 UTC (7 years ago) by skrll
Branch: nick-nhusb
Changes since 1.59.6.2: +5 -6 lines
Diff to previous 1.59.6.2 (colored) to branchpoint 1.59 (colored) next main 1.60 (colored)

Sync with HEAD

Revision 1.61.2.1 / (download) - annotate - [select for diffs], Sat Jan 7 08:56:33 2017 UTC (7 years, 1 month ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.61: +5 -6 lines
Diff to previous 1.61 (colored) next main 1.62 (colored)

Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.63 / (download) - annotate - [select for diffs], Thu Dec 15 09:28:05 2016 UTC (7 years, 2 months ago) by ozaki-r
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, netbsd-8-base, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: netbsd-8
Changes since 1.62: +2 -4 lines
Diff to previous 1.62 (colored)

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

Revision 1.62 / (download) - annotate - [select for diffs], Thu Dec 8 01:12:01 2016 UTC (7 years, 2 months ago) by ozaki-r
Branch: MAIN
Changes since 1.61: +5 -4 lines
Diff to previous 1.61 (colored)

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.

Revision 1.59.6.2 / (download) - annotate - [select for diffs], Sat Jul 9 20:25:04 2016 UTC (7 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.59.6.1: +3 -3 lines
Diff to previous 1.59.6.1 (colored) to branchpoint 1.59 (colored)

Sync with HEAD

Revision 1.61 / (download) - annotate - [select for diffs], Fri Jun 10 13:27:14 2016 UTC (7 years, 8 months ago) by ozaki-r
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, localcount-20160914
Branch point for: pgoyette-localcount
Changes since 1.60: +3 -3 lines
Diff to previous 1.60 (colored)

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.

Revision 1.59.6.1 / (download) - annotate - [select for diffs], Sat Mar 19 11:30:10 2016 UTC (7 years, 11 months ago) by skrll
Branch: nick-nhusb
Changes since 1.59: +3 -3 lines
Diff to previous 1.59 (colored)

Sync with HEAD

Revision 1.60 / (download) - annotate - [select for diffs], Tue Feb 9 08:32:11 2016 UTC (8 years ago) by ozaki-r
Branch: MAIN
CVS Tags: nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319
Changes since 1.59: +3 -3 lines
Diff to previous 1.59 (colored)

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!

Revision 1.56.2.3 / (download) - annotate - [select for diffs], Wed Aug 20 00:03:42 2014 UTC (9 years, 6 months ago) by tls
Branch: tls-maxphys
Changes since 1.56.2.2: +2 -1 lines
Diff to previous 1.56.2.2 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.54.4.3 / (download) - annotate - [select for diffs], Thu May 22 11:40:25 2014 UTC (9 years, 9 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.54.4.2: +5 -4 lines
Diff to previous 1.54.4.2 (colored) to branchpoint 1.54 (colored) next main 1.55 (colored)

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")

Revision 1.58.4.1 / (download) - annotate - [select for diffs], Sun May 18 17:45:40 2014 UTC (9 years, 9 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.58: +4 -3 lines
Diff to previous 1.58 (colored) next main 1.59 (colored)

sync with head

Revision 1.59 / (download) - annotate - [select for diffs], Sat Mar 29 19:28:25 2014 UTC (9 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Branch point for: nick-nhusb
Changes since 1.58: +4 -3 lines
Diff to previous 1.58 (colored)

make pci_intr_string and eisa_intr_string take a buffer and a length
instead of relying in local static storage.

Revision 1.56.2.2 / (download) - annotate - [select for diffs], Sun Jun 23 06:20:18 2013 UTC (10 years, 8 months ago) by tls
Branch: tls-maxphys
Changes since 1.56.2.1: +3 -3 lines
Diff to previous 1.56.2.1 (colored)

resync from head

Revision 1.58 / (download) - annotate - [select for diffs], Sat Mar 30 03:21:06 2013 UTC (10 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900
Branch point for: rmind-smpnet
Changes since 1.57: +3 -3 lines
Diff to previous 1.57 (colored)

remove trailing whitespace

Revision 1.55.2.1 / (download) - annotate - [select for diffs], Thu Nov 22 00:42:59 2012 UTC (11 years, 3 months ago) by riz
Branch: netbsd-6
CVS Tags: netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1
Changes since 1.55: +7 -4 lines
Diff to previous 1.55 (colored) next main 1.56 (colored)

Pull up following revision(s) (requested by chs in ticket #685):
	sys/dev/pci/if_nfe.c: revision 1.57
use 64-bit DMA where possible.

Revision 1.56.2.1 / (download) - annotate - [select for diffs], Tue Nov 20 03:02:17 2012 UTC (11 years, 3 months ago) by tls
Branch: tls-maxphys
Changes since 1.56: +7 -4 lines
Diff to previous 1.56 (colored)

Resync to 2012-11-19 00:00:00 UTC

Revision 1.54.4.2 / (download) - annotate - [select for diffs], Tue Oct 30 17:21:31 2012 UTC (11 years, 4 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.54.4.1: +10 -7 lines
Diff to previous 1.54.4.1 (colored) to branchpoint 1.54 (colored)

sync with head

Revision 1.57 / (download) - annotate - [select for diffs], Sun Sep 23 01:12:01 2012 UTC (11 years, 5 months ago) by chs
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, agc-symver-base, agc-symver
Changes since 1.56: +7 -4 lines
Diff to previous 1.56 (colored)

use 64-bit DMA where possible.

Revision 1.56 / (download) - annotate - [select for diffs], Sun Jul 22 14:33:03 2012 UTC (11 years, 7 months ago) by matt
Branch: MAIN
Branch point for: tls-maxphys
Changes since 1.55: +5 -5 lines
Diff to previous 1.55 (colored)

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.

Revision 1.54.4.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:07:47 2012 UTC (11 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.54: +3 -5 lines
Diff to previous 1.54 (colored)

sync with head

Revision 1.54.8.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:34:40 2012 UTC (12 years ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.54: +3 -5 lines
Diff to previous 1.54 (colored) next main 1.55 (colored)

merge to -current.

Revision 1.55 / (download) - annotate - [select for diffs], Mon Jan 30 19:41:20 2012 UTC (12 years, 1 month ago) by drochner
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, netbsd-6-base, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10
Branch point for: netbsd-6
Changes since 1.54: +3 -5 lines
Diff to previous 1.54 (colored)

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.

Revision 1.53.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:08:14 2011 UTC (12 years, 8 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.53: +3 -4 lines
Diff to previous 1.53 (colored) next main 1.54 (colored)

Sync with HEAD.

Revision 1.50.2.2 / (download) - annotate - [select for diffs], Sat Mar 5 20:53:42 2011 UTC (12 years, 11 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.50.2.1: +67 -11 lines
Diff to previous 1.50.2.1 (colored) to branchpoint 1.50 (colored) next main 1.51 (colored)

sync with head

Revision 1.53.4.1 / (download) - annotate - [select for diffs], Tue Feb 8 16:19:50 2011 UTC (13 years ago) by bouyer
Branch: bouyer-quota2
Changes since 1.53: +3 -4 lines
Diff to previous 1.53 (colored) next main 1.54 (colored)

Sync with HEAD

Revision 1.54 / (download) - annotate - [select for diffs], Sun Jan 23 03:15:06 2011 UTC (13 years, 1 month ago) by tsutsui
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, rmind-uvmplock-nbase, rmind-uvmplock-base, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base
Branch point for: yamt-pagecache, jmcneill-usbmp
Changes since 1.53: +3 -4 lines
Diff to previous 1.53 (colored)

Pull the following fix from OpenBSD:
http://www.openbsd.org/cgi-bin/cvsweb/src/sys/dev/pci/if_nfe.c#rev1.97
>> Some nfe(4)/rlphy(4) combos don't work, because the PHY responds to all
>> addresses on the mii bus.  As a countereasure, only attach the first PHY we
>> encounter.  It is very unlikely we're going to ever see nfe(4) with multiple
>> PHYs.  The same is probably true for any modern NIC.

Should suppress bogus ukphy30 noted in PR kern/42950.
No bad side effect on my nfe(4) which didn't get ghosts:
---
nfe0 at pci0 dev 5 function 0: NVIDIA nForce3 Ethernet #4 (rev. 0xa2)
 :
rlphy0 at nfe0 phy 1: RTL8201L 10/100 media interface, rev. 1
rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto

Revision 1.49.2.2 / (download) - annotate - [select for diffs], Sat Nov 6 08:08:30 2010 UTC (13 years, 3 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.49.2.1: +66 -9 lines
Diff to previous 1.49.2.1 (colored) to branchpoint 1.49 (colored) next main 1.50 (colored)

Sync with HEAD.

Revision 1.53 / (download) - annotate - [select for diffs], Wed Nov 3 14:03:40 2010 UTC (13 years, 3 months ago) by jakllsch
Branch: MAIN
CVS Tags: uebayasi-xip-base4, matt-mips64-premerge-20101231, jruoho-x86intr-base
Branch point for: jruoho-x86intr, bouyer-quota2
Changes since 1.52: +61 -8 lines
Diff to previous 1.52 (colored)

Make nfe(4) detachable.

Revision 1.52 / (download) - annotate - [select for diffs], Tue Nov 2 16:56:47 2010 UTC (13 years, 4 months ago) by jakllsch
Branch: MAIN
Changes since 1.51: +7 -3 lines
Diff to previous 1.51 (colored)

Explicitly set PCI_COMMAND_MASTER_ENABLE.

Revision 1.34.2.5 / (download) - annotate - [select for diffs], Wed Aug 11 22:53:47 2010 UTC (13 years, 6 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.34.2.4: +4 -6 lines
Diff to previous 1.34.2.4 (colored) to branchpoint 1.34 (colored) next main 1.35 (colored)

sync with head.

Revision 1.50.2.1 / (download) - annotate - [select for diffs], Sun May 30 05:17:34 2010 UTC (13 years, 9 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.50: +4 -6 lines
Diff to previous 1.50 (colored)

sync with head

Revision 1.49.2.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:43:36 2010 UTC (13 years, 10 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.49: +6 -8 lines
Diff to previous 1.49 (colored)

Sync with HEAD.

Revision 1.51 / (download) - annotate - [select for diffs], Mon Apr 5 07:20:26 2010 UTC (13 years, 10 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1
Changes since 1.50: +4 -6 lines
Diff to previous 1.50 (colored)

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.

Revision 1.34.2.4 / (download) - annotate - [select for diffs], Thu Mar 11 15:03:47 2010 UTC (13 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.34.2.3: +8 -15 lines
Diff to previous 1.34.2.3 (colored) to branchpoint 1.34 (colored)

sync with head

Revision 1.50 / (download) - annotate - [select for diffs], Wed Feb 24 22:38:00 2010 UTC (14 years ago) by dyoung
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9
Branch point for: rmind-uvmplock
Changes since 1.49: +4 -4 lines
Diff to previous 1.49 (colored)

A pointer typedef entails trading too much flexibility to declare const
and non-const types, and the kernel uses both const and non-const
PMF qualifiers and device suspensors, so change the pmf_qual_t and
device_suspensor_t typedefs from "pointers to const" to non-pointer,
non-const types.

Revision 1.49 / (download) - annotate - [select for diffs], Tue Jan 19 22:07:01 2010 UTC (14 years, 1 month ago) by pooka
Branch: MAIN
CVS Tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Changes since 1.48: +4 -11 lines
Diff to previous 1.48 (colored)

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.

Revision 1.48 / (download) - annotate - [select for diffs], Fri Jan 8 19:56:52 2010 UTC (14 years, 1 month ago) by dyoung
Branch: MAIN
Changes since 1.47: +4 -4 lines
Diff to previous 1.47 (colored)

Expand PMF_FN_* macros.

Revision 1.47 / (download) - annotate - [select for diffs], Thu Nov 26 15:17:09 2009 UTC (14 years, 3 months ago) by njoly
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.46: +4 -4 lines
Diff to previous 1.46 (colored)

Cleanup interrupt establish error messages. Do not mix
aprint_error/aprint_normal/printf calls for a single line.

Revision 1.34.2.3 / (download) - annotate - [select for diffs], Wed Sep 16 13:37:51 2009 UTC (14 years, 5 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.34.2.2: +5 -5 lines
Diff to previous 1.34.2.2 (colored) to branchpoint 1.34 (colored)

sync with head

Revision 1.46 / (download) - annotate - [select for diffs], Sat Sep 5 14:09:55 2009 UTC (14 years, 5 months ago) by tsutsui
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, jym-xensuspend-nbase
Changes since 1.45: +5 -5 lines
Diff to previous 1.45 (colored)

Invert logic around nested pmf(9) registrations for readability.

Revision 1.39.2.2 / (download) - annotate - [select for diffs], Thu Jul 23 23:31:58 2009 UTC (14 years, 7 months ago) by jym
Branch: jym-xensuspend
Changes since 1.39.2.1: +3 -3 lines
Diff to previous 1.39.2.1 (colored) next main 1.40 (colored)

Sync with HEAD.

Revision 1.34.2.2 / (download) - annotate - [select for diffs], Sat Jun 20 07:20:23 2009 UTC (14 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.34.2.1: +3 -3 lines
Diff to previous 1.34.2.1 (colored) to branchpoint 1.34 (colored)

sync with head

Revision 1.45 / (download) - annotate - [select for diffs], Sun Jun 14 06:24:14 2009 UTC (14 years, 8 months ago) by cegger
Branch: MAIN
CVS Tags: yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, jymxensuspend-base
Changes since 1.44: +3 -3 lines
Diff to previous 1.44 (colored)

use __arraycount

Revision 1.39.2.1 / (download) - annotate - [select for diffs], Wed May 13 17:20:26 2009 UTC (14 years, 9 months ago) by jym
Branch: jym-xensuspend
Changes since 1.39: +39 -17 lines
Diff to previous 1.39 (colored)

Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.34.2.1 / (download) - annotate - [select for diffs], Mon May 4 08:12:57 2009 UTC (14 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.34: +101 -71 lines
Diff to previous 1.34 (colored)

sync with head.

Revision 1.36.4.3 / (download) - annotate - [select for diffs], Tue Apr 28 07:35:57 2009 UTC (14 years, 10 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.36.4.2: +3 -3 lines
Diff to previous 1.36.4.2 (colored) to branchpoint 1.36 (colored) next main 1.37 (colored)

Sync with HEAD.

Revision 1.44 / (download) - annotate - [select for diffs], Wed Mar 18 15:14:30 2009 UTC (14 years, 11 months ago) by cegger
Branch: MAIN
CVS Tags: yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, jym-xensuspend-base
Changes since 1.43: +3 -3 lines
Diff to previous 1.43 (colored)

bcmp -> memcmp

Revision 1.36.4.2 / (download) - annotate - [select for diffs], Tue Mar 3 18:31:07 2009 UTC (15 years ago) by skrll
Branch: nick-hppapmap
Changes since 1.36.4.1: +38 -16 lines
Diff to previous 1.36.4.1 (colored) to branchpoint 1.36 (colored)

Sync with HEAD.

Revision 1.36.6.1 / (download) - annotate - [select for diffs], Mon Mar 2 20:46:03 2009 UTC (15 years ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b
Changes since 1.36: +21 -6 lines
Diff to previous 1.36 (colored) next main 1.37 (colored)

Pull up following revision(s) (requested by cegger in ticket #540):
	sys/dev/pci/if_nfe.c: revision 1.42
when nfe_attach() fails, free all resources including
interrupt map, interrupt handler and dma maps.
Also prevent call to bus_dmamap_destroy() when bus_dmamap_create() failed.
The nfe_free_* routines assume, the map pointers are NULL but they
are actually undefined. Make the assumption true by making them NULL
in the error path of bus_dmamap_create().
All together, this fixes crashes when nfe_attach() fails.
ok martin@

Revision 1.43 / (download) - annotate - [select for diffs], Sun Mar 1 13:44:54 2009 UTC (15 years ago) by cegger
Branch: MAIN
CVS Tags: nick-hppapmap-base2
Changes since 1.42: +10 -10 lines
Diff to previous 1.42 (colored)

bzero -> memset per request from martin@
bcopy -> memcpy

XXX Would changing bcmp to memcpy be a functional change regarding its return value?

Revision 1.42 / (download) - annotate - [select for diffs], Sun Mar 1 13:34:10 2009 UTC (15 years ago) by cegger
Branch: MAIN
Changes since 1.41: +21 -6 lines
Diff to previous 1.41 (colored)

when nfe_attach() fails, free all resources including
interrupt map, interrupt handler and dma maps.
Also prevent call to bus_dmamap_destroy() when bus_dmamap_create() failed.
The nfe_free_* routines assume, the map pointers are NULL but they
are actually undefined. Make the assumption true by making them NULL
in the error path of bus_dmamap_create().

All together, this fixes crashes when nfe_attach() fails.
ok martin@

Revision 1.41 / (download) - annotate - [select for diffs], Sun Mar 1 08:29:25 2009 UTC (15 years ago) by cegger
Branch: MAIN
Changes since 1.40: +6 -3 lines
Diff to previous 1.40 (colored)

MCP79 supports JUMBO frames.
Information from Linux driver.
Patch presented on current-users@ http://mail-index.netbsd.org/current-users/2009/02/11/msg008037.html

Revision 1.40 / (download) - annotate - [select for diffs], Thu Feb 12 10:33:23 2009 UTC (15 years ago) by cegger
Branch: MAIN
Changes since 1.39: +7 -3 lines
Diff to previous 1.39 (colored)

flow-control support for MCP65 chip.
XXX other chips may also have flow-control, but only on MCP65 tested.
ok cube@

Revision 1.36.4.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:18:26 2009 UTC (15 years, 1 month ago) by skrll
Branch: nick-hppapmap
Changes since 1.36: +34 -44 lines
Diff to previous 1.36 (colored)

Sync with HEAD.

Revision 1.39 / (download) - annotate - [select for diffs], Sun Jan 18 11:21:06 2009 UTC (15 years, 1 month ago) by cegger
Branch: MAIN
Branch point for: jym-xensuspend
Changes since 1.38: +4 -6 lines
Diff to previous 1.38 (colored)

Bracket IRQ masking around nfe_intr() in nfe_init() rather inside nfe_intr().
Proposed by dyoung@ in PR 40345. Should fix PR 40345.

Revision 1.28.6.4 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:00 2009 UTC (15 years, 1 month ago) by mjf
Branch: mjf-devfs2
Changes since 1.28.6.3: +30 -38 lines
Diff to previous 1.28.6.3 (colored) to branchpoint 1.28 (colored) next main 1.29 (colored)

Sync with HEAD.

Revision 1.38 / (download) - annotate - [select for diffs], Tue Dec 16 22:35:33 2008 UTC (15 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: mjf-devfs2-base
Changes since 1.37: +6 -6 lines
Diff to previous 1.37 (colored)

replace bitmask_snprintf(9) with snprintb(3)

Revision 1.36.2.1 / (download) - annotate - [select for diffs], Sat Dec 13 01:14:35 2008 UTC (15 years, 2 months ago) by haad
Branch: haad-dm
Changes since 1.36: +28 -36 lines
Diff to previous 1.36 (colored) next main 1.37 (colored)

Update haad-dm branch to haad-dm-base2.

Revision 1.37 / (download) - annotate - [select for diffs], Fri Nov 7 00:20:07 2008 UTC (15 years, 3 months ago) by dyoung
Branch: MAIN
CVS Tags: haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Changes since 1.36: +28 -36 lines
Diff to previous 1.36 (colored)

*** Summary ***

When a link-layer address changes (e.g., ifconfig ex0 link
02:de:ad:be:ef:02 active), send a gratuitous ARP and/or a Neighbor
Advertisement to update the network-/link-layer address bindings
on our LAN peers.

Refuse a change of ethernet address to the address 00:00:00:00:00:00
or to any multicast/broadcast address.  (Thanks matt@.)

Reorder ifnet ioctl operations so that driver ioctls may inherit
the functions of their "class"---ether_ioctl(), fddi_ioctl(), et
cetera---and the class ioctls may inherit from the generic ioctl,
ifioctl_common(), but both driver- and class-ioctls may override
the generic behavior.  Make network drivers share more code.

Distinguish a "factory" link-layer address from others for the
purposes of both protecting that address from deletion and computing
EUI64.

Return consistent, appropriate error codes from network drivers.

Improve readability.  KNF.

*** Details ***

In if_attach(), always initialize the interface ioctl routine,
ifnet->if_ioctl, if the driver has not already initialized it.
Delete if_ioctl == NULL tests everywhere else, because it cannot
happen.

In the ioctl routines of network interfaces, inherit common ioctl
behaviors by calling either ifioctl_common() or whichever ioctl
routine is appropriate for the class of interface---e.g., ether_ioctl()
for ethernets.

Stop (ab)using SIOCSIFADDR and start to use SIOCINITIFADDR.  In
the user->kernel interface, SIOCSIFADDR's argument was an ifreq,
but on the protocol->ifnet interface, SIOCSIFADDR's argument was
an ifaddr.  That was confusing, and it would work against me as I
make it possible for a network interface to overload most ioctls.
On the protocol->ifnet interface, replace SIOCSIFADDR with
SIOCINITIFADDR.  In ifioctl(), return EPERM if userland tries to
invoke SIOCINITIFADDR.

In ifioctl(), give the interface the first shot at handling most
interface ioctls, and give the protocol the second shot, instead
of the other way around. Finally, let compatibility code (COMPAT_OSOCK)
take a shot.

Pull device initialization out of switch statements under
SIOCINITIFADDR.  For example, pull ..._init() out of any switch
statement that looks like this:

        switch (...->sa_family) {
        case ...:
                ..._init();
                ...
                break;
        ...
        default:
                ..._init();
                ...
                break;
        }

Rewrite many if-else clauses that handle all permutations of IFF_UP
and IFF_RUNNING to use a switch statement,

        switch (x & (IFF_UP|IFF_RUNNING)) {
        case 0:
                ...
                break;
        case IFF_RUNNING:
                ...
                break;
        case IFF_UP:
                ...
                break;
        case IFF_UP|IFF_RUNNING:
                ...
                break;
        }

unifdef lots of code containing #ifdef FreeBSD, #ifdef NetBSD, and
#ifdef SIOCSIFMTU, especially in fwip(4) and in ndis(4).

In ipw(4), remove an if_set_sadl() call that is out of place.

In nfe(4), reuse the jumbo MTU logic in ether_ioctl().

Let ethernets register a callback for setting h/w state such as
promiscuous mode and the multicast filter in accord with a change
in the if_flags: ether_set_ifflags_cb() registers a callback that
returns ENETRESET if the caller should reset the ethernet by calling
if_init(), 0 on success, != 0 on failure.  Pull common code from
ex(4), gem(4), nfe(4), sip(4), tlp(4), vge(4) into ether_ioctl(),
and register if_flags callbacks for those drivers.

Return ENOTTY instead of EINVAL for inappropriate ioctls.  In
zyd(4), use ENXIO instead of ENOTTY to indicate that the device is
not any longer attached.

Add to if_set_sadl() a boolean 'factory' argument that indicates
whether a link-layer address was assigned by the factory or some
other source.  In a comment, recommend using the factory address
for generating an EUI64, and update in6_get_hw_ifid() to prefer a
factory address to any other link-layer address.

Add a routing message, RTM_LLINFO_UPD, that tells protocols to
update the binding of network-layer addresses to link-layer addresses.
Implement this message in IPv4 and IPv6 by sending a gratuitous
ARP or a neighbor advertisement, respectively.  Generate RTM_LLINFO_UPD
messages on a change of an interface's link-layer address.

In ether_ioctl(), do not let SIOCALIFADDR set a link-layer address
that is broadcast/multicast or equal to 00:00:00:00:00:00.

Make ether_ioctl() call ifioctl_common() to handle ioctls that it
does not understand.

In gif(4), initialize if_softc and use it, instead of assuming that
the gif_softc and ifp overlap.

Let ifioctl_common() handle SIOCGIFADDR.

Sprinkle rtcache_invariants(), which checks on DIAGNOSTIC kernels
that certain invariants on a struct route are satisfied.

In agr(4), rewrite agr_ioctl_filter() to be a bit more explicit
about the ioctls that we do not allow on an agr(4) member interface.

bzero -> memset.  Delete unnecessary casts to void *.  Use
sockaddr_in_init() and sockaddr_in6_init().  Compare pointers with
NULL instead of "testing truth".  Replace some instances of (type
*)0 with NULL.  Change some K&R prototypes to ANSI C, and join
lines.

Revision 1.28.6.3 / (download) - annotate - [select for diffs], Sun Jun 29 09:33:09 2008 UTC (15 years, 8 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.28.6.2: +1 -1 lines
Diff to previous 1.28.6.2 (colored) to branchpoint 1.28 (colored)

Sync with HEAD.

Revision 1.34.4.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:31:11 2008 UTC (15 years, 8 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.34: +32 -14 lines
Diff to previous 1.34 (colored) next main 1.35 (colored)

Sync w/ -current. 34 merge conflicts to follow.

Revision 1.35.2.1 / (download) - annotate - [select for diffs], Wed Jun 18 16:33:19 2008 UTC (15 years, 8 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.35: +3 -3 lines
Diff to previous 1.35 (colored) next main 1.36 (colored)

Sync with head.

Revision 1.36 / (download) - annotate - [select for diffs], Tue Jun 17 12:59:32 2008 UTC (15 years, 8 months ago) by cube
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base, netbsd-5-base, netbsd-5-0-RC2, netbsd-5-0-RC1, matt-mips64-base2, haad-dm-base1
Branch point for: nick-hppapmap, netbsd-5, haad-dm
Changes since 1.35: +3 -3 lines
Diff to previous 1.35 (colored)

Use MUTEX_DEFAULT to initialise the mutex, per martin@'s input.

Revision 1.33.2.2 / (download) - annotate - [select for diffs], Wed Jun 4 02:05:14 2008 UTC (15 years, 8 months ago) by yamt
Branch: yamt-pf42
Changes since 1.33.2.1: +31 -13 lines
Diff to previous 1.33.2.1 (colored) to branchpoint 1.33 (colored) next main 1.34 (colored)

sync with head

Revision 1.7.2.1.2.2 / (download) - annotate - [select for diffs], Tue Jun 3 20:47:24 2008 UTC (15 years, 9 months ago) by skrll
Branch: wrstuden-fixsa
Changes since 1.7.2.1.2.1: +58 -14 lines
Diff to previous 1.7.2.1.2.1 (colored) to branchpoint 1.7.2.1 (colored) next main 1.7.2.2 (colored)

Sync with netbsd-4.

Revision 1.28.6.2 / (download) - annotate - [select for diffs], Mon Jun 2 13:23:39 2008 UTC (15 years, 9 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.28.6.1: +114 -62 lines
Diff to previous 1.28.6.1 (colored) to branchpoint 1.28 (colored)

Sync with HEAD.

Revision 1.35 / (download) - annotate - [select for diffs], Sun May 25 22:57:35 2008 UTC (15 years, 9 months ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3
Branch point for: simonb-wapbl
Changes since 1.34: +31 -13 lines
Diff to previous 1.34 (colored)

Based on changes to nfe_attach in r1.27, wake newer chips from powerdown
mode on resume as well as at attach time.

Revision 1.33.2.1 / (download) - annotate - [select for diffs], Sun May 18 12:34:19 2008 UTC (15 years, 9 months ago) by yamt
Branch: yamt-pf42
Changes since 1.33: +14 -4 lines
Diff to previous 1.33 (colored)

sync with head.

Revision 1.34 / (download) - annotate - [select for diffs], Sun Apr 20 08:57:37 2008 UTC (15 years, 10 months ago) by cube
Branch: MAIN
CVS Tags: yamt-pf42-base2, yamt-nfs-mp-base2, yamt-nfs-mp-base, hpcarm-cleanup-nbase
Branch point for: yamt-nfs-mp, wrstuden-revivesa
Changes since 1.33: +14 -4 lines
Diff to previous 1.33 (colored)

Restore jumbo frame support and protect access to the DMA space for
received frames with a mutex.

Tested by Paul Goyette, Martin Husemann and myself.

Revision 1.33 / (download) - annotate - [select for diffs], Thu Apr 17 20:16:46 2008 UTC (15 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base
Branch point for: yamt-pf42
Changes since 1.32: +3 -4 lines
Diff to previous 1.32 (colored)

join line for symmetry.

Revision 1.32 / (download) - annotate - [select for diffs], Thu Apr 17 19:50:38 2008 UTC (15 years, 10 months ago) by xtraeme
Branch: MAIN
Changes since 1.31: +3 -5 lines
Diff to previous 1.31 (colored)

Make this build again... HI XTOS.

Revision 1.31 / (download) - annotate - [select for diffs], Thu Apr 17 19:12:26 2008 UTC (15 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.30: +80 -53 lines
Diff to previous 1.30 (colored)

sync with openbsd; fixes observed corruption issues.

Revision 1.28.6.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:42:50 2008 UTC (15 years, 11 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.28: +87 -90 lines
Diff to previous 1.28 (colored)

Sync with HEAD.

Revision 1.30 / (download) - annotate - [select for diffs], Wed Mar 26 14:46:21 2008 UTC (15 years, 11 months ago) by cube
Branch: MAIN
CVS Tags: ad-socklock-base1
Changes since 1.29: +86 -89 lines
Diff to previous 1.29 (colored)

Split device_t and softc, and related cosmetic changes.

Revision 1.28.2.1 / (download) - annotate - [select for diffs], Mon Mar 24 07:15:48 2008 UTC (15 years, 11 months ago) by keiichi
Branch: keiichi-mipv6
Changes since 1.28: +3 -3 lines
Diff to previous 1.28 (colored) next main 1.29 (colored)

sync with head.

Revision 1.16.8.4 / (download) - annotate - [select for diffs], Sun Mar 23 02:04:47 2008 UTC (15 years, 11 months ago) by matt
Branch: matt-armv6
Changes since 1.16.8.3: +36 -58 lines
Diff to previous 1.16.8.3 (colored) to branchpoint 1.16 (colored) next main 1.17 (colored)

sync with HEAD

Revision 1.3.12.11 / (download) - annotate - [select for diffs], Wed Feb 27 08:36:35 2008 UTC (16 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.3.12.10: +3 -3 lines
Diff to previous 1.3.12.10 (colored) to branchpoint 1.3 (colored) next main 1.4 (colored)

sync with head.

Revision 1.29 / (download) - annotate - [select for diffs], Sun Feb 24 05:34:01 2008 UTC (16 years ago) by isaki
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, hpcarm-cleanup-base
Changes since 1.28: +3 -3 lines
Diff to previous 1.28 (colored)

Minor style fix.

Revision 1.7.2.3 / (download) - annotate - [select for diffs], Sat Feb 23 14:21:50 2008 UTC (16 years ago) by bouyer
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base
Changes since 1.7.2.2: +58 -14 lines
Diff to previous 1.7.2.2 (colored) to branchpoint 1.7 (colored) next main 1.8 (colored)

Pull up following revision(s) (requested by tsutsui in ticket #1061):
	sys/dev/pci/if_nfe.c: revision 1.22, 1.23, 1.25, 1.27
	sys/dev/pci/pcidevs: revision 1.914
	sys/dev/pci/if_nfereg.h: revision 1.5, 1.6
	share/man/man4/nfe.4: revision 1.4
	sys/dev/pci/if_nfevar.h: revision 1.5, 1.6
Add NVIDIA MCP7[37] devices, from OpenBSD.
Attach to NVIDIA MCP67/73 Ethernet controllers.
Add the MCP{67,73} products on nfe_attach().
Sync with reality.
Handle a quirk of newer MCP6x chips on reading MAC address.
Fix from Richy Kim in PR kern/36576.
Wakeup some newer chips from powerdown mode. From FreeBSD/Linux driver
via OpenBSD.
Tested by wiz@ in PR kern/37868.

Revision 1.20.2.3 / (download) - annotate - [select for diffs], Mon Feb 18 21:05:57 2008 UTC (16 years ago) by mjf
Branch: mjf-devfs
Changes since 1.20.2.2: +35 -57 lines
Diff to previous 1.20.2.2 (colored) to branchpoint 1.20 (colored) next main 1.21 (colored)

Sync with HEAD.

Revision 1.3.12.10 / (download) - annotate - [select for diffs], Mon Feb 11 14:59:38 2008 UTC (16 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.3.12.9: +13 -9 lines
Diff to previous 1.3.12.9 (colored) to branchpoint 1.3 (colored)

sync with head.

Revision 1.28 / (download) - annotate - [select for diffs], Thu Feb 7 01:21:56 2008 UTC (16 years ago) by dyoung
Branch: MAIN
CVS Tags: nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base
Branch point for: mjf-devfs2, keiichi-mipv6
Changes since 1.27: +13 -9 lines
Diff to previous 1.27 (colored)

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.

Revision 1.3.12.9 / (download) - annotate - [select for diffs], Mon Feb 4 09:23:30 2008 UTC (16 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.3.12.8: +16 -4 lines
Diff to previous 1.3.12.8 (colored) to branchpoint 1.3 (colored)

sync with head.

Revision 1.27 / (download) - annotate - [select for diffs], Sat Jan 26 14:13:06 2008 UTC (16 years, 1 month ago) by tsutsui
Branch: MAIN
Changes since 1.26: +16 -4 lines
Diff to previous 1.26 (colored)

Wakeup some newer chips from powerdown mode. From FreeBSD/Linux driver
via OpenBSD.

Tested by wiz@ in PR kern/37868.

Revision 1.3.12.8 / (download) - annotate - [select for diffs], Mon Jan 21 09:43:57 2008 UTC (16 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.3.12.7: +41 -77 lines
Diff to previous 1.3.12.7 (colored) to branchpoint 1.3 (colored)

sync with head

Revision 1.24.2.2 / (download) - annotate - [select for diffs], Sun Jan 20 17:51:37 2008 UTC (16 years, 1 month ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.24.2.1: +9 -47 lines
Diff to previous 1.24.2.1 (colored) to branchpoint 1.24 (colored) next main 1.25 (colored)

Sync with HEAD

Revision 1.26 / (download) - annotate - [select for diffs], Sat Jan 19 22:10:18 2008 UTC (16 years, 1 month ago) by dyoung
Branch: MAIN
CVS Tags: bouyer-xeni386-nbase, bouyer-xeni386-base
Changes since 1.25: +11 -49 lines
Diff to previous 1.25 (colored)

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.

Revision 1.16.8.3 / (download) - annotate - [select for diffs], Wed Jan 9 01:53:48 2008 UTC (16 years, 1 month ago) by matt
Branch: matt-armv6
Changes since 1.16.8.2: +49 -31 lines
Diff to previous 1.16.8.2 (colored) to branchpoint 1.16 (colored)

sync with HEAD

Revision 1.24.2.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:54:44 2008 UTC (16 years, 2 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.24: +27 -11 lines
Diff to previous 1.24 (colored)

Sync with HEAD

Revision 1.20.2.2 / (download) - annotate - [select for diffs], Thu Dec 27 00:45:17 2007 UTC (16 years, 2 months ago) by mjf
Branch: mjf-devfs
Changes since 1.20.2.1: +32 -30 lines
Diff to previous 1.20.2.1 (colored) to branchpoint 1.20 (colored)

Sync with HEAD.

Revision 1.23.2.1 / (download) - annotate - [select for diffs], Wed Dec 26 19:46:54 2007 UTC (16 years, 2 months ago) by ad
Branch: vmlocking2
Changes since 1.23: +32 -30 lines
Diff to previous 1.23 (colored) next main 1.24 (colored)

Sync with head.

Revision 1.25 / (download) - annotate - [select for diffs], Mon Dec 17 12:41:06 2007 UTC (16 years, 2 months ago) by tsutsui
Branch: MAIN
CVS Tags: vmlocking2-base3, matt-armv6-base
Changes since 1.24: +27 -11 lines
Diff to previous 1.24 (colored)

Handle a quirk of newer MCP6x chips on reading MAC address.
Fix from Richy Kim in PR kern/36576.

Revision 1.23.4.1 / (download) - annotate - [select for diffs], Tue Dec 11 15:32:10 2007 UTC (16 years, 2 months ago) by yamt
Branch: yamt-kmem
Changes since 1.23: +7 -21 lines
Diff to previous 1.23 (colored) next main 1.24 (colored)

sync with head.

Revision 1.24 / (download) - annotate - [select for diffs], Sun Dec 9 20:28:09 2007 UTC (16 years, 2 months ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, cube-autoconf-base, cube-autoconf
Branch point for: bouyer-xeni386
Changes since 1.23: +7 -21 lines
Diff to previous 1.23 (colored)

Merge jmcneill-pm branch.

Revision 1.16.6.8 / (download) - annotate - [select for diffs], Sat Dec 8 16:21:28 2007 UTC (16 years, 2 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.16.6.7: +4 -4 lines
Diff to previous 1.16.6.7 (colored) to branchpoint 1.16 (colored) next main 1.17 (colored)

Rename pnp(9) -> pmf(9), as requested by many.

Revision 1.20.2.1 / (download) - annotate - [select for diffs], Mon Nov 19 00:48:10 2007 UTC (16 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.20: +20 -4 lines
Diff to previous 1.20 (colored)

Sync with HEAD.

Revision 1.19.2.3 / (download) - annotate - [select for diffs], Sun Nov 18 19:35:34 2007 UTC (16 years, 3 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.19.2.2: +17 -1 lines
Diff to previous 1.19.2.2 (colored) to branchpoint 1.19 (colored) next main 1.20 (colored)

Sync with HEAD

Revision 1.3.12.7 / (download) - annotate - [select for diffs], Thu Nov 15 11:44:21 2007 UTC (16 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.3.12.6: +20 -4 lines
Diff to previous 1.3.12.6 (colored) to branchpoint 1.3 (colored)

sync with head.

Revision 1.16.6.7 / (download) - annotate - [select for diffs], Wed Nov 14 19:04:29 2007 UTC (16 years, 3 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.16.6.6: +19 -3 lines
Diff to previous 1.16.6.6 (colored) to branchpoint 1.16 (colored)

Sync with HEAD.

Revision 1.23 / (download) - annotate - [select for diffs], Wed Nov 14 14:59:50 2007 UTC (16 years, 3 months ago) by xtraeme
Branch: MAIN
CVS Tags: yamt-kmem-base, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, bouyer-xenamd64-base2, bouyer-xenamd64-base
Branch point for: yamt-kmem, vmlocking2
Changes since 1.22: +10 -2 lines
Diff to previous 1.22 (colored)

Add the MCP{67,73} products on nfe_attach().

Revision 1.22 / (download) - annotate - [select for diffs], Wed Nov 14 12:40:54 2007 UTC (16 years, 3 months ago) by xtraeme
Branch: MAIN
Changes since 1.21: +11 -3 lines
Diff to previous 1.21 (colored)

Attach to NVIDIA MCP67/73 Ethernet controllers.

Revision 1.19.2.2 / (download) - annotate - [select for diffs], Tue Nov 13 16:01:19 2007 UTC (16 years, 3 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.19.2.1: +1 -1 lines
Diff to previous 1.19.2.1 (colored) to branchpoint 1.19 (colored)

Sync with HEAD

Revision 1.16.6.6 / (download) - annotate - [select for diffs], Sun Nov 11 16:47:41 2007 UTC (16 years, 3 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.16.6.5: +3 -3 lines
Diff to previous 1.16.6.5 (colored) to branchpoint 1.16 (colored)

Sync with HEAD.

Revision 1.16.8.2 / (download) - annotate - [select for diffs], Thu Nov 8 10:59:54 2007 UTC (16 years, 3 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.16.8.1: +3 -3 lines
Diff to previous 1.16.8.1 (colored) to branchpoint 1.16 (colored)

sync with -HEAD

Revision 1.21 / (download) - annotate - [select for diffs], Wed Nov 7 00:23:19 2007 UTC (16 years, 3 months ago) by ad
Branch: MAIN
Changes since 1.20: +3 -3 lines
Diff to previous 1.20 (colored)

Merge from vmlocking:

- pool_cache changes.
- Debugger/procfs locking fixes.
- Other minor changes.

Revision 1.16.8.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:29:02 2007 UTC (16 years, 3 months ago) by matt
Branch: matt-armv6
Changes since 1.16: +45 -25 lines
Diff to previous 1.16 (colored)

sync with HEAD

Revision 1.16.6.5 / (download) - annotate - [select for diffs], Tue Nov 6 14:27:25 2007 UTC (16 years, 3 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.16.6.4: +5 -7 lines
Diff to previous 1.16.6.4 (colored) to branchpoint 1.16 (colored)

Refactor PNP API:
- Make suspend/resume directly a device functionality. It consists of
  three layers (class logic, device logic, bus logic), all of them being
  optional. This replaces D0/D3 transitions.
- device_is_active returns true if the device was not disabled and was
  not suspended (even partially), device_is_enabled returns true if the
  device was enabled.
- Change pnp_global_transition into pnp_system_suspend and
  pnp_system_resume. Before running any suspend/resume handlers, check
  that all currently attached devices support power management and bail
  out otherwise. The latter is not done for the shutdown/panic case.
- Make the former bus-specific generic network handlers a class handler.
- Make PNP message like volume up/down/toogle PNP events. Each device
  can register what events they are interested in and whether the handler
  should be global or not.
- Introduce device_active API for devices to mark themselve in use from
  either the system or the device. Use this to implement the idle handling
  for audio and input devices. This is intended to replace most ad-hoc
  watchdogs as well.
- Fix somes situations in which audio resume would lose mixer settings.
- Make USB host controllers better deal with suspend in the light of
  shared interrupts.
- Flush filesystem cache on suspend.
- Flush disk caches on suspend. Put ATA disks into standby on suspend as
  well.
- Adopt drivers to use the new PNP API.
- Fix a critical bug in the generic cardbus layer that made D0->D3
  break.
- Fix ral(4) to set if_stop.
- Convert cbb(4) to the new PNP API.
- Apply the PCI Express SCI fix on resume again.

Revision 1.7.2.1.2.1 / (download) - annotate - [select for diffs], Mon Oct 29 00:45:15 2007 UTC (16 years, 4 months ago) by wrstuden
Branch: wrstuden-fixsa
Changes since 1.7.2.1: +136 -83 lines
Diff to previous 1.7.2.1 (colored)

Catch up with 4.0 RC3

Revision 1.3.12.6 / (download) - annotate - [select for diffs], Sat Oct 27 11:32:57 2007 UTC (16 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.3.12.5: +44 -20 lines
Diff to previous 1.3.12.5 (colored) to branchpoint 1.3 (colored)

sync with head.

Revision 1.16.6.4 / (download) - annotate - [select for diffs], Fri Oct 26 15:46:14 2007 UTC (16 years, 4 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.16.6.3: +3 -3 lines
Diff to previous 1.16.6.3 (colored) to branchpoint 1.16 (colored)

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.

Revision 1.19.2.1 / (download) - annotate - [select for diffs], Thu Oct 25 22:39:02 2007 UTC (16 years, 4 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored)

Sync with HEAD.

Revision 1.15.2.4 / (download) - annotate - [select for diffs], Tue Oct 23 20:09:00 2007 UTC (16 years, 4 months ago) by ad
Branch: vmlocking
Changes since 1.15.2.3: +3 -3 lines
Diff to previous 1.15.2.3 (colored) to branchpoint 1.15 (colored) next main 1.16 (colored)

Sync with head.

Revision 1.20 / (download) - annotate - [select for diffs], Fri Oct 19 12:00:47 2007 UTC (16 years, 4 months ago) by ad
Branch: MAIN
CVS Tags: jmcneill-base
Branch point for: mjf-devfs
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored)

machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h

Revision 1.15.2.3 / (download) - annotate - [select for diffs], Tue Oct 9 13:41:45 2007 UTC (16 years, 4 months ago) by ad
Branch: vmlocking
Changes since 1.15.2.2: +44 -24 lines
Diff to previous 1.15.2.2 (colored) to branchpoint 1.15 (colored)

Sync with head.

Revision 1.7.2.2 / (download) - annotate - [select for diffs], Sun Oct 7 15:48:27 2007 UTC (16 years, 4 months ago) by pavel
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-base-1, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-1-RELEASE, netbsd-4-0, matt-nb4-arm-base, matt-nb4-arm
Changes since 1.7.2.1: +136 -83 lines
Diff to previous 1.7.2.1 (colored) to branchpoint 1.7 (colored)

Pull up following revisions (requested by cube in ticket #920):
	sys/dev/pci/if_nfe.c: revision 1.14, 1.18-1.19
	sys/dev/pci/if_nfereg.h: revision 1.4
	sys/dev/pci/if_nfevar.h: revision 1.3
Apply patches which may fix RX stall problem on nfe(4):
- make DMA descriptors volatile to avoid possible unintended reordering
  which might cause some race conditions
- process interrupts until all NFE_IRQ_WANTED bits are handled
and also put misc fixes:
- return 1 and call nfe_start() in nfe_intr() only if any own interrupts
  are actually handled
- use bus_dmamap_load_mbuf(9) for RX mbufs rather than bus_dmamap_load(9)
  with mtod(9) and MCLBYTES
- check sc->txq.queued to see if TX descriptors are queued or handled
  in nfe_start() and nfe_txeof()
- use proper BUS_DMASYNC_{PRE,POST} ops
- prepare and use NFE_[RT]X_NEXTDESC() macro
- rename NFE_TX_TCP_CSUM to NFE_TX_TCP_UDP_CSUM since it also enables
  hardware udp4csum-tx for UDP4 packets
- some minor optimization
- misc KNF
Tested and confirmed by matthew green by
"to send >25MB/sec to nfe0 for over one hour,"
and also tested by me (with light TRX load on 100baseTX though)
for a month.


From OpenBSD, rev 1.72:
In nfe_start() do a fast return if IFF_OACTIVE is set, in
this case we need a Tx interrupt to clean up the DMA ring
before if_start can be properly called.


- If the chip doesn't support jumbo frames, don't use bus_dmamap_load_mbuf
  which expects a properly filled mbuf chain, but bus_dmamap_load for the
  mbuf storage space instead.
- If the chip supports jumbo frames
    + keep track of which RX descriptor uses which jumbo mbuf buffer, so
      that we can rewrite the physaddr field of the descriptor later, as it
      might be partially overwritten by the hw
    + when we're out of jumbo mbufs, and if the packet is small enough,
      copy it into a cluster mbuf
Those changes make my nfe(4) stable in both cases (defining NFE_NO_JUMBO
for the first one).

Revision 1.17.2.1 / (download) - annotate - [select for diffs], Sat Oct 6 15:31:24 2007 UTC (16 years, 4 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.17: +43 -19 lines
Diff to previous 1.17 (colored) next main 1.18 (colored)

sync with head.

Revision 1.16.6.3 / (download) - annotate - [select for diffs], Fri Oct 5 00:40:12 2007 UTC (16 years, 4 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.16.6.2: +8 -20 lines
Diff to previous 1.16.6.2 (colored) to branchpoint 1.16 (colored)

Convert nfe(4) to PNP power management.

Revision 1.16.6.2 / (download) - annotate - [select for diffs], Tue Oct 2 18:28:32 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.16.6.1: +43 -19 lines
Diff to previous 1.16.6.1 (colored) to branchpoint 1.16 (colored)

Sync with HEAD.

Revision 1.19 / (download) - annotate - [select for diffs], Mon Sep 24 13:17:53 2007 UTC (16 years, 5 months ago) by cube
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, vmlocking-base
Branch point for: bouyer-xenamd64
Changes since 1.18: +40 -19 lines
Diff to previous 1.18 (colored)

- If the chip doesn't support jumbo frames, don't use bus_dmamap_load_mbuf
  which expects a properly filled mbuf chain, but bus_dmamap_load for the
  mbuf storage space instead.

- If the chip supports jumbo frames
    + keep track of which RX descriptor uses which jumbo mbuf buffer, so
      that we can rewrite the physaddr field of the descriptor later, as it
      might be partially overwritten by the hw
    + when we're out of jumbo mbufs, and if the packet is small enough,
      copy it into a cluster mbuf

Those changes make my nfe(4) stable in both cases (defining NFE_NO_JUMBO
for the first one).

Revision 1.18 / (download) - annotate - [select for diffs], Mon Sep 24 13:11:08 2007 UTC (16 years, 5 months ago) by cube
Branch: MAIN
Changes since 1.17: +5 -2 lines
Diff to previous 1.17 (colored)

From OpenBSD, rev 1.72:

In nfe_start() do a fast return if IFF_OACTIVE is set, in
this case we need a Tx interrupt to clean up the DMA ring
before if_start can be properly called.

Revision 1.16.6.1 / (download) - annotate - [select for diffs], Mon Sep 3 16:48:17 2007 UTC (16 years, 6 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.16: +3 -7 lines
Diff to previous 1.16 (colored)

Sync with HEAD.

Revision 1.3.12.5 / (download) - annotate - [select for diffs], Mon Sep 3 14:36:59 2007 UTC (16 years, 6 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.3.12.4: +136 -111 lines
Diff to previous 1.3.12.4 (colored) to branchpoint 1.3 (colored)

sync with head.

Revision 1.16.2.1 / (download) - annotate - [select for diffs], Mon Sep 3 10:21:01 2007 UTC (16 years, 6 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.16: +3 -7 lines
Diff to previous 1.16 (colored) next main 1.17 (colored)

Sync with HEAD.

Revision 1.15.2.2 / (download) - annotate - [select for diffs], Sat Sep 1 12:56:46 2007 UTC (16 years, 6 months ago) by ad
Branch: vmlocking
Changes since 1.15.2.1: +3 -3 lines
Diff to previous 1.15.2.1 (colored) to branchpoint 1.15 (colored)

Update for pool_cache API changes.

Revision 1.17 / (download) - annotate - [select for diffs], Sat Sep 1 07:32:30 2007 UTC (16 years, 6 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-x86pmap-base, nick-csl-alignment-base5
Branch point for: yamt-x86pmap
Changes since 1.16: +3 -7 lines
Diff to previous 1.16 (colored)

Change a bazillion occurrences of code resembling this,

	error = (cmd == SIOCADDMULTI) ?
	    ether_addmulti(ifr, &sc->sc_ec) :
	    ether_delmulti(ifr, &sc->sc_ec);

	if (error == ENETRESET) {

to this,

	if ((error = ether_ioctl(ifp, cmd, data)) == ENETRESET) {

which does the same thing.

(A bazillion is a very large number.  This seems to make the i386
ALL kernel smaller by 3kB to 4kB.)

Use ifreq_getaddr() twice in es(4).

Whitespace nits.

Revision 1.15.4.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:07:39 2007 UTC (16 years, 7 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (colored) next main 1.16 (colored)

Sync with head.

Revision 1.16 / (download) - annotate - [select for diffs], Mon Jul 9 21:00:54 2007 UTC (16 years, 7 months ago) by ad
Branch: MAIN
CVS Tags: nick-csl-alignment-base, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: nick-csl-alignment, matt-armv6, jmcneill-pm
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (colored)

Merge some of the less invasive changes from the vmlocking branch:

- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements

Revision 1.15.2.1 / (download) - annotate - [select for diffs], Sun Jul 1 21:48:09 2007 UTC (16 years, 8 months ago) by ad
Branch: vmlocking
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (colored)

Adapt to callout API change.

Revision 1.13.2.1 / (download) - annotate - [select for diffs], Mon Mar 12 05:55:19 2007 UTC (16 years, 11 months ago) by rmind
Branch: yamt-idlelwp
Changes since 1.13: +134 -105 lines
Diff to previous 1.13 (colored) next main 1.14 (colored)

Sync with HEAD.

Revision 1.15 / (download) - annotate - [select for diffs], Sun Mar 4 06:02:22 2007 UTC (17 years ago) by christos
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup
Branch point for: vmlocking, mjf-ufs-trans
Changes since 1.14: +32 -32 lines
Diff to previous 1.14 (colored)

Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.14 / (download) - annotate - [select for diffs], Wed Feb 28 17:40:11 2007 UTC (17 years ago) by tsutsui
Branch: MAIN
Changes since 1.13: +104 -75 lines
Diff to previous 1.13 (colored)

Apply patches which may fix RX stall problem on nfe(4):
- make DMA descriptors volatile to avoid possible unintended reordering
  which might cause some race conditions
- process interrupts until all NFE_IRQ_WANTED bits are handled

and also put misc fixes:
- return 1 and call nfe_start() in nfe_intr() only if any own interrupts
  are actually handled
- use bus_dmamap_load_mbuf(9) for RX mbufs rather than bus_dmamap_load(9)
  with mtod(9) and MCLBYTES
- check sc->txq.queued to see if TX descriptors are queued or handled
  in nfe_start() and nfe_txeof()
- use proper BUS_DMASYNC_{PRE,POST} ops
- prepare and use NFE_[RT]X_NEXTDESC() macro
- rename NFE_TX_TCP_CSUM to NFE_TX_TCP_UDP_CSUM since it also enables
  hardware udp4csum-tx for UDP4 packets
- some minor optimization
- misc KNF

Tested and confirmed by matthew green by
"to send >25MB/sec to nfe0 for over one hour,"
and also tested by me (with light TRX load on 100baseTX though)
for a month.

Revision 1.3.12.4 / (download) - annotate - [select for diffs], Mon Feb 26 09:10:27 2007 UTC (17 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.3.12.3: +96 -46 lines
Diff to previous 1.3.12.3 (colored) to branchpoint 1.3 (colored)

sync with head.

Revision 1.7.2.1 / (download) - annotate - [select for diffs], Fri Jan 19 22:34:23 2007 UTC (17 years, 1 month ago) by bouyer
Branch: netbsd-4
CVS Tags: netbsd-4-0-RC2, netbsd-4-0-RC1
Branch point for: wrstuden-fixsa
Changes since 1.7: +97 -49 lines
Diff to previous 1.7 (colored)

Pull up following revision(s) (requested by tsutsui in ticket #370):
	sys/dev/pci/if_nfe.c: revision 1.8 - 1.13
	sys/dev/pci/if_nfereg.h: revision 1.2 - 1.3
several bug fixes and hardware checksum support for nfs(4).

Revision 1.4.2.2 / (download) - annotate - [select for diffs], Fri Jan 12 00:57:41 2007 UTC (17 years, 1 month ago) by ad
Branch: newlock2
Changes since 1.4.2.1: +97 -49 lines
Diff to previous 1.4.2.1 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored)

Sync with head.

Revision 1.13 / (download) - annotate - [select for diffs], Tue Jan 9 10:29:27 2007 UTC (17 years, 1 month ago) by tsutsui
Branch: MAIN
CVS Tags: post-newlock2-merge, newlock2-nbase, newlock2-base, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp
Changes since 1.12: +54 -46 lines
Diff to previous 1.12 (colored)

Enable hardware checksum support by hardware info taken from FreeBSD.
Tested on nForce3 250 and nForce4 by Chuck Silvers, Cesar Catrian Carreno,
and me.

Revision 1.12 / (download) - annotate - [select for diffs], Fri Jan 5 01:33:57 2007 UTC (17 years, 1 month ago) by jmcneill
Branch: MAIN
Changes since 1.11: +17 -2 lines
Diff to previous 1.11 (colored)

A few changes to make this work on the Microsoft Xbox. Should also help
with other users who have been experiencing watchdog timeouts:
 * Mask all interrupts while servicing a tx or rx interrupt.
 * On init, clear IRQ status registers (workaround for buggy netbooters).

Revision 1.11 / (download) - annotate - [select for diffs], Mon Jan 1 04:13:25 2007 UTC (17 years, 2 months ago) by tsutsui
Branch: MAIN
Changes since 1.10: +27 -7 lines
Diff to previous 1.10 (colored)

Pull a TX timeout fix from OpenBSD:
> Defer setting of the valid bit in the first TX descriptor after
> all descriptors have been setup.  Otherwise, hardware may start
> processing descriptors faster than us and crap out.
> Fixes "watchdog timeout" errors.
>
> Original idea from Matthew Dillon @DragonFly.

Revision 1.10 / (download) - annotate - [select for diffs], Mon Jan 1 03:43:04 2007 UTC (17 years, 2 months ago) by tsutsui
Branch: MAIN
Changes since 1.9: +14 -7 lines
Diff to previous 1.9 (colored)

Minor style fixes in nfe_attach:
- print PCI device name and revision
- print interrupt and Ethernet address like other devices

Before:
---
nfe0 at pci0 dev 5 function 0LKLN: Picked IRQ 20 with weight 1
: ioapic0 pin 20 (irq 9), address xx:xx:xx:xx:xx:xx

After:
---
nfe0 at pci0 dev 5 function 0: NVIDIA nForce3 ethernet #4 (rev. 0xa2)
LKLN: Picked IRQ 20 with weight 1
nfe0: interrupting at ioapic0 pin 20 (irq 9)
nfe0: Ethernet address xx:xx:xx:xx:xx:xx

(note "Picked IRQ" message is logged by aprint_verbose(9) in acpi(4))

Revision 1.3.12.3 / (download) - annotate - [select for diffs], Sat Dec 30 20:48:45 2006 UTC (17 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.3.12.2: +22 -7 lines
Diff to previous 1.3.12.2 (colored) to branchpoint 1.3 (colored)

sync with head.

Revision 1.9 / (download) - annotate - [select for diffs], Wed Dec 27 18:36:09 2006 UTC (17 years, 2 months ago) by alc
Branch: MAIN
Changes since 1.8: +3 -6 lines
Diff to previous 1.8 (colored)

remove the KASSERT() introduced in last commit and use VLAN_OUTPUT_TAG() macro.

tested by martin@
pointed out and ok by pavel@, also ok from christos@

Revision 1.8 / (download) - annotate - [select for diffs], Mon Dec 25 23:58:36 2006 UTC (17 years, 2 months ago) by alc
Branch: MAIN
Changes since 1.7: +3 -2 lines
Diff to previous 1.7 (colored)

CID-3667: check if 'mtag != NULL' before dereferencing it

Revision 1.4.6.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:17:44 2006 UTC (17 years, 2 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.4.6.1: +6 -6 lines
Diff to previous 1.4.6.1 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored)

sync with head.

Revision 1.4.2.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:34:30 2006 UTC (17 years, 3 months ago) by ad
Branch: newlock2
Changes since 1.4: +4 -3 lines
Diff to previous 1.4 (colored)

Sync with head.

Revision 1.7 / (download) - annotate - [select for diffs], Thu Nov 16 01:33:09 2006 UTC (17 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, netbsd-4-base
Branch point for: netbsd-4
Changes since 1.6: +6 -6 lines
Diff to previous 1.6 (colored)

__unused removal on arguments; approved by core.

Revision 1.4.6.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:06:17 2006 UTC (17 years, 4 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.4: +8 -7 lines
Diff to previous 1.4 (colored)

sync with head

Revision 1.6 / (download) - annotate - [select for diffs], Thu Oct 12 01:31:30 2006 UTC (17 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.5: +6 -6 lines
Diff to previous 1.5 (colored)

- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.5 / (download) - annotate - [select for diffs], Sun Sep 24 03:53:09 2006 UTC (17 years, 5 months ago) by jmcneill
Branch: MAIN
Changes since 1.4: +4 -3 lines
Diff to previous 1.4 (colored)

Add "name" parameter to powerhook_establish, to aid debugging. No objections
on tech-kern@

Revision 1.4.4.2 / (download) - annotate - [select for diffs], Sat Sep 9 02:52:17 2006 UTC (17 years, 5 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.4.4.1: +1800 -0 lines
Diff to previous 1.4.4.1 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored)

sync with head

Revision 1.3.14.1 / (download) - annotate - [select for diffs], Thu Sep 7 17:07:16 2006 UTC (17 years, 5 months ago) by riz
Branch: abandoned-netbsd-4
Changes since 1.3: +19 -3 lines
Diff to previous 1.3 (colored) next main 1.4 (colored)

Pull up following revision(s) (requested by xtraeme in ticket #112):
	sys/dev/pci/if_nfe.c: revision 1.4
	sys/dev/pci/pcidevs: revision 1.824
- Add nForce MCP61/65 LAN controllers... from obsd.
- Improve description in some nForce controllers as well.
Add support for MCP61/65 controllers... from obsd.

Revision 1.1.2.4 / (download) - annotate - [select for diffs], Sun Sep 3 15:24:22 2006 UTC (17 years, 6 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.1.2.3: +19 -3 lines
Diff to previous 1.1.2.3 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

sync with head.

Revision 1.4.4.1, Sun Sep 3 07:42:04 2006 UTC (17 years, 6 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.4: +0 -1800 lines
FILE REMOVED

file if_nfe.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:52:17 +0000

Revision 1.4 / (download) - annotate - [select for diffs], Sun Sep 3 07:42:04 2006 UTC (17 years, 6 months ago) by xtraeme
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl, rpaulo-netinet-merge-pcb, newlock2
Changes since 1.3: +19 -3 lines
Diff to previous 1.3 (colored)

Add support for MCP61/65 controllers... from obsd.

Revision 1.3.12.2 / (download) - annotate - [select for diffs], Wed Jun 21 15:05:04 2006 UTC (17 years, 8 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.3.12.1: +1784 -0 lines
Diff to previous 1.3.12.1 (colored) to branchpoint 1.3 (colored)

sync with head.

Revision 1.3.6.2 / (download) - annotate - [select for diffs], Sat Apr 22 11:39:14 2006 UTC (17 years, 10 months ago) by simonb
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.3.6.1: +1784 -0 lines
Diff to previous 1.3.6.1 (colored) to branchpoint 1.3 (colored) next main 1.4 (colored)

Sync with head.

Revision 1.3.4.4 / (download) - annotate - [select for diffs], Thu Apr 20 03:23:59 2006 UTC (17 years, 10 months ago) by snj
Branch: netbsd-3
CVS Tags: netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1
Changes since 1.3.4.3: +4 -4 lines
Diff to previous 1.3.4.3 (colored) to branchpoint 1.3 (colored) next main 1.4 (colored)

Pull up following revision(s) (requested by tron in ticket #1266):
	sys/dev/pci/if_nfe.c: revision 1.3
work around another mbuf leak, the hardware doesn't seem
to work quite the way that the driver expects.

Revision 1.3.4.3 / (download) - annotate - [select for diffs], Thu Apr 20 03:20:15 2006 UTC (17 years, 10 months ago) by snj
Branch: netbsd-3
Changes since 1.3.4.2: +5 -2 lines
Diff to previous 1.3.4.2 (colored) to branchpoint 1.3 (colored)

Pull up following revision(s) (requested by tron in ticket #1266):
	sys/dev/pci/if_nfe.c: revision 1.2
handle another difference between the BSDs:
free the original mbuf in the jumbo-free callback too.

Revision 1.3.4.2 / (download) - annotate - [select for diffs], Thu Apr 20 03:11:14 2006 UTC (17 years, 10 months ago) by snj
Branch: netbsd-3
Changes since 1.3.4.1: +1781 -0 lines
Diff to previous 1.3.4.1 (colored) to branchpoint 1.3 (colored)

Pull up following revision(s) (requested by tron in ticket #1266):
	share/man/man4/Makefile: revision 1.377
	sys/dev/pci/if_nfe.c: revision 1.1
	sys/dev/pci/if_nfereg.h: revision 1.1
	share/man/man4/nfe.4: revision 1.1
	sys/dev/pci/if_nfevar.h: revision 1.1
	distrib/sets/lists/man/mi: revision 1.863
add nfe driver and manpage from OpenBSD.

Revision 1.3.2.2 / (download) - annotate - [select for diffs], Wed Apr 19 03:25:35 2006 UTC (17 years, 10 months ago) by elad
Branch: elad-kernelauth
Changes since 1.3.2.1: +1784 -0 lines
Diff to previous 1.3.2.1 (colored) to branchpoint 1.3 (colored) next main 1.4 (colored)

sync with head.

Revision 1.1.2.3 / (download) - annotate - [select for diffs], Sat Apr 1 12:07:15 2006 UTC (17 years, 11 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.1.2.2: +7 -4 lines
Diff to previous 1.1.2.2 (colored) to branchpoint 1.1 (colored)

sync with head.

Revision 1.2.2.1 / (download) - annotate - [select for diffs], Tue Mar 28 09:42:13 2006 UTC (17 years, 11 months ago) by tron
Branch: peter-altq
Changes since 1.2: +4 -4 lines
Diff to previous 1.2 (colored) next main 1.3 (colored)

Merge 2006-03-28 NetBSD-current into the "peter-altq" branch.

Revision 1.3.12.1, Sun Mar 26 00:34:14 2006 UTC (17 years, 11 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.3: +0 -1784 lines
FILE REMOVED

file if_nfe.c was added on branch yamt-lazymbuf on 2006-06-21 15:05:04 +0000

Revision 1.3.6.1, Sun Mar 26 00:34:14 2006 UTC (17 years, 11 months ago) by simonb
Branch: simonb-timecounters
Changes since 1.3: +0 -1784 lines
FILE REMOVED

file if_nfe.c was added on branch simonb-timecounters on 2006-04-22 11:39:14 +0000

Revision 1.3.4.1, Sun Mar 26 00:34:14 2006 UTC (17 years, 11 months ago) by snj
Branch: netbsd-3
Changes since 1.3: +0 -1784 lines
FILE REMOVED

file if_nfe.c was added on branch netbsd-3 on 2006-04-20 03:11:14 +0000

Revision 1.3.2.1, Sun Mar 26 00:34:14 2006 UTC (17 years, 11 months ago) by elad
Branch: elad-kernelauth
Changes since 1.3: +0 -1784 lines
FILE REMOVED

file if_nfe.c was added on branch elad-kernelauth on 2006-04-19 03:25:35 +0000

Revision 1.3 / (download) - annotate - [select for diffs], Sun Mar 26 00:34:14 2006 UTC (17 years, 11 months ago) by chs
Branch: MAIN
CVS Tags: yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, simonb-timecounters-base, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base
Branch point for: yamt-lazymbuf, simonb-timecounters, netbsd-3, elad-kernelauth, abandoned-netbsd-4
Changes since 1.2: +4 -4 lines
Diff to previous 1.2 (colored)

work around another mbuf leak, the hardware doesn't seem
to work quite the way that the driver expects.

Revision 1.2 / (download) - annotate - [select for diffs], Thu Mar 16 17:26:13 2006 UTC (17 years, 11 months ago) by chs
Branch: MAIN
CVS Tags: peter-altq-base
Branch point for: peter-altq
Changes since 1.1: +5 -2 lines
Diff to previous 1.1 (colored)

handle another difference between the BSDs:
free the original mbuf in the jumbo-free callback too.

Revision 1.1.2.2 / (download) - annotate - [select for diffs], Mon Mar 13 09:07:26 2006 UTC (17 years, 11 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.1.2.1: +1781 -0 lines
Diff to previous 1.1.2.1 (colored) to branchpoint 1.1 (colored)

sync with head.

Revision 1.1.2.1, Sun Mar 12 22:40:42 2006 UTC (17 years, 11 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.1: +0 -1781 lines
FILE REMOVED

file if_nfe.c was added on branch yamt-pdpolicy on 2006-03-13 09:07:26 +0000

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 12 22:40:42 2006 UTC (17 years, 11 months ago) by chs
Branch: MAIN
CVS Tags: yamt-pdpolicy-base2
Branch point for: yamt-pdpolicy

add nfe driver and manpage from OpenBSD.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>