aboutsummaryrefslogtreecommitdiff
path: root/sys/contrib/dev
Commit message (Collapse)AuthorAgeFilesLines
...
* | iwlwifi: adjust to make d3.c compileBjoern A. Zeeb2024-02-032-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | struct iwl_mvm_wep_key_cmd ends in a variable sized array but later is included in another struct followed by the actual struct iwl_mvm_wep_key in d3.c. Make the array[0] instead of [] to avoid the warning about it being a GNU-extension. Also include string.h explicitly for memset_after(). MFC after: 3 days Reviewed by: cc Differential Revision: https://reviews.freebsd.org/D43647
* | acpica: Import ACPICA 20230628Jung-uk Kim2024-01-3138-96/+651
| | | | | | | | (cherry picked from commit ef3ba9d625927fd4592a8c071698a562821485bd)
* | acpica: Import ACPICA 20230331Jung-uk Kim2024-01-31359-557/+2837
| | | | | | | | (cherry picked from commit 8e013e1e3b81740266738226667431cf5c28b17a)
* | ath10k/rtw89: make compile again after LinuxKPI changesBjoern A. Zeeb2024-01-082-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Both drivers are not yet attached to the build so this change is for people currently trying them out. In 96ab16ebab6319dce9b3041961b0ab6e20a4fecc the sys/rman.h include was removed. In various wireless drivers we prefer to directly use bus_dma functions rather than io* LinuxKPI once. In order to cast the pointer we need sys/rman.h back for our native 'struct resource' in their pci.c implementations. Long-term we should consider providing some lkpi_-FreeBSD-specific wrapper functions to avoid this problem. MFC after: 3 days
* | rtw89: improve debugging and fix a sleep issueBjoern A. Zeeb2024-01-082-0/+13
| | | | | | | | | | | | | | | | | | Improve log messages to be more helpful in error cases. Change one LinuxKPI sleep function as we cannot call the original one from a context we cannot sleep. Both cases were hit during testing. MFC after: 3 days
* | LinuxKPI: Remove sys/rman.h include from LKPI headers.Vladimir Kondratyev2023-12-242-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | sys/rman.h defines `resource` structure which conflicts with the Linux structure of the same name. To fix that remove reference to sys/rman.h from linux/pci.h and move resource management code to linux_pci.c. Update consumers which were depending on linux/pci.h pollution. No functional changes intended. Sponsored by: Serenity Cyber Security, LLC MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D42792
* | qat: Update firmware for 4xxx devices to version 1.1.20Michal Gulbicki2023-12-131-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | Key features: - added zeropadding feature for compression - added partial decompression support - added DC rate limiting support - added Admin ME capabilities reporting - added Hash+Compress chaining support MFC after: 2 weeks Sponsored by: Intel Corporation Differential Revision: https://reviews.freebsd.org/D42864
* | iwlwififw: add firmware for the Bz/B200 chipsetBjoern A. Zeeb2023-11-292-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The iwlwifi driver already supports the chipset as "Bz TBD" (also in 14.0). Add the firmware for it. Successfully tested for 0x8086/0x272b/0x8086/0x00f4 on arm64 thanks to donated hardware [1]. Firmware was obtained from linux-firmware at 9552083a783e5e48b90de674d4e3bf23bb855ab0 . Sponsored by: The FreeBSD Foundation Sponsored by: Martin Hoehne / minipci.biz (B200 card) [1] MFC after: 3 days
* | iwlwifi: re-enable "Invalid TXQ id" loggingBjoern A. Zeeb2023-10-091-3/+4
| | | | | | | | | | | | | | | | | | | | | | Various reports recently hit the "Invalid TXQ id" in iwlwifi again. Unconditionally enable logging and add a note to report to a specific PR in the log message for now. Along with 018d93ece16b this will hopefully help us to understand what is going on. Sponsored by: The FreeBSD Foundation PR: 274382
* | rtw88: Use RF_CFGCH instead of hard coded 0x18Bjoern A. Zeeb2023-10-051-0/+12
| | | | | | | | | | | | | | | | | | While debugging some funky register reads of 0xaeaea from RF_CFGCH resulting in "rtw880: [TXGAPK] unknown channel 234!!" more of these reads came to my attention hidden by using the register index rather than the defined value. Make this more grep-able. MFC after: 3 days
* | iwlwifi: local namespace change for sysctlBjoern A. Zeeb2023-09-211-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | In order for the FreeBSD-specific sysctl (which gives us a full list of PCI device IDs/names/and firmware prefixes) to be in the proper namespace add a LINUXKPI_PARAM_PREFIX definition to the file as well. The sysctl can now be used as: sysctl -n compat.linuxkpi.iwlwifi_pci_ids_name Sponsored by: The FreeBSD Foundation MFC after: 3 days
* | iwlwifi firmware: update up-to -83 / updated -77 for othersBjoern A. Zeeb2023-09-2120-0/+0
| | | | | | | | | | | | | | | | Firmware was obtained from linux-firmware at dfa11466cf000120d1551146fd5bf78c44941eda. Sponsored by: The FreeBSD Foundation MFC after: 10 days
* | iwlwifi: update driver from upstreamBjoern A. Zeeb2023-09-21115-4957/+15371
| | | | | | | | | | | | | | | | | | | | | | This is a combined versions of updates of the iwlwifi driver based on wireless-testing (wt-2023-05-11) 711dca0ca3d77414f8f346e564e9c8640147f40d (after v6.4-rc1). (wt-2023-06-09) 7bd20e011626ccc3ad53e57873452b1716fcfaaa (after v6.4-rc5). (wt-2023-07-24) 62e409149b62a285e89018e49b2e115757fb9022 (after v6.5-rc3). Sponsored by: The FreeBSD Foundation MFC after: 20 days
* | iwlwifi: fix a bug in iwl_ssid_exist()Bjoern A. Zeeb2023-09-141-0/+4
| | | | | | | | | | | | | | | | | | Rather than always comparing a given SSID to the first SSID of the IE list, compare it to the the iterator one. That way duplicates can be found. Sponsored by: The FreeBSD Foundation MFC after: 3 days
* | iwlwifi/LinuxKPI: 802.11: update ieee80211_request_smps()Bjoern A. Zeeb2023-09-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Update ieee80211_request_smps() to the new number of arguments in LinuxKPI (which was already prepared) and update the one call in the older iwlwifi driver version. This will allow iwlwifi as-is now and rtw88 to compile in case someone else wants to work on the latter in parallel to predominant efforts on the former. Sponsored by: The FreeBSD Foundation MFC after: 20 days
* | rtw88: update driver from upstreamBjoern A. Zeeb2023-09-0547-550/+4609
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a combined version of updates of the rtw88 driver based on wireless-testing (wt-2023-05-11) 711dca0ca3d77414f8f346e564e9c8640147f40d (after v6.4-rc1), (wt-2023-06-09) 7bd20e011626ccc3ad53e57873452b1716fcfaaa (after v6.4-rc5), (wt-2023-07-24) 62e409149b62a285e89018e49b2e115757fb9022 (after v6.5-rc3), (wt-2023-08-06) 2a220a15be657a24868368892e3e2caba2115283 (after v6.5-rc4). This update follows other currently disconnected LinuxKPI based wireless drivers to lift them all to a same version in case someone else wants to work on this driver in parallel to predominant iwlwifi efforts. MFC after: 20 days
* | rtw88/rtw89: remove local firmware.Bjoern A. Zeeb2023-09-0512-139/+0
| | | | | | | | | | | | | | | | | | Remove firmware from src/ in favor of the ports/packages and fwget(8). This will allow us to shrink the size of src (and installed modules). Update the rtw88 man page to reflect the change. MFC after: 20 days X-MFC: will see about 14/13
* | ice_ddp: Update to 1.3.35.0Eric Joyner2023-08-302-1/+1
| | | | | | | | | | | | | | | | | | | | This is intended to be used with the upcoming updated ice(4) version 1.38.16-k. Signed-off-by: Eric Joyner <erj@FreeBSD.org> MFC after: 3 days Sponsored by: Intel Corporation
* | rtw89: update driver from upstreamBjoern A. Zeeb2023-08-2163-7986/+92862
| | | | | | | | | | | | | | | | | | | | | | This is a set of updates of the rtw89 driver based on wireless-testing (wt-2023-05-11) 711dca0ca3d77414f8f346e564e9c8640147f40d (after v6.4-rc1). (wt-2023-06-09) 7bd20e011626ccc3ad53e57873452b1716fcfaaa (after v6.4-rc5). (wt-2023-07-24) 62e409149b62a285e89018e49b2e115757fb9022 (after v6.5-rc3). (wt-2023-08-06) 2a220a15be657a24868368892e3e2caba2115283 (after v6.5-rc4). (wt-2023-08-13) 81e147b1317ee7cde8b624ee8c0501b470d7e91c (after v6.5-rc5). MFC after: 20 days
* | mt76: update driver from upstreamBjoern A. Zeeb2023-08-21134-5430/+23993
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a set of updates of the mt76 driver based on wireless-testing (wt-2023-05-11) 711dca0ca3d77414f8f346e564e9c8640147f40d (after v6.4-rc1), This adds support for mt7996 as well. (wt-2023-06-09) 7bd20e011626ccc3ad53e57873452b1716fcfaaa (after v6.4-rc5), (wt-2023-07-24) 62e409149b62a285e89018e49b2e115757fb9022 (after v6.5-rc3), (wt-2023-08-06) 2a220a15be657a24868368892e3e2caba2115283 (after v6.5-rc4). The current version of LinuxKPI lacks support for "page pool" which needs enhancing and updating a decade or so old shortcut mapping struct page directly to struct vm_page. MFC after: 20 days
* | ath12k: import driver from upstreamBjoern A. Zeeb2023-08-2147-0/+54778
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Import BSD-3-Clause-Clear ath12k driver based on wireless-testing (wt-2023-05-11) 711dca0ca3d77414f8f346e564e9c8640147f40d (after v6.4-rc1) with further updates based on (wt-2023-06-09) 7bd20e011626ccc3ad53e57873452b1716fcfaaa (after v6.4-rc5), (wt-2023-07-24) 62e409149b62a285e89018e49b2e115757fb9022 (after v6.5-rc3), (wt-2023-08-06) 2a220a15be657a24868368892e3e2caba2115283 (after v6.5-rc4), (wt-2023-08-13) 81e147b1317ee7cde8b624ee8c0501b470d7e91c (after v6.5-rc5). Complement the driver to make compile on FreeBSD using LinuxKPI with changes covered by #ifdef (__FreeBSD__). Add the module build framework but keep disconnected from the build for now. The current driver (or rather LinuxKPI) lacks support for some "qcom" bits needed in order to get things working (as does ath11k). There was interest by various people to enhance support further for ath11k which will equally benefit ath12k. Given the lack of full license texts on the files this is imported under the draft policy for handling SPDX files (D29226) and with approval for BSD-3-Clause-Clear. [1] Approved by: core (jhb, 2023-05-11) [1] MFC after: 20 days
* | ath11k: update driver from upstreamBjoern A. Zeeb2023-08-2158-3105/+13476
| | | | | | | | | | | | | | | | | | | | This is a set of updates of the ath11k driver based on wireless-testing (wt-2023-05-11) 711dca0ca3d77414f8f346e564e9c8640147f40d (after v6.4-rc1), (wt-2023-06-09) 7bd20e011626ccc3ad53e57873452b1716fcfaaa (after v6.4-rc5), (wt-2023-07-24) 62e409149b62a285e89018e49b2e115757fb9022 (after v6.5-rc3), (wt-2023-08-06) 2a220a15be657a24868368892e3e2caba2115283 (after v6.5-rc4). MFC after: 20 days
* | ath10k: update driver from upstreamBjoern A. Zeeb2023-08-2136-498/+609
| | | | | | | | | | | | | | | | | | | | This is a set of updates of the ath10k driver based on wireless-testing (wt-2023-05-11) 711dca0ca3d77414f8f346e564e9c8640147f40d (after v6.4-rc1), (wt-2023-06-09) 7bd20e011626ccc3ad53e57873452b1716fcfaaa (after v6.4-rc5), (wt-2023-07-24) 62e409149b62a285e89018e49b2e115757fb9022 (after v6.5-rc3), (wt-2023-08-06) 2a220a15be657a24868368892e3e2caba2115283 (after v6.5-rc4). MFC after: 20 days
* | ath1xk_common: update common athk files from upstreamBjoern A. Zeeb2023-08-216-19/+21
| | | | | | | | | | | | | | Update ath1xk_common based on wireless-testing (wt-2023-05-11) 711dca0ca3d77414f8f346e564e9c8640147f40d (right after v6.4-rc1). MFC after: 20 days
* | ath10k: specifically mark a debug workaround for an early firmware crashBjoern A. Zeeb2023-08-211-0/+9
| | | | | | | | | | | | | | | | During the last import a (debug) workaround to avoid an early firmware crash was imported. In order to remember and to separate it from upstream sources put it under #ifdef MFC after: 20 days
* | ath(4): Remove MIPS SoC build glue and AR9130 from FreeBSD HALMarius Strobl2023-08-091-13/+0
| | | | | | | | | | | | | | | | | | | | | | | | All of these are obsoleted by the general removal of MIPS support. Actually, corresponding to the removed AH_SUPPORT_x, there is more superfluous support sprinkled across the HAL source. However, that code is left in place for now in order to ease a sync to NetBSD. Reviewed by: emaste (w/ man page fix) Approved by: adrian Differential Revision: https://reviews.freebsd.org/D41355
* | qat: Add Intel® 4xxx Series VF driver supportKrzysztof Zdziarski2023-06-121-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Overview: Intel(R) QuickAssist Technology (Intel(R) QAT) provides hardware acceleration for offloading security, authentication and compression services from the CPU, thus significantly increasing the performance and efficiency of standard platform solutions. This commit introduces: - Intel® 4xxx Series VF driver support. - Device configurability via sysctls. - UIO support for Intel® 4xxx Series devices. Patch co-authored by: Krzysztof Zdziarski <krzysztofx.zdziarski@intel.com> Patch co-authored by: Michal Gulbicki <michalx.gulbicki@intel.com> Patch co-authored by: Julian Grajkowski <julianx.grajkowski@intel.com> Patch co-authored by: Piotr Kasierski <piotrx.kasierski@intel.com> Patch co-authored by: Lukasz Kolodzinski <lukaszx.kolodzinski@intel.com> Patch co-authored by: Karol Grzadziel <karolx.grzadziel@intel.com> Sponsored by: Intel Corporation Differential Revision: https://reviews.freebsd.org/D39850
* | ath11k: import ath11k driverBjoern A. Zeeb2023-05-1262-0/+68403
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Import BSD-3-Clause-Clear ath11k driver assumed to be based on Linux kvalo/ath.git master at 6bae9de622d3ef4805aba40e763eb4b0975c4f6d. Complement the driver to make compile on FreeBSD using LinuxKPI with changes covered by #ifdef (__FreeBSD__). Further select updates were applied since the initial import in order to keep compiling along with other LinuxKPI based drivers. Add the module build framework but keep disconnected from the build for now. The current driver (or rather LinuxKPI) lacks support for some "qcom" bits needed in order to get things working. There was interest by various people to enhance support further. We initially only plan to support PCI parts but it would be great to further enhance qcom SoC support to run on several (cheap) APs. The firmware is provided by port net/wifi-firmware-ath11k-kmod. Given the lack of full license texts on most files this is imported under the draft policy for handling SPDX files (D29226) and with approval for BSD-3-Clause-Clear. [1] Approved by: core (jhb, 2023-05-11) [1] MFC after: 2 months
* | ath10k: import ath10k driverBjoern A. Zeeb2023-04-2364-0/+87477
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Import ISC-licensed ath10k driver assumed to be based on Linux kvalo/ath.git master at 6bae9de622d3ef4805aba40e763eb4b0975c4f6d. Import support to redirect fwlogs to kernel messages from https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/389075 Complement the driver to make compile on FreeBSD using LinuxKPI with changes covered by #ifdef (__FreeBSD__). Further select updates were applied since the initial import in order to keep compiling along with other LinuxKPI based drivers. Any other native driver using BUS_PROBE_DEFAULT will attach ignoring this one by default given bsd_probe_return is set to a lower priority. Add the module build framework. We only support PCI parts. The firmware is provided by port net/wifi-firmware-ath10k-kmod. Given the lack of full license texts on most files this is imported under the draft policy for handling SPDX files (D29226). [1] Approved by: core (emaste, 2022-04-08) [1] MFC after: 2 months
* | athk: import common code for ath1?k driversBjoern A. Zeeb2023-04-2316-0/+4182
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Import common ISC-licensed athk parts assumed to be based on Linux kvalo/ath.git master at 6bae9de622d3ef4805aba40e763eb4b0975c4f6d. The only modification should be for FreeBSD module handling in main.c. Add the module build framework unconnected to the build for now. These files will be shared by ath1?k drivers. MFC after: 2 months
* | mt76: import mediatek/mt76 driverBjoern A. Zeeb2023-04-23158-0/+71107
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Import ISC-licensed driver parts of mediatek/mt76 assumed to be based on Linux wireless-testing at a02411a5b98612c12be99349836d99f07db12a77 (tag: wt-2022-11-23). Complement the driver and LinuxKPI with our own (dummy) implementations of missing parts (util.h and soc/mediatek/) as well as changes to make compile on FreeBSD with changes covered by #ifdef (__FreeBSD__) conditions. Further select updates were applied since the initial import in order to keep compiling along with other LinuxKPI based drivers. For the moment we only target the mt7915 and mt7921 PCI parts. More may follow in the future. Firmware is provided by port net/wifi-firmware-mt76-kmod. Given the lack of full license texts on non-local files this is imported under the draft policy for handling SPDX files (D29226). [1] Approved by: core (emaste, 2022-04-08) [1] MFC after: 2 months
* | iwlwifi: quieten more compiler warningsBjoern A. Zeeb2023-04-207-0/+21
| | | | | | | | | | | | | | | | | | | | | | Quieten some more (valid) gcc warnings and disable dead code. There are more warnings, some probably a compiler problem, the other related to firmware structs which I do not want to adjust just locally. Leave a comment to revisit after a next driver update. Sponsored by: The FreeBSD Foundation MFC after: 3 days
* | iwlwifi: rtw88: rtw89: fix gcc warningsBjoern A. Zeeb2023-04-197-5/+25
| | | | | | | | | | | | | | | | | | | | | | Fix -Wno-format and unused variables warnings with gcc by adopting (to|the) FreeBSD-specific code. Reported by: jhb Sponsored by: The FreeBSD Foundation MFC after: 3 days Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D39673
* | rtw89: fix -Wunused-but-set-variableBjoern A. Zeeb2023-03-231-0/+5
| | | | | | | | | | | | | | Fix a -Wunused-but-set-variable warning by adding the field to the debug logging as is done for other versions handler functions. MFC after: 3 days
* | ice_ddp: Update package to 1.3.30.0Eric Joyner2023-01-242-39/+129
| | | | | | | | | | | | | | | | | | | | | | | | This updated DDP is intended to be used with the forthcoming ice(4) driver update to 1.37.7-k. (But it will still work with the current version.) Co-authored-by: Piotr Kubaj <pkubaj@FreeBSD.org> Signed-off-by: Eric Joyner <erj@FreeBSD.org> MFC after: 1 week Sponsored by: Intel Corporation
* | qat: Add Intel® 4xxx Series platform supportMichal Gulbicki2023-01-242-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Overview: Intel(R) QuickAssist Technology (Intel(R) QAT) provides hardware acceleration for offloading security, authentication and compression services from the CPU, thus significantly increasing the performance and efficiency of standard platform solutions. This commit introduces: - Intel® 4xxx Series platform support. - QuickAssist kernel API implementation update for Generation 4 device. Enabled services: symmetric cryptography and data compression. - Increased default number of crypto instances in static configuration for performance purposes. OCF backend changes: - changed GCM/CCM MAC validation policy to generate MAC by HW and validate by SW due to the QAT HW limitations. Patch co-authored by: Krzysztof Zdziarski <krzysztofx.zdziarski@intel.com> Patch co-authored by: Michal Jaraczewski <michalx.jaraczewski@intel.com> Patch co-authored by: Michal Gulbicki <michalx.gulbicki@intel.com> Patch co-authored by: Julian Grajkowski <julianx.grajkowski@intel.com> Patch co-authored by: Piotr Kasierski <piotrx.kasierski@intel.com> Patch co-authored by: Adam Czupryna <adamx.czupryna@intel.com> Patch co-authored by: Konrad Zelazny <konradx.zelazny@intel.com> Patch co-authored by: Katarzyna Rucinska <katarzynax.kargol@intel.com> Patch co-authored by: Lukasz Kolodzinski <lukaszx.kolodzinski@intel.com> Patch co-authored by: Zbigniew Jedlinski <zbigniewx.jedlinski@intel.com> Sponsored by: Intel Corporation Reviewed by: markj, jhb Differential Revision: https://reviews.freebsd.org/D36254
* | rtw88: use #define for NL80211_BAND_2GHZ instead of hardcoded numberBjoern A. Zeeb2023-01-131-0/+4
| | | | | | | | | | | | | | | | | | | | | | Use NL80211_BAND_2GHZ instead of a hard coded 0 as array index for the band. While LinuxKPI provides a KPI compatibility some of these values may not necessarily be KBI compatible (in this case they shoule be so this is a NOP) and after all it is better style. No functional change. MFC after: 3 days
* | iwlwifi: mark a declaration for a non-existent functionBjoern A. Zeeb2023-01-131-0/+2
| | | | | | | | | | | | | | | | iwl_trans_pcie_send_hcmd() does not seem to exist (anymore). Mark it as __linux__ so we can submit the cleanup with the next upstream run. Sponsored by: The FreeBSD Foundation MFC after: 3 days
* | ath: Fix mismatches in array bounds.John Baldwin2022-12-071-1/+1
| | | | | | | | | | | | Reported by: GCC -Warray-parameter Reviewed by: imp, emaste Differential Revision: https://reviews.freebsd.org/D37542
* | LinuxKPI: iwlwifi: rtw88: rtw89: remove budget argument from netif_napi_add()Bjoern A. Zeeb2022-11-283-5/+3
| | | | | | | | | | | | | | | | | | | | In preparation for future updates remove the budget argument from the netif_napi_add() in drivers and update LinuxKPI to reflect that it is gone and only set it internally. This required changes to the currently committed wireless drivers based on LinuxKPI (iwlwifi, rtw88, rtw89). Sponsored by: The FreeBSD Foundation MFC after: 3 days
* | iwlwifi: fix hang on unloading driverBjoern A. Zeeb2022-11-221-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f808c43ad9234670770601ba32a7426b00bbf528 introduced a FreeBSD specific behaviour to wait for firmware load completion before returning from loading the driver. This does no longer allow iwl_drv_stop to detect that startup has completed and it will wait indefinitely for a completion event that will not happen. We could change the complete() call to a complete_all() but to avoid confusion, future side effects, and for simplicity daisy-chain two complete events in FreeBSD. PR: 267869 Reported by: Peter Much (pmc citylink.dinoex.sub.org) Tested by: Peter Much (pmc citylink.dinoex.sub.org) Sponsored by: The FreeBSD Foundation MFC after: 3 days
* | acpica: Fix the botched mergeJung-uk Kim2022-10-282-200/+0
| | | | | | | | Fixes: 9a4bc5208fad acpica: Import ACPICA 20221020
* | acpica: Import ACPICA 20221020Jung-uk Kim2022-10-2852-284/+2121
| | | | | | | | (cherry picked from commit a799bdd9d50e84cd6a36e8f1d2ac4301b2a6b374)
* | iwlwifi: prepare to support debugfsBjoern A. Zeeb2022-10-226-4/+862
| | | | | | | | | | | | | | | | | | | | | | | | | | Import two files left out initially from the driver needed for debugfs support [1]. Adjust the driver further to make it compile on FreeBSD. This is currently turned off and needs more LinuxKPI/lindebugfs work. Being in the tree will allow us to collaboratively work on it and then we can enable it for good. Obtained from: Linux wireless-testing (tag: wt-2022-10-19) [1] 2c9078b9abcb884e27360340aaa7dfd4c0de29b3 Sponsored by: The FreeBSD Foundation MFC after: 3 days
* | iwlwifi: constify another argument of iwl_print_hex_dump()Bjoern A. Zeeb2022-10-222-0/+8
| | | | | | | | | | | | | | | | This is needed when enabling debugfs as it passes a const in which would otherwise be dropped. Sponsored by: The FreeBSD Foundation MFC after: 3 days
* | lindebugfs,rtw88,rtw89: correct module dependenciesBjoern A. Zeeb2022-09-252-2/+2
| | | | | | | | | | | | | | | | | | | | In f697b9432d9c7aa4c5ab5f5445ef5dc1bd40ce00 the name of the PSEUDOFS was changed from debugsfs to lindebugfs but the in-tree consumers were not updated now leaving the drivers not loading if compiled with debugfs support due to missing dependencies. MFC after: 3 days X-MFC-with-after: f697b9432d9c7aa4c5ab5f5445ef5dc1bd40ce00
* | iwlwifi: enforce FreeBSD specific (expected) behaviourBjoern A. Zeeb2022-09-251-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | iwlwifi can return early from probe (in FreeBSD attach) while a separate thread is still grinding loading the firmware and setting things up. For us this means that kldload succeeded but we may not have a physical wireless interface (com) yet but the rc framework might already try to configure a vap on one. Wait until we get a firmware completion event from the other thread (on success or error) and block returning. That way we can ensure that the "hw" (or com in net80211 terms) is there when we return from attach matching the expected FreeBSD driver behaviour. Reported by: J.R. Oldroyd (jr opal.com) Reported by: probably inderectly showing as other problem Tested by: J.R. Oldroyd (jr opal.com) Sponsored by: The FreeBSD Foundation MFC after: 3 days
* | rtw89: import firmware for Realtek's rtw89 supported chipsets.Bjoern A. Zeeb2022-09-094-0/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Import the most recent versions of the firmware images for the rtw89 driver. This is based on linux-firmware at 2f2f0181581d3e35bfdb9fc65f609ee9d3fbaeb7. The license of the firmware matches the previously added rtw88(4) firmware and you can find a copy in sys/contrib/dev/rtw89fw/LICENCE.rtlwifi_firmware.txt. Add build infrastructure to create the .ko files but do not yet hook it up to the build until all parts are in the tree. Approved by: core.11 (imp) [2022-03-27] MFC after: 6 weeks
* | rtw89: import Realtek's rtw89 driverBjoern A. Zeeb2022-09-0951-0/+150661
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Import rtw89 based on wireless-testing at (tag: wt-2022-09-02) 78667a29c116c6b186a37e28cd8dd7fa9923aee8 with adjustments for FreeBSD. For the moment this will stay disconnected from the build until the last bits are flushed out, but this will help people with a card to do testing and possibly help improving. Given the lack of full license texts on non-local files this is imported under the draft policy for handling SPDX files (D29226). [1] Approved by: core.11 (imp) [1] [2022-03-27] MFC after: 6 weeks
* | LinuxKPI, dev: 80211 update mac80211 KPIBjoern A. Zeeb2022-09-073-10/+44
| | | | | | | | | | | | | | | | | | | | | | | | Update the mac80211 ops KPI for (*conf_tx), (*assign_vif_chanctx), (*unassign_vif_chanctx), (*start_ap), and (*stop_ap), as well as ieee80211_beacon_get_tim() and ieee80211_beacon_get_template(). Update in-tree drivers iwlwifi and rtw88 accordingly based on upstream changes (as well as out-of-tree ones). This was triggered by trying to synchronize more drivers to a common state. MFC after: 1 week