Home | History | Annotate | Download | only in pci
History log of /src/sys/dev/pci/if_ipw.c
RevisionDateAuthorComments
 1.77  20-Dec-2023  thorpej Remove unnecessary <sys/malloc.h>.
 1.76  22-Aug-2022  thorpej ipw_start(): Replace "IF_DEQUEUE() -> IF_PREPEND() on failure" with
"IF_POLL() -> IF_DEQUEUE() on success".
 1.75  22-Aug-2022  thorpej We come into our if_start routine via ether_output(), therefore there is
no need to check-and-pullup to sizeof(struct ether_header). Instead, we
can simply assert it.
 1.74  16-Jun-2021  riastradh if_attach and if_initialize cannot fail, don't test return value

These were originally made failable back in 2017 when if_initialize
allocated a softint in every interface for link state changes, so
that it could fail gracefully instead of panicking:

https://mail-index.NetBSD.org/source-changes/2017/10/23/msg089053.html

However, this spawned many seldom- or never-tested error branches,
which are risky to have around. And that softint in every interface
has since been replaced by a single global workqueue, because link
state changes require thread context but not low latency or high
throughput:

https://mail-index.NetBSD.org/source-changes/2020/02/06/msg113759.html

So there is no longer any reason for if_initialize to fail. (The
subroutine if_stats_init can't fail because percpu_alloc can't fail
either.)

There is a snag: the softint_establish in if_percpuq_create could
fail, potentially leading to bad consequences later on trying to use
the softint. This change doesn't introduce any new bugs because of
the snag -- if_percpuq_attach was already broken. However, the snag
can be better addressed without spawning error branches, either by
using a single softint or making softints less scarce.

(Separate commit will change the signatures of if_attach and
if_initialize to return void, scheduled to ride whatever is the next
convenient kernel bump.)

Patch and testing on amd64 and evbmips64-eb by maya@; commit message
soliloquy, and compile-testing on evbppc/i386/earmv7hf, by me.
 1.73  30-Jan-2020  thorpej branches: 1.73.10;
Adopt <net/if_stats.h>.
 1.72  03-Feb-2019  mrg branches: 1.72.6;
- add or adjust /* FALLTHROUGH */ where appropriate
- add __unreachable() after functions that can return but won't in
this case, and thus can't be marked __dead easily
 1.71  22-Dec-2018  maxv Replace: M_COPY_PKTHDR -> m_copy_pkthdr. No functional change, since the
former is a macro to the latter.
 1.70  09-Dec-2018  jdolecek use pci_intr_establish_xname() everywhere
 1.69  26-Jun-2018  msaitoh branches: 1.69.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.68  01-May-2018  maya GC private 802.11 rateset declarations, use the standard ones.

Build tested only.
 1.67  16-Jan-2018  maxv branches: 1.67.2;
Fix overflow.
 1.66  23-Oct-2017  msaitoh If if_initialize() failed in the attach function, free resources and return.
 1.65  29-Jul-2017  riastradh Null out sbuf->m on failure to avoid double-free later.

From Ilja Van Sprundel.

Also null out sbuf->map out of paranoia.
 1.64  23-May-2017  ozaki-r branches: 1.64.2;
Apply deferred if_start to more drivers

And annotate some XXX_start as it runs in softint to clarify that
it doesn't need deferred if_start.
 1.63  02-Feb-2017  nonaka wlan interfaces make interrupt routine running on softint context.

see http://mail-index.netbsd.org/tech-kern/2016/12/06/msg021281.html

tested device:
* ath at pci: AR5212, AR5424
* athn at pci: AR9287
* ipw at pci: 2100BG
* iwi at pci: 2915ABG
* iwm at pci: 3165, 7260, 8260
* iwn at pci: 4945, 6235
* ral at pci: RT2560
* rtwn at pci: RTL8192CE
 1.62  01-Feb-2017  nonaka sync only mapped size.
 1.61  08-Dec-2016  ozaki-r branches: 1.61.2;
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.60  10-Jun-2016  ozaki-r branches: 1.60.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.59  20-Nov-2015  christos use copyout instead of suword.
 1.58  07-Jan-2015  ozaki-r Pass a correct firmware size (instead of 0) to firmware_free

