Home | History | Annotate | Download | only in pci
History log of /src/sys/dev/pci/if_pcn.c
RevisionDateAuthorComments
 1.81  04-Oct-2025  thorpej Use device_getprop_bool().
 1.80  10-Nov-2024  mlelstv Add MBUFTRACE
 1.79  05-Jul-2024  rin sys: Drop redundant NULL check before m_freem(9)

m_freem(9) safely has accepted NULL argument at least since 4.2BSD:
https://www.tuhs.org/cgi-bin/utree.pl?file=4.2BSD/usr/src/sys/sys/uipc_mbuf.c

Compile-tested on amd64/ALL.

Suggested by knakahara@
 1.78  10-Feb-2024  andvar branches: 1.78.2;
s/alloted/allotted/ in comments.
 1.77  24-Sep-2022  thorpej Remove unnecessary include of <sys/malloc.h>.
 1.76  16-Mar-2020  thorpej Do the "have transmit resources available" check before checking that
there is a packet in the send queue.
 1.75  15-Mar-2020  thorpej Don't bother with IFF_OACTIVE.
 1.74  07-Feb-2020  thorpej Use callout_setfunc() / callout_schedule().
 1.73  29-Jan-2020  thorpej Adopt <net/if_stats.h>.
 1.72  11-Oct-2019  msaitoh branches: 1.72.2;
Use unsigned to avoid undefined behavior. Found by kUBSan.
 1.71  28-May-2019  msaitoh branches: 1.71.2;
Use ETHER_LOCK()/ETHER_UNLOCK() for all ethernet drivers to protect ec_multi*.
 1.70  23-May-2019  msaitoh Whitespace fix (mainly tabify).
 1.69  23-May-2019  msaitoh No functional change:
- Simplify MII structure initialization and reference.
- u_int*_t -> uint*_t.
- KNF
 1.68  22-Apr-2019  msaitoh In 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.
 1.67  22-Jan-2019  msaitoh Change MII PHY read/write API from:

int (*mii_readreg_t)(device_t, int, int);
void (*mii_writereg_t)(device_t, int, int, int);
to:

int (*mii_readreg_t)(device_t, int, int, uint16_t *);
int (*mii_writereg_t)(device_t, int, int, uint16_t);

Now we can test if a read/write operation failed or not by the return value.

In 802.3 spec says that the PHY shall not respond to read/write transaction
to the unimplemented register(22.2.4.3). Detecting timeout can be used to
check whether a register is implemented or not (if the register conforms to
the spec). ukphy(4) can be used this for MII_MMDACR and MII_MMDAADR.

Note that I noticed that the following code do infinite loop in the
read/wirte function. If it accesses unimplemented PHY register, it will hang.
It should be fixed:

arm/at91/at91emac.c
arm/ep93xx/epe.c
arm/omap/omapl1x_emac.c
mips/ralink/ralink_eth.c
arch/powerpc/booke/dev/pq3etsec.c(read)
dev/cadence/if_cemac.c <- hkenken
dev/ic/lan9118.c


Tested with the following device:

axe+ukphy
axe+rgephy
axen+rgephy (tested by Andrius V)
wm+atphy
wm+ukphy
wm+igphy
wm+ihphy
wm+makphy
sk+makphy
sk+brgphy
sk+gentbi
msk+makphy
sip+icsphy
sip+ukphy
re+rgephy
bge+brgphy
bnx+brgphy
gsip+gphyter
rtk+rlphy
fxp+inphy (tested by Andrius V)
tlp+acphy
ex+exphy
epic+qsphy
vge+ciphy (tested by Andrius V)
vr+ukphy (tested by Andrius V)
vte+ukphy (tested by Andrius V)

