|
Revision tags: release/13.4.0-p5, release/13.5.0-p1, release/14.2.0-p3, release/13.5.0, release/14.2.0-p2, release/14.1.0-p8, release/13.4.0-p4, release/14.1.0-p7, release/14.2.0-p1, release/13.4.0-p3, release/14.2.0 |
|
| #
1db6ffb2 |
| 22-Oct-2024 |
Colin Percival <[email protected]> |
GPIO: Add ACPI _AEI support
Changes to acpi_gpiobus.c handle discovering and parsing the _AEI objects and storing necessary data in device ivars. A new gpioaei.c file implements the device, which s
GPIO: Add ACPI _AEI support
Changes to acpi_gpiobus.c handle discovering and parsing the _AEI objects and storing necessary data in device ivars. A new gpioaei.c file implements the device, which simply requests an interrupt when the pin is triggered and invokes the appropriate _Exx or _Lxx ACPI method.
This makes the GPIO "power button" work on arm64 Graviton systems, allowing EC2 "Stop"/"Reboot" instance calls to be handled cleanly. (Prior to this change, those requests would time out after 4 minutes and the instance would be forcibly killed.)
Reviewed by: imp, andrew, Ahmad Khalifa Approved by: re (kib) MFC after: 3 days Sponsored by: Amazon Differential Revision: https://reviews.freebsd.org/D47253 Co-authored-by: Andrew Turner <[email protected]>
(cherry picked from commit 9709bda03cd0f20eba0ba4276fc3c2e06354a54f) (cherry picked from commit c2cd78d9446ebe79accf6c1862230dfbe7276525)
show more ...
|
|
Revision tags: release/13.4.0 |
|
| #
ce99ca69 |
| 08-Jul-2024 |
Ahmad Khalifa <[email protected]> |
gpiobus(4): Add an acpi variant of gpiobus
This currently only implements the address space handler and attempts to configure pins with flags obtained from ACPI.
Reviewed by: wulf Approved by: re (
gpiobus(4): Add an acpi variant of gpiobus
This currently only implements the address space handler and attempts to configure pins with flags obtained from ACPI.
Reviewed by: wulf Approved by: re (kib) MFC after: 1 month Pull Request: https://github.com/freebsd/freebsd-src/pull/1359
(cherry picked from commit 92adaa5862d5ea94318a011e0618622d0fb72521) (cherry picked from commit 14887d2c869ad47d5921fc9aa07e891a38950121)
show more ...
|
| #
8e908fab |
| 20-Jun-2024 |
Emmanuel Vadot <[email protected]> |
conf: Add usbhid and hidbus to GENERIC* kernel configs
Include the new unified HID stack by default in generic. This will allow us to migrate to the multi-stack hkbd and hms instead of relying on th
conf: Add usbhid and hidbus to GENERIC* kernel configs
Include the new unified HID stack by default in generic. This will allow us to migrate to the multi-stack hkbd and hms instead of relying on the older ukbd and ums which only work with USB. To test those drivers just add hw.usb.usbhid.enable=1 in loader.conf
Differential Revision: https://reviews.freebsd.org/D45658 Reviewed by: emaste, imp, wulf (all older version) Sponsored by: Beckhoff Automation GmbH & Co. KG
(cherry picked from commit 13d00a43cba4c35fcc9e0ab567baf530126a6348)
conf: hidmap is always needed for hms
So bring it in when hms is in the kernel config
Fixes: 13d00a43cba4 ("conf: Add usbhid and hidbus to GENERIC* kernel configs") Sponsored by: Beckhoff Automation GmbH & Co. KG
(cherry picked from commit 5ed91e788f0b97c9e6c544671ffef71fad7cad27)
conf: powerpc: Add evdev to some kernel configs
Fixes: 13d00a43cba4 ("conf: Add usbhid and hidbus to GENERIC* kernel configs") Sponsored by: Beckhoff Automation GmbH & Co. KG
(cherry picked from commit 43a62df0b464e60895084c7f9d9eddf70906fda3)
show more ...
|
|
Revision tags: release/14.1.0 |
|
| #
e1d29e6b |
| 14-Apr-2024 |
John Baldwin <[email protected]> |
files: Sort the VirtIO device entries
Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D44781
(cherry picked from commit 1d51575980bd246c1583cd02df47278aac5b6f4c)
|
| #
41302e9e |
| 09-Apr-2024 |
John Baldwin <[email protected]> |
iser: Add kernel build glue
'device iser' is documented in iser(4) but not supported. Hook it up to the build.
Reviewed by: imp Sponsored by: Chelsio Communications Differential Revision: https://
iser: Add kernel build glue
'device iser' is documented in iser(4) but not supported. Hook it up to the build.
Reviewed by: imp Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D44687
(cherry picked from commit 60bb979b3c3224f01e96f7e3c92a270977d2587b)
show more ...
|
| #
030596bf |
| 25-May-2024 |
Joshua Kinard <[email protected]> |
kern: Remove leftover saf1761otg bits
Almost all code related to the saf1761 driver was removed in commit 44796b7e822e, except for two small bits related to saf1761otg support. This patch completes
kern: Remove leftover saf1761otg bits
Almost all code related to the saf1761 driver was removed in commit 44796b7e822e, except for two small bits related to saf1761otg support. This patch completes the removal.
PR: 279302 Signed-off-by: Joshua Kinard <[email protected]> Reviewed by: mhorne MFC after: 3 days Fixes: 44796b7e822e ("mips: remove saf1761")
(cherry picked from commit 80828c6fab0292b5c5a34a63558d837cb9308fbd)
show more ...
|
| #
2e7991d0 |
| 29-May-2024 |
Warner Losh <[email protected]> |
Fix bnxt build in LINT
LINT includes bnxt_re driver. Adjust the path in files, add missing files and add a new BNXT_C to build (which thinly wraps OFED version with bnxt specicif stuff).
Sponsored
Fix bnxt build in LINT
LINT includes bnxt_re driver. Adjust the path in files, add missing files and add a new BNXT_C to build (which thinly wraps OFED version with bnxt specicif stuff).
Sponsored by: Netflix Fixes: acd884dec99a ("RDMA/bnxt_re: Add bnxt_re RoCE driver")
(cherry picked from commit 175b2c00a6bcb0c8c1f6b76b6da9bf4879a5848e)
show more ...
|
| #
ad677fb4 |
| 28-Apr-2024 |
Christos Margiolis <[email protected]> |
sound: Retire unit.*
The unit.* code is largely obsolete and imposes limits that are no longer needed nowadays.
- Capping the maximum allowed soundcards in a given machine. By default, the limit
sound: Retire unit.*
The unit.* code is largely obsolete and imposes limits that are no longer needed nowadays.
- Capping the maximum allowed soundcards in a given machine. By default, the limit is 512 (snd_max_u() in unit.c), and the maximum possible is 2048 (SND_UNIT_UMAX in unit.h). It can also be tuned through the hw.snd.maxunit loader(8) tunable. Even though these limits are large enough that they should never cause problems, there is no need for this limit to exist in the first place. - Capping the available device/channel types. By default, this is 32 (snd_max_d() in unit.c). However, these types are pre-defined in pcm/sound.h (see SND_DEV_*), so the cap is unnecessary when we know that their number is constant. - Capping the number of channels per-device. By default, the limit 1024 (snd_max_c() in unit.c). This is probably the most problematic of the limits mentioned, because this limit can never be reached, as the maximum is hard-capped at either hw.snd.maxautovchans (16 by default), or SND_MAXHWCHAN and SND_MAXVCHANS.
These limtits are encoded in masks (see SND_U_MASK, SND_D_MASK, SND_C_MASK in unit.h) and are used to construct a bitfield of the form [dsp_unit, type, channel_unit] in snd_mkunit() which is assigned to pcm_channel->unit.
This patch gets rid of everything unit.*-related and makes a slightly different use of the "unit" field to only contain the channel unit number. The channel type is stored in a new pcm_channel->type field, and the DSP unit number need not be stored at all, since we can fetch it from device_get_unit(pcm_channel->dev). This change has the effect that we no longer need to impose caps on the number of soundcards, device/channel types and per-device channels. As a result the code is noticeably simplified and more readable.
Apart from the fact that the hw.snd.maxunit loader(8) tunable is also retired as a side-effect of this patch, sound(4)'s behavior remains the same.
Sponsored by: The FreeBSD Foundation MFC after: 1 week Reviewed by: dev_submerge.ch Differential Revision: https://reviews.freebsd.org/D44912
(cherry picked from commit 25723d66369fe6786e9e4f5f77381b944755f267)
show more ...
|
| #
e6c51f6d |
| 11-Apr-2024 |
Christos Margiolis <[email protected]> |
sound: Get rid of snd_clone and use DEVFS_CDEVPRIV(9)
Currently the snd_clone framework creates device nodes on-demand for every channel, through the dsp_clone() callback, and is responsible for rou
sound: Get rid of snd_clone and use DEVFS_CDEVPRIV(9)
Currently the snd_clone framework creates device nodes on-demand for every channel, through the dsp_clone() callback, and is responsible for routing audio to the appropriate channel(s). This patch gets rid of the whole snd_clone framework (including any related sysctls) and instead uses DEVFS_CDEVPRIV(9) to handle device opening, channel allocation and audio routing. This results in a significant reduction in code size as well as complexity.
Behavior that is preserved:
- hw.snd.basename_clone. - Exclusive access of an audio device (i.e VCHANs disabled). - Multiple processes can read from/write to the device. - A device can only be opened as many times as the maximum allowed channel number (see SND_MAXHWCHAN in pcm/sound.h). - OSSv4 compatibility aliases are preserved.
Behavior changes:
Only one /dev/dspX device node is created (on attach) for each audio device, as opposed to the current /dev/dspX.Y devices created by snd_clone. According to the sound(4) man page, devices are not meant to be opened through /dev/dspX.Y anyway, so it is best if we do not create device nodes for them in the first place. As a result of this, modify dsp_oss_audioinfo() to print /dev/dspX in the "ai->devnode", instead of /dev/dspX.Y.
Sponsored by: The FreeBSD Foundation MFC after: 2 months Reviewed by: dev_submerge.ch, bapt, markj Differential Revision: https://reviews.freebsd.org/D44411
(cherry picked from commit e8c0d15a64fadb4a330f2da7244becaac161bb70)
show more ...
|
|
Revision tags: release/13.3.0 |
|
| #
99ac8acf |
| 23-Dec-2023 |
Mark Johnston <[email protected]> |
build: Do not pass -fno-sanitize-memory-param-retval to subr_coverage.c
In the absence of -fsanitize=kernel-memory, the presence of this flag results in a -Wunused-command-line-argument warning.
MF
build: Do not pass -fno-sanitize-memory-param-retval to subr_coverage.c
In the absence of -fsanitize=kernel-memory, the presence of this flag results in a -Wunused-command-line-argument warning.
MFC after: 1 week
(cherry picked from commit 2ae32f1f8fcc97c3e9c16effa2ee5e41a1a6c364)
show more ...
|
| #
f54344ec |
| 21-Nov-2023 |
Olivier Certner <[email protected]> |
kern_racct.c: Don't compile if RACCT undefined
Just skip compiling this file if RACCT isn't defined. This allows to skip including headers that no code uses at all, and also to remove the whole fil
kern_racct.c: Don't compile if RACCT undefined
Just skip compiling this file if RACCT isn't defined. This allows to skip including headers that no code uses at all, and also to remove the whole file's #ifdef/#endif bracketing.
Reviewed by: markj MFC after: 2 weeks Sponsored by: The FreeBSD Foundation
(cherry picked from commit 7fa08d415283c9a0c1e2b57edfbb13d722c25735)
Approved by: emaste (mentor)
show more ...
|
| #
3b97bdb4 |
| 08-Dec-2023 |
Jean-Sébastien Pédron <[email protected]> |
linuxkpi: Move `struct kobject` code to `linux_kobject.c`
[Why] `linux_compat.c` is already too long. I will need to add `struct kset` in a follow-up commit, so let's move the existing `struct kobje
linuxkpi: Move `struct kobject` code to `linux_kobject.c`
[Why] `linux_compat.c` is already too long. I will need to add `struct kset` in a follow-up commit, so let's move the existing `struct kobject` code to its own file.
Reviewed by: manu Approved by: manu Differential Revision: https://reviews.freebsd.org/D43019
(cherry picked from commit 80446fc7b5e5d22e2bac28bc0474dbe2fec83e43)
show more ...
|
| #
13673bca |
| 14-Jan-2024 |
Marius Strobl <[email protected]> |
geom_redboot(4): Garbage collect disconnected driver
The last MIPS user has been removed in c09981f1 2 years ago, the last ARM one in ff945277 even 5.5 years ago.
(cherry picked from commit 53df7e5
geom_redboot(4): Garbage collect disconnected driver
The last MIPS user has been removed in c09981f1 2 years ago, the last ARM one in ff945277 even 5.5 years ago.
(cherry picked from commit 53df7e58cca7e6726b44f447f10ddc3451cfa851)
show more ...
|
| #
d6ec20a3 |
| 14-Jan-2024 |
Marius Strobl <[email protected]> |
geom_map(4): Garbage collect disconnected driver
The last MIPS user has been removed in c09981f1 2 years ago, the last ARM one in 58d5c511 even 5.5 years ago.
(cherry picked from commit 03e8d25b1f9
geom_map(4): Garbage collect disconnected driver
The last MIPS user has been removed in c09981f1 2 years ago, the last ARM one in 58d5c511 even 5.5 years ago.
(cherry picked from commit 03e8d25b1f9218dcd52d13819dda14dbbaf622b7)
show more ...
|
| #
5da67ed5 |
| 12-Dec-2023 |
Michael Tuexen <[email protected]> |
tcp stacks: in kernel BBR and RACK require in kernel HPTS
Compiling the BBR or RACK stack into the kernel requires HPTS to be compiled into the kernel.
Reviewed by: glebius, rscheff Sponsored by:
tcp stacks: in kernel BBR and RACK require in kernel HPTS
Compiling the BBR or RACK stack into the kernel requires HPTS to be compiled into the kernel.
Reviewed by: glebius, rscheff Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D42998
(cherry picked from commit 793e4aca9e70f2441f0f4e1688d0a727d602ed81)
show more ...
|
| #
fcd1b6ec |
| 21-Nov-2023 |
Alex Xu (Hello71) <[email protected]> |
Compile RACK when options TCP_RACK, not TCP_BBR
Signed-off-by: Alex Xu (Hello71) <[email protected]> Fixes: 3a338c5341 ("Add the BBR and RACK stacks to the LINT kernel.") Pull Request: https://gith
Compile RACK when options TCP_RACK, not TCP_BBR
Signed-off-by: Alex Xu (Hello71) <[email protected]> Fixes: 3a338c5341 ("Add the BBR and RACK stacks to the LINT kernel.") Pull Request: https://github.com/freebsd/freebsd-src/pull/907 (cherry picked from commit 96f193b290a1aa735ff1833983d654c01ed8902e)
show more ...
|
| #
a74aa0e5 |
| 04-Dec-2023 |
Gleb Smirnoff <[email protected]> |
lro: separate HPTS specific code into tcp_lro_hpts.c
Put same copyright header as tcp_hpts.c has, since all this code was developed by Randall Stewart <[email protected]> as a part of the HPTS work.
lro: separate HPTS specific code into tcp_lro_hpts.c
Put same copyright header as tcp_hpts.c has, since all this code was developed by Randall Stewart <[email protected]> as a part of the HPTS work. Also copy Mellanox copyright from tcp_lro.c as Hans Petter Selasky also participated in restructuring the code.
Reviewed by: imp, tuexen, rrs Differential Revision: https://reviews.freebsd.org/D42854
(cherry picked from commit 4f9c93f16c30d553613def0442d8ddbee859e76b)
show more ...
|
|
Revision tags: release/14.0.0 |
|
| #
123fd2a9 |
| 18-Oct-2023 |
Dag-Erling Smørgrav <[email protected]> |
Add the BBR and RACK stacks to the LINT kernel.
While here, drop the EXTRA_TCP_STACKS option, which serves no purpose and should never have been added. Instead, build bbr and rack as long as either
Add the BBR and RACK stacks to the LINT kernel.
While here, drop the EXTRA_TCP_STACKS option, which serves no purpose and should never have been added. Instead, build bbr and rack as long as either or both of INET and INET6 is enabled. There is no risk to anyone who doesn't load one or both and then twiddle the relevant sysctls.
Differential Revision: https://reviews.freebsd.org/D42088
(cherry picked from commit 3a338c534154164504005beb00a3c6feb03756cc)
show more ...
|
| #
c2628605 |
| 04-Jan-2024 |
Navdeep Parhar <[email protected]> |
cxgbe(4): Update firmwares to 1.27.5.0
Version : 1.27.5.0 Date : 10/10/2023 ===================== Fixes -----
BASE: - Fixed handling the Remote Fault with AN, causing the link failure. =========
cxgbe(4): Update firmwares to 1.27.5.0
Version : 1.27.5.0 Date : 10/10/2023 ===================== Fixes -----
BASE: - Fixed handling the Remote Fault with AN, causing the link failure. =====================
Obtained from: Chelsio Communications Sponsored by: Chelsio Communications
(cherry picked from commit b1e82d33193b83d86d46483b4ddfe295becd80c4)
show more ...
|
| #
b9410313 |
| 23-Oct-2023 |
Rick Macklem <[email protected]> |
nfscl/kgssapi: Fix Kerberized NFS mounts to pNFS servers
During recent testing related to the IETF NFSv4 Bakeathon, it was discovered that Kerberized NFSv4.1/4.2 mounts to pNFS servers (sec=krb5[ip]
nfscl/kgssapi: Fix Kerberized NFS mounts to pNFS servers
During recent testing related to the IETF NFSv4 Bakeathon, it was discovered that Kerberized NFSv4.1/4.2 mounts to pNFS servers (sec=krb5[ip],pnfs mount options) was broken. The FreeBSD client was using the "service principal" for the MDS to try and establish a rpcsec_gss credential for a DS, which is incorrect. (A "service principal" looks like "nfs@<fqdn-of-server>" and the <fqdn-of-server> for the DS is not the same as the MDS for most pNFS servers.)
To fix this, the rpcsec_gss code needs to be able to do a reverse DNS lookup of the DS's IP address. A new kgssapi upcall to the gssd(8) daemon is added by this patch to do the reverse DNS along with a new rpcsec_gss function to generate the "service principal".
A separate patch to the gssd(8) will be committed, so that this patch will fix the problem. Without the gssd(8) patch, the new upcall fails and current/incorrect behaviour remains.
This bug only affects the rare case of a Kerberized (sec=krb5[ip],pnfs) mount using pNFS.
This patch changes the internal KAPI between the kgssapi and nfscl modules, but since I did a version bump a few days ago, I will not do one this time.
(cherry picked from commit dd7d42a1fae5a4879b62689a165238082421f343)
show more ...
|
| #
22584860 |
| 13-Nov-2023 |
Konstantin Belousov <[email protected]> |
mlx5_core: add new files to the static files list
(cherry picked from commit 6eda49b7bfd3a5e013bef54262dddf9a54a3be07)
|
| #
c89523d1 |
| 16-Oct-2023 |
Mark Johnston <[email protected]> |
kmsan: Set -fno-sanitize-memory-param-retval for now
As of LLVM 16, -fsanitize-memory-param-retval is the default. It yields significantly smaller code, but the KMSAN runtime interceptors need to b
kmsan: Set -fno-sanitize-memory-param-retval for now
As of LLVM 16, -fsanitize-memory-param-retval is the default. It yields significantly smaller code, but the KMSAN runtime interceptors need to be updated to stop checking shadow state of parameters. Apply a minimal workaround for now.
MFC after: 3 days Sponsored by: Klara, Inc. Sponsored by: Juniper Networks, Inc.
(cherry picked from commit b6c653c9746342b373af01979319b3cb123b2872)
show more ...
|
| #
b4cd1448 |
| 27-Sep-2023 |
Emmanuel Vadot <[email protected]> |
i2c: Add Microcrystal RV3032 RTC driver
This is a simple RTC driver for the rv3032 from Microcrystal. Just the basic functionality is implemented (no timer, alarm etc ..).
Sponsored by: Beckhoff Au
i2c: Add Microcrystal RV3032 RTC driver
This is a simple RTC driver for the rv3032 from Microcrystal. Just the basic functionality is implemented (no timer, alarm etc ..).
Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D41995
(cherry picked from commit 1d6a6a524409662992ca96bc91ae69b2a2a5ff35)
show more ...
|
| #
c1335891 |
| 19-Sep-2023 |
Emmanuel Vadot <[email protected]> |
iicbus: Move opencores i2c driver into controller subdirectory
Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D41914
(cherry picked from commit 1
iicbus: Move opencores i2c driver into controller subdirectory
Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D41914
(cherry picked from commit 125f5c5b48b1fdccf364b821ce48bfdbd9687ed1)
show more ...
|
| #
96edbfe3 |
| 19-Sep-2023 |
Emmanuel Vadot <[email protected]> |
iicbus: Move i2c sensors drivers into new sensor subdirectory
No reason that they should live directly under iicbus
Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://
iicbus: Move i2c sensors drivers into new sensor subdirectory
No reason that they should live directly under iicbus
Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D41913
(cherry picked from commit 7c569caa0a6fffa7e1cc0a7f61e986dbc7c59074)
show more ...
|