History log of /dragonfly/sys/dev/netif/iwn/if_iwn.c (Results 1 – 25 of 70)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 030b0c8c 09-Dec-2023 Michael Neumann <mneumann@ntecs.de>

busdma - Remove filter functionality

- Remove filtfunc and filtarg arguments from bus_dma_tag_create() and
fix all callers. All callers use NULL today for both filterfunc and
filterarg with one

busdma - Remove filter functionality

- Remove filtfunc and filtarg arguments from bus_dma_tag_create() and
fix all callers. All callers use NULL today for both filterfunc and
filterarg with one exception: if_jme.

- Remove filter functionality internally and parent tag tracking.
Without filter functions, we do not need to keep track of tag
ancestry. All inheritance of the parent tag's parameters occurs when
creating the new child tag.

- rename run_filter() to addr_needs_bounce().

- FreeBSD keeps the filtfunc and filtarg arguments but requires them to
be NULL.

- Drop filterfunc usage from if_jme.

In case of "JMC260 chip full mask revision 2", which has a hardware bug
when it comes to DMA transfers crossing the 4 GB bounday, the parent
buffer tag already limits DMA memory to 32bit address space. As such it
should be safe to drop the filterfunc. The filterfunc was checking if
the lower 32bits of the physical address used for DMA are all 0. In case
of a 32bit address space, the only address where all lower 32-bits are
all zero is 0 itself and I am here assuming that the physical address 0
is not used for DMA transfers!

Mainly obtained from: FreeBSD (commits 7cb028de, 900907f4, 1228b93b, 3933ff56)

show more ...


# 2b3f93ea 13-Oct-2023 Matthew Dillon <dillon@apollo.backplane.com>

kernel - Add per-process capability-based restrictions

* This new system allows userland to set capability restrictions which
turns off numerous kernel features and root accesses. These restricti

kernel - Add per-process capability-based restrictions

* This new system allows userland to set capability restrictions which
turns off numerous kernel features and root accesses. These restrictions
are inherited by sub-processes recursively. Once set, restrictions cannot
be removed.

Basic restrictions that mimic an unadorned jail can be enabled without
creating a jail, but generally speaking real security also requires
creating a chrooted filesystem topology, and a jail is still needed
to really segregate processes from each other. If you do so, however,
you can (for example) disable mount/umount and most global root-only
features.

* Add new system calls and a manual page for syscap_get(2) and syscap_set(2)

* Add sys/caps.h

* Add the "setcaps" userland utility and manual page.

* Remove priv.9 and the priv_check infrastructure, replacing it with
a newly designed caps infrastructure.

* The intention is to add path restriction lists and similar features to
improve jailess security in the near future, and to optimize the
priv_check code.

show more ...


Revision tags: v6.4.0, v6.4.0rc1, v6.5.0, v6.2.2, v6.2.1, v6.2.0, v6.3.0, v6.0.1, v6.0.0, v6.0.0rc1, v6.1.0, v5.8.3, v5.8.2, v5.8.1, v5.8.0, v5.9.0, v5.8.0rc1, v5.6.3, v5.6.2, v5.6.1, v5.6.0, v5.6.0rc1, v5.7.0, v5.4.3, v5.4.2
# eb67213a 26-Mar-2019 Matthew Dillon <dillon@apollo.backplane.com>

kernel - Rewrite the callout_*() API

* Rewrite the entire API from scratch and improve compatibility
with FreeBSD. This is not an attempt to achieve full API compatibility,
as FreeBSD's API has

kernel - Rewrite the callout_*() API

* Rewrite the entire API from scratch and improve compatibility
with FreeBSD. This is not an attempt to achieve full API compatibility,
as FreeBSD's API has unnecessary complexity that coders would frequently
make mistakes interpreting.

* Remove the IPI mechanisms in favor of fine-grained spin-locks instead.

* Add some robustness features in an attempt to track down corrupted
callwheel lists due to originating subsystems freeing structures out
from under an active callout.

* The code supports a full-blown type-stable/adhoc-reuse structural
separation between the front-end and the back-end, but this feature
is currently not operational and may be removed at some future point.
Instead we currently just embed the struct _callout inside the
struct callout.

* Replace callout_stop_sync() with callout_cancel().