Not tested (MAC):
arm:at91emac
arm:cemac
arm:epe
arm:geminigmac
arm:enet
arm:cpsw
arm:emac(omac)
arm:emac(sunxi)
arm:npe
evbppc:temac
macppc:bm
macppc:gm
mips:aumac
mips:ae
mips:cnmac
mips:reth
mips:sbmac
playstation2:smap
powerpc:tsec
powerpc:emac(ibm4xx)
sgimips:mec
sparc:be
sf
ne(ax88190, dl10019)
awge
ep
gem
hme
smsh
mtd
sm
age
alc
ale
bce
cas
et
jme
lii
nfe
pcn
ste
stge
tl
xi
aue
mue
smsc
udav
url

Not tested (PHY):
amhphy
bmtphy
dmphy
etphy
glxtphy
ikphy
iophy
lxtphy
nsphyter
pnaphy
rdcphy
sqphy
tlphy
tqphy
urlphy
 1.66  02-Dec-2018  jdolecek use pci_intr_establish_xname()
 1.65  26-Jun-2018  msaitoh branches: 1.65.2;
Implement the BPF direction filter (BIOC[GS]DIRECTION). It provides backward
compatibility with BIOC[GS]SEESENT ioctl. The userland interface is the same
as FreeBSD.

This change also fixes a bug that the direction is misunderstand on some
environment by passing the direction to bpf_mtap*() instead of checking
m->m_pkthdr.rcvif.
 1.64  15-Dec-2016  ozaki-r branches: 1.64.14;
Move bpf_mtap and if_ipackets++ on Rx of each driver to percpuq if_input

The benefits of the change are:
- We can reduce codes
- We can provide the same behavior between drivers
- Where/When if_ipackets is counted up
- Note that some drivers still update packet statistics in their own
way (periodical update)
- Moved bpf_mtap run in softint
- This makes it easy to MP-ify bpf

Proposed on tech-kern and tech-net
 1.63  08-Dec-2016  ozaki-r Apply deferred if_start framework

if_schedule_deferred_start checks if the if_snd queue contains packets,
so drivers don't need to check it by themselves.
 1.62  10-Jun-2016  ozaki-r branches: 1.62.2;
Introduce m_set_rcvif and m_reset_rcvif

The API is used to set (or reset) a received interface of a mbuf.
They are counterpart of m_get_rcvif, which will come in another
commit, hide internal of rcvif operation, and reduce the diff of
the upcoming change.

No functional change.
 1.61  09-Feb-2016  ozaki-r Introduce softint-based if_input

This change intends to run the whole network stack in softint context
(or normal LWP), not hardware interrupt context. Note that the work is
still incomplete by this change; to that end, we also have to softint-ify
if_link_state_change (and bpf) which can still run in hardware interrupt.

This change softint-ifies at ifp->if_input that is called from
each device driver (and ieee80211_input) to ensure Layer 2 runs
in softint (e.g., ether_input and bridge_input). To this end,
we provide a framework (called percpuq) that utlizes softint(9)
and percpu ifqueues. With this patch, rxintr of most drivers just
queues received packets and schedules a softint, and the softint
dequeues packets and does rest packet processing.

To minimize changes to each driver, percpuq is allocated in struct
ifnet for now and that is initialized by default (in if_attach).
We probably have to move percpuq to softc of each driver, but it's
future work. At this point, only wm(4) has percpuq in its softc
as a reference implementation.

Additional information including performance numbers can be found
in the thread at tech-kern@ and tech-net@:
http://mail-index.netbsd.org/tech-kern/2016/01/14/msg019997.html

Acknowledgment: riastradh@ greatly helped this work.
Thank you very much!
 1.60  27-Apr-2015  christos fix mbuf leak on failure (Brainy)
 1.59  13-Apr-2015  riastradh Convert sys/dev to use <sys/rndsource.h>.
 1.58  10-Aug-2014  tls branches: 1.58.2; 1.58.4;
Merge tls-earlyentropy branch into HEAD.
 1.57  29-Mar-2014  christos branches: 1.57.2;
