Remove all of /usr/tests/share/examples/... when MK_EXAMPLES == no
- Remove the generated files (`file1`).
- Remove the top-level example `Kyuafile`.
MFC after: 1 week
UPDATING: Bump __FreeBSD_version to 1500508
Bump __FreeBSD_version to 1500508 for LinuxKPI to be able to track
changes to eventfd, changes for DRM 6.11, changes of LinuxKPI 802.11
based on Linux v7.0.
Sponsored by: The FreeBSD Foundation
Preen/update list for share/examples/sound under `MK_EXAMPLES`
- Update sources to match current installed files list. This involved
adding and removing some example files.
- Sort the list alphabetically so it'll be easier to spot future updates.
MFC after: 1 week
ath12k: update module Makefiles for v7.0 driver version
Update LINUXKPI_VERSION to reflect that the driver is based on
Linux v7.0.
Handle the file changes and the extra wifi7/ subdirectory.
Sponsored by: The FreeBSD Foundation
(cherry picked from commit 5cfadb6633128dccc32b1e4f84386ad705adc721)
rtw89: fix mismerge
Due to FreeBSD-specific code it seems a code update was not applied
to the FreeBSD part during the v6.17 driver update.
Add the missing lines.
Sponsored by: The FreeBSD Foundation
Fixes: b35044b38f74c
(cherry picked from commit adb16cd389c3456cbd538b658c3c0af5145dde91)
ath11k: update module Makefiles for v7.0 driver version
Update LINUXKPI_VERSION to reflect that the driver is based on
Linux v7.0.
Add optional support for the new cfr (channel frequency response)
file/option.
Sponsored by: The FreeBSD Foundation
(cherry picked from commit 20cf11812ac722852322f2f2994698d7a5fa8dc6)
brcm80211: update module Makefiles for v7.0 driver version
Update LINUXKPI_VERSION to reflect that the driver is based on
Linux v7.0.
Sponsored by: The FreeBSD Foundation
(cherry picked from commit 634a48f3673ff8af9848846a6bff1a8c068d205d)
athk_common / ath10k: update module Makefiles for v7.0 driver version
Update LINUXKPI_VERSION to reflect that the driver is based on
Linux v7.0.
Sponsored by: The FreeBSD Foundation
(cherry picked from commit 4546eb0c27f22236be8179616e1f0a3e88ddfbbe)
mt76: update module Makefile for v7.0 driver version
Update LINUXKPI_VERSION to reflect that the driver is based on
Linux v7.0.
Sponsored by: The FreeBSD Foundation
(cherry picked from commit 1c50cb1d75625bea2ba928697ea1cbafa29dd245)
iwlwifi: update module Makefile for v7.0 driver version
Add the new file for nan in the mld subdriver.
Update LINUXKPI_VERSION to reflect that the driver is based on
Linux v7.0.
Sponsored by: The FreeBSD Foundation
(cherry picked from commit 9ed3331fb5822b93313edae42cc529eb25e1a6cc)
rtw89: update module Makefile for v7.0 driver version
Update LINUXKPI_VERSION to reflect that the driver is based on
Linux v7.0.
Sponsored by: The FreeBSD Foundation
(cherry picked from commit 3780e6f9db01cc4f7d53d67ed1fc992a8f64c53f)
rtw88: update module Makefile for v7.0 driver version
Update LINUXKPI_VERSION to reflect that the driver is based on
Linux v7.0.
Sponsored by: The FreeBSD Foundation
(cherry picked from commit 90383181aae908d2c696f8d66c19645011b4c388)
LinuxKPI: 802.11: add struct/fields and functions for v7.0
Add 802.11 struct fields and functions support for Linux v7.0 based
wireless drivers (at least iwlwifi, rtw88, rtw89).
While here cleanup some other bits.
Sponsored by: The FreeBSD Foundation
(cherry picked from commit 25e776a5438005db59c6d474b5d47c42d2a341b9)
LinuxKPI: 802.11: Add structures and functions for NAN support
In Linux v7.0 iwlwifi(4) started to add support for Wi-Fi Aware(tm)
also known as Neighbor Awareness Networking (NAN).
Add structures and fields for this as needed so far to keep the driver
compiling. net80211 has no support for it as a new mode.
We may consider a dedicated header file for these parts in the future
depending on how much more is to come.
Sponsored by: The FreeBSD Foundation
(cherry picked from commit a0112b013f93a47489051fed54ea48c077e59de4)
LinuxKPI: implement devm_kmemdup_array()
Implement devm_kmemdup_array() using devm_kmemdup() in order to
prepare for Linux v7.0 based drivers.
Sponsored by: The FreeBSD Foundation
Reviewed by: dumbbell
Differential Revision: https://reviews.freebsd.org/D56396
(cherry picked from commit f1834d03af617a93993056bb902082452673f89f)
LinuxKPI: 802.11: set IEEE80211_MIN_ACTION_SIZE according to struct
IEEE80211_MIN_ACTION_SIZE came up in the mt76 vendor subtree merge
as one of the non-mechanical changes which made me look.
Rather than (incorrectly) hand counting the offset from the beginning
of a frame, use the offset from the beginning of struct ieee80211_mgmt.
Sponsored by: The FreeBSD Foundation
(cherry picked from commit f252ce00898d17f4892534934b8097cd7ccb9e26)
LinuxKPI: add kmalloc_obj[s], kzalloc_obj[s], and kzalloc_flex
Drivers in Linux v7.0 seem to have changed to the new allocation
macros using a sweep. Add the ones I encountered with wireless
drivers so far. They all take an optional argument for a gfp_t,
which default_gfp() deals with.
The plural version "objs" takes an extra nitems argument in addition
to the size. We use size_mul() to possibly detect overflows.
The "flex" version uses an extra variable to track the variable sized
array allocations and if supported by the compiler will use
__builtin_counted_by_ref() to properly track bounds.
Sponsored by: The FreeBSD Foundation
Reviewed by: dumbbell
Differential Revision: https://reviews.freebsd.org/D56395
(cherry picked from commit c72ac6af086962d236f4712761abacac0c62b48e)
LinuxKPI: add default_gfp()
Various new allocation macros can take an optional gfp_t argument.
If the argument is not given we need to set the GFP_KERNEL default.
While this is only internally used and I initialy called it differently,
should this spread elsewhere having the same name as in Linux will be
good.
Sponsored by: The FreeBSD Foundaton
Reviewed by: dumbbell
Differential Revision: https://reviews.freebsd.org/D56392
(cherry picked from commit 35b90c21f48056e85b70dbbe2209b6c3a4927315)
LinuxKPI: conditionally add __flex_counter()
__flex_counter() is used by overflow.h and needed for "flex allocations".
It is either a void * typed 0 (NULL) (like this for _Generic checks),
or uses __builtin_counted_by_ref.
The latter was added to gcc and llvm fairly recently and while for gcc
the __has_builtin() check suffices, clang had parts broken until recently
so needs an extra check for the next major version. The fixed hash is
currently not part of any tag to use, so we play it save (and hope 23
will have it). It will be a while until we will see the builting to be
used but at least we will be prepared for it. See inline comments for
the commit hashes and versions which added the feature.
Sponsored by: The FreeBSD Foundation
Reviewed by: dumbbell
Differential Revision: https://reviews.freebsd.org/D56393
(cherry picked from commit 524df650a92f648e19ba27d6727bdc79c8efdbbb)