* callout_drain() is now implemented as a synchronous cancel instead
of an asynchronous stop, which is closer to the FreeBSD API and
expected operation for ported code (usb stack in particular). We
will just have to fix any deadlocks which we come across.

* Retain our callout_terminate() function as the 'better' way to
stop using a callout, as it will not only cancel the callout but
also de-flag the structure so it can no longer be used.

show more ...


Revision tags: v5.4.1, v5.4.0, v5.5.0, v5.4.0rc1
# 36c2fb3e 29-Oct-2018 Tobias Heilig <0x70b1@web.de>

add subdevice id 0x5260 for iwn 6035 series


Revision tags: v5.2.2, v5.2.1, v5.2.0, v5.3.0, v5.2.0rc, v5.0.2, v5.0.1, v5.0.0, v5.0.0rc2, v5.1.0, v5.0.0rc1, v4.8.1, v4.8.0, v4.6.2, v4.9.0, v4.8.0rc, v4.6.1, v4.6.0, v4.6.0rc2, v4.6.0rc, v4.7.0
# b1ee9c70 23-May-2016 Matthew Dillon <dillon@apollo.backplane.com>

iwn - Use pci_alloc_1intr()

* Use pci_alloc_1intr() in DragonFly for conditionalizing MSI interrupt
installation.


# 977fc0db 15-May-2016 Matthew Dillon <dillon@backplane.com>

wlan - Sync dev/netif/iwn from FreeBSD

* Sync dev/netif/iwn from FreeBSD, fbsd git dd885b9a0a0e, May 11 2016.

* Straight report from FreeBSD using new infrastructure.

* Add iwn back to build


# 4f1aaf2f 07-May-2016 Imre Vadász <imre@vdsz.com>

80211 - Further ifp->if_softc -> ic_softc conversions in wlan drivers.


# 13f98998 06-May-2016 Matthew Dillon <dillon@apollo.backplane.com>

80211 - Fixup missing ic_name, ic_softc

* Fixup missing ic_name and ic_softc assignments.


Revision tags: v4.4.3, v4.4.2
# 4f898719 04-Jan-2016 Imre Vadász <imre@vdsz.com>

80211 - Update up to FreeBSD's r287029 (only skipping a few minor changes)

Taken-From: FreeBSD


Revision tags: v4.4.1, v4.4.0, v4.5.0, v4.4.0rc
# 6e4c1236 16-Aug-2015 Johannes Hofmann <johannes.hofmann@gmx.de>

kernel/iwn: Grab the WLAN serializer around ieee80211_ifdetach()

This fixes a panic on kldunload.


Revision tags: v4.2.4, v4.3.1
# 14929979 25-Jul-2015 Sepherosa Ziehau <sephe@dragonflybsd.org>

netif: Configure mbuf clusters/jclusters limits

Default mbuf clusters limit work for most of the network device
drivers. The drivers modified by this commit:
- Use mbuf jclusters.
- Size of the rec

netif: Configure mbuf clusters/jclusters limits

Default mbuf clusters limit work for most of the network device
drivers. The drivers modified by this commit:
- Use mbuf jclusters.
- Size of the reception queues could be configured.
- Support multiple reception queues.

et(4) and mxge(4) are special; they use non-cluster mbuf for small
packets reception, so we adjust non-cluster mbuf limit manually in
these two drivers.

show more ...


Revision tags: v4.2.3, v4.2.1, v4.2.0, v4.0.6, v4.3.0, v4.2.0rc
# d3e40d4d 10-Apr-2015 Sascha Wildner <saw@online.de>

kernel: Fix two typos.


Revision tags: v4.0.5, v4.0.4
# f92fae3f 19-Feb-2015 Sascha Wildner <saw@online.de>

kernel/wlan: Fix up the MAC address printing and add back __printflike()s.

In the recent wlan, iwn and ath upgrades, porting this properly was hacked
around by removing the __printflike()s because D

kernel/wlan: Fix up the MAC address printing and add back __printflike()s.

In the recent wlan, iwn and ath upgrades, porting this properly was hacked
around by removing the __printflike()s because DragonFly has no support
for %D (neither in GCC nor in kprintf()). This is wrong because even
though it silences the warning, it will still not print MAC addresses
correctly. So bring all that back.

Also update the wlan's README.DRAGONFLY with some information about how
to port this properly.

show more ...