make pci_intr_string and eisa_intr_string take a buffer and a length
instead of relying in local static storage.
 1.56  30-Mar-2013  christos branches: 1.56.4;
remove trailing whitespace
 1.55  22-Jul-2012  matt branches: 1.55.2;
Fix mii_statchg to take a 'struct ifnet *' instead of device_t. This fixes
problem with a common MDIO bus used for multiple interfaces.
Some drivers converted to CFATTACL_DECL_NEW.
 1.54  02-Feb-2012  tls 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.
 1.53  19-Nov-2011  tls branches: 1.53.2;
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.
 1.52  13-Nov-2010  uebayasi branches: 1.52.8;
Don't pull in the whole uvm(9) API to access only PAGE_SIZE and
some other constants. These are provided by sys/param.h now.
 1.51  30-Apr-2010  hubertf silence "boot -z"
 1.50  05-Apr-2010  joerg Push the bpf_ops usage back into bpf.h. Push the common ifp->if_bpf
check into the inline functions as well the fourth argument for
bpf_attach.
 1.49  19-Jan-2010  pooka branches: 1.49.2; 1.49.4;
Redefine bpf linkage through an always present op vector, i.e.
#if NBPFILTER is no longer required in the client. This change
doesn't yet add support for loading bpf as a module, since drivers
can register before bpf is attached. However, callers of bpf can
now be modularized.

Dynamically loadable bpf could probably be done fairly easily with
coordination from the stub driver and the real driver by registering
attachments in the stub before the real driver is loaded and doing
a handoff. ... and I'm not going to ponder the depths of unload
here.

Tested with i386/MONOLITHIC, modified MONOLITHIC without bpf and rump.
 1.48  06-Sep-2009  tsutsui Replace shutdownhook_establish(9) with pmf_device_register1(9).
Tested Am79c973 PCnet-FAST III.
 1.47  06-May-2009  cegger struct device * -> device_t, no functional changes intended.
 1.46  04-Apr-2008  tsutsui branches: 1.46.4; 1.46.14; 1.46.18;
Split device_t/softc with misc related changes.
 1.45  21-Mar-2008  dyoung pci_activate() expects for its void * argument to be a device_t,
so change the type of the argument to device_t. Update each use
of pci_activate().

Use device_t and accessors. Use aprint_*_dev().
 1.44  11-Mar-2008  dyoung Prepare for PMF self-suspension: in the if_stop() methods, clear
IFF_UP and IFF_RUNNING before running the 'disable' step, instead
of after. Soon I will handle the 'disable' step by calling into
PMF, which may call if_stop(, 0). Ordinarily, that is harmless.
This change lets the if_stop() routines exit early when they find
on entry that IFF_RUNNING is not set.
 1.43  20-Jan-2008  jmmv branches: 1.43.2; 1.43.6;
Now that the driver goes through the mii_ifmedia_change indirection
instead of directly calling the pcn_79c970_mediachange function, we
must initialize sc->sc_mii.mii_ifp so that this last function is
passed a valid parameter.

Fixes a panic in pcn_79c970_mediachange that arose immediately when
trying to use this interface due to a NULL pointer dereference.
Hi dyoung@!
 1.42  19-Jan-2008  dyoung Make many ethernet drivers share the common code for MII media
handling, ether_mediastatus() and ether_mediachange(). Check for
a non-ENXIO error return from mii_mediachg(). (ENXIO indicates
that a PHY is suspended.)

This patch shrinks the source code size by 979 lines. There was
a 5100-byte savings on the NetBSD/i386 kernel configuration, ALL.

I have made a few miscellaneous changes, too:

gem(4): use LIST_EMPTY(), LIST_FOREACH().
mtd(4): handle media ioctls, for a change!
axe(4): do not track link status in sc->axe_link any longer
nfe(4), aue(4), axe(4), udav(4), url(4): do not reset all PHYs
on a change of media

Except for the change to mtd(4), no functional changes are intended.

