CVS log for src/sys/dev/ic/gem.c
Up to [cvs.NetBSD.org] / src / sys / dev / ic
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.137.2.1: download - view: text, markup, annotated - select for diffs
Sat Aug 2 05:56:41 2025 UTC (15 months, 2 weeks ago) by perseant
Branches: perseant-exfatfs
Diff to: previous 1.137: preferred, colored; next MAIN 1.138: preferred, colored
Changes since revision 1.137: +6 -9
lines
Sync with HEAD
Revision 1.139: download - view: text, markup, annotated - select for diffs
Sun Apr 27 16:03:16 2025 UTC (18 months, 2 weeks ago) by gson
Branches: MAIN
CVS tags: perseant-exfatfs-base-20261102,
perseant-exfatfs-base-20250801,
netbsd-11-base,
netbsd-11-1-RELEASE,
netbsd-11-0-RELEASE,
netbsd-11-0-RC7,
netbsd-11-0-RC6,
netbsd-11-0-RC5,
netbsd-11-0-RC4,
netbsd-11-0-RC3,
netbsd-11-0-RC2,
netbsd-11-0-RC1,
netbsd-11,
HEAD
Diff to: previous 1.138: preferred, colored
Changes since revision 1.138: +3 -3
lines
Replace broken link to the GEM Gigabit Ethernet ASIC Specification
with a working archive.org link.
Revision 1.138: download - view: text, markup, annotated - select for diffs
Fri Jul 5 04:31:51 2024 UTC (2 years, 4 months ago) by rin
Branches: MAIN
Diff to: previous 1.137: preferred, colored
Changes since revision 1.137: +5 -8
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.137: download - view: text, markup, annotated - select for diffs
Sat Jun 29 12:11:11 2024 UTC (2 years, 4 months ago) by riastradh
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630,
perseant-exfatfs-base
Branch point for: perseant-exfatfs
Diff to: previous 1.136: preferred, colored
Changes since revision 1.136: +5 -5
lines
if_stats(9): Add ifp argument to if_stat..._ref.
This will enable us to pass the ifp through to a dtrace probe inside.
No functional change intended in this change, but this is an API
change visible to modules so it shouldn't be pulled up.
PR kern/58377
Revision 1.136: download - view: text, markup, annotated - select for diffs
Sat Feb 10 09:30:06 2024 UTC (2 years, 9 months ago) by andvar
Branches: MAIN
Diff to: previous 1.135: preferred, colored
Changes since revision 1.135: +3 -3
lines
s/alloted/allotted/ in comments.
Revision 1.135: download - view: text, markup, annotated - select for diffs
Sun Sep 25 18:43:32 2022 UTC (4 years, 1 month ago) by thorpej
Branches: MAIN
CVS tags: thorpej-ifq-base,
thorpej-ifq,
thorpej-altq-separation-base,
thorpej-altq-separation,
netbsd-10-base,
netbsd-10-2-RELEASE,
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.134: preferred, colored
Changes since revision 1.134: +2 -3
lines
Remove unnecessary include of <sys/malloc.h>.
Revision 1.132.2.1: download - view: text, markup, annotated - select for diffs
Sat Apr 3 22:28:44 2021 UTC (5 years, 7 months ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.132: preferred, colored; next MAIN 1.133: preferred, colored
Changes since revision 1.132: +28 -14
lines
Sync with HEAD.
Revision 1.134: download - view: text, markup, annotated - select for diffs
Wed Mar 10 18:26:16 2021 UTC (5 years, 8 months ago) by christos
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-cfargs2-base,
thorpej-cfargs2,
thorpej-cfargs-base,
thorpej-cfargs,
cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x
Diff to: previous 1.133: preferred, colored
Changes since revision 1.133: +5 -5
lines
remove extra arguments
Revision 1.133: download - view: text, markup, annotated - select for diffs
Sat Jan 30 07:53:01 2021 UTC (5 years, 9 months ago) by jdc
Branches: MAIN
Diff to: previous 1.132: preferred, colored
Changes since revision 1.132: +28 -14
lines
Improve handling of receive overflows. When we get an overflow, don't
reset the chip if we are still receiving packets. Real overflows can
happen when network and CPU(s) are loaded, so the reset is not needed
in this case.
Add a counter to track receive overflows (when GEM_COUNTERS is defined).
This reverts some changes (always reset on overflow) from
PR port-sparc64/46260.
Revision 1.132: download - view: text, markup, annotated - select for diffs
Tue Sep 15 08:33:40 2020 UTC (6 years, 2 months ago) by mrg
Branches: MAIN
Branch point for: thorpej-futex
Diff to: previous 1.131: preferred, colored
Changes since revision 1.131: +4 -3
lines
mii_detach() must come before ifmedia_fini(), otherwise mii_detach()
will have a NULL mutex and fault.
this appears to have been introduced in february, and may be a problem
in other drivers converted to use ifmedia_fini(). i've only fixed the
two that were faulting for me on sunblade 2000 during reboot.
Revision 1.131: download - view: text, markup, annotated - select for diffs
Wed Jul 15 01:42:27 2020 UTC (6 years, 4 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.130: preferred, colored
Changes since revision 1.130: +4 -4
lines
G.C. comment.
Revision 1.110.2.3: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:04:21 2020 UTC (6 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.110.2.2: preferred, colored; branchpoint 1.110: preferred, colored; next MAIN 1.111: preferred, colored
Changes since revision 1.110.2.2: +1 -1
lines
Mostly merge changes from HEAD upto 20200411
Revision 1.110.2.2: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:08:06 2020 UTC (6 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.110.2.1: preferred, colored; branchpoint 1.110: preferred, colored
Changes since revision 1.110.2.1: +54 -62
lines
Merge changes from current as of 20200406
Revision 1.130: download - view: text, markup, annotated - select for diffs
Sun Mar 15 22:19:00 2020 UTC (6 years, 8 months ago) by thorpej
Branches: MAIN
CVS tags: phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
bouyer-xenpvh-base2,
bouyer-xenpvh-base1,
bouyer-xenpvh-base,
bouyer-xenpvh
Diff to: previous 1.129: preferred, colored
Changes since revision 1.129: +5 -23
lines
Don't bother with IFF_OACTIVE.
Revision 1.129: download - view: text, markup, annotated - select for diffs
Sun Mar 1 05:50:56 2020 UTC (6 years, 8 months ago) by thorpej
Branches: MAIN
CVS tags: is-mlppp-base,
is-mlppp
Diff to: previous 1.128: preferred, colored
Changes since revision 1.128: +8 -7
lines
- Support 64-bit DMA addresses for the Tx and Rx ring addresses.
- g/c and unused define.
Revision 1.124.2.1: download - view: text, markup, annotated - select for diffs
Sat Feb 29 20:19:08 2020 UTC (6 years, 8 months ago) by ad
Branches: ad-namecache
Diff to: previous 1.124: preferred, colored; next MAIN 1.125: preferred, colored
Changes since revision 1.124: +25 -17
lines
Sync with head.
Revision 1.128: download - view: text, markup, annotated - select for diffs
Fri Feb 7 00:56:48 2020 UTC (6 years, 9 months ago) by thorpej
Branches: MAIN
CVS tags: ad-namecache-base3
Diff to: previous 1.127: preferred, colored
Changes since revision 1.127: +8 -6
lines
Use callout_setfunc() / callout_schedule().
Revision 1.127: download - view: text, markup, annotated - select for diffs
Tue Feb 4 05:25:39 2020 UTC (6 years, 9 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.126: preferred, colored
Changes since revision 1.126: +3 -3
lines
Use ifmedia_fini().
Revision 1.126: download - view: text, markup, annotated - select for diffs
Wed Jan 29 21:11:38 2020 UTC (6 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.125: preferred, colored
Changes since revision 1.125: +4 -2
lines
compile without INET
Revision 1.125: download - view: text, markup, annotated - select for diffs
Wed Jan 29 14:47:08 2020 UTC (6 years, 9 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.124: preferred, colored
Changes since revision 1.124: +16 -12
lines
Adopt <net/if_stats.h>.
Revision 1.120.2.1: download - view: text, markup, annotated - select for diffs
Wed Jan 8 11:50:57 2020 UTC (6 years, 10 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-5-RELEASE,
netbsd-9-4-RELEASE,
netbsd-9-3-RELEASE,
netbsd-9-2-RELEASE,
netbsd-9-1-RELEASE,
netbsd-9-0-RELEASE,
netbsd-9-0-RC2
Diff to: previous 1.120: preferred, colored; next MAIN 1.121: preferred, colored
Changes since revision 1.120: +13 -11
lines
Pull up following revision(s) (requested by msaitoh in ticket #610):
sys/dev/ic/gem.c: revision 1.124
Fix error path in gem(4)'s TX checksum offload.
- Avoid accessing free'd m0 on error. Use m_freem() instead of m_free().
Reported by maxv@.
- Tested by martin@, macallan@ and jdc@.
Revision 1.124: download - view: text, markup, annotated - select for diffs
Tue Dec 24 05:00:19 2019 UTC (6 years, 10 months ago) by msaitoh
Branches: MAIN
CVS tags: ad-namecache-base2,
ad-namecache-base1,
ad-namecache-base
Branch point for: ad-namecache
Diff to: previous 1.123: preferred, colored
Changes since revision 1.123: +13 -11
lines
Fix error path in gem(4)'s TX checksum offload.
- Avoid accessing free'd m0 on error. Use m_freem() instead of m_free().
Reported by maxv@.
- Tested by martin@, macallan@ and jdc@.
Revision 1.123: download - view: text, markup, annotated - select for diffs
Wed Dec 4 08:21:43 2019 UTC (6 years, 11 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.122: preferred, colored
Changes since revision 1.122: +5 -6
lines
From OpenBSD:
- Fix error message.
- Whitespace fix.
Revision 1.122: download - view: text, markup, annotated - select for diffs
Wed Dec 4 08:12:03 2019 UTC (6 years, 11 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.121: preferred, colored
Changes since revision 1.121: +8 -8
lines
Rename ifm to ife for struct ifmedia_entry *. No functional change.
Revision 1.121: download - view: text, markup, annotated - select for diffs
Fri Sep 13 07:55:06 2019 UTC (7 years, 2 months ago) by msaitoh
Branches: MAIN
CVS tags: phil-wifi-20191119
Diff to: previous 1.120: preferred, colored
Changes since revision 1.120: +3 -3
lines
if_flags is neither int nor short. It's unsigned short.
Revision 1.110.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:07:10 2019 UTC (7 years, 5 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.110: preferred, colored
Changes since revision 1.110: +85 -80
lines
Sync with HEAD
Revision 1.120: download - view: text, markup, annotated - select for diffs
Tue May 28 08:59:34 2019 UTC (7 years, 5 months ago) by msaitoh
Branches: MAIN
CVS tags: phil-wifi-20190609,
netbsd-9-base,
netbsd-9-0-RC1
Branch point for: netbsd-9
Diff to: previous 1.119: preferred, colored
Changes since revision 1.119: +4 -4
lines
s/recieve/receive/
Revision 1.119: download - view: text, markup, annotated - select for diffs
Tue May 28 07:41:48 2019 UTC (7 years, 5 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.118: preferred, colored
Changes since revision 1.118: +5 -2
lines
Use ETHER_LOCK()/ETHER_UNLOCK() for all ethernet drivers to protect ec_multi*.
Revision 1.118: download - view: text, markup, annotated - select for diffs
Fri May 24 06:26:38 2019 UTC (7 years, 5 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.117: preferred, colored
Changes since revision 1.117: +3 -3
lines
Whilespace fix. No functional change.
Revision 1.117: download - view: text, markup, annotated - select for diffs
Thu May 23 10:51:39 2019 UTC (7 years, 5 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.116: preferred, colored
Changes since revision 1.116: +24 -25
lines
No functional change:
- Simplify MII structure initialization and reference.
- u_int*_t -> uint*_t.
- KNF
Revision 1.116: download - view: text, markup, annotated - select for diffs
Thu Apr 11 04:50:47 2019 UTC (7 years, 7 months ago) by msaitoh
Branches: MAIN
CVS tags: isaki-audio2-base,
isaki-audio2
Diff to: previous 1.115: preferred, colored
Changes since revision 1.115: +15 -15
lines
Fix yet another fiber mediachange fix. Not tested.
- Don't clear bits other than IFM_[FH]DX.
- Always reset PCS when any IFM_[FH]DX bit is changed.
Revision 1.115: download - view: text, markup, annotated - select for diffs
Tue Apr 9 07:23:41 2019 UTC (7 years, 7 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.114: preferred, colored
Changes since revision 1.114: +5 -5
lines
Fix a bug that media setting for fiber didn't work correctly. Not tested.
The BUGS section in gem(4) manpage says:
> BUGS
(snip)
> On the SX fibre variants of the hardware, the link will stay down if
> there is a duplex mismatch. Also, packet transmission may fail when in
> half-duplex mode.
Is the bug related to this fix?
Revision 1.114: download - view: text, markup, annotated - select for diffs
Tue Feb 5 06:17:02 2019 UTC (7 years, 9 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.113: preferred, colored
Changes since revision 1.113: +3 -4
lines
Remove very old IFF_NOTRAILERS flag.
Revision 1.109.2.4: download - view: text, markup, annotated - select for diffs
Sat Jan 26 22:00:06 2019 UTC (7 years, 9 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.109.2.3: preferred, colored; branchpoint 1.109: preferred, colored; next MAIN 1.110: preferred, colored
Changes since revision 1.109.2.3: +14 -11
lines
Sync with HEAD
Revision 1.113: download - view: text, markup, annotated - select for diffs
Tue Jan 22 03:42:26 2019 UTC (7 years, 9 months ago) by msaitoh
Branches: MAIN
CVS tags: pgoyette-compat-20190127
Diff to: previous 1.112: preferred, colored
Changes since revision 1.112: +14 -11
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.109.2.3: download - view: text, markup, annotated - select for diffs
Fri Jan 18 08:50:26 2019 UTC (7 years, 9 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.109.2.2: preferred, colored; branchpoint 1.109: preferred, colored
Changes since revision 1.109.2.2: +27 -26
lines
Synch with HEAD
Revision 1.112: download - view: text, markup, annotated - select for diffs
Wed Jan 9 07:55:23 2019 UTC (7 years, 10 months ago) by msaitoh
Branches: MAIN
CVS tags: pgoyette-compat-20190118
Diff to: previous 1.111: preferred, colored
Changes since revision 1.111: +27 -26
lines
No functional change.
- u_int{16,32}_t -> uint{16,32}_t
- KNF.
Revision 1.109.2.2: download - view: text, markup, annotated - select for diffs
Thu Sep 6 06:55:49 2018 UTC (8 years, 2 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.109.2.1: preferred, colored; branchpoint 1.109: preferred, colored
Changes since revision 1.109.2.1: +3 -3
lines
Sync with HEAD
Resolve a couple of conflicts (result of the uimin/uimax changes)
Revision 1.111: download - view: text, markup, annotated - select for diffs
Mon Sep 3 16:29:31 2018 UTC (8 years, 2 months ago) by riastradh
Branches: MAIN
CVS tags: pgoyette-compat-1226,
pgoyette-compat-1126,
pgoyette-compat-1020,
pgoyette-compat-0930,
pgoyette-compat-0906
Diff to: previous 1.110: preferred, colored
Changes since revision 1.110: +3 -3
lines
Rename min/max -> uimin/uimax for better honesty.
These functions are defined on unsigned int. The generic name
min/max should not silently truncate to 32 bits on 64-bit systems.
This is purely a name change -- no functional change intended.
HOWEVER! Some subsystems have
#define min(a, b) ((a) < (b) ? (a) : (b))
#define max(a, b) ((a) > (b) ? (a) : (b))
even though our standard name for that is MIN/MAX. Although these
may invite multiple evaluation bugs, these do _not_ cause integer
truncation.
To avoid `fixing' these cases, I first changed the name in libkern,
and then compile-tested every file where min/max occurred in order to
confirm that it failed -- and thus confirm that nothing shadowed
min/max -- before changing it.
I have left a handful of bootloaders that are too annoying to
compile-test, and some dead code:
cobalt ews4800mips hp300 hppa ia64 luna68k vax
acorn32/if_ie.c (not included in any kernels)
macppc/if_gm.c (superseded by gem(4))
It should be easy to fix the fallout once identified -- this way of
doing things fails safe, and the goal here, after all, is to _avoid_
silent integer truncations, not introduce them.
Maybe one day we can reintroduce min/max as type-generic things that
never silently truncate. But we should avoid doing that for a while,
so that existing code has a chance to be detected by the compiler for
conversion to uimin/uimax without changing the semantics until we can
properly audit it all. (Who knows, maybe in some cases integer
truncation is actually intended!)
Revision 1.109.2.1: download - view: text, markup, annotated - select for diffs
Sat Jul 28 04:37:45 2018 UTC (8 years, 3 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.109: preferred, colored
Changes since revision 1.109: +3 -3
lines
Sync with HEAD
Revision 1.110: download - view: text, markup, annotated - select for diffs
Tue Jun 26 06:48:00 2018 UTC (8 years, 4 months ago) by msaitoh
Branches: MAIN
CVS tags: phil-wifi-base,
pgoyette-compat-0728,
jdolecek-ncqfixes-base,
jdolecek-ncqfixes
Branch point for: phil-wifi
Diff to: previous 1.109: preferred, colored
Changes since revision 1.109: +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.109: download - view: text, markup, annotated - select for diffs
Wed Feb 28 23:08:30 2018 UTC (8 years, 8 months ago) by macallan
Branches: MAIN
CVS tags: 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.108: preferred, colored
Changes since revision 1.108: +4 -3
lines
add workaround for PHY detection on Apple K2 GMAC
adapted from openbsd
Revision 1.100.2.3: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:37:03 2017 UTC (8 years, 11 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.100.2.2: preferred, colored; branchpoint 1.100: preferred, colored; next MAIN 1.101: preferred, colored
Changes since revision 1.100.2.2: +17 -15
lines
update from HEAD
Revision 1.102.4.6: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:52:03 2017 UTC (9 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.102.4.5: preferred, colored; branchpoint 1.102: preferred, colored; next MAIN 1.103: preferred, colored
Changes since revision 1.102.4.5: +4 -3
lines
Sync with HEAD
Revision 1.107.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 21 16:53:46 2017 UTC (9 years, 6 months ago) by bouyer
Branches: bouyer-socketcan
Diff to: previous 1.107: preferred, colored; next MAIN 1.108: preferred, colored
Changes since revision 1.107: +4 -3
lines
Sync with HEAD
Revision 1.106.2.2: download - view: text, markup, annotated - select for diffs
Mon Mar 20 06:57:28 2017 UTC (9 years, 7 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.106.2.1: preferred, colored; branchpoint 1.106: preferred, colored; next MAIN 1.107: preferred, colored
Changes since revision 1.106.2.1: +4 -3
lines
Sync with HEAD
Revision 1.108: download - view: text, markup, annotated - select for diffs
Mon Feb 20 07:43:29 2017 UTC (9 years, 8 months ago) by ozaki-r
Branches: MAIN
CVS tags: tls-maxphys-base-20171202,
prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
prg-localcount2,
pgoyette-localcount-20170426,
pgoyette-localcount-20170320,
perseant-stdc-iso10646-base,
perseant-stdc-iso10646,
nick-nhusb-base-20170825,
netbsd-8-base,
netbsd-8-3-RELEASE,
netbsd-8-2-RELEASE,
netbsd-8-1-RELEASE,
netbsd-8-1-RC1,
netbsd-8-0-RELEASE,
netbsd-8-0-RC2,
netbsd-8-0-RC1,
netbsd-8,
matt-nb8-mediatek-base,
matt-nb8-mediatek,
jdolecek-ncq-base,
jdolecek-ncq,
bouyer-socketcan-base1
Diff to: previous 1.107: preferred, colored
Changes since revision 1.107: +4 -3
lines
Apply deferred if_start to more drivers
Revision 1.102.4.5: download - view: text, markup, annotated - select for diffs
Sun Feb 5 13:40:28 2017 UTC (9 years, 9 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.102.4.4: preferred, colored; branchpoint 1.102: preferred, colored
Changes since revision 1.102.4.4: +2 -9
lines
Sync with HEAD
Revision 1.106.2.1: download - view: text, markup, annotated - select for diffs
Sat Jan 7 08:56:31 2017 UTC (9 years, 10 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.106: preferred, colored
Changes since revision 1.106: +2 -9
lines
Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
Revision 1.107: download - view: text, markup, annotated - select for diffs
Thu Dec 15 09:28:05 2016 UTC (9 years, 11 months ago) by ozaki-r
Branches: MAIN
CVS tags: pgoyette-localcount-20170107,
nick-nhusb-base-20170204,
bouyer-socketcan-base
Branch point for: bouyer-socketcan
Diff to: previous 1.106: preferred, colored
Changes since revision 1.106: +2 -9
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.98.2.2: download - view: text, markup, annotated - select for diffs
Sat Aug 27 14:04:25 2016 UTC (10 years, 2 months ago) by bouyer
Branches: netbsd-6
Diff to: previous 1.98.2.1: preferred, colored; branchpoint 1.98: preferred, colored; next MAIN 1.99: preferred, colored
Changes since revision 1.98.2.1: +12 -6
lines
Pull up following revision(s) (requested by jdc in ticket #1384):
sys/dev/ic/gem.c: revision 1.105
PR kern/46083
Track the start of each packet, so that we set the "Start of Frame" bit in
all the relevant transmit descriptors when enqueing multiple packets.
Patch from Valery Ushakov, slightly modified by me to handle debug output.
Tested on macppc/6.x and sparc64/7.99.x.
Revision 1.102.4.4: download - view: text, markup, annotated - select for diffs
Sat Jul 9 20:25:02 2016 UTC (10 years, 4 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.102.4.3: preferred, colored; branchpoint 1.102: preferred, colored
Changes since revision 1.102.4.3: +3 -3
lines
Sync with HEAD
Revision 1.106: download - view: text, markup, annotated - select for diffs
Fri Jun 10 13:27:13 2016 UTC (10 years, 5 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.105: preferred, colored
Changes since revision 1.105: +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.102.4.3: download - view: text, markup, annotated - select for diffs
Sun May 29 08:44:21 2016 UTC (10 years, 5 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.102.4.2: preferred, colored; branchpoint 1.102: preferred, colored
Changes since revision 1.102.4.2: +12 -6
lines
Sync with HEAD
Revision 1.102.6.1: download - view: text, markup, annotated - select for diffs
Sun May 22 10:25:52 2016 UTC (10 years, 5 months ago) by martin
Branches: netbsd-7-0
CVS tags: netbsd-7-0-2-RELEASE,
netbsd-7-0-1-RELEASE
Diff to: previous 1.102: preferred, colored; next MAIN 1.103: preferred, colored
Changes since revision 1.102: +12 -6
lines
Pull up following revision(s) (requested by jdc in ticket #1170):
sys/dev/ic/gem.c: revision 1.105
PR kern/46083
Track the start of each packet, so that we set the "Start of Frame" bit in
all the relevant transmit descriptors when enqueing multiple packets.
Patch from Valery Ushakov, slightly modified by me to handle debug output.
Tested on macppc/6.x and sparc64/7.99.x.
Revision 1.102.2.1: download - view: text, markup, annotated - select for diffs
Sun May 22 10:24:50 2016 UTC (10 years, 5 months ago) by martin
Branches: netbsd-7
CVS tags: netbsd-7-nhusb-base-20170116,
netbsd-7-nhusb-base,
netbsd-7-nhusb,
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
Diff to: previous 1.102: preferred, colored; next MAIN 1.103: preferred, colored
Changes since revision 1.102: +12 -6
lines
Pull up following revision(s) (requested by jdc in ticket #1170):
sys/dev/ic/gem.c: revision 1.105
PR kern/46083
Track the start of each packet, so that we set the "Start of Frame" bit in
all the relevant transmit descriptors when enqueing multiple packets.
Patch from Valery Ushakov, slightly modified by me to handle debug output.
Tested on macppc/6.x and sparc64/7.99.x.
Revision 1.105: download - view: text, markup, annotated - select for diffs
Tue May 17 14:44:53 2016 UTC (10 years, 6 months ago) by jdc
Branches: MAIN
CVS tags: nick-nhusb-base-20160529
Diff to: previous 1.104: preferred, colored
Changes since revision 1.104: +12 -6
lines
PR kern/46083
Track the start of each packet, so that we set the "Start of Frame" bit in
all the relevant transmit descriptors when enqueing multiple packets.
Patch from Valery Ushakov, slightly modified by me to handle debug output.
Tested on macppc/6.x and sparc64/7.99.x.
Revision 1.102.4.2: download - view: text, markup, annotated - select for diffs
Sat Mar 19 11:30:09 2016 UTC (10 years, 8 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.102.4.1: preferred, colored; branchpoint 1.102: preferred, colored
Changes since revision 1.102.4.1: +3 -3
lines
Sync with HEAD
Revision 1.104: download - view: text, markup, annotated - select for diffs
Tue Feb 9 08:32:10 2016 UTC (10 years, 9 months ago) by ozaki-r
Branches: MAIN
CVS tags: nick-nhusb-base-20160422,
nick-nhusb-base-20160319
Diff to: previous 1.103: preferred, colored
Changes since revision 1.103: +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.102.4.1: download - view: text, markup, annotated - select for diffs
Tue Sep 22 12:05:58 2015 UTC (11 years, 1 month ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.102: preferred, colored
Changes since revision 1.102: +5 -3
lines
Sync with HEAD
Revision 1.103: download - view: text, markup, annotated - select for diffs
Sun Aug 30 04:17:48 2015 UTC (11 years, 2 months ago) by dholland
Branches: MAIN
CVS tags: nick-nhusb-base-20151226,
nick-nhusb-base-20150921
Diff to: previous 1.102: preferred, colored
Changes since revision 1.102: +5 -3
lines
Restore interrupts on error path. From maxv's brainy list.
Revision 1.100.2.2: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:03:38 2014 UTC (12 years, 2 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.100.2.1: preferred, colored; branchpoint 1.100: preferred, colored
Changes since revision 1.100.2.1: +3 -3
lines
Rebase to HEAD as of a few days ago.
Revision 1.102: download - view: text, markup, annotated - select for diffs
Sun Aug 10 16:44:35 2014 UTC (12 years, 3 months ago) by tls
Branches: MAIN
CVS tags: tls-maxphys-base,
nick-nhusb-base-20150606,
nick-nhusb-base-20150406,
nick-nhusb-base,
netbsd-7-base,
netbsd-7-0-RELEASE,
netbsd-7-0-RC3,
netbsd-7-0-RC2,
netbsd-7-0-RC1
Branch point for: nick-nhusb,
netbsd-7-0,
netbsd-7
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +3 -3
lines
Merge tls-earlyentropy branch into HEAD.
Revision 1.97.4.3: download - view: text, markup, annotated - select for diffs
Thu May 22 11:40:22 2014 UTC (12 years, 5 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.97.4.2: preferred, colored; branchpoint 1.97: preferred, colored; next MAIN 1.98: preferred, colored
Changes since revision 1.97.4.2: +3 -2
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.101.10.1: download - view: text, markup, annotated - select for diffs
Mon Apr 7 03:37:32 2014 UTC (12 years, 7 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.101: preferred, colored; next MAIN 1.102: preferred, colored
Changes since revision 1.101: +3 -3
lines
Be a little more clear and consistent about harvesting entropy from devices:
1) deprecate RND_FLAG_NO_ESTIMATE
2) define RND_FLAG_COLLECT_TIME, RND_FLAG_COLLECT_VALUE
3) define RND_FLAG_ESTIMATE_TIME, RND_FLAG_ESTIMATE_VALUE
4) define RND_FLAG_DEFAULT: RND_FLAG_COLLECT_TIME|
RND_FLAG_COLLECT_VALUE|RND_FLAG_ESTIMATE_TIME
5) Make entropy harvesting from environmental sensors a little more generic
and remove it from individual sensor drivers.
6) Remove individual open-coded delta-estimators for values from a few
places in the tree (uvm, environmental drivers).
7) 0 -> RND_FLAG_DEFAULT, actually gather entropy from various drivers
that had stubbed out code, other minor cleanups.
Revision 1.100.2.1: download - view: text, markup, annotated - select for diffs
Mon Feb 25 00:29:14 2013 UTC (13 years, 8 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +3 -2
lines
resync with head
Revision 1.101: download - view: text, markup, annotated - select for diffs
Mon Feb 4 18:29:55 2013 UTC (13 years, 9 months ago) by jdc
Branches: MAIN
CVS tags: yamt-pagecache-base9,
tls-earlyentropy-base,
rmind-smpnet-nbase,
rmind-smpnet-base,
rmind-smpnet,
riastradh-xf86-video-intel-2-7-1-pre-2-21-15,
riastradh-drm2-base3,
riastradh-drm2-base2,
riastradh-drm2-base1,
riastradh-drm2-base,
riastradh-drm2,
khorben-n900,
agc-symver-base,
agc-symver
Branch point for: tls-earlyentropy
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +3 -2
lines
Halt the RX watchdog callout when stopping.
Revision 1.97.4.2: download - view: text, markup, annotated - select for diffs
Tue Oct 30 17:21:02 2012 UTC (14 years ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.97.4.1: preferred, colored; branchpoint 1.97: preferred, colored
Changes since revision 1.97.4.1: +81 -9
lines
sync with head
Revision 1.78.4.3: download - view: text, markup, annotated - select for diffs
Sat Sep 15 09:32:36 2012 UTC (14 years, 2 months ago) by bouyer
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
Diff to: previous 1.78.4.2: preferred, colored; branchpoint 1.78: preferred, colored; next MAIN 1.79: preferred, colored
Changes since revision 1.78.4.2: +78 -6
lines
Pull up following revision(s) (requested by jdc in ticket #1789):
sys/dev/ic/gem.c: revision 1.99 via patch
sys/dev/ic/gemvar.h: revision 1.24 via patch
sys/dev/ic/gemreg.h: revision 1.15 via patch
Apply lockup fixes from Havard Eidnes/OpenBSD in PR port-sparc64/46260:
- add an additional watchdog for RX overflow
- re-initialise the chip on device timeout
Also alter the interrupt blanking rate to 8 packets, as per OpenSolaris.
Revision 1.100: download - view: text, markup, annotated - select for diffs
Sun Jul 22 14:32:57 2012 UTC (14 years, 3 months ago) by matt
Branches: MAIN
CVS tags: yamt-pagecache-base8,
yamt-pagecache-base7,
yamt-pagecache-base6
Branch point for: tls-maxphys
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +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.98.2.1: download - view: text, markup, annotated - select for diffs
Thu Jul 5 17:59:12 2012 UTC (14 years, 4 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,
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
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +78 -6
lines
Pull up following revision(s) (requested by jdc in ticket #401):
sys/dev/ic/gem.c: revision 1.99
sys/dev/ic/gemvar.h: revision 1.24
sys/dev/ic/gemreg.h: revision 1.15
Apply lockup fixes from Havard Eidnes/OpenBSD in PR port-sparc64/46260:
- add an additional watchdog for RX overflow
- re-initialise the chip on device timeout
Also alter the interrupt blanking rate to 8 packets, as per OpenSolaris.
Revision 1.99: download - view: text, markup, annotated - select for diffs
Mon Jul 2 11:23:40 2012 UTC (14 years, 4 months ago) by jdc
Branches: MAIN
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +78 -6
lines
Apply lockup fixes from Havard Eidnes/OpenBSD in PR port-sparc64/46260:
- add an additional watchdog for RX overflow
- re-initialise the chip on device timeout
Also alter the interrupt blanking rate to 8 packets, as per OpenSolaris.
Revision 1.97.4.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:07:33 2012 UTC (14 years, 7 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +2 -8
lines
sync with head
Revision 1.97.8.1: download - view: text, markup, annotated - select for diffs
Sat Feb 18 07:34:18 2012 UTC (14 years, 9 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.97: preferred, colored; next MAIN 1.98: preferred, colored
Changes since revision 1.97: +2 -8
lines
merge to -current.
Revision 1.98: download - view: text, markup, annotated - select for diffs
Thu Feb 2 19:43:03 2012 UTC (14 years, 9 months ago) by tls
Branches: MAIN
CVS tags: yamt-pagecache-base5,
yamt-pagecache-base4,
netbsd-6-base,
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.97: preferred, colored
Changes since revision 1.97: +2 -8
lines
Entropy-pool implementation move and cleanup.
1) Move core entropy-pool code and source/sink/sample management code
to sys/kern from sys/dev.
2) Remove use of NRND as test for presence of entropy-pool code throughout
source tree.
3) Remove use of RND_ENABLED in device drivers as microoptimization to
avoid expensive operations on disabled entropy sources; make the
rnd_add calls do this directly so all callers benefit.
4) Fix bug in recent rnd_add_data()/rnd_add_uint32() changes that might
have lead to slight entropy overestimation for some sources.
5) Add new source types for environmental sensors, power sensors, VM
system events, and skew between clocks, with a sample implementation
for each.
ok releng to go in before the branch due to the difficulty of later
pullup (widespread #ifdef removal and moved files). Tested with release
builds on amd64 and evbarm and live testing on amd64.
Revision 1.78.6.1: download - view: text, markup, annotated - select for diffs
Sat Jun 18 16:40:43 2011 UTC (15 years, 5 months ago) by bouyer
Branches: netbsd-5-0
Diff to: previous 1.78: preferred, colored; next MAIN 1.79: preferred, colored
Changes since revision 1.78: +9 -10
lines
Pull up following revision(s) (requested by jdc in ticket #1632):
sys/dev/ic/gem.c: revision 1.97
Fix corrupted packet problem on 100Mb/s half duplex links.
We need to set "echo disable" on the internal phy too, not just on the
external phy.
Tested on:
SUNW,Sun-Blade-2000
gem0 at pci0 dev 5 function 1: Sun Microsystems ERI Ethernet (rev. 0x01)
ukphy0 at gem0 phy 1: OUI 0x0006b8, model 0x000c, rev. 1
Setting pointed out by bad@.
Revision 1.78.4.1.2.1: download - view: text, markup, annotated - select for diffs
Sat Jun 18 16:40:39 2011 UTC (15 years, 5 months ago) by bouyer
Branches: netbsd-5-1
CVS tags: 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
Diff to: previous 1.78.4.1: preferred, colored; next MAIN 1.78.4.2: preferred, colored
Changes since revision 1.78.4.1: +9 -10
lines
Pull up following revision(s) (requested by jdc in ticket #1632):
sys/dev/ic/gem.c: revision 1.97
Fix corrupted packet problem on 100Mb/s half duplex links.
We need to set "echo disable" on the internal phy too, not just on the
external phy.
Tested on:
SUNW,Sun-Blade-2000
gem0 at pci0 dev 5 function 1: Sun Microsystems ERI Ethernet (rev. 0x01)
ukphy0 at gem0 phy 1: OUI 0x0006b8, model 0x000c, rev. 1
Setting pointed out by bad@.
Revision 1.78.4.2: download - view: text, markup, annotated - select for diffs
Sat Jun 18 16:40:31 2011 UTC (15 years, 5 months ago) by bouyer
Branches: netbsd-5
Diff to: previous 1.78.4.1: preferred, colored; branchpoint 1.78: preferred, colored
Changes since revision 1.78.4.1: +9 -10
lines
Pull up following revision(s) (requested by jdc in ticket #1632):
sys/dev/ic/gem.c: revision 1.97
Fix corrupted packet problem on 100Mb/s half duplex links.
We need to set "echo disable" on the internal phy too, not just on the
external phy.
Tested on:
SUNW,Sun-Blade-2000
gem0 at pci0 dev 5 function 1: Sun Microsystems ERI Ethernet (rev. 0x01)
ukphy0 at gem0 phy 1: OUI 0x0006b8, model 0x000c, rev. 1
Setting pointed out by bad@.
Revision 1.96.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 6 09:07:52 2011 UTC (15 years, 5 months ago) by jruoho
Branches: jruoho-x86intr
Diff to: previous 1.96: preferred, colored; next MAIN 1.97: preferred, colored
Changes since revision 1.96: +9 -10
lines
Sync with HEAD.
Revision 1.93.2.3: download - view: text, markup, annotated - select for diffs
Tue May 31 03:04:36 2011 UTC (15 years, 5 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.93.2.2: preferred, colored; branchpoint 1.93: preferred, colored; next MAIN 1.94: preferred, colored
Changes since revision 1.93.2.2: +7 -8
lines
sync with head
Revision 1.97: download - view: text, markup, annotated - select for diffs
Sun May 22 11:19:23 2011 UTC (15 years, 5 months ago) by jdc
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
Branch point for: yamt-pagecache,
jmcneill-usbmp
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +9 -10
lines
Fix corrupted packet problem on 100Mb/s half duplex links.
We need to set "echo disable" on the internal phy too, not just on the
external phy.
Tested on:
SUNW,Sun-Blade-2000
gem0 at pci0 dev 5 function 1: Sun Microsystems ERI Ethernet (rev. 0x01)
ukphy0 at gem0 phy 1: OUI 0x0006b8, model 0x000c, rev. 1
Setting pointed out by bad@.
Revision 1.93.2.2: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:53:15 2011 UTC (15 years, 8 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.93.2.1: preferred, colored; branchpoint 1.93: preferred, colored
Changes since revision 1.93.2.1: +2 -4
lines
sync with head
Revision 1.96: download - view: text, markup, annotated - select for diffs
Sat Nov 13 13:52:01 2010 UTC (16 years ago) by uebayasi
Branches: MAIN
CVS tags: matt-mips64-premerge-20101231,
jruoho-x86intr-base,
bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2
Branch point for: jruoho-x86intr
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +2 -4
lines
Don't pull in the whole uvm(9) API to access only PAGE_SIZE and
some other constants. These are provided by sys/param.h now.
Revision 1.92.2.2: download - view: text, markup, annotated - select for diffs
Tue Aug 17 06:46:09 2010 UTC (16 years, 3 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.92.2.1: preferred, colored; branchpoint 1.92: preferred, colored; next MAIN 1.93: preferred, colored
Changes since revision 1.92.2.1: +1 -1
lines
Sync with HEAD.
Revision 1.76.4.6: download - view: text, markup, annotated - select for diffs
Wed Aug 11 22:53:25 2010 UTC (16 years, 3 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.76.4.5: preferred, colored; branchpoint 1.76: preferred, colored; next MAIN 1.77: preferred, colored
Changes since revision 1.76.4.5: +5 -7
lines
sync with head.
Revision 1.93.2.1: download - view: text, markup, annotated - select for diffs
Sun May 30 05:17:22 2010 UTC (16 years, 5 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +5 -7
lines
sync with head
Revision 1.95: download - view: text, markup, annotated - select for diffs
Wed May 12 10:25:23 2010 UTC (16 years, 6 months ago) by martin
Branches: MAIN
CVS tags: yamt-nfs-mp-base11,
yamt-nfs-mp-base10,
uebayasi-xip-base4,
uebayasi-xip-base3,
uebayasi-xip-base2
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +3 -3
lines
Use callout_halt() instead of callout_stop() - otherwise gem_detach() might
be too fast and run callout_destroy() while another cpu is still busy
in the callout.
Revision 1.92.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 30 14:43:15 2010 UTC (16 years, 6 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +6 -8
lines
Sync with HEAD.
Revision 1.78.8.1: download - view: text, markup, annotated - select for diffs
Wed Apr 21 00:27:36 2010 UTC (16 years, 7 months ago) by matt
Branches: matt-nb5-mips64
CVS tags: matt-nb5-mips64-premerge-20101231,
matt-nb5-mips64-k15
Diff to: previous 1.78: preferred, colored; next MAIN 1.79: preferred, colored
Changes since revision 1.78: +4 -5
lines
sync to netbsd-5
Revision 1.94: download - view: text, markup, annotated - select for diffs
Mon Apr 5 07:19:34 2010 UTC (16 years, 7 months ago) by joerg
Branches: MAIN
CVS tags: uebayasi-xip-base1
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +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.76.4.5: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:03:30 2010 UTC (16 years, 8 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.76.4.4: preferred, colored; branchpoint 1.76: preferred, colored
Changes since revision 1.76.4.4: +68 -51
lines
sync with head
Revision 1.93: download - view: text, markup, annotated - select for diffs
Wed Feb 24 22:37:58 2010 UTC (16 years, 8 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-nfs-mp-base9
Branch point for: rmind-uvmplock
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +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.92: download - view: text, markup, annotated - select for diffs
Tue Jan 19 22:06:24 2010 UTC (16 years, 10 months ago) by pooka
Branches: MAIN
CVS tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +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.91: download - view: text, markup, annotated - select for diffs
Mon Jan 11 09:30:41 2010 UTC (16 years, 10 months ago) by jdc
Branches: MAIN
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +5 -2
lines
Mask out (disable) gem interrupts on detach.
Revision 1.90: download - view: text, markup, annotated - select for diffs
Fri Jan 8 20:02:39 2010 UTC (16 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +4 -4
lines
Expand PMF_FN_* macros.
Revision 1.89: download - view: text, markup, annotated - select for diffs
Sat Dec 5 16:43:25 2009 UTC (16 years, 11 months ago) by jdc
Branches: MAIN
CVS tags: matt-premerge-20091211
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +51 -28
lines
Really prefer the external over the internal PHY by checking only that
PHY address first. Avoid problem with bogus ukphy's attaching on the
internal PHY of the SB1000.
Also, take some quirks for internal, external or either MII PHY from
the OpenBSD driver.
Revision 1.88: download - view: text, markup, annotated - select for diffs
Fri Dec 4 22:13:26 2009 UTC (16 years, 11 months ago) by martin
Branches: MAIN
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +5 -5
lines
Properly detach phys
Revision 1.87: download - view: text, markup, annotated - select for diffs
Fri Dec 4 13:35:56 2009 UTC (16 years, 11 months ago) by jdc
Branches: MAIN
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +5 -4
lines
Only set 0x4FF in the transmit register for gigabit variants. Set 0x100
otherwise.
Revision 1.86: download - view: text, markup, annotated - select for diffs
Fri Dec 4 11:55:01 2009 UTC (16 years, 11 months ago) by martin
Branches: MAIN
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +10 -13
lines
Fix a few nits in gem_detach:
Shuffle some bus_dmamem_ operations around, so they actually clean up
in the correct order.
Do not destroy a callout that might be stopped by if_detach later.
When detaching child devices fails, we have passed the point of no return
already, so complete our own cleanup and return the error in the end.
This happens for example when we have been unable to accomodate all phy
devices at attach time (and this is a separate bug).
Revision 1.76.4.4: download - view: text, markup, annotated - select for diffs
Wed Aug 19 18:47:06 2009 UTC (17 years, 3 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.76.4.3: preferred, colored; branchpoint 1.76: preferred, colored
Changes since revision 1.76.4.3: +273 -209
lines
sync with head.
Revision 1.85: download - view: text, markup, annotated - select for diffs
Mon Jul 27 18:10:53 2009 UTC (17 years, 3 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-nfs-mp-base8,
yamt-nfs-mp-base7,
jym-xensuspend-nbase
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +273 -209
lines
Do a complete device_t/softc split for the PCI attachment. I have
not finished the device_t/softc split for the SBus attachment
because I don't have an SBus gem(4) to test with.
Convert from legacy shutdownhooks to a PMF shutdown hook. Add PMF
suspend/resume handlers.
Factor a detachment hook out of gem_attach(). During device
attachment, track which resources are reserved in sc_attach_state,
and release only those resources during detachment.
Tested on gem0 and gem1 at pci1 on a Sun Fire V120.
Revision 1.76.4.3: download - view: text, markup, annotated - select for diffs
Sat May 16 10:41:23 2009 UTC (17 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.76.4.2: preferred, colored; branchpoint 1.76: preferred, colored
Changes since revision 1.76.4.2: +8 -8
lines
sync with head
Revision 1.80.2.1: download - view: text, markup, annotated - select for diffs
Wed May 13 17:19:22 2009 UTC (17 years, 6 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.80: preferred, colored; next MAIN 1.81: preferred, colored
Changes since revision 1.80: +23 -48
lines
Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
Revision 1.84: download - view: text, markup, annotated - select for diffs
Tue May 12 14:25:17 2009 UTC (17 years, 6 months ago) by cegger
Branches: MAIN
CVS tags: yamt-nfs-mp-base6,
yamt-nfs-mp-base5,
yamt-nfs-mp-base4,
jymxensuspend-base,
jym-xensuspend-base
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +8 -8
lines
struct device * -> device_t, no functional changes intended.
Revision 1.76.4.2: download - view: text, markup, annotated - select for diffs
Mon May 4 08:12:41 2009 UTC (17 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.76.4.1: preferred, colored; branchpoint 1.76: preferred, colored
Changes since revision 1.76.4.1: +56 -77
lines
sync with head.
Revision 1.78.4.1: download - view: text, markup, annotated - select for diffs
Fri May 1 01:56:16 2009 UTC (17 years, 6 months ago) by snj
Branches: netbsd-5
CVS tags: netbsd-5-1-RELEASE,
netbsd-5-1-RC4,
netbsd-5-1-RC3,
netbsd-5-1-RC2,
netbsd-5-1-RC1,
matt-nb5-pq3-base,
matt-nb5-pq3
Branch point for: netbsd-5-1
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +4 -5
lines
Pull up following revision(s) (requested by tsutsui in ticket #595):
sys/dev/ic/gem.c: revision 1.83
sys/dev/ic/hme.c: revision 1.73
Fix a bug in calculation of checksum deduction:
- To get 16 bit one's complement value from uint32_t variable,
higher 16 bits should be ignored.
- RFC 1624 describes methods to recalculate checksum field in headers,
i.e. one's complement of one's complement sum that could be 0x0000,
but we don't have to use the strategy to deduct one's complement sum
itself which won't be zero but should be 0xffff.
Found on debugging mec(4) on sgimips O2.
Revision 1.78.2.2: download - view: text, markup, annotated - select for diffs
Tue Apr 28 07:35:26 2009 UTC (17 years, 6 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.78.2.1: preferred, colored; branchpoint 1.78: preferred, colored; next MAIN 1.79: preferred, colored
Changes since revision 1.78.2.1: +20 -45
lines
Sync with HEAD.
Revision 1.83: download - view: text, markup, annotated - select for diffs
Mon Mar 16 12:02:00 2009 UTC (17 years, 8 months ago) by tsutsui
Branches: MAIN
CVS tags: yamt-nfs-mp-base3,
nick-hppapmap-base4,
nick-hppapmap-base3,
nick-hppapmap-base
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +4 -5
lines
Fix a bug in calculation of checksum deduction:
- To get 16 bit one's complement value from uint32_t variable,
higher 16 bits should be ignored.
- RFC 1624 describes methods to recalculate checksum field in headers,
i.e. one's complement of one's complement sum that could be 0x0000,
but we don't have to use the strategy to deduct one's complement sum
itself which won't be zero but should be 0xffff.
Found on debugging mec(4) on sgimips O2.
Revision 1.82: download - view: text, markup, annotated - select for diffs
Sat Mar 14 21:04:19 2009 UTC (17 years, 8 months ago) by dsl
Branches: MAIN
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +4 -8
lines
ANSIfy another 1261 function definitions.
The only ones left in sys are beyond by sed script!
(or in sys/dist or sys/external)
Mostly they have function pointer parameters.
Revision 1.81: download - view: text, markup, annotated - select for diffs
Sat Mar 14 15:36:17 2009 UTC (17 years, 8 months ago) by dsl
Branches: MAIN
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +16 -36
lines
Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
Revision 1.78.2.1: download - view: text, markup, annotated - select for diffs
Mon Jan 19 13:17:55 2009 UTC (17 years, 10 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +29 -29
lines
Sync with HEAD.
Revision 1.74.6.4: download - view: text, markup, annotated - select for diffs
Sat Jan 17 13:28:55 2009 UTC (17 years, 10 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.74.6.3: preferred, colored; branchpoint 1.74: preferred, colored; next MAIN 1.75: preferred, colored
Changes since revision 1.74.6.3: +27 -27
lines
Sync with HEAD.
Revision 1.80: download - view: text, markup, annotated - select for diffs
Tue Dec 16 22:35:30 2008 UTC (17 years, 11 months ago) by christos
Branches: MAIN
CVS tags: nick-hppapmap-base2,
mjf-devfs2-base
Branch point for: jym-xensuspend
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +10 -7
lines
replace bitmask_snprintf(9) with snprintb(3)
Revision 1.77.6.2: download - view: text, markup, annotated - select for diffs
Sat Dec 13 01:14:14 2008 UTC (17 years, 11 months ago) by haad
Branches: haad-dm
Diff to: previous 1.77.6.1: preferred, colored; branchpoint 1.77: preferred, colored; next MAIN 1.78: preferred, colored
Changes since revision 1.77.6.1: +21 -24
lines
Update haad-dm branch to haad-dm-base2.
Revision 1.79: download - view: text, markup, annotated - select for diffs
Fri Nov 7 00:20:02 2008 UTC (18 years ago) by dyoung
Branches: MAIN
CVS tags: haad-nbase2,
haad-dm-base2,
haad-dm-base,
ad-audiomp2-base,
ad-audiomp2
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +21 -24
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.77.6.1: download - view: text, markup, annotated - select for diffs
Sun Oct 19 22:16:26 2008 UTC (18 years, 1 month ago) by haad
Branches: haad-dm
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +11 -7
lines
Sync with HEAD.
Revision 1.74.6.3: download - view: text, markup, annotated - select for diffs
Sun Sep 28 10:40:23 2008 UTC (18 years, 1 month ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.74.6.2: preferred, colored; branchpoint 1.74: preferred, colored
Changes since revision 1.74.6.2: +9 -5
lines
Sync with HEAD.
Revision 1.77.2.1: download - view: text, markup, annotated - select for diffs
Wed Sep 24 16:38:52 2008 UTC (18 years, 1 month ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.77: preferred, colored; next MAIN 1.78: preferred, colored
Changes since revision 1.77: +11 -7
lines
Merge in changes between wrstuden-revivesa-base-2 and
wrstuden-revivesa-base-3.
Revision 1.78: download - view: text, markup, annotated - select for diffs
Mon Sep 15 19:50:28 2008 UTC (18 years, 2 months ago) by jdc
Branches: MAIN
CVS tags: wrstuden-revivesa-base-4,
wrstuden-revivesa-base-3,
netbsd-5-base,
netbsd-5-0-RELEASE,
netbsd-5-0-RC4,
netbsd-5-0-RC3,
netbsd-5-0-RC2,
netbsd-5-0-RC1,
netbsd-5-0-2-RELEASE,
netbsd-5-0-1-RELEASE,
matt-nb5-mips64-u2-k2-k4-k7-k8-k9,
matt-nb5-mips64-u1-k1-k5,
matt-nb5-mips64-premerge-20091211,
matt-nb4-mips64-k7-u2a-k9b,
matt-mips64-base2,
haad-dm-base1
Branch point for: nick-hppapmap,
netbsd-5-0,
netbsd-5,
matt-nb5-mips64
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +11 -7
lines
Read the correct error status register on SBus cards.
Don't set infinite burst on SBus cards.
Changes based on information in the `Sbus GEM Specification':
http://mediacast.sun.com/users/Barton808/media/gem_sbus-1.pdf
SBus-based GEM cards (i.e. Sun X1140A) now work!
Tested with a X1140A card in a U1 and in a U2.
Thanks for martin@ for testing.
Revision 1.52.8.1: download - view: text, markup, annotated - select for diffs
Tue Jun 3 20:47:19 2008 UTC (18 years, 5 months ago) by skrll
Branches: wrstuden-fixsa
Diff to: previous 1.52: preferred, colored; next MAIN 1.53: preferred, colored
Changes since revision 1.52: +787 -320
lines
Sync with netbsd-4.
Revision 1.74.6.2: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:23:21 2008 UTC (18 years, 5 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.74.6.1: preferred, colored; branchpoint 1.74: preferred, colored
Changes since revision 1.74.6.1: +100 -119
lines
Sync with HEAD.
Revision 1.76.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:33:42 2008 UTC (18 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.76: preferred, colored; next MAIN 1.77: preferred, colored
Changes since revision 1.76: +3 -3
lines
sync with head.
Revision 1.52.2.1: download - view: text, markup, annotated - select for diffs
Sat May 17 16:36:08 2008 UTC (18 years, 6 months ago) by bouyer
Branches: netbsd-4
CVS tags: wrstuden-fixsa-newbase,
wrstuden-fixsa-base
Diff to: previous 1.52: preferred, colored; next MAIN 1.53: preferred, colored
Changes since revision 1.52: +787 -320
lines
Pull up following revision(s) (requested by jdc in ticket #1145):
src/share/man/man4/gem.4 1.5,1.6 via patch
src/sys/arch/sparc64/conf/GENERIC 1.97 via patch
src/sys/dev/ic/gem.c 1.59,1.61-1.68,1.70-1.73 via patch
src/sys/dev/ic/gemreg.h 1.11 via patch
src/sys/dev/ic/gemvar.h 1.16,1.18 via patch
src/sys/dev/mii/bmtphy.c 1.24 via patch
src/sys/dev/pci/if_gem_pci.c 1.25,1.27 via patch
src/sys/dev/pci/pcidevs 1.12 via patch
src/sys/dev/pci/pcidevs.h regenerate
src/sys/dev/pci/pcidevs_data.h regenerate
Add support for Sun PCI X1141A (SX fibre) cards.
Add improvements to the driver.
Disable HW UDP4 and RX TCP4 checksums because they are buggy (PR#34799)
Add improvements to bmtphy.
Revision 1.76.4.1: download - view: text, markup, annotated - select for diffs
Fri May 16 02:24:03 2008 UTC (18 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +3 -3
lines
sync with head.
Revision 1.77: download - view: text, markup, annotated - select for diffs
Sun May 4 17:16:27 2008 UTC (18 years, 6 months ago) by xtraeme
Branches: MAIN
CVS tags: yamt-pf42-base4,
yamt-pf42-base3,
yamt-pf42-base2,
yamt-nfs-mp-base2,
wrstuden-revivesa-base-2,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base,
simonb-wapbl-nbase,
simonb-wapbl-base,
simonb-wapbl,
hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa,
haad-dm
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +3 -3
lines
mii_dev is a device_t now.
Revision 1.76: download - view: text, markup, annotated - select for diffs
Tue Apr 8 12:07:26 2008 UTC (18 years, 7 months ago) by cegger
Branches: MAIN
CVS tags: yamt-pf42-baseX,
yamt-pf42-base,
yamt-nfs-mp-base
Branch point for: yamt-pf42,
yamt-nfs-mp
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +102 -121
lines
use aprint_*_dev and device_xname
Revision 1.74.6.1: download - view: text, markup, annotated - select for diffs
Thu Apr 3 12:42:40 2008 UTC (18 years, 7 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +5 -6
lines
Sync with HEAD.
Revision 1.74.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 24 07:15:16 2008 UTC (18 years, 7 months ago) by keiichi
Branches: keiichi-mipv6
Diff to: previous 1.74: preferred, colored; next MAIN 1.75: preferred, colored
Changes since revision 1.74: +5 -6
lines
sync with head.
Revision 1.58.2.3: download - view: text, markup, annotated - select for diffs
Sun Mar 23 02:04:38 2008 UTC (18 years, 7 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.58.2.2: preferred, colored; branchpoint 1.58: preferred, colored; next MAIN 1.59: preferred, colored
Changes since revision 1.58.2.2: +152 -115
lines
sync with HEAD
Revision 1.40.2.8: download - view: text, markup, annotated - select for diffs
Mon Mar 17 09:14:42 2008 UTC (18 years, 8 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.40.2.7: preferred, colored; branchpoint 1.40: preferred, colored; next MAIN 1.41: preferred, colored
Changes since revision 1.40.2.7: +5 -6
lines
sync with head.
Revision 1.75: download - view: text, markup, annotated - select for diffs
Tue Mar 11 23:58:06 2008 UTC (18 years, 8 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-lazymbuf-base15,
yamt-lazymbuf-base14,
matt-armv6-nbase,
keiichi-mipv6-nbase,
keiichi-mipv6-base,
ad-socklock-base1
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +5 -6
lines
Prepare for PMF self-suspension: in the if_stop() methods, clear
IFF_UP and IFF_RUNNING before running the 'disable' step, instead
of after. Soon I will handle the 'disable' step by calling into
PMF, which may call if_stop(, 0). Ordinarily, that is harmless.
This change lets the if_stop() routines exit early when they find
on entry that IFF_RUNNING is not set.
Revision 1.60.2.1: download - view: text, markup, annotated - select for diffs
Mon Feb 18 21:05:41 2008 UTC (18 years, 9 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.60: preferred, colored; next MAIN 1.61: preferred, colored
Changes since revision 1.60: +801 -341
lines
Sync with HEAD.
Revision 1.40.2.7: download - view: text, markup, annotated - select for diffs
Mon Feb 11 14:59:33 2008 UTC (18 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.40.2.6: preferred, colored; branchpoint 1.40: preferred, colored
Changes since revision 1.40.2.6: +11 -7
lines
sync with head.
Revision 1.74: download - view: text, markup, annotated - select for diffs
Thu Feb 7 01:21:53 2008 UTC (18 years, 9 months ago) by dyoung
Branches: MAIN
CVS tags: nick-net80211-sync-base,
nick-net80211-sync,
mjf-devfs-base,
hpcarm-cleanup-base
Branch point for: mjf-devfs2,
keiichi-mipv6
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +11 -7
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.40.2.6: download - view: text, markup, annotated - select for diffs
Mon Feb 4 09:23:24 2008 UTC (18 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.40.2.5: preferred, colored; branchpoint 1.40: preferred, colored
Changes since revision 1.40.2.5: +37 -22
lines
sync with head.
Revision 1.73: download - view: text, markup, annotated - select for diffs
Fri Feb 1 11:03:19 2008 UTC (18 years, 9 months ago) by jdc
Branches: MAIN
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +13 -9
lines
Disable HW RX TCP4 checksums because it is buggy (it appears to only checksum
src IP, dst IP and packet len).
Also, remove the "MAC rx fault" redundant printf().
Revision 1.60.8.4: download - view: text, markup, annotated - select for diffs
Wed Jan 23 19:27:34 2008 UTC (18 years, 9 months ago) by bouyer
Branches: bouyer-xeni386
Diff to: previous 1.60.8.3: preferred, colored; branchpoint 1.60: preferred, colored; next MAIN 1.61: preferred, colored
Changes since revision 1.60.8.3: +24 -13
lines
Sync with HEAD.
Revision 1.72: download - view: text, markup, annotated - select for diffs
Tue Jan 22 23:19:14 2008 UTC (18 years, 9 months ago) by jdc
Branches: MAIN
CVS tags: bouyer-xeni386-nbase
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +4 -4
lines
Set the correct offset when using VLAN's.
Revision 1.71: download - view: text, markup, annotated - select for diffs
Tue Jan 22 09:42:06 2008 UTC (18 years, 9 months ago) by jdc
Branches: MAIN
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +24 -13
lines
Also count excess or late collisions as output errors in gem_tint().
Count receive errors (as input errors) in gem_rint().
Revision 1.40.2.5: download - view: text, markup, annotated - select for diffs
Mon Jan 21 09:42:59 2008 UTC (18 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.40.2.4: preferred, colored; branchpoint 1.40: preferred, colored
Changes since revision 1.40.2.4: +759 -318
lines
sync with head
Revision 1.60.8.3: download - view: text, markup, annotated - select for diffs
Sun Jan 20 17:51:31 2008 UTC (18 years, 10 months ago) by bouyer
Branches: bouyer-xeni386
Diff to: previous 1.60.8.2: preferred, colored; branchpoint 1.60: preferred, colored
Changes since revision 1.60.8.2: +103 -84
lines
Sync with HEAD
Revision 1.70: download - view: text, markup, annotated - select for diffs
Sun Jan 20 15:12:33 2008 UTC (18 years, 10 months ago) by jdc
Branches: MAIN
CVS tags: bouyer-xeni386-base
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +54 -25
lines
Fix Apple gigabit gem interfaces by restoring some of the code from r1.67,
with some minor alterations to make Sun fibre cards work too.
Tested by aymeric@ and macallan@.
Fixes PR kern/37809.
Revision 1.69: download - view: text, markup, annotated - select for diffs
Sat Jan 19 22:10:16 2008 UTC (18 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +53 -63
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.58.2.2: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:52:52 2008 UTC (18 years, 10 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.58.2.1: preferred, colored; branchpoint 1.58: preferred, colored
Changes since revision 1.58.2.1: +728 -306
lines
sync with HEAD
Revision 1.60.8.2: download - view: text, markup, annotated - select for diffs
Tue Jan 8 22:11:03 2008 UTC (18 years, 10 months ago) by bouyer
Branches: bouyer-xeni386
CVS tags: bouyer-xeni386-merge1
Diff to: previous 1.60.8.1: preferred, colored; branchpoint 1.60: preferred, colored
Changes since revision 1.60.8.1: +677 -264
lines
Sync with HEAD
Revision 1.68: download - view: text, markup, annotated - select for diffs
Sat Jan 5 20:27:44 2008 UTC (18 years, 10 months ago) by jdc
Branches: MAIN
CVS tags: matt-armv6-base
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +679 -266
lines
Add support for Sun PCI X1141A (SX fibre) cards, based on the GEM
documentation, experimentation and a previous patch from John Heasley.
Add improvements to the driver based on the GEM documentation and
from FreeBSD if_gem.c (rev 1.45).
Revision 1.60.8.1: download - view: text, markup, annotated - select for diffs
Wed Jan 2 21:54:11 2008 UTC (18 years, 10 months ago) by bouyer
Branches: bouyer-xeni386
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +52 -43
lines
Sync with HEAD
Revision 1.67: download - view: text, markup, annotated - select for diffs
Mon Dec 31 21:43:57 2007 UTC (18 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +25 -21
lines
Extract common debugging code from gem_tint() and gem_start(),
creating gem_txsoft_print().
Revision 1.66: download - view: text, markup, annotated - select for diffs
Mon Dec 31 21:02:00 2007 UTC (18 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +3 -4
lines
In gem_tint(), synchronize the correct descriptors for a Tx packet:
synchronize the N descriptors starting with the packet's first
descriptor, not with its last. This ought to help the defined(GEM_DEBUG)
&& IFF_DEBUG case.
Revision 1.65: download - view: text, markup, annotated - select for diffs
Mon Dec 31 20:54:41 2007 UTC (18 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +3 -3
lines
gem_start() pads a Tx packet to the minimum ethernet frame length
by adding a segment to the Tx chain. That entails using one more
descriptor. It did not synchronize the last descriptor.
In gem_start(), clarify and repair DMA synchronization of the Tx
descriptors. Sync them all.
Revision 1.64: download - view: text, markup, annotated - select for diffs
Mon Dec 31 20:39:45 2007 UTC (18 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +3 -5
lines
gem_start() assigned last_txs, but never used it otherwise, so
remove it.
Revision 1.63: download - view: text, markup, annotated - select for diffs
Mon Dec 31 20:35:11 2007 UTC (18 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +7 -10
lines
Cosmetic: remove superfluous parentheses, shorten staircase.
Revision 1.62: download - view: text, markup, annotated - select for diffs
Mon Dec 31 20:31:02 2007 UTC (18 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +33 -22
lines
Re-order operations to ensure that if defined(GEM_DEBUG) && IFF_DEBUG,
gem_tint() prints a coherent set of descriptors that the NIC has
finished processing. See comments for more information. Compile-tested
on sparc64 and on macppc.
Revision 1.61: download - view: text, markup, annotated - select for diffs
Sat Dec 29 17:59:20 2007 UTC (18 years, 10 months ago) by tsutsui
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +3 -3
lines
Fix typo in comments.
Revision 1.58.2.1: download - view: text, markup, annotated - select for diffs
Tue Nov 6 23:26:37 2007 UTC (19 years ago) by matt
Branches: matt-armv6
CVS tags: matt-armv6-prevmlocking
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +5 -5
lines
sync with HEAD
Revision 1.40.2.4: download - view: text, markup, annotated - select for diffs
Sat Oct 27 11:30:40 2007 UTC (19 years ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.40.2.3: preferred, colored; branchpoint 1.40: preferred, colored
Changes since revision 1.40.2.3: +5 -5
lines
sync with head.
Revision 1.57.6.3: download - view: text, markup, annotated - select for diffs
Fri Oct 26 15:44:44 2007 UTC (19 years ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.57.6.2: preferred, colored; branchpoint 1.57: preferred, colored; next MAIN 1.58: preferred, colored
Changes since revision 1.57.6.2: +4 -4
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.59.2.1: download - view: text, markup, annotated - select for diffs
Thu Oct 25 22:37:39 2007 UTC (19 years ago) by bouyer
Branches: bouyer-xenamd64
Diff to: previous 1.59: preferred, colored; next MAIN 1.60: preferred, colored
Changes since revision 1.59: +4 -4
lines
Sync with HEAD.
Revision 1.54.2.4: download - view: text, markup, annotated - select for diffs
Tue Oct 23 20:07:24 2007 UTC (19 years ago) by ad
Branches: vmlocking
Diff to: previous 1.54.2.3: preferred, colored; branchpoint 1.54: preferred, colored; next MAIN 1.55: preferred, colored
Changes since revision 1.54.2.3: +4 -4
lines
Sync with head.
Revision 1.60: download - view: text, markup, annotated - select for diffs
Fri Oct 19 11:59:51 2007 UTC (19 years, 1 month ago) by ad
Branches: MAIN
CVS tags: yamt-kmem-base3,
yamt-kmem-base2,
yamt-kmem-base,
yamt-kmem,
vmlocking2-base3,
vmlocking2-base2,
vmlocking2-base1,
vmlocking2,
vmlocking-nbase,
reinoud-bufcleanup-nbase,
reinoud-bufcleanup-base,
jmcneill-pm-base,
jmcneill-base,
cube-autoconf-base,
cube-autoconf,
bouyer-xenamd64-base2,
bouyer-xenamd64-base
Branch point for: mjf-devfs,
bouyer-xeni386
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +4 -4
lines
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
Revision 1.54.2.3: download - view: text, markup, annotated - select for diffs
Tue Oct 9 13:41:24 2007 UTC (19 years, 1 month ago) by ad
Branches: vmlocking
Diff to: previous 1.54.2.2: preferred, colored; branchpoint 1.54: preferred, colored
Changes since revision 1.54.2.2: +4 -4
lines
Sync with head.
Revision 1.58.4.1: download - view: text, markup, annotated - select for diffs
Sat Oct 6 15:31:13 2007 UTC (19 years, 1 month ago) by yamt
Branches: yamt-x86pmap
Diff to: previous 1.58: preferred, colored; next MAIN 1.59: preferred, colored
Changes since revision 1.58: +3 -3
lines
sync with head.
Revision 1.57.6.2: download - view: text, markup, annotated - select for diffs
Tue Oct 2 18:28:24 2007 UTC (19 years, 1 month ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.57.6.1: preferred, colored; branchpoint 1.57: preferred, colored
Changes since revision 1.57.6.1: +3 -3
lines
Sync with HEAD.
Revision 1.59: download - view: text, markup, annotated - select for diffs
Sat Sep 29 18:32:50 2007 UTC (19 years, 1 month ago) by scw
Branches: MAIN
CVS tags: yamt-x86pmap-base4,
yamt-x86pmap-base3,
yamt-x86pmap-base2,
vmlocking-base
Branch point for: bouyer-xenamd64
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +3 -3
lines
s/NPBFILTER/NBPFILTER/ in some #endif comments. No functional change.
Revision 1.57.6.1: download - view: text, markup, annotated - select for diffs
Mon Sep 3 16:48:00 2007 UTC (19 years, 2 months ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +3 -3
lines
Sync with HEAD.
Revision 1.40.2.3: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:34:33 2007 UTC (19 years, 2 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.40.2.2: preferred, colored; branchpoint 1.40: preferred, colored
Changes since revision 1.40.2.2: +21 -21
lines
sync with head.
Revision 1.57.2.1: download - view: text, markup, annotated - select for diffs
Mon Sep 3 10:20:20 2007 UTC (19 years, 2 months ago) by skrll
Branches: nick-csl-alignment
Diff to: previous 1.57: preferred, colored; next MAIN 1.58: preferred, colored
Changes since revision 1.57: +3 -3
lines
Sync with HEAD.
Revision 1.58: download - view: text, markup, annotated - select for diffs
Sun Aug 26 22:45:56 2007 UTC (19 years, 2 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-x86pmap-base,
nick-csl-alignment-base5
Branch point for: yamt-x86pmap,
matt-armv6
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +3 -3
lines
Constify: LLADDR -> CLLADDR. I'm aiming here to make it easier to
identify sockaddr_dl abuse that remains in the kernel, especially
the potential for overwriting memory past the end of a sockaddr_dl
with, e.g., memcpy(LLADDR(), ...).
Revision 1.54.4.1: download - view: text, markup, annotated - select for diffs
Wed Jul 11 20:05:47 2007 UTC (19 years, 4 months ago) by mjf
Branches: mjf-ufs-trans
Diff to: previous 1.54: preferred, colored; next MAIN 1.55: preferred, colored
Changes since revision 1.54: +9 -9
lines
Sync with head.
Revision 1.57: download - view: text, markup, annotated - select for diffs
Mon Jul 9 21:00:35 2007 UTC (19 years, 4 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,
jmcneill-pm
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +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.54.2.2: download - view: text, markup, annotated - select for diffs
Sun Jul 1 21:47:48 2007 UTC (19 years, 4 months ago) by ad
Branches: vmlocking
Diff to: previous 1.54.2.1: preferred, colored; branchpoint 1.54: preferred, colored
Changes since revision 1.54.2.1: +3 -3
lines
Adapt to callout API change.
Revision 1.54.2.1: download - view: text, markup, annotated - select for diffs
Sun May 27 14:30:01 2007 UTC (19 years, 5 months ago) by ad
Branches: vmlocking
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +8 -8
lines
Sync with head.
Revision 1.52.4.2: download - view: text, markup, annotated - select for diffs
Sun Apr 15 16:03:21 2007 UTC (19 years, 7 months ago) by yamt
Branches: yamt-idlelwp
Diff to: previous 1.52.4.1: preferred, colored; branchpoint 1.52: preferred, colored; next MAIN 1.53: preferred, colored
Changes since revision 1.52.4.1: +8 -8
lines
sync with head.
Revision 1.56: download - view: text, markup, annotated - select for diffs
Thu Apr 12 06:14:40 2007 UTC (19 years, 7 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-idlelwp-base8
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +3 -2
lines
Make the members of the descriptors volatile, because the NIC and
the host share them.
Before breaking out of the loop over descriptors in gem_rint(),
DMA-resynchronize the first Rx descriptor we found that does not
belong to the host. We must avoid a cached descriptor "covering"
a descriptor in RAM, because the cached descriptor may say that
the descriptor still belongs to the NIC, when that is not true,
and the driver will hang.
XXX I believe this driver only works by luck on hosts that both
XXX have a cacheline size greater than the size of a descriptor
XXX (16 bytes) and lack DMA/cache coherency. I need to add some
XXX trickery to make sure that we don't scribble over the NIC's
XXX changes to a descriptor when we flush a cached descriptor to
XXX RAM with bus_dmamap_sync(9).
Revision 1.55: download - view: text, markup, annotated - select for diffs
Thu Apr 12 05:56:01 2007 UTC (19 years, 7 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +7 -8
lines
Use PRIx64 and PRIx32 format strings. Remark about lack of DMA
synchronization at some debug code that reads descriptors.
Revision 1.52.4.1: download - view: text, markup, annotated - select for diffs
Mon Mar 12 05:53:32 2007 UTC (19 years, 8 months ago) by rmind
Branches: yamt-idlelwp
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +13 -13
lines
Sync with HEAD.
Revision 1.54: download - view: text, markup, annotated - select for diffs
Sun Mar 4 07:54:11 2007 UTC (19 years, 8 months ago) by christos
Branches: MAIN
CVS tags: thorpej-atomic-base,
thorpej-atomic,
reinoud-bufcleanup
Branch point for: vmlocking,
mjf-ufs-trans
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +6 -6
lines
fix fallout from caddr_t changes.
Revision 1.53: download - view: text, markup, annotated - select for diffs
Sun Mar 4 06:01:55 2007 UTC (19 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +13 -13
lines
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
Revision 1.47.4.2: download - view: text, markup, annotated - select for diffs
Fri Jan 12 00:57:36 2007 UTC (19 years, 10 months ago) by ad
Branches: newlock2
Diff to: previous 1.47.4.1: preferred, colored; branchpoint 1.47: preferred, colored; next MAIN 1.48: preferred, colored
Changes since revision 1.47.4.1: +45 -43
lines
Sync with head.
Revision 1.40.2.2: download - view: text, markup, annotated - select for diffs
Sat Dec 30 20:48:02 2006 UTC (19 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.40.2.1: preferred, colored; branchpoint 1.40: preferred, colored
Changes since revision 1.40.2.1: +52 -44
lines
sync with head.
Revision 1.47.6.2: download - view: text, markup, annotated - select for diffs
Sun Dec 10 07:17:05 2006 UTC (19 years, 11 months ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.47.6.1: preferred, colored; branchpoint 1.47: preferred, colored; next MAIN 1.48: preferred, colored
Changes since revision 1.47.6.1: +45 -43
lines
sync with head.
Revision 1.52: download - view: text, markup, annotated - select for diffs
Fri Nov 24 19:46:59 2006 UTC (19 years, 11 months ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base5,
yamt-splraiseipl-base4,
yamt-splraiseipl-base3,
wrstuden-fixsa-base-1,
post-newlock2-merge,
newlock2-nbase,
newlock2-base,
netbsd-4-base,
netbsd-4-0-RELEASE,
netbsd-4-0-RC5,
netbsd-4-0-RC4,
netbsd-4-0-RC3,
netbsd-4-0-RC2,
netbsd-4-0-RC1,
netbsd-4-0-1-RELEASE,
netbsd-4-0,
matt-nb4-arm-base,
matt-nb4-arm,
ad-audiomp-base,
ad-audiomp
Branch point for: yamt-idlelwp,
wrstuden-fixsa,
netbsd-4
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +3 -3
lines
fix spelling of accommodate; from Zapher.
Revision 1.51: download - view: text, markup, annotated - select for diffs
Fri Nov 24 13:05:29 2006 UTC (19 years, 11 months ago) by martin
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +3 -3
lines
Ooops - make it compile again.
Revision 1.50: download - view: text, markup, annotated - select for diffs
Fri Nov 24 13:01:07 2006 UTC (19 years, 11 months ago) by martin
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +44 -42
lines
In preparation for gem @ sbus: split the GEM registers into two halfs
and provide a bus_space_handle_t for each. While there, fix a typo
in gem_bitwait().
Revision 1.49: download - view: text, markup, annotated - select for diffs
Thu Nov 23 18:41:25 2006 UTC (19 years, 11 months ago) by martin
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +4 -4
lines
Fix an obvious copy&pasto and make it compile with GEM_DEBUG.
Revision 1.47.4.1: download - view: text, markup, annotated - select for diffs
Sat Nov 18 21:34:11 2006 UTC (20 years ago) by ad
Branches: newlock2
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +4 -3
lines
Sync with head.
Revision 1.47.6.1: download - view: text, markup, annotated - select for diffs
Sun Oct 22 06:05:44 2006 UTC (20 years ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +4 -3
lines
sync with head
Revision 1.48: download - view: text, markup, annotated - select for diffs
Sun Sep 24 03:53:08 2006 UTC (20 years, 1 month ago) by jmcneill
Branches: MAIN
CVS tags: yamt-splraiseipl-base2
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +4 -3
lines
Add "name" parameter to powerhook_establish, to aid debugging. No objections
on tech-kern@
Revision 1.45.2.1: download - view: text, markup, annotated - select for diffs
Sat Sep 9 02:50:02 2006 UTC (20 years, 2 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.45: preferred, colored; next MAIN 1.46: preferred, colored
Changes since revision 1.45: +8 -3
lines
sync with head
Revision 1.45.6.2: download - view: text, markup, annotated - select for diffs
Fri Aug 11 15:44:11 2006 UTC (20 years, 3 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.45.6.1: preferred, colored; branchpoint 1.45: preferred, colored; next MAIN 1.46: preferred, colored
Changes since revision 1.45.6.1: +7 -2
lines
sync with head
Revision 1.47: download - view: text, markup, annotated - select for diffs
Sat Aug 5 21:26:49 2006 UTC (20 years, 3 months ago) by sanjayl
Branches: MAIN
CVS tags: yamt-splraiseipl-base,
yamt-pdpolicy-base9,
yamt-pdpolicy-base8,
yamt-pdpolicy-base7,
rpaulo-netinet-merge-pcb-base,
abandoned-netbsd-4-base,
abandoned-netbsd-4
Branch point for: yamt-splraiseipl,
newlock2
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +7 -2
lines
1st cut of Powermac G5 support (uses bridge mode).
Revision 1.45.6.1: download - view: text, markup, annotated - select for diffs
Mon Jun 26 12:51:01 2006 UTC (20 years, 4 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +3 -3
lines
sync with head.
Revision 1.40.2.1: download - view: text, markup, annotated - select for diffs
Wed Jun 21 15:02:54 2006 UTC (20 years, 5 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +82 -71
lines
sync with head.
Revision 1.45.12.1: download - view: text, markup, annotated - select for diffs
Mon Jun 19 03:58:13 2006 UTC (20 years, 5 months ago) by chap
Branches: chap-midi
Diff to: previous 1.45: preferred, colored; next MAIN 1.46: preferred, colored
Changes since revision 1.45: +3 -3
lines
Sync with head.
Revision 1.45.4.1: download - view: text, markup, annotated - select for diffs
Thu Jun 1 22:36:25 2006 UTC (20 years, 5 months ago) by kardel
Branches: simonb-timecounters
CVS tags: simonb-timcounters-final
Diff to: previous 1.45: preferred, colored; next MAIN 1.46: preferred, colored
Changes since revision 1.45: +3 -3
lines
Sync with head.
Revision 1.46: download - view: text, markup, annotated - select for diffs
Fri May 26 12:52:45 2006 UTC (20 years, 5 months ago) by blymn
Branches: MAIN
CVS tags: yamt-pdpolicy-base6,
simonb-timecounters-base,
gdamore-uart-base,
gdamore-uart,
chap-midi-nbase,
chap-midi-base
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +3 -3
lines
Clean up bogus whitespace
Revision 1.44.2.1: download - view: text, markup, annotated - select for diffs
Sun Jan 15 10:02:48 2006 UTC (20 years, 10 months ago) by yamt
Branches: yamt-uio_vmspace
Diff to: previous 1.44: preferred, colored; next MAIN 1.45: preferred, colored
Changes since revision 1.44: +5 -2
lines
sync with head.
Revision 1.45: download - view: text, markup, annotated - select for diffs
Mon Jan 2 05:46:25 2006 UTC (20 years, 10 months ago) by heas
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5,
yamt-pdpolicy-base5,
yamt-pdpolicy-base4,
yamt-pdpolicy-base3,
yamt-pdpolicy-base2,
yamt-pdpolicy-base,
peter-altq-base,
peter-altq,
elad-kernelauth-base,
elad-kernelauth
Branch point for: yamt-pdpolicy,
simonb-timecounters,
rpaulo-netinet-merge-pcb,
chap-midi
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +5 -2
lines
Contribute to the rnd entropy pool (already attached as a source).
Revision 1.44: download - view: text, markup, annotated - select for diffs
Sun Dec 11 12:21:26 2005 UTC (20 years, 11 months ago) by christos
Branches: MAIN
Branch point for: yamt-uio_vmspace
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +2 -2
lines
merge ktrace-lwp.
Revision 1.27.2.9: download - view: text, markup, annotated - select for diffs
Thu Nov 10 14:04:14 2005 UTC (21 years ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.27.2.8: preferred, colored; next MAIN 1.28: preferred, colored
Changes since revision 1.27.2.8: +156 -96
lines
Sync with HEAD. Here we go again...
Revision 1.40.4.1: download - view: text, markup, annotated - select for diffs
Wed Nov 2 11:57:56 2005 UTC (21 years ago) by yamt
Branches: yamt-vop
Diff to: previous 1.40: preferred, colored; next MAIN 1.41: preferred, colored
Changes since revision 1.40: +79 -71
lines
sync with head.
Revision 1.43: download - view: text, markup, annotated - select for diffs
Fri Oct 28 20:56:13 2005 UTC (21 years ago) by christos
Branches: MAIN
CVS tags: yamt-vop-base3,
yamt-readahead-pervnode,
yamt-readahead-perfile,
yamt-readahead-base3,
yamt-readahead-base2,
yamt-readahead-base,
yamt-readahead,
ktrace-lwp-base
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +5 -15
lines
- delete ugly debugging crap.
- remove bogus multicast handling [pointed out by thorpej]
and don't reset the chip on ENETRESET; ENETRESET is a sign
that only the multicast filter needs changing.
Revision 1.42: download - view: text, markup, annotated - select for diffs
Fri Oct 28 13:20:55 2005 UTC (21 years ago) by christos
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +2 -3
lines
According to thorpej, we don't need to stop when we attach. But then again
we don't detach yet...
Revision 1.41: download - view: text, markup, annotated - select for diffs
Fri Oct 28 00:01:53 2005 UTC (21 years ago) by christos
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +81 -62
lines
From FreeBSD:
- make a few functions static
- introduce gem_bitwait() to factor out some of the register wait code.
- add gem_stop() in attach
- some DEBUG should be GEM_DEBUG
- handle underrun, packet too long, and overflow errors by resetting the chip
- add handler in ioctl for add/del multi
- fix typo
Also:
- add a shadow sc_if_flags member so that we don't reset the chip if we
don't need to.
Revision 1.30.4.2: download - view: text, markup, annotated - select for diffs
Tue Jun 21 22:51:04 2005 UTC (21 years, 5 months ago) by riz
Branches: netbsd-2
CVS tags: netbsd-2-1-RELEASE,
netbsd-2-1-RC6,
netbsd-2-1-RC5,
netbsd-2-1-RC4,
netbsd-2-1-RC3,
netbsd-2-1-RC2,
netbsd-2-1-RC1,
netbsd-2-1
Diff to: previous 1.30.4.1: preferred, colored; branchpoint 1.30: preferred, colored; next MAIN 1.31: preferred, colored
Changes since revision 1.30.4.1: +76 -25
lines
Pull up revision 1.40 (requested by bouyer in ticket #2006):
Pad small packets with a static buffer at the end of the S/G list.
Avoids leaking kernel memory when small packets are transmitted.
Tested on a ibook G4.
Revision 1.38.2.1: download - view: text, markup, annotated - select for diffs
Tue Jun 21 21:28:37 2005 UTC (21 years, 5 months ago) by tron
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,
netbsd-3-0-RELEASE,
netbsd-3-0-RC6,
netbsd-3-0-RC5,
netbsd-3-0-RC4,
netbsd-3-0-RC3,
netbsd-3-0-RC2,
netbsd-3-0-RC1,
netbsd-3-0-3-RELEASE,
netbsd-3-0-2-RELEASE,
netbsd-3-0-1-RELEASE,
netbsd-3-0
Diff to: previous 1.38: preferred, colored; next MAIN 1.39: preferred, colored
Changes since revision 1.38: +76 -25
lines
Pull up revision 1.40 (requested by bouyer in ticket #484):
Pad small packets with a static buffer at the end of the S/G list.
Avoids leaking kernel memory when small packets are transmitted.
Tested on a ibook G4.
Revision 1.40: download - view: text, markup, annotated - select for diffs
Mon May 16 15:56:38 2005 UTC (21 years, 6 months ago) by bouyer
Branches: MAIN
CVS tags: yamt-vop-base2,
yamt-vop-base,
thorpej-vnode-attr-base,
thorpej-vnode-attr
Branch point for: yamt-vop,
yamt-lazymbuf
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +76 -25
lines
Pad small packets with a static buffer at the end of the S/G list.
Avoids leaking kernel memory when small packets are transmitted.
Tested on a ibook G4.
Revision 1.39: download - view: text, markup, annotated - select for diffs
Mon May 2 15:34:31 2005 UTC (21 years, 6 months ago) by yamt
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +5 -4
lines
split IFCAP_CSUM_xxx to IFCAP_CSUM_xxx_Rx and IFCAP_CSUM_xxx_Tx.
Revision 1.32.4.1: download - view: text, markup, annotated - select for diffs
Fri Apr 29 11:28:50 2005 UTC (21 years, 6 months ago) by kent
Branches: kent-audio2
Diff to: previous 1.32: preferred, colored; next MAIN 1.33: preferred, colored
Changes since revision 1.32: +181 -37
lines
sync with -current
Revision 1.32.6.2: download - view: text, markup, annotated - select for diffs
Sat Mar 19 08:34:02 2005 UTC (21 years, 8 months ago) by yamt
Branches: yamt-km
Diff to: previous 1.32.6.1: preferred, colored; branchpoint 1.32: preferred, colored; next MAIN 1.33: preferred, colored
Changes since revision 1.32.6.1: +157 -12
lines
sync with head. xen and whitespace. xen part is not finished.
Revision 1.27.2.8: download - view: text, markup, annotated - select for diffs
Tue Mar 8 13:53:10 2005 UTC (21 years, 8 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.27.2.7: preferred, colored
Changes since revision 1.27.2.7: +7 -4
lines
Sync with HEAD.
Revision 1.38: download - view: text, markup, annotated - select for diffs
Sat Mar 5 18:32:59 2005 UTC (21 years, 8 months ago) by heas
Branches: MAIN
CVS tags: yamt-km-base4,
yamt-km-base3,
netbsd-3-base,
kent-audio2-base
Branch point for: netbsd-3
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +7 -4
lines
Perform a s/w checksum for packets that are not the same length as the length
field of the IP header (ip->ip-len) indicates they should be. This handles
the case where an ethernet frame has been padded to meet the minimum ethernet
frame length or erroneously (my cisco switch unnecessarily adds 4 bytes to its
SYN). This padding will be included in the hardware checksum and may be
non-zero, thus making it incorrect.
Revision 1.27.2.7: download - view: text, markup, annotated - select for diffs
Fri Mar 4 16:41:28 2005 UTC (21 years, 8 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.27.2.6: preferred, colored
Changes since revision 1.27.2.6: +154 -12
lines
Sync with HEAD.
Hi Perry!
Revision 1.37: download - view: text, markup, annotated - select for diffs
Sun Feb 27 00:27:01 2005 UTC (21 years, 8 months ago) by perry
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +4 -4
lines
nuke trailing whitespace
Revision 1.36: download - view: text, markup, annotated - select for diffs
Mon Feb 21 02:12:48 2005 UTC (21 years, 8 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +4 -5
lines
Define M_CSUM_DATA_IPv4_IPHL() and M_CSUM_DATA_IPv4_OFFSET() macros
to extract data from csum_data, rather than just open-coding it.
Revision 1.35: download - view: text, markup, annotated - select for diffs
Sun Feb 20 18:29:00 2005 UTC (21 years, 8 months ago) by heas
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +155 -12
lines
Have the MAC strip the ethernet FCS on rx so it is not included in the hardware
checksum and add code to support IPv4 TCP/UDP hardware checksums.
Revision 1.32.6.1: download - view: text, markup, annotated - select for diffs
Sat Feb 12 18:17:43 2005 UTC (21 years, 9 months ago) by yamt
Branches: yamt-km
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +28 -29
lines
sync with head.
Revision 1.27.2.6: download - view: text, markup, annotated - select for diffs
Fri Feb 4 11:45:25 2005 UTC (21 years, 9 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.27.2.5: preferred, colored
Changes since revision 1.27.2.5: +28 -29
lines
Sync with HEAD.
Revision 1.34: download - view: text, markup, annotated - select for diffs
Fri Feb 4 02:10:36 2005 UTC (21 years, 9 months ago) by perry
Branches: MAIN
CVS tags: yamt-km-base2
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +27 -27
lines
de-__P
Revision 1.33: download - view: text, markup, annotated - select for diffs
Mon Jan 31 02:53:19 2005 UTC (21 years, 9 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +3 -4
lines
Eliminate use of M_HASFCS.
Revision 1.30.4.1: download - view: text, markup, annotated - select for diffs
Mon Jan 24 21:42:55 2005 UTC (21 years, 9 months ago) by he
Branches: netbsd-2
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +6 -4
lines
Pull up revision 1.32 (requested by thorpej in ticket #939):
When adding or deleting multicast addresses, only change
the address filter if the interface is marked RUNNING.
Fixes PR#27678.
Revision 1.27.2.5: download - view: text, markup, annotated - select for diffs
Tue Nov 2 07:51:31 2004 UTC (22 years ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.27.2.4: preferred, colored
Changes since revision 1.27.2.4: +6 -4
lines
Sync with HEAD.
Revision 1.32: download - view: text, markup, annotated - select for diffs
Sat Oct 30 18:08:36 2004 UTC (22 years ago) by thorpej
Branches: MAIN
CVS tags: yamt-km-base,
kent-audio1-beforemerge,
kent-audio1-base,
kent-audio1
Branch point for: yamt-km,
kent-audio2
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +6 -4
lines
When adding/deleting multicast addresses, only whack the address
filter if the interface is marked RUNNING.
Fixes kern/27678.
Revision 1.27.2.4: download - view: text, markup, annotated - select for diffs
Tue Oct 19 15:56:53 2004 UTC (22 years, 1 month ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.27.2.3: preferred, colored
Changes since revision 1.27.2.3: +26 -27
lines
Sync with HEAD
Revision 1.31: download - view: text, markup, annotated - select for diffs
Sun Oct 17 21:49:08 2004 UTC (22 years, 1 month ago) by heas
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +26 -27
lines
Adjust/add a few comments and add defines for PCS (aka GEM_MII) FSM and
interrupt registers.
drop some trailing WS.
no functional changes.
Revision 1.27.2.3: download - view: text, markup, annotated - select for diffs
Tue Sep 21 13:27:55 2004 UTC (22 years, 1 month ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.27.2.2: preferred, colored
Changes since revision 1.27.2.2: +2 -2
lines
Fix the sync with head I botched.
Revision 1.27.2.2: download - view: text, markup, annotated - select for diffs
Sat Sep 18 14:45:57 2004 UTC (22 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.27.2.1: preferred, colored
Changes since revision 1.27.2.1: +0 -0
lines
Sync with HEAD.
Revision 1.27.2.1: download - view: text, markup, annotated - select for diffs
Tue Aug 3 10:46:13 2004 UTC (22 years, 3 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +23 -31
lines
Sync with HEAD
Revision 1.30: download - view: text, markup, annotated - select for diffs
Sun Oct 26 19:11:33 2003 UTC (23 years ago) by christos
Branches: MAIN
CVS tags: netbsd-2-base,
netbsd-2-0-base,
netbsd-2-0-RELEASE,
netbsd-2-0-RC5,
netbsd-2-0-RC4,
netbsd-2-0-RC3,
netbsd-2-0-RC2,
netbsd-2-0-RC1,
netbsd-2-0-3-RELEASE,
netbsd-2-0-2-RELEASE,
netbsd-2-0-1-RELEASE,
netbsd-2-0
Branch point for: netbsd-2
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +5 -3
lines
Another possibly uninitialized lasttx
Revision 1.29: download - view: text, markup, annotated - select for diffs
Sun Oct 26 18:20:43 2003 UTC (23 years ago) by christos
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +13 -25
lines
Don't return random garbage in the default case; return the smallest ring
descriptor instead.
Revision 1.28: download - view: text, markup, annotated - select for diffs
Sun Aug 24 18:07:03 2003 UTC (23 years, 2 months ago) by chs
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +9 -7
lines
make this build with GEM_DEBUG. fix rxhist counters.
Revision 1.27: download - view: text, markup, annotated - select for diffs
Sat May 3 18:11:17 2003 UTC (23 years, 6 months ago) by wiz
Branches: MAIN
Branch point for: ktrace-lwp
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +5 -5
lines
DMA, not dma nor Dma.
Revision 1.26: download - view: text, markup, annotated - select for diffs
Wed Feb 26 06:31:09 2003 UTC (23 years, 8 months ago) by matt
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +4 -2
lines
Add MBUFTRACE kernel option.
Do a little mbuf rework while here. Change all uses of MGET*(*, M_WAIT, *)
to m_get*(M_WAIT, *). These are not performance critical and making them
call m_get saves considerable space. Add m_clget analogue of MCLGET and
make corresponding change for M_WAIT uses.
Modify netinet, gem, fxp, tulip, nfs to support MBUFTRACE.
Begin to change netstat to use sysctl.
Revision 1.25: download - view: text, markup, annotated - select for diffs
Thu Feb 20 00:55:21 2003 UTC (23 years, 9 months ago) by matt
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +3 -3
lines
Add a MIIF_FORCEANEG flag to be passed to mii_attach. This forces an
autonegotiation to take place if IFM_AUTO is selected in mii_media_set.
Make the gem driver use it. (XXX hme probably should use it but I can't
test that).
Revision 1.24: download - view: text, markup, annotated - select for diffs
Fri Jan 31 00:26:30 2003 UTC (23 years, 9 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +18 -15
lines
Use aprint_*().
Revision 1.1.2.11: download - view: text, markup, annotated - select for diffs
Mon Nov 11 22:09:27 2002 UTC (24 years ago) by nathanw
Branches: nathanw_sa
CVS tags: nathanw_sa_end
Diff to: previous 1.1.2.10: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.2.10: +3 -3
lines
Catch up to -current
Revision 1.23: download - view: text, markup, annotated - select for diffs
Tue Oct 22 00:01:56 2002 UTC (24 years, 1 month ago) by fair
Branches: MAIN
CVS tags: nathanw_sa_before_merge,
nathanw_sa_base,
kqueue-beforemerge,
kqueue-aftermerge,
gmcgarry_ucred_base,
gmcgarry_ucred,
gmcgarry_ctxsw_base,
gmcgarry_ctxsw,
fvdl_fs64_base
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +3 -3
lines
Change the "dontcare bits" argument to ifmedia_init() to IFM_IMASK
so that it is possible select PHY instances other than the first
one (instance zero), if there is more than one PHY attached.
Revision 1.1.2.10: download - view: text, markup, annotated - select for diffs
Tue Sep 17 21:19:45 2002 UTC (24 years, 2 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.1.2.9: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.9: +3 -3
lines
Catch up to -current.
Revision 1.11.2.5: download - view: text, markup, annotated - select for diffs
Fri Sep 6 08:44:17 2002 UTC (24 years, 2 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.11.2.4: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11.2.4: +3 -3
lines
sync kqueue branch with HEAD
Revision 1.20.2.2: download - view: text, markup, annotated - select for diffs
Sat Aug 31 16:38:18 2002 UTC (24 years, 2 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.20.2.1: preferred, colored; branchpoint 1.20: preferred, colored; next MAIN 1.21: preferred, colored
Changes since revision 1.20.2.1: +3 -3
lines
catch up with -current.
Revision 1.22: download - view: text, markup, annotated - select for diffs
Wed Aug 28 17:46:58 2002 UTC (24 years, 2 months ago) by matt
Branches: MAIN
CVS tags: kqueue-base,
gehenna-devsw-base
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +3 -3
lines
From OpenBSD:
- Fix one typo (instead of two disable_rx, one disable_rx and one disable_tx)
[The other bug fix isn't appropriate since the was OACTIVE is dealt with
has been changed in NetBSD.]
Revision 1.11.2.4: download - view: text, markup, annotated - select for diffs
Sun Jun 23 17:46:22 2002 UTC (24 years, 4 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.11.2.3: preferred, colored
Changes since revision 1.11.2.3: +238 -104
lines
catch up with -current on kqueue branch
Revision 1.20.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 20 16:33:05 2002 UTC (24 years, 5 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +6 -6
lines
catch up with -current.
Revision 1.1.2.9: download - view: text, markup, annotated - select for diffs
Thu Jun 20 03:44:34 2002 UTC (24 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.1.2.8: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.8: +231 -96
lines
Catch up to -current.
Revision 1.21: download - view: text, markup, annotated - select for diffs
Sat Jun 1 23:50:58 2002 UTC (24 years, 5 months ago) by lukem
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +6 -6
lines
SIMPLEQ rototill:
- implement SIMPLEQ_REMOVE(head, elm, type, field). whilst it's O(n),
this mirrors the functionality of SLIST_REMOVE() (the other
singly-linked list type) and FreeBSD's STAILQ_REMOVE()
- remove the unnecessary elm arg from SIMPLEQ_REMOVE_HEAD().
this mirrors the functionality of SLIST_REMOVE_HEAD() (the other
singly-linked list type) and FreeBSD's STAILQ_REMOVE_HEAD()
- remove notes about SIMPLEQ not supporting arbitrary element removal
- use SIMPLEQ_FOREACH() instead of home-grown for loops
- use SIMPLEQ_EMPTY() appropriately
- use SIMPLEQ_*() instead of accessing sqh_first,sqh_last,sqe_next directly
- reorder manual page; be consistent about how the types are listed
- other minor cleanups
Revision 1.20: download - view: text, markup, annotated - select for diffs
Wed May 15 23:51:49 2002 UTC (24 years, 6 months ago) by matt
Branches: MAIN
CVS tags: netbsd-1-6-base,
netbsd-1-6-RELEASE,
netbsd-1-6-RC3,
netbsd-1-6-RC2,
netbsd-1-6-RC1,
netbsd-1-6-PATCH002-RELEASE,
netbsd-1-6-PATCH002-RC4,
netbsd-1-6-PATCH002-RC3,
netbsd-1-6-PATCH002-RC2,
netbsd-1-6-PATCH002-RC1,
netbsd-1-6-PATCH002,
netbsd-1-6-PATCH001-RELEASE,
netbsd-1-6-PATCH001-RC3,
netbsd-1-6-PATCH001-RC2,
netbsd-1-6-PATCH001-RC1,
netbsd-1-6-PATCH001,
netbsd-1-6
Branch point for: gehenna-devsw
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +3 -2
lines
Let's put a s = splnet(); to match the splx(s); already in the routine.
(yes, we were doing an splx with an uninitialized variable).
Revision 1.19: download - view: text, markup, annotated - select for diffs
Wed May 15 21:05:23 2002 UTC (24 years, 6 months ago) by matt
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +22 -12
lines
Only enable detailed evcnts if GEM_COUNTERS is defined. But always count
interrupts.
Revision 1.18: download - view: text, markup, annotated - select for diffs
Wed May 15 02:36:11 2002 UTC (24 years, 6 months ago) by matt
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +79 -13
lines
Add evcnt stuff for interrupts.
Fix receiver lockups. When writing the RX Kick register, we need back up
on descriptor since we advanced one in the for loop. That will be the
last descriptor we haven't processed which is what we should write.
Revision 1.17: download - view: text, markup, annotated - select for diffs
Tue May 14 23:33:41 2002 UTC (24 years, 6 months ago) by matt
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +3 -3
lines
Fix initialization of GEM_RX_MAC_INTR. 1 means mask.
Revision 1.16: download - view: text, markup, annotated - select for diffs
Sat May 11 20:53:52 2002 UTC (24 years, 6 months ago) by matt
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +4 -3
lines
Supress RX_MAC interrupts regarding the FRAME_COUNT register.
Revision 1.15: download - view: text, markup, annotated - select for diffs
Sat May 11 00:36:02 2002 UTC (24 years, 6 months ago) by matt
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +113 -73
lines
Many fixes. Multicast hash filter works now. Autonegotiation with GigE
on Mac G4's now works. XXX Checksum offload still needs to be done.
Revision 1.14: download - view: text, markup, annotated - select for diffs
Wed May 8 02:12:55 2002 UTC (24 years, 6 months ago) by matt
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +28 -11
lines
If the detected media is gigabit, change the gem to use GMII mode otherwise
switch back to MII mode. Keep a sliding window for TX segments and when it
gets > 2/3 full, request a TX interrupt (window gets reset when the h/w TX
queue is empty). Add dv_xname to a few printfs. With the above changes,
the gem driver will now work on Macintoshes, even in GigE mode. On a 733
PowerMac G4 it gets ~355Mb/s TX and ~280Mb/s RX to/from an Alpha XP1000.
XXX mii autoselect is still flakey.
Revision 1.1.2.8: download - view: text, markup, annotated - select for diffs
Wed Apr 17 00:05:36 2002 UTC (24 years, 7 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.1.2.7: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.7: +10 -11
lines
Catch up to -current.
Revision 1.13: download - view: text, markup, annotated - select for diffs
Fri Mar 29 00:00:10 2002 UTC (24 years, 7 months ago) by matt
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +10 -11
lines
Correct a comment and cleanup slightly how the local ethernet is programmed
into the chip.
Revision 1.1.2.7: download - view: text, markup, annotated - select for diffs
Thu Feb 28 04:13:21 2002 UTC (24 years, 8 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.1.2.6: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.6: +2 -3
lines
Catch up to -current.
Revision 1.11.2.3: download - view: text, markup, annotated - select for diffs
Mon Feb 11 20:09:44 2002 UTC (24 years, 9 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.11.2.2: preferred, colored
Changes since revision 1.11.2.2: +2 -3
lines
Sync w/ -current.
Revision 1.12: download - view: text, markup, annotated - select for diffs
Sat Jan 19 03:16:38 2002 UTC (24 years, 10 months ago) by eeh
Branches: MAIN
CVS tags: newlock-base,
newlock,
ifpoll-base,
eeh-devprop-base,
eeh-devprop
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +2 -3
lines
Remove some obsolete code.
Revision 1.11.2.2: download - view: text, markup, annotated - select for diffs
Thu Jan 10 19:54:29 2002 UTC (24 years, 10 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.11.2.1: preferred, colored
Changes since revision 1.11.2.1: +1876 -0
lines
Sync kqueue branch with -current.
Revision 1.1.2.6: download - view: text, markup, annotated - select for diffs
Tue Jan 8 00:29:44 2002 UTC (24 years, 10 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.1.2.5: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.5: +12 -15
lines
Catch up to -current.
Revision 1.11.2.1
Sat Nov 17 00:56:04 2001 UTC (25 years ago) by thorpej
Branches: kqueue
FILE REMOVED
Changes since revision 1.11: +0 -1876
lines
file gem.c was added on branch kqueue on 2002-01-10 19:54:29 +0000
Revision 1.11: download - view: text, markup, annotated - select for diffs
Sat Nov 17 00:56:04 2001 UTC (25 years ago) by thorpej
Branches: MAIN
Branch point for: kqueue
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +12 -15
lines
Back out the last two changes I made to this driver -- some people
have reported lossage.
Revision 1.1.2.5: download - view: text, markup, annotated - select for diffs
Wed Nov 14 19:14:22 2001 UTC (25 years ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.1.2.4: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.4: +4 -1
lines
Catch up to -current.
Revision 1.10: download - view: text, markup, annotated - select for diffs
Tue Nov 13 13:14:37 2001 UTC (25 years ago) by lukem
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +4 -1
lines
add/cleanup RCSID
Revision 1.1.2.4: download - view: text, markup, annotated - select for diffs
Mon Oct 22 20:41:17 2001 UTC (25 years ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.1.2.3: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.3: +36 -91
lines
Catch up to -current.
Revision 1.9: download - view: text, markup, annotated - select for diffs
Sun Oct 21 20:45:15 2001 UTC (25 years, 1 month ago) by thorpej
Branches: MAIN
CVS tags: thorpej-mips-cache-base,
thorpej-mips-cache
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +12 -5
lines
Reserve one descriptor at the end of the ring as a termination point,
to prevent the producer index from getting confused.
Revision 1.8: download - view: text, markup, annotated - select for diffs
Sat Oct 20 18:25:52 2001 UTC (25 years, 1 month ago) by thorpej
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +3 -7
lines
gem_init(): Don't call gem_mii_statchg() directly. Instead, call
gem_mediachange(). This will cause gem_mii_statchg() to be called
by the MII layer with the correct MII media state, so that speed
duplex parameters will be set properly.
Revision 1.7: download - view: text, markup, annotated - select for diffs
Thu Oct 18 15:19:21 2001 UTC (25 years, 1 month ago) by thorpej
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +1 -24
lines
Yet more cruft removal.
Revision 1.6: download - view: text, markup, annotated - select for diffs
Thu Oct 18 15:09:15 2001 UTC (25 years, 1 month ago) by thorpej
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +12 -28
lines
Remove more cruft left over from copying bits of other drivers.
Revision 1.5: download - view: text, markup, annotated - select for diffs
Thu Oct 18 06:28:17 2001 UTC (25 years, 1 month ago) by thorpej
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +2 -22
lines
Remove some more stuff left over from copying bits of the HME driver.
Revision 1.4: download - view: text, markup, annotated - select for diffs
Thu Oct 18 03:33:33 2001 UTC (25 years, 1 month ago) by thorpej
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +11 -10
lines
Manipulate the Tx desc pointer as 2 32-bit values, just as
we do with the Rx desc pointer, both for consistency, and
for platforms which don't have bus_space_*_8().
Revision 1.1.4.3: download - view: text, markup, annotated - select for diffs
Thu Oct 11 00:02:03 2001 UTC (25 years, 1 month ago) by fvdl
Branches: thorpej-devvp
Diff to: previous 1.1.4.2: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.4.2: +18 -120
lines
Catch up with -current. Fix some bogons in the sparc64 kbd/ms
attach code. cd18xx conversion provided by mrg.
Revision 1.1.2.3: download - view: text, markup, annotated - select for diffs
Mon Oct 8 20:11:00 2001 UTC (25 years, 1 month ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.1.2.2: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.2: +18 -120
lines
Catch up to -current.
Revision 1.3: download - view: text, markup, annotated - select for diffs
Mon Oct 1 23:55:00 2001 UTC (25 years, 1 month ago) by eeh
Branches: MAIN
CVS tags: thorpej-devvp-base3
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +7 -54
lines
Remove some debug messages.
Revision 1.2: download - view: text, markup, annotated - select for diffs
Mon Oct 1 23:39:57 2001 UTC (25 years, 1 month ago) by eeh
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +16 -71
lines
Increase receive ring to 128 entries and handle both endian devices.
Revision 1.1.4.2: download - view: text, markup, annotated - select for diffs
Mon Oct 1 12:45:35 2001 UTC (25 years, 1 month ago) by fvdl
Branches: thorpej-devvp
Diff to: previous 1.1.4.1: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.4.1: +2033 -0
lines
Catch up with -current.
Revision 1.1.2.2: download - view: text, markup, annotated - select for diffs
Fri Sep 21 22:35:37 2001 UTC (25 years, 2 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.1.2.1: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.1: +2033 -0
lines
Catch up to -current.
Revision 1.1.4.1
Sun Sep 16 00:11:43 2001 UTC (25 years, 2 months ago) by fvdl
Branches: thorpej-devvp
FILE REMOVED
Changes since revision 1.1: +0 -2033
lines
file gem.c was added on branch thorpej-devvp on 2001-10-01 12:45:35 +0000
Revision 1.1.2.1
Sun Sep 16 00:11:43 2001 UTC (25 years, 2 months ago) by nathanw
Branches: nathanw_sa
FILE REMOVED
Changes since revision 1.1: +0 -2033
lines
file gem.c was added on branch nathanw_sa on 2001-09-21 22:35:37 +0000
Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Sep 16 00:11:43 2001 UTC (25 years, 2 months ago) by eeh
Branches: MAIN
CVS tags: thorpej-devvp-base2
Branch point for: thorpej-devvp,
nathanw_sa
Driver for Sun GEM gigabit ethernet, Sun ERI 10/100, and Apple GMAC.
CVSweb <webmaster@jp.NetBSD.org>