CVS log for src/sys/dev/marvell/if_mvgbe.c
Up to [cvs.NetBSD.org] / src / sys / dev / marvell
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.69: download - view: text, markup, annotated - select for diffs
Sat Dec 7 07:52:19 2024 UTC (3 months, 2 weeks ago) by andvar
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +3 -3
lines
s/funcstions/functions/ in comment.
Revision 1.68: download - view: text, markup, annotated - select for diffs
Fri Jul 5 04:31:51 2024 UTC (8 months, 3 weeks ago) by rin
Branches: MAIN
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +6 -10
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.67: download - view: text, markup, annotated - select for diffs
Sun Feb 4 18:52:36 2024 UTC (13 months, 2 weeks ago) by andvar
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +3 -3
lines
fix tripple/quadruple "r" letter typos in comments and log messages.
Revision 1.66: download - view: text, markup, annotated - select for diffs
Sat May 21 10:33:05 2022 UTC (2 years, 10 months ago) by rin
Branches: MAIN
CVS tags: thorpej-ifq-base,
thorpej-ifq,
thorpej-altq-separation-base,
thorpej-altq-separation,
netbsd-10-base,
netbsd-10-1-RELEASE,
netbsd-10-0-RELEASE,
netbsd-10-0-RC6,
netbsd-10-0-RC5,
netbsd-10-0-RC4,
netbsd-10-0-RC3,
netbsd-10-0-RC2,
netbsd-10-0-RC1,
netbsd-10,
bouyer-sunxi-drm-base,
bouyer-sunxi-drm
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +7 -5
lines
Correct byte-order for bufsize field of RX descriptor.
XXX
This bug affected only armeb. Unfortunately, the systems including
armel still lock up eventually with NFS root on mvgbe(4)...
Revision 1.65: download - view: text, markup, annotated - select for diffs
Sat May 21 10:27:30 2022 UTC (2 years, 10 months ago) by rin
Branches: MAIN
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +6 -5
lines
m_freem() *after* bus_dmamap_sync() and bus_dmamap_load() for
that mbuf. This is mandatory for some archs.
Revision 1.64: download - view: text, markup, annotated - select for diffs
Sat May 21 10:24:50 2022 UTC (2 years, 10 months ago) by rin
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +5 -3
lines
Add DPRINTF() to catch failure of m_defrag() in mvgbe_encap().
Revision 1.63: download - view: text, markup, annotated - select for diffs
Sat May 21 10:22:27 2022 UTC (2 years, 10 months ago) by rin
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +3 -3
lines
Raise threshold of debug level to 3 for DPRINTF() in non-error path of
mvgbe_encap(). Without this change, debug level 2 is almost unusable...
Revision 1.62: download - view: text, markup, annotated - select for diffs
Mon Aug 30 00:08:28 2021 UTC (3 years, 6 months ago) by rin
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +38 -34
lines
Add ARMEB support to mvgbe(4).
For ARMEB, peripheral is configured to little-endian mode, even if
CPU itself is in big-endian mode. Therefore, we need to configure
the device to little-endian mode, and byte-swap descriptor fields
(unlike the case of powerpc).
Revision 1.61: download - view: text, markup, annotated - select for diffs
Sat Aug 7 16:19:13 2021 UTC (3 years, 7 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base,
thorpej-i2c-spi-conf2
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +3 -4
lines
Merge thorpej-cfargs2.
Revision 1.60.8.1: download - view: text, markup, annotated - select for diffs
Wed Aug 4 21:00:41 2021 UTC (3 years, 7 months ago) by thorpej
Branches: thorpej-cfargs2
Diff to: previous 1.60: preferred, colored; next MAIN 1.61: preferred, colored
Changes since revision 1.60: +3 -4
lines
Adapt to CFARGS().
Revision 1.60: download - view: text, markup, annotated - select for diffs
Sat Apr 24 23:36:56 2021 UTC (3 years, 11 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf-base,
thorpej-i2c-spi-conf,
thorpej-futex2-base,
thorpej-futex2,
thorpej-cfargs2-base,
cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x
Branch point for: thorpej-cfargs2
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +5 -4
lines
Merge thorpej-cfargs branch:
Simplify and make extensible the config_search() / config_found() /
config_attach() interfaces: rather than having different variants for
which arguments you want pass along, just have a single call that
takes a variadic list of tag-value arguments.
Adjust all call sites:
- Simplify wherever possible; don't pass along arguments that aren't
actually needed.
- Don't be explicit about what interface attribute is attaching if
the device only has one. (More simplification.)
- Add a config_probe() function to be used in indirect configuiration
situations, making is visibly easier to see when indirect config is
in play, and allowing for future change in semantics. (As of now,
this is just a wrapper around config_match(), but that is an
implementation detail.)
Remove unnecessary or redundant interface attributes where they're not
needed.
There are currently 5 "cfargs" defined:
- CFARG_SUBMATCH (submatch function for direct config)
- CFARG_SEARCH (search function for indirect config)
- CFARG_IATTR (interface attribte)
- CFARG_LOCATORS (locators array)
- CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)
...and a sentinel value CFARG_EOL.
Add some extra sanity checking to ensure that interface attributes
aren't ambiguous.
Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance. This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).
Revision 1.59.8.2: download - view: text, markup, annotated - select for diffs
Mon Mar 22 16:23:45 2021 UTC (4 years ago) by thorpej
Branches: thorpej-cfargs
Diff to: previous 1.59.8.1: preferred, colored; branchpoint 1.59: preferred, colored; next MAIN 1.60: preferred, colored
Changes since revision 1.59.8.1: +2 -3
lines
Audit CFARG_IATTR in config_found() calls, and remove it in situations
where the interface attribute is not ambiguous.
Revision 1.59.8.1: download - view: text, markup, annotated - select for diffs
Mon Mar 22 02:01:01 2021 UTC (4 years ago) by thorpej
Branches: thorpej-cfargs
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +6 -4
lines
Mechanical conversion of config_found_sm_loc() -> config_found().
CFARG_IATTR usage needs to be audited.
Revision 1.50.2.3: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:04:23 2020 UTC (4 years, 11 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.50.2.2: preferred, colored; branchpoint 1.50: preferred, colored; next MAIN 1.51: preferred, colored
Changes since revision 1.50.2.2: +2 -2
lines
Mostly merge changes from HEAD upto 20200411
Revision 1.50.2.2: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:08:07 2020 UTC (4 years, 11 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.50.2.1: preferred, colored; branchpoint 1.50: preferred, colored
Changes since revision 1.50.2.1: +13 -13
lines
Merge changes from current as of 20200406
Revision 1.58.2.1: download - view: text, markup, annotated - select for diffs
Sat Feb 29 20:19:09 2020 UTC (5 years ago) by ad
Branches: ad-namecache
Diff to: previous 1.58: preferred, colored; next MAIN 1.59: preferred, colored
Changes since revision 1.58: +13 -13
lines
Sync with head.
Revision 1.59: download - view: text, markup, annotated - select for diffs
Mon Feb 3 07:47:53 2020 UTC (5 years, 1 month ago) by skrll
Branches: MAIN
CVS tags: thorpej-futex-base,
thorpej-futex,
thorpej-cfargs-base,
phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
is-mlppp-base,
is-mlppp,
bouyer-xenpvh-base2,
bouyer-xenpvh-base1,
bouyer-xenpvh-base,
bouyer-xenpvh,
ad-namecache-base3
Branch point for: thorpej-cfargs
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +13 -13
lines
Adopt <net/if_stats.h>
Revision 1.58: download - view: text, markup, annotated - select for diffs
Fri Sep 13 07:55:07 2019 UTC (5 years, 6 months ago) by msaitoh
Branches: MAIN
CVS tags: phil-wifi-20191119,
ad-namecache-base2,
ad-namecache-base1,
ad-namecache-base
Branch point for: ad-namecache
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +4 -4
lines
if_flags is neither int nor short. It's unsigned short.
Revision 1.50.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:07:13 2019 UTC (5 years, 9 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +62 -59
lines
Sync with HEAD
Revision 1.57: download - view: text, markup, annotated - select for diffs
Tue May 28 07:41:49 2019 UTC (5 years, 10 months ago) by msaitoh
Branches: MAIN
CVS tags: phil-wifi-20190609,
netbsd-9-base,
netbsd-9-4-RELEASE,
netbsd-9-3-RELEASE,
netbsd-9-2-RELEASE,
netbsd-9-1-RELEASE,
netbsd-9-0-RELEASE,
netbsd-9-0-RC2,
netbsd-9-0-RC1,
netbsd-9
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +5 -2
lines
Use ETHER_LOCK()/ETHER_UNLOCK() for all ethernet drivers to protect ec_multi*.
Revision 1.56: download - view: text, markup, annotated - select for diffs
Thu May 23 13:10:51 2019 UTC (5 years, 10 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +6 -6
lines
Whitespace fix (mainly tabify).
Revision 1.55: download - view: text, markup, annotated - select for diffs
Thu May 23 10:51:39 2019 UTC (5 years, 10 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +24 -25
lines
No functional change:
- Simplify MII structure initialization and reference.
- u_int*_t -> uint*_t.
- KNF
Revision 1.54: download - view: text, markup, annotated - select for diffs
Mon Apr 22 08:05:01 2019 UTC (5 years, 11 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +2 -8
lines
On drivers which use MII(4) and have hook SIOC[GS]IFMEDIA which just pass to
ifmedia_ioctl(), the hook is not required because ether_ioctl has it
(if_ethersubr.c rev. 1.160). These drivers don't return ENETRESET in
ifmedia_ioctl(), so no functional change.
Revision 1.49.8.4: download - view: text, markup, annotated - select for diffs
Sat Jan 26 22:00:06 2019 UTC (6 years, 2 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.49.8.3: preferred, colored; branchpoint 1.49: preferred, colored; next MAIN 1.50: preferred, colored
Changes since revision 1.49.8.3: +31 -24
lines
Sync with HEAD
Revision 1.53: download - view: text, markup, annotated - select for diffs
Tue Jan 22 03:42:27 2019 UTC (6 years, 2 months ago) by msaitoh
Branches: MAIN
CVS tags: pgoyette-compat-20190127,
isaki-audio2-base,
isaki-audio2
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +31 -24
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.49.8.3: download - view: text, markup, annotated - select for diffs
Mon Nov 26 01:52:31 2018 UTC (6 years, 4 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.49.8.2: preferred, colored; branchpoint 1.49: preferred, colored
Changes since revision 1.49.8.2: +3 -3
lines
Sync with HEAD, resolve a couple of conflicts
Revision 1.52: download - view: text, markup, annotated - select for diffs
Fri Nov 16 15:06:23 2018 UTC (6 years, 4 months ago) by jmcneill
Branches: MAIN
CVS tags: pgoyette-compat-20190118,
pgoyette-compat-1226,
pgoyette-compat-1126
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +3 -3
lines
Add intr_establish_xname support to arm and expose it to intrctl
Revision 1.49.8.2: download - view: text, markup, annotated - select for diffs
Thu Sep 6 06:55:50 2018 UTC (6 years, 6 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.49.8.1: preferred, colored; branchpoint 1.49: preferred, colored
Changes since revision 1.49.8.1: +3 -3
lines
Sync with HEAD
Resolve a couple of conflicts (result of the uimin/uimax changes)
Revision 1.51: download - view: text, markup, annotated - select for diffs
Mon Sep 3 16:29:31 2018 UTC (6 years, 6 months ago) by riastradh
Branches: MAIN
CVS tags: pgoyette-compat-1020,
pgoyette-compat-0930,
pgoyette-compat-0906
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +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.49.8.1: download - view: text, markup, annotated - select for diffs
Sat Jul 28 04:37:45 2018 UTC (6 years, 8 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +3 -3
lines
Sync with HEAD
Revision 1.50: download - view: text, markup, annotated - select for diffs
Tue Jun 26 06:48:01 2018 UTC (6 years, 9 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.49: preferred, colored
Changes since revision 1.49: +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.19.2.4: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:37:05 2017 UTC (7 years, 3 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.19.2.3: preferred, colored; next MAIN 1.20: preferred, colored
Changes since revision 1.19.2.3: +49 -23
lines
update from HEAD
Revision 1.39.4.5: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:52:04 2017 UTC (7 years, 6 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.39.4.4: preferred, colored; branchpoint 1.39: preferred, colored; next MAIN 1.40: preferred, colored
Changes since revision 1.39.4.4: +2 -13
lines
Sync with HEAD
Revision 1.49: download - view: text, markup, annotated - select for diffs
Thu Jun 1 02:45:10 2017 UTC (7 years, 9 months ago) by chs
Branches: MAIN
CVS tags: tls-maxphys-base-20171202,
pgoyette-compat-base,
pgoyette-compat-0625,
pgoyette-compat-0521,
pgoyette-compat-0502,
pgoyette-compat-0422,
pgoyette-compat-0415,
pgoyette-compat-0407,
pgoyette-compat-0330,
pgoyette-compat-0322,
pgoyette-compat-0315,
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
Branch point for: pgoyette-compat
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +2 -13
lines
remove checks for failure after memory allocation calls that cannot fail:
kmem_alloc() with KM_SLEEP
kmem_zalloc() with KM_SLEEP
percpu_alloc()
pserialize_create()
psref_class_create()
all of these paths include an assertion that the allocation has not failed,
so callers should not assert that again.
Revision 1.45.2.2: download - view: text, markup, annotated - select for diffs
Mon Mar 20 06:57:29 2017 UTC (8 years ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.45.2.1: preferred, colored; branchpoint 1.45: preferred, colored; next MAIN 1.46: preferred, colored
Changes since revision 1.45.2.1: +4 -2
lines
Sync with HEAD
Revision 1.39.4.4: download - view: text, markup, annotated - select for diffs
Sun Feb 5 13:40:28 2017 UTC (8 years, 1 month ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.39.4.3: preferred, colored; branchpoint 1.39: preferred, colored
Changes since revision 1.39.4.3: +6 -8
lines
Sync with HEAD
Revision 1.48: download - view: text, markup, annotated - select for diffs
Sat Jan 7 14:24:27 2017 UTC (8 years, 2 months ago) by kiyohara
Branches: MAIN
CVS tags: prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
prg-localcount2,
pgoyette-localcount-20170426,
pgoyette-localcount-20170320,
nick-nhusb-base-20170204,
jdolecek-ncq-base,
jdolecek-ncq,
bouyer-socketcan-base1,
bouyer-socketcan-base,
bouyer-socketcan
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +4 -2
lines
Support Marvell Dove.
Revision 1.45.2.1: download - view: text, markup, annotated - select for diffs
Sat Jan 7 08:56:32 2017 UTC (8 years, 2 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +4 -8
lines
Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
Revision 1.47: download - view: text, markup, annotated - select for diffs
Thu Dec 15 09:28:05 2016 UTC (8 years, 3 months ago) by ozaki-r
Branches: MAIN
CVS tags: pgoyette-localcount-20170107
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +2 -6
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.46: download - view: text, markup, annotated - select for diffs
Thu Dec 8 01:12:01 2016 UTC (8 years, 3 months ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +4 -4
lines
Apply deferred if_start framework
if_schedule_deferred_start checks if the if_snd queue contains packets,
so drivers don't need to check it by themselves.
Revision 1.39.4.3: download - view: text, markup, annotated - select for diffs
Sat Jul 9 20:25:03 2016 UTC (8 years, 8 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.39.4.2: preferred, colored; branchpoint 1.39: preferred, colored
Changes since revision 1.39.4.2: +3 -3
lines
Sync with HEAD
Revision 1.45: download - view: text, markup, annotated - select for diffs
Fri Jun 10 13:27:14 2016 UTC (8 years, 9 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.44: preferred, colored
Changes since revision 1.44: +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.39.4.2: download - view: text, markup, annotated - select for diffs
Sat Mar 19 11:30:10 2016 UTC (9 years ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.39.4.1: preferred, colored; branchpoint 1.39: preferred, colored
Changes since revision 1.39.4.1: +17 -6
lines
Sync with HEAD
Revision 1.44: download - view: text, markup, annotated - select for diffs
Sat Feb 13 08:44:22 2016 UTC (9 years, 1 month ago) by hikaru
Branches: MAIN
CVS tags: nick-nhusb-base-20160529,
nick-nhusb-base-20160422,
nick-nhusb-base-20160319
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +15 -4
lines
Pass all unicast addresses if it is promisc mode.
Revision 1.43: download - view: text, markup, annotated - select for diffs
Tue Feb 9 12:53:17 2016 UTC (9 years, 1 month ago) by kiyohara
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +3 -3
lines
Add more #warning message 'Please use mvxpe instead of this'.
Revision 1.42: download - view: text, markup, annotated - select for diffs
Tue Feb 9 08:32:11 2016 UTC (9 years, 1 month ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +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.39.4.1: download - view: text, markup, annotated - select for diffs
Sat Jun 6 14:40:08 2015 UTC (9 years, 9 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +31 -3
lines
Sync with HEAD
Revision 1.41: download - view: text, markup, annotated - select for diffs
Wed Apr 15 10:15:40 2015 UTC (9 years, 11 months ago) by hsuenaga
Branches: MAIN
CVS tags: nick-nhusb-base-20151226,
nick-nhusb-base-20150921,
nick-nhusb-base-20150606
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +30 -2
lines
add u-boot argument parser for Marvell ARMADA XP/370.
use 'ethaddr' and 'eth1addr' in u-boot argument to setup MAC address of mvgbe.
Revision 1.40: download - view: text, markup, annotated - select for diffs
Mon Apr 13 16:33:24 2015 UTC (9 years, 11 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +3 -3
lines
Convert sys/dev to use <sys/rndsource.h>.
Revision 1.19.2.3: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:03:39 2014 UTC (10 years, 7 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.19.2.2: preferred, colored
Changes since revision 1.19.2.2: +172 -63
lines
Rebase to HEAD as of a few days ago.
Revision 1.39: download - view: text, markup, annotated - select for diffs
Sun Aug 10 16:44:35 2014 UTC (10 years, 7 months ago) by tls
Branches: MAIN
CVS tags: tls-maxphys-base,
nick-nhusb-base-20150406,
nick-nhusb-base,
netbsd-7-nhusb-base-20170116,
netbsd-7-nhusb-base,
netbsd-7-nhusb,
netbsd-7-base,
netbsd-7-2-RELEASE,
netbsd-7-1-RELEASE,
netbsd-7-1-RC2,
netbsd-7-1-RC1,
netbsd-7-1-2-RELEASE,
netbsd-7-1-1-RELEASE,
netbsd-7-1,
netbsd-7-0-RELEASE,
netbsd-7-0-RC3,
netbsd-7-0-RC2,
netbsd-7-0-RC1,
netbsd-7-0-2-RELEASE,
netbsd-7-0-1-RELEASE,
netbsd-7-0,
netbsd-7
Branch point for: nick-nhusb
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +3 -3
lines
Merge tls-earlyentropy branch into HEAD.
Revision 1.13.2.5: download - view: text, markup, annotated - select for diffs
Thu May 22 11:40:23 2014 UTC (10 years, 10 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.13.2.4: preferred, colored; branchpoint 1.13: preferred, colored; next MAIN 1.14: preferred, colored
Changes since revision 1.13.2.4: +171 -62
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.34.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 17:45:38 2014 UTC (10 years, 10 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.34: preferred, colored; next MAIN 1.35: preferred, colored
Changes since revision 1.34: +171 -62
lines
sync with head
Revision 1.38.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 7 03:37:32 2014 UTC (10 years, 11 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.38: preferred, colored; next MAIN 1.39: preferred, colored
Changes since revision 1.38: +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.38: download - view: text, markup, annotated - select for diffs
Sat Mar 15 13:33:48 2014 UTC (11 years ago) by kiyohara
Branches: MAIN
CVS tags: yamt-pagecache-base9,
tls-earlyentropy-base,
rmind-smpnet-nbase,
rmind-smpnet-base,
riastradh-xf86-video-intel-2-7-1-pre-2-21-15,
riastradh-drm2-base3
Branch point for: tls-earlyentropy
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +15 -16
lines
Support Armada 370 and DDR3 tags.
Revision 1.37: download - view: text, markup, annotated - select for diffs
Tue Feb 25 18:30:10 2014 UTC (11 years, 1 month ago) by pooka
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +2 -8
lines
Ensure that the top level sysctl nodes (kern, vfs, net, ...) exist before
the sysctl link sets are processed, and remove redundancy.
Shaves >13kB off of an amd64 GENERIC, not to mention >1k duplicate
lines of code.
Revision 1.36: download - view: text, markup, annotated - select for diffs
Mon Feb 3 05:56:23 2014 UTC (11 years, 1 month ago) by msaitoh
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +4 -3
lines
Carefully set IFF_OACTIVE in mvgbe_start(). Even if mvgbe_encap()
returns other than 0, the TX ring might not full. Check whether
the TX ring has one or more packets. If the ring is empty,
dont' set IFF_OACTIVE because an TX complete interrupt never
occur and IFF_OACTIVE flags is left. The interface's timer
isn't reset, so a device timeout desn't occur.
Fixes a bug that IFF_OACTIVE flag is left on heavy load.
Part of PR#48568.
Revision 1.35: download - view: text, markup, annotated - select for diffs
Mon Dec 23 02:23:25 2013 UTC (11 years, 3 months ago) by kiyohara
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +159 -44
lines
Support Basic Mode for Armada XP.
Revision 1.19.2.2: download - view: text, markup, annotated - select for diffs
Mon Feb 25 00:29:16 2013 UTC (12 years, 1 month ago) by tls
Branches: tls-maxphys
Diff to: previous 1.19.2.1: preferred, colored
Changes since revision 1.19.2.1: +7 -5
lines
resync with head
Revision 1.13.2.4: download - view: text, markup, annotated - select for diffs
Wed Jan 23 00:06:07 2013 UTC (12 years, 2 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.13.2.3: preferred, colored; branchpoint 1.13: preferred, colored
Changes since revision 1.13.2.3: +7 -5
lines
sync with head
Revision 1.13.2.3: download - view: text, markup, annotated - select for diffs
Wed Jan 16 05:33:16 2013 UTC (12 years, 2 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.13.2.2: preferred, colored; branchpoint 1.13: preferred, colored
Changes since revision 1.13.2.2: +49 -21
lines
sync with (a bit old) head
Revision 1.16.2.3: download - view: text, markup, annotated - select for diffs
Mon Jan 7 16:45:30 2013 UTC (12 years, 2 months ago) by riz
Branches: netbsd-6
CVS tags: netbsd-6-1-RELEASE,
netbsd-6-1-RC4,
netbsd-6-1-RC3,
netbsd-6-1-RC2,
netbsd-6-1-RC1,
netbsd-6-1-5-RELEASE,
netbsd-6-1-4-RELEASE,
netbsd-6-1-3-RELEASE,
netbsd-6-1-2-RELEASE,
netbsd-6-1-1-RELEASE,
netbsd-6-1
Diff to: previous 1.16.2.2: preferred, colored; branchpoint 1.16: preferred, colored; next MAIN 1.17: preferred, colored
Changes since revision 1.16.2.2: +4 -4
lines
Pull up following revision(s) (requested by msaitoh in ticket #775):
sys/dev/marvell/if_mvgbe.c: revision 1.34
Fix a bug that a multicast filter entry is incorrectly overrode
on some cases.
Revision 1.16.2.2: download - view: text, markup, annotated - select for diffs
Sat Jan 5 23:32:27 2013 UTC (12 years, 2 months ago) by riz
Branches: netbsd-6
Diff to: previous 1.16.2.1: preferred, colored; branchpoint 1.16: preferred, colored
Changes since revision 1.16.2.1: +5 -3
lines
Pull up following revision(s) (requested by msaitoh in ticket #766):
sys/dev/marvell/if_mvgbe.c: revision 1.33
Check wheter an MII PHY is really connected or not.
This change privents panic if MII PHY port is not used.
Revision 1.34: download - view: text, markup, annotated - select for diffs
Fri Dec 28 08:16:53 2012 UTC (12 years, 3 months ago) by msaitoh
Branches: MAIN
CVS tags: yamt-pagecache-base8,
riastradh-drm2-base2,
riastradh-drm2-base1,
riastradh-drm2-base,
riastradh-drm2,
khorben-n900,
agc-symver-base,
agc-symver
Branch point for: rmind-smpnet
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +4 -4
lines
Fix a bug that a multicast filter entry is incorrectly overrode
on some cases.
Revision 1.33: download - view: text, markup, annotated - select for diffs
Thu Dec 20 10:01:28 2012 UTC (12 years, 3 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +5 -3
lines
Check wheter an MII PHY is really connected or not.
This change privents panic if MII PHY port is not used.
Revision 1.16.2.1: download - view: text, markup, annotated - select for diffs
Tue Nov 20 22:26:03 2012 UTC (12 years, 4 months ago) by riz
Branches: netbsd-6
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +128 -48
lines
Apply patch (requested by msaitoh in ticket #671):
sys/dev/marvell/if_mvgbe.c 1.19-1.23, 1.26-1.31
sys/dev/marvell/mvgbereg.h 1.4-1.5, 1.7
Add missing bus_dmamap_sync() for the RX buffer.
Fix device timeout problem.
Fix broken hardware checksumming.
Fix a bug that kernel panics when the system get a packet while calling
mvgbe_stop (via ifconfig down).
Add missing mii_tick() call.
Change style a bit.
Don't use M_HASFCS flag.
When an interrput is link change, notify link change to mii layer using
mii_pollstat().
Fix a bug that the alignment of jumbo buffer(MVGBE_JLEN) is miscalculated.
Revision 1.19.2.1: download - view: text, markup, annotated - select for diffs
Tue Nov 20 03:02:11 2012 UTC (12 years, 4 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +354 -68
lines
Resync to 2012-11-19 00:00:00 UTC
Revision 1.32: download - view: text, markup, annotated - select for diffs
Fri Nov 9 09:04:19 2012 UTC (12 years, 4 months ago) by msaitoh
Branches: MAIN
CVS tags: yamt-pagecache-base7
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +24 -2
lines
Add MVGBE_EVENT_COUNTERS for debugging. Count rxoverrrun and wdogsoft.
Revision 1.31: download - view: text, markup, annotated - select for diffs
Thu Nov 8 15:39:29 2012 UTC (12 years, 4 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +4 -3
lines
Fix a bug that MVGBE_JLEN is miscalculated.
Revision 1.30: download - view: text, markup, annotated - select for diffs
Thu Nov 8 14:37:47 2012 UTC (12 years, 4 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +3 -0
lines
When an interrput is link change, notify link change to mii layer using
mii_pollstat().
Revision 1.29: download - view: text, markup, annotated - select for diffs
Thu Nov 8 14:32:01 2012 UTC (12 years, 4 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +3 -4
lines
Don't use M_HASFCS flag.
Revision 1.28: download - view: text, markup, annotated - select for diffs
Thu Nov 1 02:46:41 2012 UTC (12 years, 4 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +22 -19
lines
No functional change.
- Change style a bit.
- use "csc" for the variable name of struct mvgbec_softc in mvgbec_attach()
for consistency.
Revision 1.13.2.2: download - view: text, markup, annotated - select for diffs
Tue Oct 30 17:21:18 2012 UTC (12 years, 4 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.13.2.1: preferred, colored; branchpoint 1.13: preferred, colored
Changes since revision 1.13.2.1: +319 -54
lines
sync with head
Revision 1.27: download - view: text, markup, annotated - select for diffs
Fri Oct 26 21:03:26 2012 UTC (12 years, 5 months ago) by msaitoh
Branches: MAIN
CVS tags: yamt-pagecache-base6
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +29 -3
lines
Add missing mii_tick() call.
Revision 1.26: download - view: text, markup, annotated - select for diffs
Wed Oct 17 18:12:59 2012 UTC (12 years, 5 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +16 -3
lines
Fix a bug that kernel panics when the system get a packet while calling
mvgbe_stop (via ifconfig down).
Revision 1.25: download - view: text, markup, annotated - select for diffs
Tue Oct 16 19:49:41 2012 UTC (12 years, 5 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +189 -21
lines
Add code to modify interrupt coalescing with sysctl.
- both TX side an RX side.
- different setting for each port
- TX side is hw.mvgbe.mvgbe*.ipginttx
- RX side is hw.mvgbe.mvgbe*.ipgintrx
- The default value is 768.
- The lowest value is 0
- For highest value, 0x3777 is used for V1, and 0xffff is used for V2.
Revision 1.24: download - view: text, markup, annotated - select for diffs
Sun Oct 14 19:17:08 2012 UTC (12 years, 5 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +38 -19
lines
Add Interrupt Coalescing setting by Robert Swindells.
Revision 1.23: download - view: text, markup, annotated - select for diffs
Fri Oct 12 10:38:06 2012 UTC (12 years, 5 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +3 -8
lines
- The MVGBE_RX_MAX_FRAME_LEN_ERROR bit is used to check whether a packet
is fragmented or not, so define new MVGBE_RX_IP_FRAGMENT with the same
value and use it.
- Remove the checking whether a packet length is lower than 72 octet.
This check is not used in Linux and FreeBSD. Tested with me (for Kirkwood)
and Kiyohara (for DiscoveryII).
Revision 1.22: download - view: text, markup, annotated - select for diffs
Thu Oct 4 14:21:00 2012 UTC (12 years, 5 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +22 -17
lines
Fix udpcsum-rx bug on fragmented case this time.
- Fix the usage of a local variable for csum_flags.
- It seemd that sometimes MVGBE_RX_L4_CHECKSUM_OK bit were set to 0
even if the checksum is correct and the packet was not fragmented.
So we don't set M_CSUM_TCP_UDP_BAD even if csum bit is 0.
Revision 1.21: download - view: text, markup, annotated - select for diffs
Tue Oct 2 15:22:46 2012 UTC (12 years, 5 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +24 -12
lines
- Fix a bug that a fragmented packet is marked as bad checksum. It causes
a real bug when HW checksum offload function is used. It was easy to
reproduce with NFS UDP mount.
- Fix a potential bug that a packet other than TCP and UDP is marked as bad
checksum.
Revision 1.20: download - view: text, markup, annotated - select for diffs
Fri Sep 21 00:26:15 2012 UTC (12 years, 6 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +31 -11
lines
Fix device timeout problem.
- Change the synching order of descriptors. First, sync descriptors except
first and then sync the first descriptor.
- To recover from an race condition, reduce the if_timer from 5 to 1 and
when timeout occur write MVGBE_TQC_ENQ bit again.
Revision 1.19: download - view: text, markup, annotated - select for diffs
Thu Sep 6 03:45:02 2012 UTC (12 years, 6 months ago) by msaitoh
Branches: MAIN
Branch point for: tls-maxphys
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +9 -4
lines
Add missing bus_dmamap_sync() for the RX buffer.
Revision 1.18: download - view: text, markup, annotated - select for diffs
Sun Jul 22 14:32:59 2012 UTC (12 years, 8 months ago) by matt
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +4 -4
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.17: download - view: text, markup, annotated - select for diffs
Wed Jul 18 09:21:37 2012 UTC (12 years, 8 months ago) by kiyohara
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +6 -4
lines
Add 88F6282. tested only OpenBlockS A6.
Also fix irq 11 to 15. irq of 2nd NIC is 15.
Remove white-space.
Revision 1.13.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:07:41 2012 UTC (12 years, 11 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +34 -16
lines
sync with head
Revision 1.15.2.1: download - view: text, markup, annotated - select for diffs
Sat Feb 18 07:34:31 2012 UTC (13 years, 1 month ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.15: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15: +3 -14
lines
merge to -current.
Revision 1.16: download - view: text, markup, annotated - select for diffs
Thu Feb 2 19:43:04 2012 UTC (13 years, 1 month ago) by tls
Branches: MAIN
CVS tags: yamt-pagecache-base5,
yamt-pagecache-base4,
netbsd-6-base,
netbsd-6-0-RELEASE,
netbsd-6-0-RC2,
netbsd-6-0-RC1,
netbsd-6-0-6-RELEASE,
netbsd-6-0-5-RELEASE,
netbsd-6-0-4-RELEASE,
netbsd-6-0-3-RELEASE,
netbsd-6-0-2-RELEASE,
netbsd-6-0-1-RELEASE,
netbsd-6-0,
matt-nb6-plus-nbase,
matt-nb6-plus-base,
matt-nb6-plus,
jmcneill-usbmp-base9,
jmcneill-usbmp-base8,
jmcneill-usbmp-base7,
jmcneill-usbmp-base6,
jmcneill-usbmp-base5,
jmcneill-usbmp-base4,
jmcneill-usbmp-base3,
jmcneill-usbmp-base2,
jmcneill-usbmp-base10
Branch point for: netbsd-6
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +3 -14
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.15: download - view: text, markup, annotated - select for diffs
Sat Nov 19 22:51:23 2011 UTC (13 years, 4 months ago) by tls
Branches: MAIN
CVS tags: jmcneill-usbmp-pre-base2,
jmcneill-usbmp-base
Branch point for: jmcneill-usbmp
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +3 -3
lines
First step of random number subsystem rework described in
<20111022023242.BA26F14A158@mail.netbsd.org>. This change includes
the following:
An initial cleanup and minor reorganization of the entropy pool
code in sys/dev/rnd.c and sys/dev/rndpool.c. Several bugs are
fixed. Some effort is made to accumulate entropy more quickly at
boot time.
A generic interface, "rndsink", is added, for stream generators to
request that they be re-keyed with good quality entropy from the pool
as soon as it is available.
The arc4random()/arc4randbytes() implementation in libkern is
adjusted to use the rndsink interface for rekeying, which helps
address the problem of low-quality keys at boot time.
An implementation of the FIPS 140-2 statistical tests for random
number generator quality is provided (libkern/rngtest.c). This
is based on Greg Rose's implementation from Qualcomm.
A new random stream generator, nist_ctr_drbg, is provided. It is
based on an implementation of the NIST SP800-90 CTR_DRBG by
Henric Jungheim. This generator users AES in a modified counter
mode to generate a backtracking-resistant random stream.
An abstraction layer, "cprng", is provided for in-kernel consumers
of randomness. The arc4random/arc4randbytes API is deprecated for
in-kernel use. It is replaced by "cprng_strong". The current
cprng_fast implementation wraps the existing arc4random
implementation. The current cprng_strong implementation wraps the
new CTR_DRBG implementation. Both interfaces are rekeyed from
the entropy pool automatically at intervals justifiable from best
current cryptographic practice.
In some quick tests, cprng_fast() is about the same speed as
the old arc4randbytes(), and cprng_strong() is about 20% faster
than rnd_extract_data(). Performance is expected to improve.
The AES code in src/crypto/rijndael is no longer an optional
kernel component, as it is required by cprng_strong, which is
not an optional kernel component.
The entropy pool output is subjected to the rngtest tests at
startup time; if it fails, the system will reboot. There is
approximately a 3/10000 chance of a false positive from these
tests. Entropy pool _input_ from hardware random numbers is
subjected to the rngtest tests at attach time, as well as the
FIPS continuous-output test, to detect bad or stuck hardware
RNGs; if any are detected, they are detached, but the system
continues to run.
A problem with rndctl(8) is fixed -- datastructures with
pointers in arrays are no longer passed to userspace (this
was not a security problem, but rather a major issue for
compat32). A new kernel will require a new rndctl.
The sysctl kern.arandom() and kern.urandom() nodes are hooked
up to the new generators, but the /dev/*random pseudodevices
are not, yet.
Manual pages for the new kernel interfaces are forthcoming.
Revision 1.14: download - view: text, markup, annotated - select for diffs
Sat Nov 19 17:01:38 2011 UTC (13 years, 4 months ago) by jakllsch
Branches: MAIN
CVS tags: jmcneill-audiomp3-base,
jmcneill-audiomp3
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +32 -3
lines
Add workaround for infrequently encountered DMA engine limitation.
Revision 1.13: download - view: text, markup, annotated - select for diffs
Tue Sep 6 19:38:23 2011 UTC (13 years, 6 months ago) by rjs
Branches: MAIN
CVS tags: yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base
Branch point for: yamt-pagecache
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +15 -13
lines
Only zero MVGBE_MTU on Orion platforms.
Revision 1.12: download - view: text, markup, annotated - select for diffs
Thu Sep 1 14:46:23 2011 UTC (13 years, 6 months ago) by jakllsch
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +6 -10
lines
We occasionally will try to set up the multicast filter in a context that
kmem(9) is unusable (such as transmit timeout). Thus, put the filter table
on the stack instead, all 528 bytes of it.
Revision 1.11: download - view: text, markup, annotated - select for diffs
Thu Sep 1 14:39:03 2011 UTC (13 years, 6 months ago) by jakllsch
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +3 -2
lines
Initialize MVGBE_MTU to 0, as suggested by the Orion databook.
If the platform firmware did not initialize this to 0 for us,
we were unable to transmit frames.
Revision 1.10: download - view: text, markup, annotated - select for diffs
Sat Jul 30 19:06:57 2011 UTC (13 years, 7 months ago) by rjs
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +4 -6
lines
Use new style BPF calls.
Revision 1.9: download - view: text, markup, annotated - select for diffs
Thu Jul 28 15:36:47 2011 UTC (13 years, 8 months ago) by matt
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +4 -4
lines
Use cfdata_t
Revision 1.3.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 6 09:07:58 2011 UTC (13 years, 9 months ago) by jruoho
Branches: jruoho-x86intr
Diff to: previous 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3: +195 -122
lines
Sync with HEAD.
Revision 1.1.2.5: download - view: text, markup, annotated - select for diffs
Thu Apr 21 01:41:48 2011 UTC (13 years, 11 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.1.2.4: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.2.4: +2 -6
lines
sync with head
Revision 1.8: download - view: text, markup, annotated - select for diffs
Mon Mar 7 13:58:32 2011 UTC (14 years ago) by christos
Branches: MAIN
CVS tags: rmind-uvmplock-nbase,
rmind-uvmplock-base,
cherry-xenmp-base,
cherry-xenmp
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +3 -4
lines
fix typo, and use the parent to determine the offset. From Dave Mills
Revision 1.7: download - view: text, markup, annotated - select for diffs
Sun Mar 6 17:00:16 2011 UTC (14 years ago) by christos
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +4 -7
lines
don't abuse cf_unit, requested by phone.
Revision 1.1.2.4: download - view: text, markup, annotated - select for diffs
Sun Mar 6 00:27:00 2011 UTC (14 years ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.1.2.3: preferred, colored
Changes since revision 1.1.2.3: +25 -4
lines
sync with head (and fix few botches with this)
Revision 1.1.2.3: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:53:26 2011 UTC (14 years ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.1.2.2: preferred, colored
Changes since revision 1.1.2.2: +235 -144
lines
sync with head
Revision 1.6: download - view: text, markup, annotated - select for diffs
Sat Mar 5 18:28:13 2011 UTC (14 years ago) by christos
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +27 -6
lines
From Dave Mills: It would appear that the two PHYs can only be
accessed from the registers of controller0 (mvgbec0) hence why both
PHYs are being detected on controller0. I have made the assumption
that PHY0 => controller0 (mvgbec0), PHY1 => controller1(mvgbec1)
and developed a patch accordingly. Also the irq is 15 for controller1
not 14.
Revision 1.3.4.1: download - view: text, markup, annotated - select for diffs
Tue Feb 8 16:19:49 2011 UTC (14 years, 1 month ago) by bouyer
Branches: bouyer-quota2
Diff to: previous 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3: +174 -118
lines
Sync with HEAD
Revision 1.5: download - view: text, markup, annotated - select for diffs
Tue Feb 1 23:40:12 2011 UTC (14 years, 1 month ago) by jakllsch
Branches: MAIN
CVS tags: bouyer-quota2-nbase,
bouyer-quota2-base
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +160 -113
lines
Various improvements to mvgbe(4). Notable is improved multicast filtering.
Revision 1.4: download - view: text, markup, annotated - select for diffs
Sat Jan 29 01:53:18 2011 UTC (14 years, 1 month ago) by jakllsch
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +16 -7
lines
Use macros for ring position advances, assuming a power of two ring size.
(Also, spelling correction in comment.)
Revision 1.2.4.3: download - view: text, markup, annotated - select for diffs
Fri Oct 22 07:22:01 2010 UTC (14 years, 5 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.2.4.2: preferred, colored; branchpoint 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2.4.2: +62 -27
lines
Sync with HEAD (-D20101022).
Revision 1.2.2.3: download - view: text, markup, annotated - select for diffs
Sat Oct 9 03:32:08 2010 UTC (14 years, 5 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.2.2.2: preferred, colored; branchpoint 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2.2.2: +64 -29
lines
sync with head
Revision 1.3: download - view: text, markup, annotated - select for diffs
Sat Oct 2 05:57:42 2010 UTC (14 years, 5 months ago) by kiyohara
Branches: MAIN
CVS tags: yamt-nfs-mp-base11,
uebayasi-xip-base4,
uebayasi-xip-base3,
matt-mips64-premerge-20101231,
jruoho-x86intr-base
Branch point for: jruoho-x86intr,
bouyer-quota2
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +64 -29
lines
Support Kirkwood's GbE.
Revision 1.2.4.2: download - view: text, markup, annotated - select for diffs
Tue Aug 17 06:46:17 2010 UTC (14 years, 7 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.2.4.1: preferred, colored; branchpoint 1.2: preferred, colored
Changes since revision 1.2.4.1: +1832 -0
lines
Sync with HEAD.
Revision 1.2.2.2: download - view: text, markup, annotated - select for diffs
Wed Aug 11 22:53:38 2010 UTC (14 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.2.2.1: preferred, colored; branchpoint 1.2: preferred, colored
Changes since revision 1.2.2.1: +1832 -0
lines
sync with head.
Revision 1.2.4.1
Sun Jul 11 08:43:36 2010 UTC (14 years, 8 months ago) by uebayasi
Branches: uebayasi-xip
FILE REMOVED
Changes since revision 1.2: +0 -1832
lines
file if_mvgbe.c was added on branch uebayasi-xip on 2010-08-17 06:46:17 +0000
Revision 1.2.2.1
Sun Jul 11 08:43:36 2010 UTC (14 years, 8 months ago) by yamt
Branches: yamt-nfs-mp
FILE REMOVED
Changes since revision 1.2: +0 -1832
lines
file if_mvgbe.c was added on branch yamt-nfs-mp on 2010-08-11 22:53:38 +0000
Revision 1.2: download - view: text, markup, annotated - select for diffs
Sun Jul 11 08:43:36 2010 UTC (14 years, 8 months ago) by kiyohara
Branches: MAIN
CVS tags: yamt-nfs-mp-base10,
uebayasi-xip-base2
Branch point for: yamt-nfs-mp,
uebayasi-xip
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +3 -3
lines
Add macro MVA_{UNIT,OFFSET,IRQ}_DEFAULT.
Revision 1.1.2.2: download - view: text, markup, annotated - select for diffs
Sat Jul 3 01:19:36 2010 UTC (14 years, 8 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.1.2.1: preferred, colored
Changes since revision 1.1.2.1: +1832 -0
lines
sync with head
Revision 1.1.2.1
Wed Jun 2 06:18:11 2010 UTC (14 years, 9 months ago) by rmind
Branches: rmind-uvmplock
FILE REMOVED
Changes since revision 1.1: +0 -1832
lines
file if_mvgbe.c was added on branch rmind-uvmplock on 2010-07-03 01:19:36 +0000
Revision 1.1: download - view: text, markup, annotated - select for diffs
Wed Jun 2 06:18:11 2010 UTC (14 years, 9 months ago) by kiyohara
Branches: MAIN
Branch point for: rmind-uvmplock
Add Marvell Gigabit Ethernet Controller on SC/SoC.
Will support on ofppc soon.
Tested on G4+PegasosII (kiyohara@)
G3+PegasosII (phx@)
CVSweb <webmaster@jp.NetBSD.org>