XXX This patch affects more architectures than I can feasibly
XXX compile and run. I have compiled macppc, sparc64, i386. I
XXX have run the patches on i386 boxen with bnx(4) and sip(4).
XXX Compiling and running on evbmips (MERAKI, ADM5120) is in
XXX progress.
 1.41  19-Oct-2007  ad branches: 1.41.2; 1.41.8;
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
 1.40  29-Aug-2007  dyoung branches: 1.40.4;
Constify: LLADDR() -> CLLADDR().
 1.39  09-Jul-2007  ad branches: 1.39.2; 1.39.6; 1.39.8;
Merge some of the less invasive changes from the vmlocking branch:

- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
 1.38  04-Mar-2007  christos branches: 1.38.2; 1.38.4;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.37  21-Feb-2007  thorpej Replace the Mach-derived boolean_t type with the C99 bool type. A
future commit will replace use of TRUE and FALSE with true and false.
 1.36  16-Nov-2006  christos branches: 1.36.4;
__unused removal on arguments; approved by core.
 1.35  15-Nov-2006  jdarrow Fix typo (enaddr[3] should be enaddr[2]), and add note to comment,
both in VMware bug-workaround section.
 1.34  01-Nov-2006  thorpej Detect if we're talking to a VMware virtual interface, and, if so,
limit the number of Tx segments to 8 to work around a VMware bug.
 1.33  31-Oct-2006  thorpej In the pcn driver:
- Remove the PCN_NO_PROM option. Instead, query the am79c970-no-eeprom
property, and read the MAC address from the CSRs if that property is TRUE.

In the ibmnws port:
- Implement device_register().
- In device_register(), set the am79c970-no-eeprom property for the
built-in Ethernet.
 1.32  12-Oct-2006  christos - sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386
 1.31  17-Jun-2006  christos branches: 1.31.4; 1.31.6;
re-factor the pci powestate api. reviewed by gimpy
 1.30  14-Jun-2006  tsutsui branches: 1.30.2;
Call pcn_reset() in pcn_shutdown() so that my 7248 (prep) firmware
can netboot even after reboot without powercycle.
 1.29  22-Feb-2006  garbled branches: 1.29.2; 1.29.8;
IBM makes a pcn card that shows up as:
Trident Microsystems 4DWAVE DX (ethernet network, revision 0x25)
Unfortunately, this is an autri sound card. Special case the match routines
for both drivers so if_pcn properly picks it up, and autri doesn't.
 1.28  24-Dec-2005  perry branches: 1.28.2; 1.28.4; 1.28.6;
Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
 1.27  11-Dec-2005  christos merge ktrace-lwp.
 1.26  07-May-2005  is branches: 1.26.2;
As discussed on tech-net: don't suppress any PHYs to enable multiple
external PHYs. The internal PHY at MII (nr 31) will be the last instance,
so it won't be the default instance when external PHYs are present.
 1.25  27-Feb-2005  perry branches: 1.25.2;
nuke trailing whitespace
 1.24  30-Oct-2004  thorpej branches: 1.24.4; 1.24.6;
When adding/deleting multicast addresses, only whack the address
filter if the interface is marked RUNNING.

Fixes kern/27678.
 1.23  21-Aug-2004  thorpej Use ANSI function decls and make use of static.
 1.22  25-Oct-2003  christos branches: 1.22.4;
Fix uninitialized variable warnings
 1.21  19-Oct-2003  matt Add PCN_NO_PROM flag. (read the macaddr from the chip assuming the "BIOS"
has properly written it). From John Gordon.
 1.20  21-Jul-2003  jdolecek add rnd hooks
 1.19  30-Mar-2003  jdolecek branches: 1.19.2;
sprinkle some const qualifiers
 1.18  23-Dec-2002  tsutsui Replace magic numbers for power management control with PCI_PMCSR* macros.