firmware_free now uses kmem_free(9) instead of free(9),
so we need to pass a correct size to it.
 1.57  29-Mar-2014  christos branches: 1.57.4; 1.57.6; 1.57.8; 1.57.12;
make pci_intr_string and eisa_intr_string take a buffer and a length
instead of relying in local static storage.
 1.56  25-Feb-2014  pooka 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.
 1.55  17-Oct-2013  christos - remove unused variables
- move debugging code inside debugging sections
 1.54  27-Oct-2012  chs branches: 1.54.2;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.53  30-Jan-2012  drochner branches: 1.53.2; 1.53.6; 1.53.8; 1.53.10;
Use pci_aprint_devinfo(9) instead of pci_devinfo+aprint_{normal,naive}
where it looks straightforward, and pci_aprint_devinfo_fancy in a few
others where drivers want to supply their own device names instead
of the pcidevs generated one. More complicated cases, where names
are composed at runtime, are left alone for now. It certainly makes
sense to simplify the drivers here rather than inventing a catch-all API.
This should serve as as example for new drivers, and also ensure
consistent output in the AB_QUIET ("boot -q") case. Also, it avoids
excessive stack usage where drivers attach child devices because the
buffer for the device name is not kept on the local stack anymore.
 1.52  15-Nov-2010  uebayasi branches: 1.52.8; 1.52.12;
tsleep needs sys/proc.h.
 1.51  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.50  19-Jan-2010  pooka branches: 1.50.2; 1.50.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.49  05-Sep-2009  tsutsui Invert logic around nested pmf(9) registrations for readability.
 1.48  12-May-2009  cegger use device_private().
"looks good" ad@
XXX for the device_t/softc split, please check the driver that no cases have been missed.
 1.47  06-May-2009  cegger struct device * -> device_t, no functional changes intended.
 1.46  06-May-2009  cegger struct cfdata * -> cfdata_t, no functional changes intended.
 1.45  09-Jan-2009  jmcneill branches: 1.45.2;
Make the "EULA not accepted" message a bit more informative, now reads:

EULA not accepted; please see the <driver>(4) man page.
 1.44  07-Nov-2008  joerg Match image name with upstream distfiles.
 1.43  07-Nov-2008  dyoung *** 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.
 1.42  30-Oct-2008  joerg branches: 1.42.2;
Add glue to ship Intel firmware images. For ipw and iwi require user to
accept the EULA via sysctl as discussed with core@.
 1.41  27-May-2008  dyoung branches: 1.41.4; 1.41.6;
Initialize the channel info in the tx/rx radiotap headers in
ipw_newstate(), instead of reinitializing every time a packet is
sent or received. Drop the unused radiotap 'flags' field.
 1.40  25-May-2008  jmcneill PR#34477: Don't dereference ni_chan if it points to the special
``any channel'' token IEEE80211_CHAN_ANYC
 1.39  10-Apr-2008  cegger branches: 1.39.2; 1.39.4; 1.39.6;
use aprint_*_dev and device_xname
 1.38  11-Mar-2008  dyoung pci_disable_retry() is now a no-op, so don't call it any more.
 1.37  29-Feb-2008  dyoung Use PMF_FN_ARGS, PMF_FN_PROTO.
 1.36  20-Dec-2007  dyoung branches: 1.36.2; 1.36.6;
Constify struct ifnet->if_sadl and every use throughout the tree.
Add if_set_sadl() that both sets the link-layer address length and
replaces the current link-layer address with a new one, and use it
throughout the tree.
 1.35  09-Dec-2007  jmcneill branches: 1.35.2;
Merge jmcneill-pm branch.
 1.34  19-Oct-2007  ad branches: 1.34.4; 1.34.6;
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
 1.33  01-Sep-2007  dyoung branches: 1.33.4;
Change a bazillion occurrences of code resembling this,

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

