CVS log for src/sys/dev/pci/if_nfe.c
Up to [cvs.NetBSD.org] / src / sys / dev / pci
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.81: download - view: text, markup, annotated - select for diffs
Fri Jul 5 04:31:51 2024 UTC (9 months, 3 weeks ago) by rin
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +3 -4
lines
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@
Revision 1.80: download - view: text, markup, annotated - select for diffs
Sat Jan 22 19:07:25 2022 UTC (3 years, 3 months ago) by martin
Branches: MAIN
CVS tags: thorpej-ifq-base,
thorpej-ifq,
thorpej-altq-separation-base,
thorpej-altq-separation,
perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs,
netbsd-10-base,
netbsd-10-1-RELEASE,
netbsd-10-0-RELEASE,
netbsd-10-0-RC6,
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
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +3 -3
lines
Explicitly cast a __MASK(40) to bus_addr_t (for 32bit bus_addr_t archs)
Revision 1.79: download - view: text, markup, annotated - select for diffs
Sat Jan 22 15:10:32 2022 UTC (3 years, 3 months ago) by skrll
Branches: MAIN
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +3 -3
lines
Ensure bus_dmatag_subregion is called with an inclusive max_addr
everywhere.
Revision 1.65.2.3: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:04:26 2020 UTC (5 years ago) by martin
Branches: phil-wifi
Diff to: previous 1.65.2.2: preferred, colored; branchpoint 1.65: preferred, colored; next MAIN 1.66: preferred, colored
Changes since revision 1.65.2.2: +4 -2
lines
Mostly merge changes from HEAD upto 20200411
Revision 1.65.2.2: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:08:09 2020 UTC (5 years ago) by martin
Branches: phil-wifi
Diff to: previous 1.65.2.1: preferred, colored; branchpoint 1.65: preferred, colored
Changes since revision 1.65.2.1: +51 -45
lines
Merge changes from current as of 20200406
Revision 1.71.2.1: download - view: text, markup, annotated - select for diffs
Thu Mar 19 19:21:37 2020 UTC (5 years, 1 month ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-4-RELEASE,
netbsd-9-3-RELEASE,
netbsd-9-2-RELEASE,
netbsd-9-1-RELEASE
Diff to: previous 1.71: preferred, colored; next MAIN 1.72: preferred, colored
Changes since revision 1.71: +17 -12
lines
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 - view: text, markup, annotated - select for diffs
Fri Mar 13 05:10:39 2020 UTC (5 years, 1 month ago) by msaitoh
Branches: 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
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +14 -9
lines
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 - view: text, markup, annotated - select for diffs
Sun Mar 8 14:10:24 2020 UTC (5 years, 1 month ago) by msaitoh
Branches: MAIN
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +5 -5
lines
Use unsigned to avoid undefined behavior. Found by kUBSan.
Revision 1.76: download - view: text, markup, annotated - select for diffs
Sun Mar 1 16:31:01 2020 UTC (5 years, 1 month ago) by thorpej
Branches: MAIN
CVS tags: is-mlppp-base,
is-mlppp
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +3 -3
lines
Add explicit casts in bus_dmatag_subregion() calls to avoid overflow /
truncation warnings on 32-bit platforms.
Revision 1.75: download - view: text, markup, annotated - select for diffs
Sun Mar 1 15:43:58 2020 UTC (5 years, 1 month ago) by thorpej
Branches: MAIN
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +24 -24
lines
- Range-limit our DMA tag to 40-bit.
- Eliminate __LP64__ ifdefs.
Revision 1.72.2.1: download - view: text, markup, annotated - select for diffs
Sat Feb 29 20:19:10 2020 UTC (5 years, 1 month ago) by ad
Branches: ad-namecache
Diff to: previous 1.72: preferred, colored; next MAIN 1.73: preferred, colored
Changes since revision 1.72: +14 -13
lines
Sync with head.
Revision 1.74: download - view: text, markup, annotated - select for diffs
Tue Feb 4 05:44:14 2020 UTC (5 years, 2 months ago) by thorpej
Branches: MAIN
CVS tags: ad-namecache-base3
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +3 -2
lines
Use ifmedia_fini().
Revision 1.73: download - view: text, markup, annotated - select for diffs
Thu Jan 30 05:42:00 2020 UTC (5 years, 2 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +13 -13
lines
Adopt <net/if_stats.h>.
Revision 1.72: download - view: text, markup, annotated - select for diffs
Fri Sep 13 07:55:07 2019 UTC (5 years, 7 months ago) by msaitoh
Branches: MAIN
CVS tags: phil-wifi-20191119,
ad-namecache-base2,
ad-namecache-base1,
ad-namecache-base
Branch point for: ad-namecache
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +3 -3
lines
if_flags is neither int nor short. It's unsigned short.
Revision 1.71: download - view: text, markup, annotated - select for diffs
Tue Jul 9 08:46:59 2019 UTC (5 years, 9 months ago) by msaitoh
Branches: MAIN
CVS tags: netbsd-9-base,
netbsd-9-0-RELEASE,
netbsd-9-0-RC2,
netbsd-9-0-RC1
Branch point for: netbsd-9
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +5 -3
lines
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 - view: text, markup, annotated - select for diffs
Mon Jun 10 22:07:16 2019 UTC (5 years, 10 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +53 -45
lines
Sync with HEAD
Revision 1.70: download - view: text, markup, annotated - select for diffs
Tue May 28 07:41:49 2019 UTC (5 years, 11 months ago) by msaitoh
Branches: MAIN
CVS tags: phil-wifi-20190609
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +5 -2
lines
Use ETHER_LOCK()/ETHER_UNLOCK() for all ethernet drivers to protect ec_multi*.
Revision 1.69: download - view: text, markup, annotated - select for diffs
Thu May 23 10:51:39 2019 UTC (5 years, 11 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +27 -28
lines
No functional change:
- Simplify MII structure initialization and reference.
- u_int*_t -> uint*_t.
- KNF
Revision 1.63.8.2: download - view: text, markup, annotated - select for diffs
Mon May 13 12:40:13 2019 UTC (5 years, 11 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE,
netbsd-8-2-RELEASE,
netbsd-8-1-RELEASE,
netbsd-8-1-RC1
Diff to: previous 1.63.8.1: preferred, colored; branchpoint 1.63: preferred, colored; next MAIN 1.64: preferred, colored
Changes since revision 1.63.8.1: +3 -3
lines
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 - view: text, markup, annotated - select for diffs
Thu Apr 11 08:50:59 2019 UTC (6 years ago) by msaitoh
Branches: MAIN
CVS tags: isaki-audio2-base,
isaki-audio2
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +3 -3
lines
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 - view: text, markup, annotated - select for diffs
Sat Jan 26 22:00:07 2019 UTC (6 years, 3 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.64.2.2: preferred, colored; branchpoint 1.64: preferred, colored; next MAIN 1.65: preferred, colored
Changes since revision 1.64.2.2: +22 -17
lines
Sync with HEAD
Revision 1.67: download - view: text, markup, annotated - select for diffs
Tue Jan 22 03:42:27 2019 UTC (6 years, 3 months ago) by msaitoh
Branches: MAIN
CVS tags: pgoyette-compat-20190127
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +22 -17
lines
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 - view: text, markup, annotated - select for diffs
Wed Dec 26 14:01:50 2018 UTC (6 years, 4 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.64.2.1: preferred, colored; branchpoint 1.64: preferred, colored
Changes since revision 1.64.2.1: +4 -3
lines
Sync with HEAD, resolve a few conflicts
Revision 1.66: download - view: text, markup, annotated - select for diffs
Sun Dec 9 11:14:02 2018 UTC (6 years, 4 months ago) by jdolecek
Branches: MAIN
CVS tags: pgoyette-compat-20190118,
pgoyette-compat-1226
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +4 -3
lines
use pci_intr_establish_xname() everywhere
Revision 1.64.2.1: download - view: text, markup, annotated - select for diffs
Sat Jul 28 04:37:46 2018 UTC (6 years, 9 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +3 -3
lines
Sync with HEAD
Revision 1.65: download - view: text, markup, annotated - select for diffs
Tue Jun 26 06:48:01 2018 UTC (6 years, 10 months ago) by msaitoh
Branches: 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
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +3 -3
lines
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 - view: text, markup, annotated - select for diffs
Sun Dec 3 11:37:08 2017 UTC (7 years, 4 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.56.2.3: preferred, colored; next MAIN 1.57: preferred, colored
Changes since revision 1.56.2.3: +7 -9
lines
update from HEAD
Revision 1.63.8.1: download - view: text, markup, annotated - select for diffs
Tue Oct 24 08:38:59 2017 UTC (7 years, 6 months ago) by snj
Branches: netbsd-8
CVS tags: netbsd-8-0-RELEASE,
netbsd-8-0-RC2,
netbsd-8-0-RC1,
matt-nb8-mediatek-base,
matt-nb8-mediatek
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +4 -5
lines
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 - view: text, markup, annotated - select for diffs
Tue Sep 26 07:42:06 2017 UTC (7 years, 7 months ago) by knakahara
Branches: 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
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +4 -5
lines
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 - view: text, markup, annotated - select for diffs
Sun Feb 5 13:40:29 2017 UTC (8 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.59.6.2: preferred, colored; branchpoint 1.59: preferred, colored; next MAIN 1.60: preferred, colored
Changes since revision 1.59.6.2: +5 -6
lines
Sync with HEAD
Revision 1.61.2.1: download - view: text, markup, annotated - select for diffs
Sat Jan 7 08:56:33 2017 UTC (8 years, 3 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.61: preferred, colored; next MAIN 1.62: preferred, colored
Changes since revision 1.61: +5 -6
lines
Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
Revision 1.63: download - view: text, markup, annotated - select for diffs
Thu Dec 15 09:28:05 2016 UTC (8 years, 4 months ago) by ozaki-r
Branches: 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
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +2 -4
lines
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 - view: text, markup, annotated - select for diffs
Thu Dec 8 01:12:01 2016 UTC (8 years, 4 months ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +5 -4
lines
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 - view: text, markup, annotated - select for diffs
Sat Jul 9 20:25:04 2016 UTC (8 years, 9 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.59.6.1: preferred, colored; branchpoint 1.59: preferred, colored
Changes since revision 1.59.6.1: +3 -3
lines
Sync with HEAD
Revision 1.61: download - view: text, markup, annotated - select for diffs
Fri Jun 10 13:27:14 2016 UTC (8 years, 10 months ago) by ozaki-r
Branches: 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
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +3 -3
lines
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 - view: text, markup, annotated - select for diffs
Sat Mar 19 11:30:10 2016 UTC (9 years, 1 month ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +3 -3
lines
Sync with HEAD
Revision 1.60: download - view: text, markup, annotated - select for diffs
Tue Feb 9 08:32:11 2016 UTC (9 years, 2 months ago) by ozaki-r
Branches: MAIN
CVS tags: nick-nhusb-base-20160529,
nick-nhusb-base-20160422,
nick-nhusb-base-20160319
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +3 -3
lines
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 - view: text, markup, annotated - select for diffs
Wed Aug 20 00:03:42 2014 UTC (10 years, 8 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.56.2.2: preferred, colored
Changes since revision 1.56.2.2: +2 -1
lines
Rebase to HEAD as of a few days ago.
Revision 1.54.4.3: download - view: text, markup, annotated - select for diffs
Thu May 22 11:40:25 2014 UTC (10 years, 11 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.54.4.2: preferred, colored; branchpoint 1.54: preferred, colored; next MAIN 1.55: preferred, colored
Changes since revision 1.54.4.2: +5 -4
lines
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 - view: text, markup, annotated - select for diffs
Sun May 18 17:45:40 2014 UTC (10 years, 11 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.58: preferred, colored; next MAIN 1.59: preferred, colored
Changes since revision 1.58: +4 -3
lines
sync with head
Revision 1.59: download - view: text, markup, annotated - select for diffs
Sat Mar 29 19:28:25 2014 UTC (11 years, 1 month ago) by christos
Branches: 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
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +4 -3
lines
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 - view: text, markup, annotated - select for diffs
Sun Jun 23 06:20:18 2013 UTC (11 years, 10 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.56.2.1: preferred, colored
Changes since revision 1.56.2.1: +3 -3
lines
resync from head
Revision 1.58: download - view: text, markup, annotated - select for diffs
Sat Mar 30 03:21:06 2013 UTC (12 years, 1 month ago) by christos
Branches: MAIN
CVS tags: riastradh-drm2-base3,
riastradh-drm2-base2,
riastradh-drm2-base1,
riastradh-drm2-base,
riastradh-drm2,
khorben-n900
Branch point for: rmind-smpnet
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +3 -3
lines
remove trailing whitespace
Revision 1.55.2.1: download - view: text, markup, annotated - select for diffs
Thu Nov 22 00:42:59 2012 UTC (12 years, 5 months ago) by riz
Branches: 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
Diff to: previous 1.55: preferred, colored; next MAIN 1.56: preferred, colored
Changes since revision 1.55: +7 -4
lines
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 - view: text, markup, annotated - select for diffs
Tue Nov 20 03:02:17 2012 UTC (12 years, 5 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +7 -4
lines
Resync to 2012-11-19 00:00:00 UTC
Revision 1.54.4.2: download - view: text, markup, annotated - select for diffs
Tue Oct 30 17:21:31 2012 UTC (12 years, 6 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.54.4.1: preferred, colored; branchpoint 1.54: preferred, colored
Changes since revision 1.54.4.1: +10 -7
lines
sync with head
Revision 1.57: download - view: text, markup, annotated - select for diffs
Sun Sep 23 01:12:01 2012 UTC (12 years, 7 months ago) by chs
Branches: MAIN
CVS tags: yamt-pagecache-base8,
yamt-pagecache-base7,
yamt-pagecache-base6,
agc-symver-base,
agc-symver
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +7 -4
lines
use 64-bit DMA where possible.
Revision 1.56: download - view: text, markup, annotated - select for diffs
Sun Jul 22 14:33:03 2012 UTC (12 years, 9 months ago) by matt
Branches: MAIN
Branch point for: tls-maxphys
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +5 -5
lines
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 - view: text, markup, annotated - select for diffs
Tue Apr 17 00:07:47 2012 UTC (13 years ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +3 -5
lines
sync with head
Revision 1.54.8.1: download - view: text, markup, annotated - select for diffs
Sat Feb 18 07:34:40 2012 UTC (13 years, 2 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.54: preferred, colored; next MAIN 1.55: preferred, colored
Changes since revision 1.54: +3 -5
lines
merge to -current.
Revision 1.55: download - view: text, markup, annotated - select for diffs
Mon Jan 30 19:41:20 2012 UTC (13 years, 3 months ago) by drochner
Branches: 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
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +3 -5
lines
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 - view: text, markup, annotated - select for diffs
Mon Jun 6 09:08:14 2011 UTC (13 years, 10 months ago) by jruoho
Branches: jruoho-x86intr
Diff to: previous 1.53: preferred, colored; next MAIN 1.54: preferred, colored
Changes since revision 1.53: +3 -4
lines
Sync with HEAD.
Revision 1.50.2.2: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:53:42 2011 UTC (14 years, 1 month ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.50.2.1: preferred, colored; branchpoint 1.50: preferred, colored; next MAIN 1.51: preferred, colored
Changes since revision 1.50.2.1: +67 -11
lines
sync with head
Revision 1.53.4.1: download - view: text, markup, annotated - select for diffs
Tue Feb 8 16:19:50 2011 UTC (14 years, 2 months ago) by bouyer
Branches: bouyer-quota2
Diff to: previous 1.53: preferred, colored; next MAIN 1.54: preferred, colored
Changes since revision 1.53: +3 -4
lines
Sync with HEAD
Revision 1.54: download - view: text, markup, annotated - select for diffs
Sun Jan 23 03:15:06 2011 UTC (14 years, 3 months ago) by tsutsui
Branches: 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
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +3 -4
lines
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 - view: text, markup, annotated - select for diffs
Sat Nov 6 08:08:30 2010 UTC (14 years, 5 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.49.2.1: preferred, colored; branchpoint 1.49: preferred, colored; next MAIN 1.50: preferred, colored
Changes since revision 1.49.2.1: +66 -9
lines
Sync with HEAD.
Revision 1.53: download - view: text, markup, annotated - select for diffs
Wed Nov 3 14:03:40 2010 UTC (14 years, 5 months ago) by jakllsch
Branches: MAIN
CVS tags: uebayasi-xip-base4,
matt-mips64-premerge-20101231,
jruoho-x86intr-base
Branch point for: jruoho-x86intr,
bouyer-quota2
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +61 -8
lines
Make nfe(4) detachable.
Revision 1.52: download - view: text, markup, annotated - select for diffs
Tue Nov 2 16:56:47 2010 UTC (14 years, 5 months ago) by jakllsch
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +7 -3
lines
Explicitly set PCI_COMMAND_MASTER_ENABLE.
Revision 1.34.2.5: download - view: text, markup, annotated - select for diffs
Wed Aug 11 22:53:47 2010 UTC (14 years, 8 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.34.2.4: preferred, colored; branchpoint 1.34: preferred, colored; next MAIN 1.35: preferred, colored
Changes since revision 1.34.2.4: +4 -6
lines
sync with head.
Revision 1.50.2.1: download - view: text, markup, annotated - select for diffs
Sun May 30 05:17:34 2010 UTC (14 years, 11 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +4 -6
lines
sync with head
Revision 1.49.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 30 14:43:36 2010 UTC (15 years ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +6 -8
lines
Sync with HEAD.
Revision 1.51: download - view: text, markup, annotated - select for diffs
Mon Apr 5 07:20:26 2010 UTC (15 years ago) by joerg
Branches: MAIN
CVS tags: yamt-nfs-mp-base11,
yamt-nfs-mp-base10,
uebayasi-xip-base3,
uebayasi-xip-base2,
uebayasi-xip-base1
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +4 -6
lines
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 - view: text, markup, annotated - select for diffs
Thu Mar 11 15:03:47 2010 UTC (15 years, 1 month ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.34.2.3: preferred, colored; branchpoint 1.34: preferred, colored
Changes since revision 1.34.2.3: +8 -15
lines
sync with head
Revision 1.50: download - view: text, markup, annotated - select for diffs
Wed Feb 24 22:38:00 2010 UTC (15 years, 2 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-nfs-mp-base9
Branch point for: rmind-uvmplock
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +4 -4
lines
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 - view: text, markup, annotated - select for diffs
Tue Jan 19 22:07:01 2010 UTC (15 years, 3 months ago) by pooka
Branches: MAIN
CVS tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +4 -11
lines
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 - view: text, markup, annotated - select for diffs
Fri Jan 8 19:56:52 2010 UTC (15 years, 3 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +4 -4
lines
Expand PMF_FN_* macros.
Revision 1.47: download - view: text, markup, annotated - select for diffs
Thu Nov 26 15:17:09 2009 UTC (15 years, 5 months ago) by njoly
Branches: MAIN
CVS tags: matt-premerge-20091211
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +4 -4
lines
Cleanup interrupt establish error messages. Do not mix
aprint_error/aprint_normal/printf calls for a single line.
Revision 1.34.2.3: download - view: text, markup, annotated - select for diffs
Wed Sep 16 13:37:51 2009 UTC (15 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.34.2.2: preferred, colored; branchpoint 1.34: preferred, colored
Changes since revision 1.34.2.2: +5 -5
lines
sync with head
Revision 1.46: download - view: text, markup, annotated - select for diffs
Sat Sep 5 14:09:55 2009 UTC (15 years, 7 months ago) by tsutsui
Branches: MAIN
CVS tags: yamt-nfs-mp-base8,
jym-xensuspend-nbase
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +5 -5
lines
Invert logic around nested pmf(9) registrations for readability.
Revision 1.39.2.2: download - view: text, markup, annotated - select for diffs
Thu Jul 23 23:31:58 2009 UTC (15 years, 9 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.39.2.1: preferred, colored; next MAIN 1.40: preferred, colored
Changes since revision 1.39.2.1: +3 -3
lines
Sync with HEAD.
Revision 1.34.2.2: download - view: text, markup, annotated - select for diffs
Sat Jun 20 07:20:23 2009 UTC (15 years, 10 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.34.2.1: preferred, colored; branchpoint 1.34: preferred, colored
Changes since revision 1.34.2.1: +3 -3
lines
sync with head
Revision 1.45: download - view: text, markup, annotated - select for diffs
Sun Jun 14 06:24:14 2009 UTC (15 years, 10 months ago) by cegger
Branches: MAIN
CVS tags: yamt-nfs-mp-base7,
yamt-nfs-mp-base6,
yamt-nfs-mp-base5,
jymxensuspend-base
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +3 -3
lines
use __arraycount
Revision 1.39.2.1: download - view: text, markup, annotated - select for diffs
Wed May 13 17:20:26 2009 UTC (15 years, 11 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +39 -17
lines
Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
Revision 1.34.2.1: download - view: text, markup, annotated - select for diffs
Mon May 4 08:12:57 2009 UTC (15 years, 11 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +101 -71
lines
sync with head.
Revision 1.36.4.3: download - view: text, markup, annotated - select for diffs
Tue Apr 28 07:35:57 2009 UTC (16 years ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.36.4.2: preferred, colored; branchpoint 1.36: preferred, colored; next MAIN 1.37: preferred, colored
Changes since revision 1.36.4.2: +3 -3
lines
Sync with HEAD.
Revision 1.44: download - view: text, markup, annotated - select for diffs
Wed Mar 18 15:14:30 2009 UTC (16 years, 1 month ago) by cegger
Branches: MAIN
CVS tags: yamt-nfs-mp-base4,
yamt-nfs-mp-base3,
nick-hppapmap-base4,
nick-hppapmap-base3,
nick-hppapmap-base,
jym-xensuspend-base
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +3 -3
lines
bcmp -> memcmp
Revision 1.36.4.2: download - view: text, markup, annotated - select for diffs
Tue Mar 3 18:31:07 2009 UTC (16 years, 1 month ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.36.4.1: preferred, colored; branchpoint 1.36: preferred, colored
Changes since revision 1.36.4.1: +38 -16
lines
Sync with HEAD.
Revision 1.36.6.1: download - view: text, markup, annotated - select for diffs
Mon Mar 2 20:46:03 2009 UTC (16 years, 1 month ago) by snj
Branches: 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
Diff to: previous 1.36: preferred, colored; next MAIN 1.37: preferred, colored
Changes since revision 1.36: +21 -6
lines
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 - view: text, markup, annotated - select for diffs
Sun Mar 1 13:44:54 2009 UTC (16 years, 2 months ago) by cegger
Branches: MAIN
CVS tags: nick-hppapmap-base2
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +10 -10
lines
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 - view: text, markup, annotated - select for diffs
Sun Mar 1 13:34:10 2009 UTC (16 years, 2 months ago) by cegger
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +21 -6
lines
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 - view: text, markup, annotated - select for diffs
Sun Mar 1 08:29:25 2009 UTC (16 years, 2 months ago) by cegger
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +6 -3
lines
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 - view: text, markup, annotated - select for diffs
Thu Feb 12 10:33:23 2009 UTC (16 years, 2 months ago) by cegger
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +7 -3
lines
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 - view: text, markup, annotated - select for diffs
Mon Jan 19 13:18:26 2009 UTC (16 years, 3 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +34 -44
lines
Sync with HEAD.
Revision 1.39: download - view: text, markup, annotated - select for diffs
Sun Jan 18 11:21:06 2009 UTC (16 years, 3 months ago) by cegger
Branches: MAIN
Branch point for: jym-xensuspend
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +4 -6
lines
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 - view: text, markup, annotated - select for diffs
Sat Jan 17 13:29:00 2009 UTC (16 years, 3 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.28.6.3: preferred, colored; branchpoint 1.28: preferred, colored; next MAIN 1.29: preferred, colored
Changes since revision 1.28.6.3: +30 -38
lines
Sync with HEAD.
Revision 1.38: download - view: text, markup, annotated - select for diffs
Tue Dec 16 22:35:33 2008 UTC (16 years, 4 months ago) by christos
Branches: MAIN
CVS tags: mjf-devfs2-base
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +6 -6
lines
replace bitmask_snprintf(9) with snprintb(3)
Revision 1.36.2.1: download - view: text, markup, annotated - select for diffs
Sat Dec 13 01:14:35 2008 UTC (16 years, 4 months ago) by haad
Branches: haad-dm
Diff to: previous 1.36: preferred, colored; next MAIN 1.37: preferred, colored
Changes since revision 1.36: +28 -36
lines
Update haad-dm branch to haad-dm-base2.
Revision 1.37: download - view: text, markup, annotated - select for diffs
Fri Nov 7 00:20:07 2008 UTC (16 years, 5 months ago) by dyoung
Branches: MAIN
CVS tags: haad-nbase2,
haad-dm-base2,
haad-dm-base,
ad-audiomp2-base,
ad-audiomp2
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +28 -36
lines
*** 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 - view: text, markup, annotated - select for diffs
Sun Jun 29 09:33:09 2008 UTC (16 years, 10 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.28.6.2: preferred, colored; branchpoint 1.28: preferred, colored
Changes since revision 1.28.6.2: +1 -1
lines
Sync with HEAD.
Revision 1.34.4.1: download - view: text, markup, annotated - select for diffs
Mon Jun 23 04:31:11 2008 UTC (16 years, 10 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.34: preferred, colored; next MAIN 1.35: preferred, colored
Changes since revision 1.34: +32 -14
lines
Sync w/ -current. 34 merge conflicts to follow.
Revision 1.35.2.1: download - view: text, markup, annotated - select for diffs
Wed Jun 18 16:33:19 2008 UTC (16 years, 10 months ago) by simonb
Branches: simonb-wapbl
Diff to: previous 1.35: preferred, colored; next MAIN 1.36: preferred, colored
Changes since revision 1.35: +3 -3
lines
Sync with head.
Revision 1.36: download - view: text, markup, annotated - select for diffs
Tue Jun 17 12:59:32 2008 UTC (16 years, 10 months ago) by cube
Branches: 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
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +3 -3
lines
Use MUTEX_DEFAULT to initialise the mutex, per martin@'s input.
Revision 1.33.2.2: download - view: text, markup, annotated - select for diffs
Wed Jun 4 02:05:14 2008 UTC (16 years, 10 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.33.2.1: preferred, colored; branchpoint 1.33: preferred, colored; next MAIN 1.34: preferred, colored
Changes since revision 1.33.2.1: +31 -13
lines
sync with head
Revision 1.7.2.1.2.2: download - view: text, markup, annotated - select for diffs
Tue Jun 3 20:47:24 2008 UTC (16 years, 10 months ago) by skrll
Branches: wrstuden-fixsa
Diff to: previous 1.7.2.1.2.1: preferred, colored; branchpoint 1.7.2.1: preferred, colored; next MAIN 1.7.2.2: preferred, colored
Changes since revision 1.7.2.1.2.1: +58 -14
lines
Sync with netbsd-4.
Revision 1.28.6.2: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:23:39 2008 UTC (16 years, 10 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.28.6.1: preferred, colored; branchpoint 1.28: preferred, colored
Changes since revision 1.28.6.1: +114 -62
lines
Sync with HEAD.
Revision 1.35: download - view: text, markup, annotated - select for diffs
Sun May 25 22:57:35 2008 UTC (16 years, 11 months ago) by jmcneill
Branches: MAIN
CVS tags: yamt-pf42-base4,
yamt-pf42-base3
Branch point for: simonb-wapbl
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +31 -13
lines
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 - view: text, markup, annotated - select for diffs
Sun May 18 12:34:19 2008 UTC (16 years, 11 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +14 -4
lines
sync with head.
Revision 1.34: download - view: text, markup, annotated - select for diffs
Sun Apr 20 08:57:37 2008 UTC (17 years ago) by cube
Branches: 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
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +14 -4
lines
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 - view: text, markup, annotated - select for diffs
Thu Apr 17 20:16:46 2008 UTC (17 years ago) by christos
Branches: MAIN
CVS tags: yamt-pf42-baseX,
yamt-pf42-base
Branch point for: yamt-pf42
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +3 -4
lines
join line for symmetry.
Revision 1.32: download - view: text, markup, annotated - select for diffs
Thu Apr 17 19:50:38 2008 UTC (17 years ago) by xtraeme
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +3 -5
lines
Make this build again... HI XTOS.
Revision 1.31: download - view: text, markup, annotated - select for diffs
Thu Apr 17 19:12:26 2008 UTC (17 years ago) by christos
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +80 -53
lines
sync with openbsd; fixes observed corruption issues.
Revision 1.28.6.1: download - view: text, markup, annotated - select for diffs
Thu Apr 3 12:42:50 2008 UTC (17 years ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +87 -90
lines
Sync with HEAD.
Revision 1.30: download - view: text, markup, annotated - select for diffs
Wed Mar 26 14:46:21 2008 UTC (17 years, 1 month ago) by cube
Branches: MAIN
CVS tags: ad-socklock-base1
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +86 -89
lines
Split device_t and softc, and related cosmetic changes.
Revision 1.28.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 24 07:15:48 2008 UTC (17 years, 1 month ago) by keiichi
Branches: keiichi-mipv6
Diff to: previous 1.28: preferred, colored; next MAIN 1.29: preferred, colored
Changes since revision 1.28: +3 -3
lines
sync with head.
Revision 1.16.8.4: download - view: text, markup, annotated - select for diffs
Sun Mar 23 02:04:47 2008 UTC (17 years, 1 month ago) by matt
Branches: matt-armv6
Diff to: previous 1.16.8.3: preferred, colored; branchpoint 1.16: preferred, colored; next MAIN 1.17: preferred, colored
Changes since revision 1.16.8.3: +36 -58
lines
sync with HEAD
Revision 1.3.12.11: download - view: text, markup, annotated - select for diffs
Wed Feb 27 08:36:35 2008 UTC (17 years, 2 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.3.12.10: preferred, colored; branchpoint 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3.12.10: +3 -3
lines
sync with head.
Revision 1.29: download - view: text, markup, annotated - select for diffs
Sun Feb 24 05:34:01 2008 UTC (17 years, 2 months ago) by isaki
Branches: MAIN
CVS tags: yamt-lazymbuf-base15,
yamt-lazymbuf-base14,
matt-armv6-nbase,
keiichi-mipv6-nbase,
keiichi-mipv6-base,
hpcarm-cleanup-base
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +3 -3
lines
Minor style fix.
Revision 1.7.2.3: download - view: text, markup, annotated - select for diffs
Sat Feb 23 14:21:50 2008 UTC (17 years, 2 months ago) by bouyer
Branches: netbsd-4
CVS tags: wrstuden-fixsa-newbase,
wrstuden-fixsa-base
Diff to: previous 1.7.2.2: preferred, colored; branchpoint 1.7: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7.2.2: +58 -14
lines
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 - view: text, markup, annotated - select for diffs
Mon Feb 18 21:05:57 2008 UTC (17 years, 2 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.20.2.2: preferred, colored; branchpoint 1.20: preferred, colored; next MAIN 1.21: preferred, colored
Changes since revision 1.20.2.2: +35 -57
lines
Sync with HEAD.
Revision 1.3.12.10: download - view: text, markup, annotated - select for diffs
Mon Feb 11 14:59:38 2008 UTC (17 years, 2 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.3.12.9: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.12.9: +13 -9
lines
sync with head.
Revision 1.28: download - view: text, markup, annotated - select for diffs
Thu Feb 7 01:21:56 2008 UTC (17 years, 2 months ago) by dyoung
Branches: MAIN
CVS tags: nick-net80211-sync-base,
nick-net80211-sync,
mjf-devfs-base
Branch point for: mjf-devfs2,
keiichi-mipv6
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +13 -9
lines
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 - view: text, markup, annotated - select for diffs
Mon Feb 4 09:23:30 2008 UTC (17 years, 2 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.3.12.8: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.12.8: +16 -4
lines
sync with head.
Revision 1.27: download - view: text, markup, annotated - select for diffs
Sat Jan 26 14:13:06 2008 UTC (17 years, 3 months ago) by tsutsui
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +16 -4
lines
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 - view: text, markup, annotated - select for diffs
Mon Jan 21 09:43:57 2008 UTC (17 years, 3 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.3.12.7: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.12.7: +41 -77
lines
sync with head
Revision 1.24.2.2: download - view: text, markup, annotated - select for diffs
Sun Jan 20 17:51:37 2008 UTC (17 years, 3 months ago) by bouyer
Branches: bouyer-xeni386
Diff to: previous 1.24.2.1: preferred, colored; branchpoint 1.24: preferred, colored; next MAIN 1.25: preferred, colored
Changes since revision 1.24.2.1: +9 -47
lines
Sync with HEAD
Revision 1.26: download - view: text, markup, annotated - select for diffs
Sat Jan 19 22:10:18 2008 UTC (17 years, 3 months ago) by dyoung
Branches: MAIN
CVS tags: bouyer-xeni386-nbase,
bouyer-xeni386-base
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +11 -49
lines
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 - view: text, markup, annotated - select for diffs
Wed Jan 9 01:53:48 2008 UTC (17 years, 3 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.16.8.2: preferred, colored; branchpoint 1.16: preferred, colored
Changes since revision 1.16.8.2: +49 -31
lines
sync with HEAD
Revision 1.24.2.1: download - view: text, markup, annotated - select for diffs
Wed Jan 2 21:54:44 2008 UTC (17 years, 3 months ago) by bouyer
Branches: bouyer-xeni386
CVS tags: bouyer-xeni386-merge1
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +27 -11
lines
Sync with HEAD
Revision 1.20.2.2: download - view: text, markup, annotated - select for diffs
Thu Dec 27 00:45:17 2007 UTC (17 years, 4 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.20.2.1: preferred, colored; branchpoint 1.20: preferred, colored
Changes since revision 1.20.2.1: +32 -30
lines
Sync with HEAD.
Revision 1.23.2.1: download - view: text, markup, annotated - select for diffs
Wed Dec 26 19:46:54 2007 UTC (17 years, 4 months ago) by ad
Branches: vmlocking2
Diff to: previous 1.23: preferred, colored; next MAIN 1.24: preferred, colored
Changes since revision 1.23: +32 -30
lines
Sync with head.
Revision 1.25: download - view: text, markup, annotated - select for diffs
Mon Dec 17 12:41:06 2007 UTC (17 years, 4 months ago) by tsutsui
Branches: MAIN
CVS tags: vmlocking2-base3,
matt-armv6-base
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +27 -11
lines
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 - view: text, markup, annotated - select for diffs
Tue Dec 11 15:32:10 2007 UTC (17 years, 4 months ago) by yamt
Branches: yamt-kmem
Diff to: previous 1.23: preferred, colored; next MAIN 1.24: preferred, colored
Changes since revision 1.23: +7 -21
lines
sync with head.
Revision 1.24: download - view: text, markup, annotated - select for diffs
Sun Dec 9 20:28:09 2007 UTC (17 years, 4 months ago) by jmcneill
Branches: MAIN
CVS tags: yamt-kmem-base3,
yamt-kmem-base2,
cube-autoconf-base,
cube-autoconf
Branch point for: bouyer-xeni386
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +7 -21
lines
Merge jmcneill-pm branch.
Revision 1.16.6.8: download - view: text, markup, annotated - select for diffs
Sat Dec 8 16:21:28 2007 UTC (17 years, 4 months ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.16.6.7: preferred, colored; branchpoint 1.16: preferred, colored; next MAIN 1.17: preferred, colored
Changes since revision 1.16.6.7: +4 -4
lines
Rename pnp(9) -> pmf(9), as requested by many.
Revision 1.20.2.1: download - view: text, markup, annotated - select for diffs
Mon Nov 19 00:48:10 2007 UTC (17 years, 5 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +20 -4
lines
Sync with HEAD.
Revision 1.19.2.3: download - view: text, markup, annotated - select for diffs
Sun Nov 18 19:35:34 2007 UTC (17 years, 5 months ago) by bouyer
Branches: bouyer-xenamd64
Diff to: previous 1.19.2.2: preferred, colored; branchpoint 1.19: preferred, colored; next MAIN 1.20: preferred, colored
Changes since revision 1.19.2.2: +17 -1
lines
Sync with HEAD
Revision 1.3.12.7: download - view: text, markup, annotated - select for diffs
Thu Nov 15 11:44:21 2007 UTC (17 years, 5 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.3.12.6: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.12.6: +20 -4
lines
sync with head.
Revision 1.16.6.7: download - view: text, markup, annotated - select for diffs
Wed Nov 14 19:04:29 2007 UTC (17 years, 5 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.16.6.6: preferred, colored; branchpoint 1.16: preferred, colored
Changes since revision 1.16.6.6: +19 -3
lines
Sync with HEAD.
Revision 1.23: download - view: text, markup, annotated - select for diffs
Wed Nov 14 14:59:50 2007 UTC (17 years, 5 months ago) by xtraeme
Branches: 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
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +10 -2
lines
Add the MCP{67,73} products on nfe_attach().
Revision 1.22: download - view: text, markup, annotated - select for diffs
Wed Nov 14 12:40:54 2007 UTC (17 years, 5 months ago) by xtraeme
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +11 -3
lines
Attach to NVIDIA MCP67/73 Ethernet controllers.
Revision 1.19.2.2: download - view: text, markup, annotated - select for diffs
Tue Nov 13 16:01:19 2007 UTC (17 years, 5 months ago) by bouyer
Branches: bouyer-xenamd64
Diff to: previous 1.19.2.1: preferred, colored; branchpoint 1.19: preferred, colored
Changes since revision 1.19.2.1: +1 -1
lines
Sync with HEAD
Revision 1.16.6.6: download - view: text, markup, annotated - select for diffs
Sun Nov 11 16:47:41 2007 UTC (17 years, 5 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.16.6.5: preferred, colored; branchpoint 1.16: preferred, colored
Changes since revision 1.16.6.5: +3 -3
lines
Sync with HEAD.
Revision 1.16.8.2: download - view: text, markup, annotated - select for diffs
Thu Nov 8 10:59:54 2007 UTC (17 years, 5 months ago) by matt
Branches: matt-armv6
CVS tags: matt-armv6-prevmlocking
Diff to: previous 1.16.8.1: preferred, colored; branchpoint 1.16: preferred, colored
Changes since revision 1.16.8.1: +3 -3
lines
sync with -HEAD
Revision 1.21: download - view: text, markup, annotated - select for diffs
Wed Nov 7 00:23:19 2007 UTC (17 years, 5 months ago) by ad
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +3 -3
lines
Merge from vmlocking:
- pool_cache changes.
- Debugger/procfs locking fixes.
- Other minor changes.
Revision 1.16.8.1: download - view: text, markup, annotated - select for diffs
Tue Nov 6 23:29:02 2007 UTC (17 years, 5 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +45 -25
lines
sync with HEAD
Revision 1.16.6.5: download - view: text, markup, annotated - select for diffs
Tue Nov 6 14:27:25 2007 UTC (17 years, 5 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.16.6.4: preferred, colored; branchpoint 1.16: preferred, colored
Changes since revision 1.16.6.4: +5 -7
lines
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 - view: text, markup, annotated - select for diffs
Mon Oct 29 00:45:15 2007 UTC (17 years, 6 months ago) by wrstuden
Branches: wrstuden-fixsa
Diff to: previous 1.7.2.1: preferred, colored
Changes since revision 1.7.2.1: +136 -83
lines
Catch up with 4.0 RC3
Revision 1.3.12.6: download - view: text, markup, annotated - select for diffs
Sat Oct 27 11:32:57 2007 UTC (17 years, 6 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.3.12.5: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.12.5: +44 -20
lines
sync with head.
Revision 1.16.6.4: download - view: text, markup, annotated - select for diffs
Fri Oct 26 15:46:14 2007 UTC (17 years, 6 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.16.6.3: preferred, colored; branchpoint 1.16: preferred, colored
Changes since revision 1.16.6.3: +3 -3
lines
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 - view: text, markup, annotated - select for diffs
Thu Oct 25 22:39:02 2007 UTC (17 years, 6 months ago) by bouyer
Branches: bouyer-xenamd64
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +3 -3
lines
Sync with HEAD.
Revision 1.15.2.4: download - view: text, markup, annotated - select for diffs
Tue Oct 23 20:09:00 2007 UTC (17 years, 6 months ago) by ad
Branches: vmlocking
Diff to: previous 1.15.2.3: preferred, colored; branchpoint 1.15: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15.2.3: +3 -3
lines
Sync with head.
Revision 1.20: download - view: text, markup, annotated - select for diffs
Fri Oct 19 12:00:47 2007 UTC (17 years, 6 months ago) by ad
Branches: MAIN
CVS tags: jmcneill-base
Branch point for: mjf-devfs
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +3 -3
lines
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
Revision 1.15.2.3: download - view: text, markup, annotated - select for diffs
Tue Oct 9 13:41:45 2007 UTC (17 years, 6 months ago) by ad
Branches: vmlocking
Diff to: previous 1.15.2.2: preferred, colored; branchpoint 1.15: preferred, colored
Changes since revision 1.15.2.2: +44 -24
lines
Sync with head.
Revision 1.7.2.2: download - view: text, markup, annotated - select for diffs
Sun Oct 7 15:48:27 2007 UTC (17 years, 6 months ago) by pavel
Branches: 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
Diff to: previous 1.7.2.1: preferred, colored; branchpoint 1.7: preferred, colored
Changes since revision 1.7.2.1: +136 -83
lines
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 - view: text, markup, annotated - select for diffs
Sat Oct 6 15:31:24 2007 UTC (17 years, 6 months ago) by yamt
Branches: yamt-x86pmap
Diff to: previous 1.17: preferred, colored; next MAIN 1.18: preferred, colored
Changes since revision 1.17: +43 -19
lines
sync with head.
Revision 1.16.6.3: download - view: text, markup, annotated - select for diffs
Fri Oct 5 00:40:12 2007 UTC (17 years, 6 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.16.6.2: preferred, colored; branchpoint 1.16: preferred, colored
Changes since revision 1.16.6.2: +8 -20
lines
Convert nfe(4) to PNP power management.
Revision 1.16.6.2: download - view: text, markup, annotated - select for diffs
Tue Oct 2 18:28:32 2007 UTC (17 years, 6 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.16.6.1: preferred, colored; branchpoint 1.16: preferred, colored
Changes since revision 1.16.6.1: +43 -19
lines
Sync with HEAD.
Revision 1.19: download - view: text, markup, annotated - select for diffs
Mon Sep 24 13:17:53 2007 UTC (17 years, 7 months ago) by cube
Branches: MAIN
CVS tags: yamt-x86pmap-base4,
yamt-x86pmap-base3,
yamt-x86pmap-base2,
vmlocking-base
Branch point for: bouyer-xenamd64
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +40 -19
lines
- 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 - view: text, markup, annotated - select for diffs
Mon Sep 24 13:11:08 2007 UTC (17 years, 7 months ago) by cube
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +5 -2
lines
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 - view: text, markup, annotated - select for diffs
Mon Sep 3 16:48:17 2007 UTC (17 years, 7 months ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +3 -7
lines
Sync with HEAD.
Revision 1.3.12.5: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:36:59 2007 UTC (17 years, 7 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.3.12.4: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.12.4: +136 -111
lines
sync with head.
Revision 1.16.2.1: download - view: text, markup, annotated - select for diffs
Mon Sep 3 10:21:01 2007 UTC (17 years, 7 months ago) by skrll
Branches: nick-csl-alignment
Diff to: previous 1.16: preferred, colored; next MAIN 1.17: preferred, colored
Changes since revision 1.16: +3 -7
lines
Sync with HEAD.
Revision 1.15.2.2: download - view: text, markup, annotated - select for diffs
Sat Sep 1 12:56:46 2007 UTC (17 years, 8 months ago) by ad
Branches: vmlocking
Diff to: previous 1.15.2.1: preferred, colored; branchpoint 1.15: preferred, colored
Changes since revision 1.15.2.1: +3 -3
lines
Update for pool_cache API changes.
Revision 1.17: download - view: text, markup, annotated - select for diffs
Sat Sep 1 07:32:30 2007 UTC (17 years, 8 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-x86pmap-base,
nick-csl-alignment-base5
Branch point for: yamt-x86pmap
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +3 -7
lines
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 - view: text, markup, annotated - select for diffs
Wed Jul 11 20:07:39 2007 UTC (17 years, 9 months ago) by mjf
Branches: mjf-ufs-trans
Diff to: previous 1.15: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15: +3 -3
lines
Sync with head.
Revision 1.16: download - view: text, markup, annotated - select for diffs
Mon Jul 9 21:00:54 2007 UTC (17 years, 9 months ago) by ad
Branches: 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
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +3 -3
lines
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 - view: text, markup, annotated - select for diffs
Sun Jul 1 21:48:09 2007 UTC (17 years, 10 months ago) by ad
Branches: vmlocking
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +3 -3
lines
Adapt to callout API change.
Revision 1.13.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 12 05:55:19 2007 UTC (18 years, 1 month ago) by rmind
Branches: yamt-idlelwp
Diff to: previous 1.13: preferred, colored; next MAIN 1.14: preferred, colored
Changes since revision 1.13: +134 -105
lines
Sync with HEAD.
Revision 1.15: download - view: text, markup, annotated - select for diffs
Sun Mar 4 06:02:22 2007 UTC (18 years, 1 month ago) by christos
Branches: MAIN
CVS tags: yamt-idlelwp-base8,
thorpej-atomic-base,
thorpej-atomic,
reinoud-bufcleanup
Branch point for: vmlocking,
mjf-ufs-trans
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +32 -32
lines
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
Revision 1.14: download - view: text, markup, annotated - select for diffs
Wed Feb 28 17:40:11 2007 UTC (18 years, 2 months ago) by tsutsui
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +104 -75
lines
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 - view: text, markup, annotated - select for diffs
Mon Feb 26 09:10:27 2007 UTC (18 years, 2 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.3.12.3: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.12.3: +96 -46
lines
sync with head.
Revision 1.7.2.1: download - view: text, markup, annotated - select for diffs
Fri Jan 19 22:34:23 2007 UTC (18 years, 3 months ago) by bouyer
Branches: netbsd-4
CVS tags: netbsd-4-0-RC2,
netbsd-4-0-RC1
Branch point for: wrstuden-fixsa
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +97 -49
lines
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 - view: text, markup, annotated - select for diffs
Fri Jan 12 00:57:41 2007 UTC (18 years, 3 months ago) by ad
Branches: newlock2
Diff to: previous 1.4.2.1: preferred, colored; branchpoint 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.2.1: +97 -49
lines
Sync with head.
Revision 1.13: download - view: text, markup, annotated - select for diffs
Tue Jan 9 10:29:27 2007 UTC (18 years, 3 months ago) by tsutsui
Branches: MAIN
CVS tags: post-newlock2-merge,
newlock2-nbase,
newlock2-base,
ad-audiomp-base,
ad-audiomp
Branch point for: yamt-idlelwp
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +54 -46
lines
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 - view: text, markup, annotated - select for diffs
Fri Jan 5 01:33:57 2007 UTC (18 years, 3 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +17 -2
lines
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 - view: text, markup, annotated - select for diffs
Mon Jan 1 04:13:25 2007 UTC (18 years, 4 months ago) by tsutsui
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +27 -7
lines
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 - view: text, markup, annotated - select for diffs
Mon Jan 1 03:43:04 2007 UTC (18 years, 4 months ago) by tsutsui
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +14 -7
lines
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 - view: text, markup, annotated - select for diffs
Sat Dec 30 20:48:45 2006 UTC (18 years, 4 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.3.12.2: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.12.2: +22 -7
lines
sync with head.
Revision 1.9: download - view: text, markup, annotated - select for diffs
Wed Dec 27 18:36:09 2006 UTC (18 years, 4 months ago) by alc
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +3 -6
lines
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 - view: text, markup, annotated - select for diffs
Mon Dec 25 23:58:36 2006 UTC (18 years, 4 months ago) by alc
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +3 -2
lines
CID-3667: check if 'mtag != NULL' before dereferencing it
Revision 1.4.6.2: download - view: text, markup, annotated - select for diffs
Sun Dec 10 07:17:44 2006 UTC (18 years, 4 months ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.4.6.1: preferred, colored; branchpoint 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.6.1: +6 -6
lines
sync with head.
Revision 1.4.2.1: download - view: text, markup, annotated - select for diffs
Sat Nov 18 21:34:30 2006 UTC (18 years, 5 months ago) by ad
Branches: newlock2
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +4 -3
lines
Sync with head.
Revision 1.7: download - view: text, markup, annotated - select for diffs
Thu Nov 16 01:33:09 2006 UTC (18 years, 5 months ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base5,
yamt-splraiseipl-base4,
yamt-splraiseipl-base3,
netbsd-4-base
Branch point for: netbsd-4
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +6 -6
lines
__unused removal on arguments; approved by core.
Revision 1.4.6.1: download - view: text, markup, annotated - select for diffs
Sun Oct 22 06:06:17 2006 UTC (18 years, 6 months ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +8 -7
lines
sync with head
Revision 1.6: download - view: text, markup, annotated - select for diffs
Thu Oct 12 01:31:30 2006 UTC (18 years, 6 months ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base2
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +6 -6
lines
- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386
Revision 1.5: download - view: text, markup, annotated - select for diffs
Sun Sep 24 03:53:09 2006 UTC (18 years, 7 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +4 -3
lines
Add "name" parameter to powerhook_establish, to aid debugging. No objections
on tech-kern@
Revision 1.4.4.2: download - view: text, markup, annotated - select for diffs
Sat Sep 9 02:52:17 2006 UTC (18 years, 7 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.4.4.1: preferred, colored; branchpoint 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.4.1: +1800 -0
lines
sync with head
Revision 1.3.14.1: download - view: text, markup, annotated - select for diffs
Thu Sep 7 17:07:16 2006 UTC (18 years, 7 months ago) by riz
Branches: abandoned-netbsd-4
Diff to: previous 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3: +19 -3
lines
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 - view: text, markup, annotated - select for diffs
Sun Sep 3 15:24:22 2006 UTC (18 years, 7 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.1.2.3: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.2.3: +19 -3
lines
sync with head.
Revision 1.4.4.1
Sun Sep 3 07:42:04 2006 UTC (18 years, 7 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
FILE REMOVED
Changes since revision 1.4: +0 -1800
lines
file if_nfe.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:52:17 +0000
Revision 1.4: download - view: text, markup, annotated - select for diffs
Sun Sep 3 07:42:04 2006 UTC (18 years, 7 months ago) by xtraeme
Branches: 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
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +19 -3
lines
Add support for MCP61/65 controllers... from obsd.
Revision 1.3.12.2: download - view: text, markup, annotated - select for diffs
Wed Jun 21 15:05:04 2006 UTC (18 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.3.12.1: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.12.1: +1784 -0
lines
sync with head.
Revision 1.3.6.2: download - view: text, markup, annotated - select for diffs
Sat Apr 22 11:39:14 2006 UTC (19 years ago) by simonb
Branches: simonb-timecounters
CVS tags: simonb-timcounters-final
Diff to: previous 1.3.6.1: preferred, colored; branchpoint 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3.6.1: +1784 -0
lines
Sync with head.
Revision 1.3.4.4: download - view: text, markup, annotated - select for diffs
Thu Apr 20 03:23:59 2006 UTC (19 years ago) by snj
Branches: 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
Diff to: previous 1.3.4.3: preferred, colored; branchpoint 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3.4.3: +4 -4
lines
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 - view: text, markup, annotated - select for diffs
Thu Apr 20 03:20:15 2006 UTC (19 years ago) by snj
Branches: netbsd-3
Diff to: previous 1.3.4.2: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.4.2: +5 -2
lines
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 - view: text, markup, annotated - select for diffs
Thu Apr 20 03:11:14 2006 UTC (19 years ago) by snj
Branches: netbsd-3
Diff to: previous 1.3.4.1: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.4.1: +1781 -0
lines
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 - view: text, markup, annotated - select for diffs
Wed Apr 19 03:25:35 2006 UTC (19 years ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.3.2.1: preferred, colored; branchpoint 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3.2.1: +1784 -0
lines
sync with head.
Revision 1.1.2.3: download - view: text, markup, annotated - select for diffs
Sat Apr 1 12:07:15 2006 UTC (19 years, 1 month ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.1.2.2: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.2: +7 -4
lines
sync with head.
Revision 1.2.2.1: download - view: text, markup, annotated - select for diffs
Tue Mar 28 09:42:13 2006 UTC (19 years, 1 month ago) by tron
Branches: peter-altq
Diff to: previous 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2: +4 -4
lines
Merge 2006-03-28 NetBSD-current into the "peter-altq" branch.
Revision 1.3.12.1
Sun Mar 26 00:34:14 2006 UTC (19 years, 1 month ago) by yamt
Branches: yamt-lazymbuf
FILE REMOVED
Changes since revision 1.3: +0 -1784
lines
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 (19 years, 1 month ago) by simonb
Branches: simonb-timecounters
FILE REMOVED
Changes since revision 1.3: +0 -1784
lines
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 (19 years, 1 month ago) by snj
Branches: netbsd-3
FILE REMOVED
Changes since revision 1.3: +0 -1784
lines
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 (19 years, 1 month ago) by elad
Branches: elad-kernelauth
FILE REMOVED
Changes since revision 1.3: +0 -1784
lines
file if_nfe.c was added on branch elad-kernelauth on 2006-04-19 03:25:35 +0000
Revision 1.3: download - view: text, markup, annotated - select for diffs
Sun Mar 26 00:34:14 2006 UTC (19 years, 1 month ago) by chs
Branches: 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
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +4 -4
lines
work around another mbuf leak, the hardware doesn't seem
to work quite the way that the driver expects.
Revision 1.2: download - view: text, markup, annotated - select for diffs
Thu Mar 16 17:26:13 2006 UTC (19 years, 1 month ago) by chs
Branches: MAIN
CVS tags: peter-altq-base
Branch point for: peter-altq
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +5 -2
lines
handle another difference between the BSDs:
free the original mbuf in the jumbo-free callback too.
Revision 1.1.2.2: download - view: text, markup, annotated - select for diffs
Mon Mar 13 09:07:26 2006 UTC (19 years, 1 month ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.1.2.1: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.1: +1781 -0
lines
sync with head.
Revision 1.1.2.1
Sun Mar 12 22:40:42 2006 UTC (19 years, 1 month ago) by yamt
Branches: yamt-pdpolicy
FILE REMOVED
Changes since revision 1.1: +0 -1781
lines
file if_nfe.c was added on branch yamt-pdpolicy on 2006-03-13 09:07:26 +0000
Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Mar 12 22:40:42 2006 UTC (19 years, 1 month ago) by chs
Branches: MAIN
CVS tags: yamt-pdpolicy-base2
Branch point for: yamt-pdpolicy
add nfe driver and manpage from OpenBSD.
CVSweb <webmaster@jp.NetBSD.org>