FreeBSD/src d010557sys/netinet6 nd6.c

inet6: add the missing lock acquire to nd6_get_llentry

Reported by:    Lexi Winter
PR:             282378
Sponsored by:   Rubicon Communications, LLC ("Netgate")

(cherry picked from commit d6138a65405f697715189363b2b18581e7abd982)
DeltaFile
+1-0sys/netinet6/nd6.c
+1-01 files

FreeBSD/src 00f1ccfsys/netinet6 nd6.c

inet6: add the missing lock acquire to nd6_get_llentry

Reported by:    Lexi Winter
PR:             282378
Sponsored by:   Rubicon Communications, LLC ("Netgate")

(cherry picked from commit d6138a65405f697715189363b2b18581e7abd982)
DeltaFile
+1-0sys/netinet6/nd6.c
+1-01 files

FreeBSD/src 872c817sys/compat/linuxkpi/common/include/linux math.h

linuxkpi: Correct DIV_ROUND_DOWN_ULL

This fixes a black screen issue with the i915 DRM driver from Linux v6.8

Fixes: c4e0746e7d5bd ("LinuxKPI: Add helper macros IS_ALIGNED and DIV_ROUND_DOWN_ULL.")
Pull request: https://github.com/freebsd/freebsd-src/pull/1612

(cherry picked from commit ef037a028af7cc331e36ca6c8e2eb5612cdb1130)
DeltaFile
+1-1sys/compat/linuxkpi/common/include/linux/math.h
+1-11 files

FreeBSD/src 235fe91include assert.h

include: add a userland version of __assert_unreachable

The kernel has had a version of this since
c79cee71363d ("kernel: provide panicky version of __unreachable"), and
userland can benefit from the same.  __unreachable is largely
inadequate because it's *not* an assertion of any sort, so we're not
really alerted to a problem that we could've anticipated.

Reviewed by:    emaste, imp, jhb, olce
Differential Revision:  https://reviews.freebsd.org/D48077

(cherry picked from commit 712f81feea416e9f8aaf040173883876a50a7d34)
DeltaFile
+7-0include/assert.h
+7-01 files

FreeBSD/src 848fdcasys/contrib/dev/rtw89 wow.c

rtw89: make wow.c compile

So far we have not compiled wow.c given we do not enable CONFIG_PM
yet.
Make the necessary file local adjustments to make the file compile
once further changes in LinuxKPI 802.11 code are comitted.

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
DeltaFile
+35-0sys/contrib/dev/rtw89/wow.c
+35-01 files

FreeBSD/src 52a4304sys/contrib/dev/iwlwifi/mvm d3.c

iwlwifi: make mvm/d3.c compile again

Given we currently do not ompile the file by default make it compile
again after the last vendor import.

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
DeltaFile
+9-0sys/contrib/dev/iwlwifi/mvm/d3.c
+9-01 files

FreeBSD/src b42c339sys/compat/linuxkpi/common/include/linux ieee80211.h, sys/compat/linuxkpi/common/include/net cfg80211.h mac80211.h

LinuxKPI: 802.11: CONFIG_PM_SLEEP / WoWLAN header adjustments

Sort out some (though not yet all) changes needed for CONFIG_PM_SLEEP
and respectively WoWLAN support (so we can compile it in).  This is
just one further step towards proper suspend/resume support.

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
DeltaFile
+21-5sys/compat/linuxkpi/common/include/net/cfg80211.h
+12-4sys/compat/linuxkpi/common/include/net/mac80211.h
+7-0sys/compat/linuxkpi/common/include/linux/ieee80211.h
+40-93 files

FreeBSD/src c8a6676sys/compat/linuxkpi/common/include/linux ieee80211.h, sys/compat/linuxkpi/common/include/net mac80211.h

LinuxKPI: 802.11: crypto pn lengths

Define the last missing PN length and for consistency use them
in struct ieee80211_key_seq (even though a 6 is a 6 is a 6).

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
DeltaFile
+5-2sys/compat/linuxkpi/common/include/net/mac80211.h
+2-1sys/compat/linuxkpi/common/include/linux/ieee80211.h
+7-32 files

FreeBSD/src 7513a0asys/net80211 ieee80211_crypto.c

net80211: make use of IEEE80211_KEY_BITS for debug messages