XXX Should we use pci_get_powerstate() and pci_set_powerstate() in pci.c?
 1.17  23-Oct-2002  perry fix lint warnings about things being stringified under cpp -traditional
 1.16  22-Oct-2002  thorpej Fix typos in media configuration register init. From patch posted
to tech-kern by Erik Anggard <erik.anggard@packetfront.com>.

May address PR 16346.
 1.15  21-Oct-2002  fair Change the "dontcare bits" argument to ifmedia_init() to IFM_IMASK
so that it is possible select PHY instances other than the first
one (instance zero), if there is more than one PHY attached.
 1.14  02-Oct-2002  thorpej Add trailing ; to CFATTACH_DECL.
 1.13  30-Sep-2002  thorpej Use CFATTACH_DECL().
 1.12  27-Sep-2002  thorpej Declare all cfattach structures const.
 1.11  04-Sep-2002  thorpej Add support for memory-mapped PCnet-PCI chips.
 1.10  02-Aug-2002  thorpej Fix a typo which caused the wrong register to be updated when
the media is not full-duplex.
 1.9  03-May-2002  thorpej branches: 1.9.2; 1.9.4;
Bump the number of Tx DMA segments from 8 to 16 (the zero-copy socket
code sometimes sees more than 8).
 1.8  29-Jan-2002  nisimura DANAS (disable autonegotiation) bit of BCR32 takes its effect when
set, not cleared.
 1.7  29-Nov-2001  thorpej Fix typo in copyright notice.
 1.6  27-Nov-2001  onoe Set ONES (must be ones) bits in tmd1 of tx descriptors.
This fix avoids VMware 3.0/WinXP to crash.
 1.5  13-Nov-2001  lukem add RCSID
 1.4  02-Sep-2001  enami branches: 1.4.4; 1.4.6;
Fix an obvious typo found while reading the source.
 1.3  28-Aug-2001  thorpej - Swap the bytes OR'd into init_ladrf[], for big-endian machines.
- Make sure to sync the init block.

Pointed out by Izumi Tsutsui.
 1.2  28-Aug-2001  thorpej Print "auto-FDX" for the second "autoselect" instance. Pointed out
by Izumi Tsutsui.
 1.1  27-Aug-2001  thorpej New driver for the AMD PCnet-PCI family of Ethernet chips. This