if (error == ENETRESET) {

to this,

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

which does the same thing.

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

Use ifreq_getaddr() twice in es(4).

Whitespace nits.
 1.32  04-Mar-2007  christos branches: 1.32.2; 1.32.10; 1.32.14; 1.32.16;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.31  16-Nov-2006  christos branches: 1.31.2; 1.31.4; 1.31.8;
__unused removal on arguments; approved by core.
 1.30  12-Oct-2006  christos - sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386
 1.29  29-Sep-2006  christos Coverity CID 4151: Don't forget to close the firmware file (from Arnaud Lacombe)
 1.28  24-Sep-2006  jmcneill Add "name" parameter to powerhook_establish, to aid debugging. No objections
on tech-kern@
 1.27  02-Aug-2006  rpaulo branches: 1.27.4; 1.27.6;
Don't read the firmware twice. Noticed by Nick.
 1.26  28-May-2006  blymn Clean up bogus whitespace
 1.25  01-May-2006  rpaulo branches: 1.25.2;
aprint_debug -> aprint_error.
 1.24  29-Apr-2006  rpaulo Describe the capabilities supported.
 1.23  29-Apr-2006  rpaulo There's no power management support under ipw, so don't announce it to
the net80211 stack.
 1.22  28-Apr-2006  rpaulo bzero -> memset
bcopy -> memcpy
 1.21  28-Apr-2006  rpaulo Print the Ethernet address on attachement.
 1.20  18-Apr-2006  rpaulo Use strlcpy instead of strncpy and sizeof. Requested by Luke.
 1.19  17-Apr-2006  rpaulo Remove SIOCKILLFW.
 1.18  17-Apr-2006  rpaulo Oops, 16 is not enough to store the firmware filenames, use 24.
 1.17  17-Apr-2006  rpaulo Use the firmload API to retrive the firmware from the filesystem.
 1.16  24-Dec-2005  perry branches: 1.16.4; 1.16.6; 1.16.8; 1.16.10; 1.16.12;
Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
 1.15  20-Dec-2005  skrll Merge the FreeBSD code and adapt to NetBSD:

- add power management.
- update ioctl handling.

Fix PR 27439 as the FreeBSD code has joerg's fix for when the RX intr
routine can't allocate a new mbuf.

Fix PR 30806. Thanks to cube@ for testing and some struct ipw_soft_hdr
handling code.

XXX The state machine doesn't sync with the net80211 layer, but that's
XXX not a surprise.
 1.14  11-Dec-2005  christos merge ktrace-lwp.
 1.13  06-Jul-2005  dyoung Avoid an unnecessary API difference between NetBSD and FreeBSD:
back out my change to ieee80211_crypto_encap that made it free its
mbuf argument on error. I had thought it was a bug. It was not.
It's the drivers that are broken. Make an(4), atw(4), ipw(4),
iwi(4), ral(4), rtw(4), ural(4), and wi(4) free the mbuf when
ieee80211_crypto_encap returns NULL. Also, return ath(4) to the
way it was---i.e., free the mbuf.

Thanks to Sam Leffler to pointing out my mistake.
 1.12  22-Jun-2005  dyoung branches: 1.12.2;
Resolve conflicts in importation of 18-May-2005 ath(4) / net80211(9)
from FreeBSD. Introduce compatibility shims (sys/dev/ic/ath_netbsd.[ch],
sys/net80211/ieee80211_netbsd.[ch]). Update drivers (an, atu, atw,
awi, ipw, iwi, rtw, wi) for the new net80211(9) API.
 1.11  30-May-2005  christos - const poisoning
- avoid variable shadowing.
 1.10  19-Jan-2005  dyoung Keep a count of free transmit/command descriptors, sc->txfree.
Make the transmit section reserve one descriptor for issuing a
command at all times. If either transmit descriptors run out, or
header/buffer software descriptors run out, set IFF_OACTIVE and
get out of ipw_start, rather than re-using a descriptor or trying
to use a NULL descriptor that comes off the front of an empty
descriptor tailqueue.

This ought to fix port-i386/27439 and kern/28683.
 1.9  18-Jan-2005  dyoung Use IFQ_DEQUEUE instead of IF_DEQUEUE on if->if_snd to be consistent
with IFQ_SET_READY(&if->if_snd) elsewhere, and also to enable
ALTQ(9) on ipw(4).
 1.8  14-Sep-2004  lukem branches: 1.8.4;
Whitespace tweaks.
Remove vendor RCSID, since it's out of sync already (due to manual patches).
 1.7  14-Sep-2004  lukem Use ieee80211_find_rxnode() function instead of ieee80211_find_node()
and ieee80211_ref_node(). From Damien Bergamini.
 1.6  14-Sep-2004  lukem Correctly synchronize DMA mapping for transmission buffer descriptors.
From Damien Bergamini.
 1.5  14-Sep-2004  lukem Improve monitor mode support. From Damien Bergamini
 1.4  14-Sep-2004  lukem Add IEEE802.11 radiotap support. From Damien Bergamini.
 1.3  27-Aug-2004  lukem Minor cosmetic consistency tweaks, from Damien.
 1.2  23-Aug-2004  lukem branches: 1.2.2;
NetBSD RCSID
 1.1  23-Aug-2004  lukem branches: 1.1.1;
Initial revision
 1.1.1.2  20-Dec-2005  skrll Import of the ipw(4) FreeBSD sources from 14-Nov-2005 (just after the
last net80211 merge) as a step towards a working driver and to make
future merging easier.
 1.1.1.1  23-Aug-2004  lukem ipw(4) - Intel PRO/Wireless 2100 driver.
Written by Damien Bergamini, from http://damien.bergamini.free.fr/ipw/
 1.2.2.7  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.2.2.6  24-Jan-2005  skrll Sync with HEAD.
 1.2.2.5  21-Sep-2004  skrll Fix the sync with head I botched.
 1.2.2.4  18-Sep-2004  skrll Sync with HEAD.
 1.2.2.3  03-Sep-2004  skrll Sync with HEAD
 1.2.2.2  25-Aug-2004  skrll Sync with HEAD.
 1.2.2.1  23-Aug-2004  skrll file if_ipw.c was added on branch ktrace-lwp on 2004-08-25 06:58:05 +0000
 1.8.4.1  29-Apr-2005  kent sync with -current
 1.12.2.6  17-Mar-2008  yamt sync with head.
 1.12.2.5  21-Jan-2008  yamt sync with head
 1.12.2.4  27-Oct-2007  yamt sync with head.
 1.12.2.3  03-Sep-2007  yamt sync with head.
 1.12.2.2  30-Dec-2006  yamt sync with head.
 1.12.2.1  21-Jun-2006  yamt sync with head.
 1.16.12.1  24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.16.10.4  11-May-2006  elad sync with head
 1.16.10.3  19-Apr-2006  elad sync with head.
 1.16.10.2  10-Mar-2006  elad generic_authorize() -> kauth_authorize_generic().
 1.16.10.1  08-Mar-2006  elad Adapt to kernel authorization KPI.
 1.16.8.3  11-Aug-2006  yamt sync with head
 1.16.8.2  26-Jun-2006  yamt sync with head.
 1.16.8.1  24-May-2006  yamt sync with head.
 1.16.6.2  01-Jun-2006  kardel Sync with head.
 1.16.6.1  22-Apr-2006  simonb Sync with head.
 1.16.4.1  09-Sep-2006  rpaulo sync with head
 1.25.2.1  19-Jun-2006  chap Sync with head.
 1.27.6.2  10-Dec-2006  yamt sync with head.
 1.27.6.1  22-Oct-2006  yamt sync with head
 1.27.4.1  18-Nov-2006  ad Sync with head.
 1.31.8.1  04-Sep-2008  skrll Sync with netbsd-4.
 1.31.4.1  12-Mar-2007  rmind Sync with HEAD.
 1.31.2.1  08-Jun-2008  bouyer Pull up following revision(s) (requested by jmcneill in ticket #1156):
sys/dev/pci/if_ipw.c: revision 1.40
PR#34477: Don't dereference ni_chan if it points to the special
``any channel'' token IEEE80211_CHAN_ANYC
 1.32.16.3  23-Mar-2008  matt sync with HEAD
 1.32.16.2  09-Jan-2008  matt sync with HEAD
 1.32.16.1  06-Nov-2007  matt sync with HEAD
 1.32.14.5  08-Dec-2007  jmcneill Rename pnp(9) -> pmf(9), as requested by many.
 1.32.14.4  06-Nov-2007  joerg Refactor PNP API:
- Make suspend/resume directly a device functionality. It consists of
three layers (class logic, device logic, bus logic), all of them being
optional. This replaces D0/D3 transitions.
- device_is_active returns true if the device was not disabled and was
not suspended (even partially), device_is_enabled returns true if the
device was enabled.
- Change pnp_global_transition into pnp_system_suspend and
pnp_system_resume. Before running any suspend/resume handlers, check
that all currently attached devices support power management and bail
out otherwise. The latter is not done for the shutdown/panic case.
- Make the former bus-specific generic network handlers a class handler.
- Make PNP message like volume up/down/toogle PNP events. Each device
can register what events they are interested in and whether the handler
should be global or not.
- Introduce device_active API for devices to mark themselve in use from
either the system or the device. Use this to implement the idle handling
for audio and input devices. This is intended to replace most ad-hoc
watchdogs as well.
- Fix somes situations in which audio resume would lose mixer settings.
- Make USB host controllers better deal with suspend in the light of
shared interrupts.
- Flush filesystem cache on suspend.
- Flush disk caches on suspend. Put ATA disks into standby on suspend as
well.
- Adopt drivers to use the new PNP API.
- Fix a critical bug in the generic cardbus layer that made D0->D3
break.
- Fix ral(4) to set if_stop.
- Convert cbb(4) to the new PNP API.
- Apply the PCI Express SCI fix on resume again.
 1.32.14.3  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.32.14.2  05-Oct-2007  joerg Convert ipw(4) to PNP power management and use pci_disable_retry.
 1.32.14.1  03-Sep-2007  jmcneill Sync with HEAD.
 1.32.10.1  03-Sep-2007  skrll Sync with HEAD.
 1.32.2.2  23-Oct-2007  ad Sync with head.
 1.32.2.1  09-Oct-2007  ad Sync with head.
 1.33.4.1  25-Oct-2007  bouyer Sync with HEAD.
 1.34.6.1  11-Dec-2007  yamt sync with head.
 1.34.4.1  26-Dec-2007  ad Sync with head.
 1.35.2.1  02-Jan-2008  bouyer Sync with HEAD
 1.36.6.3  17-Jan-2009  mjf Sync with HEAD.
 1.36.6.2  02-Jun-2008  mjf Sync with HEAD.
 1.36.6.1  03-Apr-2008  mjf Sync with HEAD.
 1.36.2.1  24-Mar-2008  keiichi sync with head.
 1.39.6.1  23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.39.4.5  11-Aug-2010  yamt sync with head.
 1.39.4.4  11-Mar-2010  yamt sync with head
 1.39.4.3  16-Sep-2009  yamt sync with head
 1.39.4.2  16-May-2009  yamt sync with head
 1.39.4.1  04-May-2009  yamt sync with head.
 1.39.2.1  04-Jun-2008  yamt sync with head
 1.41.6.1  19-Jan-2009  skrll Sync with HEAD.
 1.41.4.1  13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.42.2.2  14-Jan-2009  snj Pull up following revision(s) (requested by jmcneill in ticket #250):
sys/dev/pci/if_iwi.c: revision 1.78
sys/dev/pci/if_ipw.c: revision 1.45
Make the "EULA not accepted" message a bit more informative, now reads:
EULA not accepted; please see the <driver>(4) man page.
 1.42.2.1  09-Nov-2008  snj Pull up following revision(s) (requested by joerg in ticket #25):
sys/dev/pci/if_ipw.c: revision 1.44
sys/dev/pci/if_ipwvar.h: revision 1.14
sys/dev/pci/if_iwi.c: revision 1.76
sys/dev/pci/if_iwn.c: revision 1.26
Match image name with upstream distfiles.
 1.45.2.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.50.4.2  05-Mar-2011  rmind sync with head
 1.50.4.1  30-May-2010  rmind sync with head
 1.50.2.1  30-Apr-2010  uebayasi Sync with HEAD.
 1.52.12.1  18-Feb-2012  mrg merge to -current.
 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.10.1  18-Aug-2017  snj Pull up following revision(s) (requested by mrg in ticket #1473):
sys/dev/pci/if_ipw.c: revision 1.65 via patch
Null out sbuf->m on failure to avoid double-free later.
From Ilja Van Sprundel.
Also null out sbuf->map out of paranoia.
 1.53.8.1  18-Aug-2017  snj Pull up following revision(s) (requested by mrg in ticket #1473):
sys/dev/pci/if_ipw.c: revision 1.65 via patch
Null out sbuf->m on failure to avoid double-free later.
From Ilja Van Sprundel.
Also null out sbuf->map out of paranoia.
 1.53.6.3  03-Dec-2017  jdolecek update from HEAD
 1.53.6.2  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.53.6.1  20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.53.2.1  18-Aug-2017  snj Pull up following revision(s) (requested by mrg in ticket #1473):
sys/dev/pci/if_ipw.c: revision 1.65 via patch
Null out sbuf->m on failure to avoid double-free later.
From Ilja Van Sprundel.
Also null out sbuf->map out of paranoia.
 1.54.2.1  18-May-2014  rmind sync with head
 1.57.12.1  12-Aug-2017  snj Pull up following revision(s) (requested by mrg in ticket #1469):
sys/dev/pci/if_ipw.c: revision 1.65
Null out sbuf->m on failure to avoid double-free later.
From Ilja Van Sprundel.
Also null out sbuf->map out of paranoia.
 1.57.8.1  12-Aug-2017  snj Pull up following revision(s) (requested by mrg in ticket #1469):
sys/dev/pci/if_ipw.c: revision 1.65
Null out sbuf->m on failure to avoid double-free later.
From Ilja Van Sprundel.
Also null out sbuf->map out of paranoia.
 1.57.6.5  28-Aug-2017  skrll Sync with HEAD
 1.57.6.4  05-Feb-2017  skrll Sync with HEAD
 1.57.6.3  09-Jul-2016  skrll Sync with HEAD
 1.57.6.2  27-Dec-2015  skrll Sync with HEAD (as of 26th Dec)
 1.57.6.1  06-Apr-2015  skrll Sync with HEAD
 1.57.4.1  12-Aug-2017  snj Pull up following revision(s) (requested by mrg in ticket #1469):
sys/dev/pci/if_ipw.c: revision 1.65
Null out sbuf->m on failure to avoid double-free later.
From Ilja Van Sprundel.
Also null out sbuf->map out of paranoia.
 1.60.2.2  20-Mar-2017  pgoyette Sync with HEAD
 1.60.2.1  07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.61.2.1  21-Apr-2017  bouyer Sync with HEAD
 1.64.2.2  10-Dec-2017  snj Pull up following revision(s) (requested by msaitoh in ticket #427):
sys/arch/amiga/dev/if_bah_zbus.c: 1.17
sys/arch/arm/broadcom/bcm53xx_eth.c: 1.30
sys/arch/powerpc/booke/dev/pq3etsec.c: 1.32
sys/arch/usermode/dev/if_veth.c: 1.9
sys/dev/ic/an.c: 1.66
sys/dev/ic/athn.c: 1.17
sys/dev/ic/atw.c: 1.162
sys/dev/ic/bwi.c: 1.33
sys/dev/ic/dwc_gmac.c: 1.41-1.42
sys/dev/ic/malo.c: 1.10
sys/dev/ic/rt2560.c: 1.31
sys/dev/ic/rt2661.c: 1.36
sys/dev/ic/rt2860.c: 1.29
sys/dev/ic/rtw.c: 1.127
sys/dev/ic/rtwvar.h: 1.46
sys/dev/ic/smc90cx6.c: 1.71
sys/dev/ic/smc90cx6var.h: 1.12
sys/dev/ic/wi.c: 1.244
sys/dev/pci/if_ipw.c: 1.66
sys/dev/pci/if_iwi.c: 1.104
sys/dev/pci/if_iwm.c: 1.76
sys/dev/pci/if_iwn.c: 1.86
sys/dev/pci/if_rtwn.c: 1.13
sys/dev/pci/if_wm.c: 1.541
sys/dev/pci/if_wpi.c: 1.79
sys/dev/pci/ixgbe/ixgbe.c: 1.106
sys/dev/pci/ixgbe/ixv.c: 1.73 via patch
sys/dev/pcmcia/if_malo_pcmcia.c: 1.15
sys/dev/scsipi/if_se.c: 1.95
sys/dev/usb/if_upl.c: 1.60
sys/net/if.c: 1.396
sys/net/if.h: 1.241
sys/net/if_arc.h: 1.23
sys/net/if_arcsubr.c: 1.78
sys/net/if_bridge.c: 1.136-1.137
sys/net/if_etherip.c: 1.39
sys/net/if_faith.c: 1.56
sys/net/if_gif.c: 1.131
sys/net/if_loop.c: 1.96
sys/net/if_mpls.c: 1.30
sys/net/if_pppoe.c: 1.129
sys/net/if_srt.c: 1.27
sys/net/if_stf.c: 1.102
sys/net/if_tap.c: 1.100
sys/net/if_vlan.c: 1.105
sys/netinet/ip_carp.c: 1.91
sys/rump/net/lib/libshmif/if_shmem.c: 1.73-1.74
sys/rump/net/lib/libvirtif/if_virt.c: 1.55-1.56
if_initalize() and if_attach() failed when resource allocation failed
(e.g. allocating softint). Without this change, it panics. It's bad because
resource shortage really occured when a lot of pseudo interface is created.
To avoid this problem, don't panic and change return value of if_initialize()
and if_attach() to int. Caller fanction will be recover from error cleanly by
checking the return value.
Return if bah_attach_subr() failed.
If if_attach() failed in the attach function, return.
- If if_initialize() failed in the attach function, free resources and return.
- Add some missing frees in bridge_clone_destroy().
- KNF
If error occured in bcmeth_ccb_attach(), free resources and return.
If error occured in pq3etsec_attach(), free resources and return.
If error occured in the attach function, free resources and return.
- If if_initialize() failed in athn_attach(), free resources and return.
- Add missing pmf_event_deregister() in athn_detach().
- Free resources correctly on some errors in atw_attach().
- Use apint*() insread of printf() in the attach function.
If if_initialize() failed in the attach function, return.
- If if_initialize() failed in the attach function, free resources and return.
- Add missing dwc_gmac_free_dma_rings() and mutex_destroy() when attach
failed.
- If if_initialize() failed in the attach function, free resources and return.
- ifp is always not NULL in iwi_detach(). Check correctly with ifp->if_softc.
- If if_initialize() failed in the attach function, free resources and return.
- Fix error path in the attach function correctly.
If if_initialize() failed in the attach function, free resources and return.
If if_attach() failed in the attach function, free resources and return.
- If if_initialize() failed in the attach function, free resources and return.
- KNF
- If if_attach() failed in the attach function, free resources and return.
- KNF
Fix compile error.
Fix compile error.
We don't need '&mii', but just 'mii' for mii_detach().
Don't free sc_rthash twice
 1.64.2.1  05-Aug-2017  snj Pull up following revision(s) (requested by spz in ticket #182):
sys/dev/pci/if_ipw.c: revision 1.65
Null out sbuf->m on failure to avoid double-free later.
From Ilja Van Sprundel.
Also null out sbuf->map out of paranoia.
 1.67.2.3  26-Dec-2018  pgoyette Sync with HEAD, resolve a few conflicts
 1.67.2.2  28-Jul-2018  pgoyette Sync with HEAD
 1.67.2.1  02-May-2018  pgoyette Synch with HEAD
 1.69.2.2  08-Apr-2020  martin Merge changes from current as of 20200406
 1.69.2.1  10-Jun-2019  christos Sync with HEAD
 1.72.6.1  29-Feb-2020  ad Sync with head.
 1.73.10.1  17-Jun-2021  thorpej Sync w/ HEAD.

RSS XML Feed