Use %b with IEEE80211_KEY_BITS for the debug logging in
ieee80211_crypto.c rather than just printing the hex value, which
makes some of the messages more obvious and avoids having the header
file next to one at all times.

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
Reviewed by:    adrian
Differential Revision: https://reviews.freebsd.org/D49369
DeltaFile
+11-10sys/net80211/ieee80211_crypto.c
+11-101 files

FreeBSD/src db8ceb8sys/net80211 ieee80211_crypto.c ieee80211_crypto.h

net80211: cleanup keyidx argument of ieee80211_notify_michael_failure()

Instead of passing -1 to the function in ieee80211_crypto_demic(),
use the defined IEEE80211_KEYIX_NONE.
net80211 uses ieee80211_keyix not u_int as type for the key index
internally.  Use that.  This also helps when printing the -1 unsigned
as it stays within the expected numerical scope and makes the debug
message more readable.

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
Reviewed by:    adrian
Differential Revision: https://reviews.freebsd.org/D49368
DeltaFile
+2-1sys/net80211/ieee80211_crypto.c
+1-1sys/net80211/ieee80211_crypto.h
+1-1sys/net80211/ieee80211_freebsd.c
+4-33 files

FreeBSD/src 0461600sys/net80211 ieee80211_crypto.h

net80211: correct IEEE80211_KEY_BITS

Not only are some of the bits missing, \4 and following were also
off-by-one.  Correct that so we can use them instead of reading
hex numbers.

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
Reviewed by:    adrian
Differential Revision: https://reviews.freebsd.org/D49366
DeltaFile
+2-2sys/net80211/ieee80211_crypto.h
+2-21 files

FreeBSD/src b297093sys/net/route route_ctl.c

routing: do not allow PINNED routes to be overriden

First configured PINNED routes should have higher priority.

Fixes:          1da4954c92ea
Differential Revision:  https://reviews.freebsd.org/D48650

(cherry picked from commit 361a8395f0b0e6f254fd138798232529679d99f6)
DeltaFile
+1-1sys/net/route/route_ctl.c
+1-11 files

FreeBSD/src 01ade56sys/net/route route_ctl.c

routing: do not allow PINNED routes to be overriden

First configured PINNED routes should have higher priority.

Fixes:          1da4954c92ea
Differential Revision:  https://reviews.freebsd.org/D48650

(cherry picked from commit 361a8395f0b0e6f254fd138798232529679d99f6)
DeltaFile
+1-1sys/net/route/route_ctl.c
+1-11 files

FreeBSD/src 64610dfsys/dev/mana mana_en.c

mana: remove redundant doorbell in mana_poll_rx_cq()

With the last commit to refill the rx mbuf in batch, the doorbell
in mana_poll_rx_cq() becomes redundant. Remove it to save a few
microseconds spent in mmio call.

Reported by:    NetApp
Reviewed by:    Tallamraju, Sai
Tested by:      whu
Fixes:          9b8701b8 ("mana: refill the rx mbuf in batch")
MFC after:      3 days
Sponsored by:   Microsoft

(cherry picked from commit 47f4137e44b8079c7784604d220a298db07a19a1)
DeltaFile
+0-7sys/dev/mana/mana_en.c
+0-71 files

FreeBSD/src 8a78a9asys/dev/mlx5/mlx5_core mlx5_main.c

mlx5: Fix BlueField-4 device description

(cherry picked from commit 7008b9fab5552fd6dcf5a00cd2c62144d54ef3a0)
DeltaFile
+1-1sys/dev/mlx5/mlx5_core/mlx5_main.c
+1-11 files

FreeBSD/src 12bff22. .git-blame-ignore-revs

.git-blame-ignore-revs: one more revision for rtld

Sponsored by:   The FreeBSD Foundation
DeltaFile
+1-0.git-blame-ignore-revs
+1-01 files

FreeBSD/src 1c8cdd8libexec/rtld-elf rtld.c

rtld: fix several style(9) bugs

Sponsored by:   The FreeBSD Foundation
DeltaFile
+27-21libexec/rtld-elf/rtld.c
+27-211 files

FreeBSD/src 6460c32lib/libifconfig sfp.lua

libifconfig: Fix nits in the descriptions of active 100G cables.

This is a cosmetic change affecting the "plugged: ..." line in the
output of ifconfig -v.  Both the 100G active cables were missing a
closing parenthesis.

MFC after:      1 week
Sponsored by:   Chelsio Communications
DeltaFile
+2-2lib/libifconfig/sfp.lua
+2-21 files