# b5523eac 19-Feb-2015 Sascha Wildner <saw@online.de>

kernel: Move us to using M_NOWAIT and M_WAITOK for mbuf functions.

The main reason is that our having to use the MB_WAIT and MB_DONTWAIT
flags was a recurring issue when porting drivers from FreeBSD

kernel: Move us to using M_NOWAIT and M_WAITOK for mbuf functions.

The main reason is that our having to use the MB_WAIT and MB_DONTWAIT
flags was a recurring issue when porting drivers from FreeBSD because
it tended to get forgotten and the code would compile anyway with the
wrong constants. And since MB_WAIT and MB_DONTWAIT ended up as ocflags
for an objcache_get() or objcache_reclaimlist call (which use M_WAITOK
and M_NOWAIT), it was just one big converting back and forth with some
sanitization in between.

This commit allows M_* again for the mbuf functions and keeps the
sanitizing as it was before: when M_WAITOK is among the passed flags,
objcache functions will be called with M_WAITOK and when it is absent,
they will be called with M_NOWAIT. All other flags are scrubbed by the
MB_OCFLAG() macro which does the same as the former MBTOM().

Approved-by: dillon

show more ...


# c37355b9 10-Feb-2015 Sepherosa Ziehau <sephe@dragonflybsd.org>

wlan: Let driver holds WLAN serializer for ieee80211_ifattach

Looks like almost all building drivers (except, ndis(4) and wpi(4))
hold WLAN serializer for ieee80211_ifattach(), so we release the
WLA

wlan: Let driver holds WLAN serializer for ieee80211_ifattach

Looks like almost all building drivers (except, ndis(4) and wpi(4))
hold WLAN serializer for ieee80211_ifattach(), so we release the
WLAN serializer in ieee80211_ifattach() before the if_attach().

This reverts 4109d03b12096f353e4036119a0d6357fa1ec67e and
part of a583ece6b440118aa26f3eb162a1df7f2821f923.

Reported-by: marino@

show more ...


# 4109d03b 07-Feb-2015 Sepherosa Ziehau <sephe@dragonflybsd.org>

iwn: Release WLAN serializer before ieee80211_ifattach()

Mainly to avoid dead-locking domsg to netisrs in ieee80211_ifattach()

Reported-by: Rolinh on IRC


# 9318c615 30-Jan-2015 Johannes Hofmann <johannes.hofmann@gmx.de>

kernel/iwn - Fix MAC address printing in verbose mode

* Fix MAC address printing in verbose mode after report
from FreeBSD


# 05538f72 20-Jan-2015 Matthew Dillon <dillon@backplane.com>

kernel/iwn - Report iwn from FreeBSD

* Report iwn from FreeBSD


Revision tags: v4.0.3
# 085ff963 11-Jan-2015 Matthew Dillon <dillon@apollo.backplane.com>

wlan - Update wlan from Adrian / FreeBSD

* Update the wlan infrastructure, initially working with ath.


Revision tags: v4.0.2
# 92ff3983 22-Dec-2014 Sascha Wildner <saw@online.de>

kernel: Don't confuse kmalloc() and mbuf flags.


# 26595b18 28-Nov-2014 Sascha Wildner <saw@online.de>

kernel: Use the new auto-created sysctl ctx/tree in various drivers.

Everywhere where we formerly rolled a hw.fooX.* per-device ctx/tree
ourselves.

This commit switches it to dev.foo.X.*


Revision tags: v4.0.1, v4.0.0, v4.0.0rc3, v4.0.0rc2, v4.0.0rc, v4.1.0
# 0a80612d 10-Aug-2014 Matthew Dillon <dillon@apollo.backplane.com>

kernel - Add the nitems(x) macro from FreeBSD to sys/param.h

* Horrible name but... ok.


# fd49669c 23-Aug-2014 Michael Neumann <mneumann@ntecs.de>

iwn - Sync with FreeBSD up to ffb6d5c3967d1342fa5e2d6f51c8ea8aff1419e2


Revision tags: v3.8.2
# 2887e534 02-Jul-2014 Sascha Wildner <saw@online.de>

kernel: Fix some -Wundef warnings.


Revision tags: v3.8.1, v3.6.3
# a2198f52 09-Jun-2014 Sascha Wildner <saw@online.de>

kernel/iwn: Add a missing wlan_serialize_exit().


123