driver uses direct DMA to mbufs (like other PCI network drivers,
and unlike the old "le at pci" driver), and also supports communication
with the MII-connected PHYs on the 10/100 boards.
 1.4.6.12  29-Dec-2002  thorpej Sync with HEAD.
 1.4.6.11  11-Nov-2002  nathanw Catch up to -current
 1.4.6.10  22-Oct-2002  thorpej Sync with HEAD.
 1.4.6.9  18-Oct-2002  nathanw Catch up to -current.
 1.4.6.8  17-Sep-2002  nathanw Catch up to -current.
 1.4.6.7  13-Aug-2002  nathanw Catch up to -current.
 1.4.6.6  20-Jun-2002  nathanw Catch up to -current.
 1.4.6.5  28-Feb-2002  nathanw Catch up to -current.
 1.4.6.4  08-Jan-2002  nathanw Catch up to -current.
 1.4.6.3  14-Nov-2001  nathanw Catch up to -current.
 1.4.6.2  21-Sep-2001  nathanw Catch up to -current.
 1.4.6.1  02-Sep-2001  nathanw file if_pcn.c was added on branch nathanw_sa on 2001-09-21 22:35:56 +0000
 1.4.4.7  10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.4.4.6  06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.4.4.5  23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.4.4.4  11-Feb-2002  jdolecek Sync w/ -current.
 1.4.4.3  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.4.4.2  13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.4.4.1  02-Sep-2001  thorpej file if_pcn.c was added on branch kqueue on 2001-09-13 01:15:55 +0000
 1.9.4.3  30-Nov-2002  he Pull up revision 1.11 (requested by thorpej in ticket #767):
Add support for memory-mapped PCnet-PCI chips.
 1.9.4.2  23-Oct-2002  lukem Pull up revision 1.16 (requested by thorpej in ticket #940):
Fix typos in media configuration register init. From patch posted
to tech-kern by Erik Anggard <erik.anggard@packetfront.com>.
May address PR 16346.
 1.9.4.1  02-Aug-2002  lukem Pull up revision 1.10 (requested by thorpej in ticket #605):
Fix a typo which caused the wrong register to be updated when
the media is not full-duplex.
 1.9.2.1  29-Aug-2002  gehenna catch up with -current.
 1.19.2.7  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.19.2.6  04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.19.2.5  02-Nov-2004  skrll Sync with HEAD.
 1.19.2.4  21-Sep-2004  skrll Fix the sync with head I botched.
 1.19.2.3  18-Sep-2004  skrll Sync with HEAD.
 1.19.2.2  25-Aug-2004  skrll Sync with HEAD.
 1.19.2.1  03-Aug-2004  skrll Sync with HEAD
 1.22.4.1  24-Jan-2005  he Pull up revision 1.24 (requested by thorpej in ticket #939):
When adding or deleting multicast addresses, only change
the address filter if the interface is marked RUNNING.
Fixes PR#27678.
 1.24.6.1  19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.24.4.1  29-Apr-2005  kent sync with -current
 1.25.2.2  15-Nov-2006  bouyer Pull up following revision(s) (requested by thorpej in ticket #1586):
sys/dev/pci/if_pcn.c: revision 1.35
Fix typo (enaddr[3] should be enaddr[2]), and add note to comment,
both in VMware bug-workaround section.
 1.25.2.1  11-Nov-2006  bouyer Pull up following revision(s) (requested by thorpej in ticket #1577):
sys/dev/pci/if_pcn.c: revision 1.34
Detect if we're talking to a VMware virtual interface, and, if so,
limit the number of Tx segments to 8 to work around a VMware bug.
 1.26.2.8  24-Mar-2008  yamt sync with head.
 1.26.2.7  17-Mar-2008  yamt sync with head.
 1.26.2.6  21-Jan-2008  yamt sync with head
 1.26.2.5  27-Oct-2007  yamt sync with head.
 1.26.2.4  03-Sep-2007  yamt sync with head.
 1.26.2.3  26-Feb-2007  yamt sync with head.
 1.26.2.2  30-Dec-2006  yamt sync with head.
 1.26.2.1  21-Jun-2006  yamt sync with head.
 1.28.6.1  22-Apr-2006  simonb Sync with head.
 1.28.4.1  09-Sep-2006  rpaulo sync with head
 1.28.2.1  01-Mar-2006  yamt sync with head.
 1.29.8.1  19-Jun-2006  chap Sync with head.
 1.29.2.1  26-Jun-2006  yamt sync with head.
 1.30.2.1  13-Jul-2006  gdamore Merge from HEAD.
 1.31.6.2  10-Dec-2006  yamt sync with head.
 1.31.6.1  22-Oct-2006  yamt sync with head
 1.31.4.1  18-Nov-2006  ad Sync with head.
 1.36.4.2  12-Mar-2007  rmind Sync with HEAD.
 1.36.4.1  27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.38.4.1  11-Jul-2007  mjf Sync with head.
 1.38.2.3  23-Oct-2007  ad Sync with head.
 1.38.2.2  09-Oct-2007  ad Sync with head.
 1.38.2.1  01-Jul-2007  ad Adapt to callout API change.
 1.39.8.2  23-Mar-2008  matt sync with HEAD
 1.39.8.1  06-Nov-2007  matt sync with HEAD
 1.39.6.2  26-Oct-2007  joerg Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.
 1.39.6.1  03-Sep-2007  jmcneill Sync with HEAD.
 1.39.2.1  03-Sep-2007  skrll Sync with HEAD.
 1.40.4.1  25-Oct-2007  bouyer Sync with HEAD.
 1.41.8.1  20-Jan-2008  bouyer Sync with HEAD
 1.41.2.1  18-Feb-2008  mjf Sync with HEAD.
 1.43.6.2  02-Jun-2008  mjf Sync with HEAD.
 1.43.6.1  03-Apr-2008  mjf Sync with HEAD.
 1.43.2.1  24-Mar-2008  keiichi sync with head.
 1.46.18.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.46.14.1  20-Nov-2010  riz Pull up following revision(s) (requested by hubertf in ticket #1385):
sys/dev/pci/if_pcn.c: revision 1.51
silence "boot -z"
 1.46.4.4  11-Aug-2010  yamt sync with head.
 1.46.4.3  11-Mar-2010  yamt sync with head
 1.46.4.2  16-Sep-2009  yamt sync with head
 1.46.4.1  16-May-2009  yamt sync with head
 1.49.4.2  05-Mar-2011  rmind sync with head
 1.49.4.1  30-May-2010  rmind sync with head
 1.49.2.2  17-Aug-2010  uebayasi Sync with HEAD.
 1.49.2.1  30-Apr-2010  uebayasi Sync with HEAD.
 1.52.8.3  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.52.8.2  30-Oct-2012  yamt sync with head
 1.52.8.1  17-Apr-2012  yamt sync with head
 1.53.2.1  18-Feb-2012  mrg merge to -current.
 1.55.2.3  03-Dec-2017  jdolecek update from HEAD
 1.55.2.2  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.55.2.1  23-Jun-2013  tls resync from head
 1.56.4.1  18-May-2014  rmind sync with head
 1.57.2.1  07-Apr-2014  tls 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.
 1.58.4.4  05-Feb-2017  skrll Sync with HEAD
 1.58.4.3  09-Jul-2016  skrll Sync with HEAD
 1.58.4.2  19-Mar-2016  skrll Sync with HEAD
 1.58.4.1  06-Jun-2015  skrll Sync with HEAD
 1.58.2.1  30-Jul-2015  martin Pull up following revision(s) (requested by maxv in ticket #889):
sys/dev/pci/if_bge.c: revision 1.283
sys/dev/pci/if_pcn.c: revision 1.60
Fix mbuf leaks in error branches (found by the Brainy code scanner)
 1.62.2.1  07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.64.14.3  26-Jan-2019  pgoyette Sync with HEAD
 1.64.14.2  26-Dec-2018  pgoyette Sync with HEAD, resolve a few conflicts
 1.64.14.1  28-Jul-2018  pgoyette Sync with HEAD
 1.65.2.3  13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.65.2.2  08-Apr-2020  martin Merge changes from current as of 20200406
 1.65.2.1  10-Jun-2019  christos Sync with HEAD
 1.71.2.1  31-Jan-2020  martin Pull up following revision(s) (requested by msaitoh in ticket #671):

sys/dev/pci/if_bce.c: revision 1.53
sys/dev/pci/pccbbreg.h: revision 1.16
sys/dev/ic/rt2860.c: revision 1.34
sys/dev/pci/if_alc.c: revision 1.45
sys/dev/pci/if_mcx.c: revision 1.5
sys/dev/pci/if_pcn.c: revision 1.72
sys/dev/pci/if_ale.c: revision 1.37
sys/dev/pci/if_age.c: revision 1.65
sys/dev/ieee1394/fwohcireg.h: revision 1.20
sys/dev/ieee1394/fwohci.c: revision 1.143
sys/dev/ieee1394/firewire.c: revision 1.49
sys/dev/ic/am79900reg.h: revision 1.10

Use unsigned to avoid undefined behavior. Found by kUBSan.
 1.72.2.1  29-Feb-2020  ad Sync with head.
 1.78.2.1  02-Aug-2025  perseant Sync with HEAD

RSS XML Feed