FreeBSD/src f506d5asys/vm uma_core.c

uma: Avoid excessive per-CPU draining

After commit 389a3fa693ef, uma_reclaim_domain(UMA_RECLAIM_DRAIN_CPU)
calls uma_zone_reclaim_domain(UMA_RECLAIM_DRAIN_CPU) twice on each zone
in addition to globally draining per-CPU caches. This was unintended
and is unnecessarily slow; in particular, draining per-CPU caches
requires binding to each CPU.

Stop draining per-CPU caches when visiting each zone, just do it once in
pcpu_cache_drain_safe() to minimize the amount of expensive sched_bind()
calls.

Fixes:          389a3fa693ef ("uma: Add UMA_ZONE_UNMANAGED")
MFC after:      1 week
Sponsored by:   Klara, Inc.
Sponsored by:   NetApp, Inc.
Reviewed by:    gallatin, kib
Differential Revision:  https://reviews.freebsd.org/D49349
DeltaFile
+7-0sys/vm/uma_core.c
+7-01 files

FreeBSD/src 4ed0ca9sys/dev/sound/pcm feeder_mixer.c

sound: Make feed_mixer_apply() __always_inline

Reported by:    mav
Fixes:          4021fa32d92d ("sound: Simplify pcm/feeder_mixer.c")
MFC after:      1 week
Sponsored by:   The FreeBSD Foundation

(cherry picked from commit 717adecbbb5293d8386caa866c21421ef9eeb22c)
DeltaFile
+1-1sys/dev/sound/pcm/feeder_mixer.c
+1-11 files

FreeBSD/src caa0636sys/dev/sound/pcm channel.c channel.h

sound: Update COPYRIGHT notices

Only to files I've currently made significant contributions to.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week

(cherry picked from commit c824383b269d8abe175ea4751194660716d5600e)
DeltaFile
+4-0sys/dev/sound/pcm/channel.c
+4-0sys/dev/sound/pcm/channel.h
+4-0sys/dev/sound/pcm/feeder_mixer.c
+4-0sys/dev/sound/pcm/dsp.h
+4-0sys/dev/sound/pcm/feeder.c
+4-0sys/dev/sound/pcm/feeder_eq.c
+24-010 files not shown
+49-516 files

FreeBSD/src 65dec16sys/dev/sound/pcm sound.c

sound: Make dev.pcm.X.mode dynamic

Currently dev.pcm.X.mode is calculated only once in pcm_sysinit(), which
is called by pcm_register() during attach, but this can result in
inconsistencies.

For some context, what pcm_mode_init() does is, it checks if "playcount"
is positive, in which case we assume the device supports playback. The
same is done for "reccount" for recording, and if "mixer_dev" is not
NULL, we know the device has a mixer.

The "playcount" and "reccount" variables correspond to the number of
_primary_ playback/recording channels, so we can assume that the primary
channels have been created before reaching pcm_mode_init(). However, for
the mixer that's not always the case. If the mixer is created _after_
pcm_register(), as is the case for snd_dummy(4) for example,
pcm_mode_init() will see that "mixer_dev" is NULL, and report that the
device does not have a mixer, whereas in reality we just created it
afterwards.

    [10 lines not shown]
DeltaFile
+15-10sys/dev/sound/pcm/sound.c
+15-101 files

FreeBSD/src 31ddfe9sys/dev/sound/pcm vchan.c sound.c

sound: Retire SD_F_AUTOVCHAN

This flag is redundant and essentially a no-op, as it is set when the
device supports at least playback or recording, which is almost always
the case. But even if the device is mixer-only (i.e., 0 channels), there
is no reason to keep this flag; it is only used to bail out of the vchan
sysctl handlers, but we already bail out anyway if we try to use the
sysctl in a vchan direction that is not supported.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D49021

(cherry picked from commit b768f2c7773b6e306fb43687657414f9f42a27d4)
DeltaFile
+4-4sys/dev/sound/pcm/vchan.c
+1-6sys/dev/sound/pcm/sound.c
+2-2sys/dev/sound/pcm/sound.h
+7-123 files

FreeBSD/src 42889e8sys/dev/sound/pcm dsp.h

sound: Take dsp_cdevsw out of header file

Not used outside of pcm/dsp.c.

MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
Reviewed by:    imp, markj
Differential Revision:  https://reviews.freebsd.org/D49217

(cherry picked from commit 2fda8597116e760c32f07af43d260041f975b650)
DeltaFile
+0-2sys/dev/sound/pcm/dsp.h
+0-21 files

FreeBSD/src a25f84csys/dev/sound/pcm feeder_matrix.c

sound: Remove macro magic from pcm/feeder_matrix.c

Turn the FEEDMATRIX_DECLARE macro into a single inline function
(feed_matrix_apply()). There is no reason to have this as a macro, it
only complicated the code. An advantage of this patch is that, because
we no longer call the functions created by the macro through function
pointers (apply field of feed_matrix_info), we can call
feed_matrix_apply() directly in feed_matrix_feed().

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D48035

(cherry picked from commit ac24c9da8bb7af731646dd7924841a28e2ad7ad7)
DeltaFile
+58-131sys/dev/sound/pcm/feeder_matrix.c
+58-1311 files

FreeBSD/src b2adb71sys/dev/sound/pcm feeder_eq.c

sound: Remove macro magic from pcm/feeder_eq.c

Turn the FEEDEQ_DECLARE macro into a single inline function
(feed_eq_biquad()). There is no reason to have this as a macro, and it
only complicates the code. An advantage of this patch is that, because
we no longer call the functions created by the macro through function
pointers (biquad_op), we can call feed_eq_biquad() directly in
feed_eq_feed().

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D48032

(cherry picked from commit e18d66d9c515abc729f5c4740b9b999d28abc333)
DeltaFile
+80-142sys/dev/sound/pcm/feeder_eq.c
+80-1421 files

FreeBSD/src a333561sys/dev/sound/pcm feeder_mixer.c

sound: Simplify pcm/feeder_mixer.c

- Get rid of macro magic.
- Make feed_mixer_info handling similar to most feeders.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D48394

(cherry picked from commit 4021fa32d92d656d3d43186cc231695c7ad53d33)
DeltaFile
+68-105sys/dev/sound/pcm/feeder_mixer.c
+68-1051 files

FreeBSD/src 15dc84bsys/dev/sound/pcm feeder_matrix.c

sound: Remove feed_matrix_apply_generic()

It does what feed_matrix_apply() already does, so it is redundant.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D48036

(cherry picked from commit b73b5f70e9f6be951e66531f6f57249eea4ba4dc)
DeltaFile
+0-49sys/dev/sound/pcm/feeder_matrix.c
+0-491 files

FreeBSD/src d8c3c67sys/dev/sound/pcm pcm.h feeder_eq.c

sound: Turn clamp macros into a function

This makes some subsequent feeder refactors easier to implement.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D48421

(cherry picked from commit 4918fc2e238b581aaf1f63e20003d5fa957f0b09)
DeltaFile
+38-26sys/dev/sound/pcm/pcm.h
+2-6sys/dev/sound/pcm/feeder_eq.c
+2-6sys/dev/sound/pcm/feeder_rate.c
+2-1sys/dev/sound/pcm/feeder_volume.c
+1-1sys/dev/sound/pcm/feeder_mixer.c
+45-405 files

FreeBSD/src 33529d6sys/dev/sound/pcm pcm.h feeder_format.c, tests/sys/sound pcm_read_write.c

sound: Refactor the format conversion framework

Merge the PCM_READ|WRITE_* macros defined in pcm/pcm.h, as well as the
intpcm_read|write_* macros defined in pcm/feeder_format.c, into six
inline functions: pcm_sample_read|write[_norm|calc](). The absence of
macro magic makes the code significantly easier to read, use and modify.

Since these functions take the input/output format as a parameter, get
rid of the read() and write() function pointers defined in struct
feed_format_info, as well as the feeder_format_read|write_op()
functions, and use the new read/write functions directly.

Sponsored by:   The FreeBSD Fondation
MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D47932

(cherry picked from commit 433e270f341cf660b2fe125c2e0f733073829188)
DeltaFile
+246-311sys/dev/sound/pcm/pcm.h
+6-272tests/sys/sound/pcm_read_write.c
+6-215sys/dev/sound/pcm/feeder_format.c
+19-24sys/dev/sound/pcm/feeder_matrix.c
+10-8sys/dev/sound/pcm/feeder_rate.c
+6-6sys/dev/sound/pcm/feeder_eq.c
+293-8365 files not shown
+303-85011 files