FreeBSD/src 977679dsys/dev/rtwn/rtl8192c r92c_fw.c

rtwn: remove unused rate configuration code for management traffic.

After discussion with the rtlwifi maintainers, it looks like this
path isn't even used.

(And it's part of the firmware rate control path which we currently
don't enable for other reasons.)

Differential Revision:   https://reviews.freebsd.org/D47938
DeltaFile
+0-25sys/dev/rtwn/rtl8192c/r92c_fw.c
+0-251 files

FreeBSD/src f6f03d1sys/dev/rtwn if_rtwnreg.h

rtwn: add VHT awareness to rtwn_chan2centieee()

Since we're not doing 80+80 yet, this is easy - just use
the freq1 centre.

Differential Revision:  https://reviews.freebsd.org/D47900
DeltaFile
+3-0sys/dev/rtwn/if_rtwnreg.h
+3-01 files

FreeBSD/src b811e5asys/dev/rtwn/rtl8812a r12a_chan.c r12a_reg.h

rtwn: program the 1 and 2 stream VHT transmit power rates

This is needed to be able to successfully transmit VHT frames.

Locally tested:

* RTL8821AU, STA mode (with the rest of VHT work to actually test VHT)

Differential Revision:  https://reviews.freebsd.org/D47899
DeltaFile
+57-1sys/dev/rtwn/rtl8812a/r12a_chan.c
+50-0sys/dev/rtwn/rtl8812a/r12a_reg.h
+107-12 files

FreeBSD/src b4980d8sys/dev/rtwn/rtl8812a r12a_chan.c

rtwn: calculate the transmit power for VHT rates

The VHT rate power array wasn't populated, and it needs to be in order
to use VHT rates.

The vendor driver reuses the HT40 values for VHT rates.

Differential Revision:  https://reviews.freebsd.org/D47898
DeltaFile
+26-10sys/dev/rtwn/rtl8812a/r12a_chan.c
+26-101 files

FreeBSD/src 468cd60sys/dev/rtwn/rtl8812a r12a_chan.c

rtwn: refactor out the rtl8812/rtl8821 tx power programming

In preparation for the VHT TX power programming, refactor out the
CCK, OFDM and HT programming into their own routines.

Locally tested:

* RTL8821AU, STA mode
DeltaFile
+45-21sys/dev/rtwn/rtl8812a/r12a_chan.c
+45-211 files

FreeBSD/src 3d69926sys/dev/rtwn if_rtwn_ridx.h, sys/dev/rtwn/rtl8188e r88e_rx.c

rtwn: expand the ridx numbers to include VHT; add accessor macros

* expand the ridx field all the way through 4x4 11n (MCS0..MCS31)
* and then expand it through VHT 4x4 (MCS0..9 for each stream)
* add accessor macros to check if the rate is HT, VHT
* use accessor macros to check if the rate is HT rather than
  comparing it against OFDM54 or RIDX_HT_MCS(0); the values
  aobve HT MCS will be VHT, and we don't want to trigger on those!
* add a couple of appropriate TODO VHT bits in the TX path

Locally tested:

* RTL8192CU, STA mode
* RTL8188EU, STA mode
* RTL8821AU, STA mode
* RTL8192EU, STA mode

Differential Revision:  https://reviews.freebsd.org/D47896
DeltaFile
+30-5sys/dev/rtwn/if_rtwn_ridx.h
+6-7sys/dev/rtwn/rtl8812a/r12a_rx.c
+4-4sys/dev/rtwn/rtl8192c/r92c_rx.c
+4-2sys/dev/rtwn/rtl8812a/r12a_tx.c
+2-3sys/dev/rtwn/rtl8188e/r88e_rx.c
+2-2sys/dev/rtwn/rtl8192c/r92c_fw.c
+48-234 files not shown
+54-2910 files

FreeBSD/src 53adc0bsys/x86/iommu amd_drv.c

amdiommu: correctly initialize iommu.unit

The field is mostly used for display, and should match device unit, not
BIOS IVHD device id, which is deprecated and is practically zero.

Sponsored by:   Advanced Micro Devices (AMD)
Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
DeltaFile
+1-2sys/x86/iommu/amd_drv.c
+1-21 files

FreeBSD/src c3c2f0dsys/dev/rtwn if_rtwn.c

rtwn: add missing iv_ampdu_limit

This explicitly sets it rather than defaulting to the RX value.

Differential Revision:  https://reviews.freebsd.org/D47895
DeltaFile
+1-0sys/dev/rtwn/if_rtwn.c
+1-01 files

FreeBSD/src b59017csys/dev/rtwn if_rtwnvar.h, sys/dev/rtwn/pci rtwn_pci_rx.c

rtwn: add placeholder for the per-MACID rate report

Some chipsets (such as the RTL8188E) have firmware which supports
a second kind of TX report - instead of a per-packet TX report,
it can generate a per-MACID summary of packet success/failure counters.

This would be helpful for those chips to cut back on the USB traffic
to get rate control feedback for the driver based rate control we're
currently using.

This is a no-op; it just gets the pieces in place for future work.

Differential Revision:  https://reviews.freebsd.org/D47894
DeltaFile
+30-0sys/dev/rtwn/pci/rtwn_pci_rx.c
+21-0sys/dev/rtwn/usb/rtwn_usb_rx.c
+6-1sys/dev/rtwn/if_rtwnvar.h
+2-1sys/dev/rtwn/rtl8188e/r88e_rx.c
+1-0sys/dev/rtwn/rtl8192c/usb/r92cu_attach.c
+1-0sys/dev/rtwn/rtl8188e/pci/r88ee_attach.c
+61-25 files not shown
+66-211 files

FreeBSD/src b2b6c22sys/dev/rtwn/rtl8812a/usb r12au_attach.c, sys/dev/rtwn/rtl8821a/usb r21au_attach.c

rtwn: enable HT40 for RTL8821/RTL8812 series NICs

HT40 works fine in 2GHz and 5GHz modes in both 1 and 2 stream
scenarios, so just enable it here.

Differential Revision: https://reviews.freebsd.org/D47874
DeltaFile
+7-0sys/dev/rtwn/rtl8812a/usb/r12au_attach.c
+7-0sys/dev/rtwn/rtl8821a/usb/r21au_attach.c
+14-02 files

FreeBSD/src 3513560sys/dev/rtwn/rtl8192c r92c_tx.c, sys/dev/rtwn/rtl8812a r12a_tx.c

rtwn: use ieee80211_ht_check_tx_ht40() to transmit HT40 frames

Using ieee80211_ht_check_tx_ht40() means that not only the
bss and node channel are checked, but the ni_chw value is also
now correctly checked.

Differential Revision:  https://reviews.freebsd.org/D47862
DeltaFile
+3-4sys/dev/rtwn/rtl8812a/r12a_tx.c
+1-2sys/dev/rtwn/rtl8192c/r92c_tx.c
+4-62 files

FreeBSD/src 3c59c44sys/dev/acpica acpi_cmbat.c

ACPI: Treat all 20-element _BIX entires as revision 0

Some Fujitsu Lifebooks return an invalid _BIX object. The first element
of _BIX is a revision number, which indicates what elements will follow:
* ACPI 4.0 defined _BIX revision 0 with 20 elements.
* ACPI 6.0 introduced _BIX revision 1 with 21 elements.
The problem is that the offending Lifebooks have the a non-zero _BIX
revision, but provide 20 fields only.

The ACPICA parser chokes on this [1], but that seems to be
inconsequential. More importantly, our own battery info handling code
also verifies that for revision > 0, there are at least 21 fields - and
refuses to process the invalid _BIX. One workaround would be to
introduce special case / quirk handling for Fujitsu Lifebooks. A better
one is to relax the requirements check: If there are only 20 elements,
treat the _BIX as revision 0, no matter what revision number was
provided by the device.

Linux doesn't run into this problem by the way because it only supports

    [12 lines not shown]
DeltaFile
+11-2sys/dev/acpica/acpi_cmbat.c
+11-21 files

FreeBSD/src 4651f4bsys/dev/acpica acpi_cmbat.c

ACPI: Treat all 20-element _BIX entires as revision 0

Some Fujitsu Lifebooks return an invalid _BIX object. The first element
of _BIX is a revision number, which indicates what elements will follow:
* ACPI 4.0 defined _BIX revision 0 with 20 elements.
* ACPI 6.0 introduced _BIX revision 1 with 21 elements.
The problem is that the offending Lifebooks have the a non-zero _BIX
revision, but provide 20 fields only.

The ACPICA parser chokes on this [1], but that seems to be
inconsequential. More importantly, our own battery info handling code
also verifies that for revision > 0, there are at least 21 fields - and
refuses to process the invalid _BIX. One workaround would be to
introduce special case / quirk handling for Fujitsu Lifebooks. A better
one is to relax the requirements check: If there are only 20 elements,
treat the _BIX as revision 0, no matter what revision number was
provided by the device.

Linux doesn't run into this problem by the way because it only supports

    [12 lines not shown]
DeltaFile
+11-2sys/dev/acpica/acpi_cmbat.c
+11-21 files

FreeBSD/src c1ad5b4sbin/mount_cd9660 mount_cd9660.8, sys/fs/cd9660 cd9660_vfsops.c

cd9660: Apply the file and directory mode masks bits to all 12 access bits

This permits the mask bits to control the upper 3 bits used for setuid,
setgid, and sticky permissions.  While here, clarify the manpage language
as non-Rockridge volumes with extended attributes can also supply users
and groups along with permissions.

Reviewed by:    olce
Fixes:          82f2275b73e5 cd9660: Add support for mask,dirmask,uid,gid options
Differential Revision:  https://reviews.freebsd.org/D47357
DeltaFile
+12-11sbin/mount_cd9660/mount_cd9660.8
+1-1sys/fs/cd9660/cd9660_vfsops.c
+13-122 files

FreeBSD/src 8f7835asys/dev/altera/atse if_atse.c, sys/dev/altera/jtag_uart altera_jtag_uart_tty.c

Remove SOC FPGA drivers

The drivers have been disconnected from the build since the removal of
the SOCFPGA kernel configs.

Reviewed by:    manu, imp, andrew
Sponsored by:   AFRL, DARPA
Differential Revision:  https://reviews.freebsd.org/D47885
DeltaFile
+0-1,592sys/dev/altera/atse/if_atse.c
+0-882sys/dev/altera/softdma/softdma.c
+0-648sys/dev/beri/virtio/network/if_vtbe.c
+0-637sys/dev/altera/msgdma/msgdma.c
+0-561sys/dev/altera/jtag_uart/altera_jtag_uart_tty.c
+0-553sys/dev/beri/virtio/virtio_block.c
+0-4,87351 files not shown
+8-13,33257 files

FreeBSD/src e248e08sys/arm64/include hypervisor.h

arm64: Add a constant to document the TZ bit in CPTR_EL2 without VHE

Reviewed by:    emaste
Sponsored by:   AFRL, DARPA
Differential Revision:  https://reviews.freebsd.org/D47882
DeltaFile
+1-0sys/arm64/include/hypervisor.h
+1-01 files

FreeBSD/src fda0403libexec/rtld-elf rtld.c map_object.c

rtld: Support multiple PT_GNU_RELRO program headers

Iterate over all the program headers in obj_remap_relro and remove the
relro fields from Obj_Entry.

Skip the call to obj_enforce_relro() in relocate_object() for the rtld
object as well as the main program object.  obj_enforce_relro() is
called later when it safe to reference globals such as page_size.

Reviewed by:    kib
Obtained from:  CheriBSD
Sponsored by:   AFRL, DARPA
Differential Revision:  https://reviews.freebsd.org/D47884
DeltaFile
+20-17libexec/rtld-elf/rtld.c
+0-12libexec/rtld-elf/map_object.c
+0-3libexec/rtld-elf/rtld.h
+20-323 files

FreeBSD/src 34f5de8sys/arm/broadcom/bcm2835 bcm2835_bsc.c, sys/arm/freescale/imx imx_spi.c

bus_delayed_attach_children: Switch return type to void

This function never fails similar to bus_attach_children.

Reviewed by:    imp
Differential Revision:  https://reviews.freebsd.org/D47677
DeltaFile
+4-7sys/dev/hid/hidbus.c
+1-3sys/kern/subr_bus.c
+2-1sys/arm/freescale/imx/imx_spi.c
+2-1sys/arm/mv/a37x0_spi.c
+2-1sys/arm/mv/mv_spi.c
+2-1sys/arm/broadcom/bcm2835/bcm2835_bsc.c
+13-148 files not shown
+26-2214 files

FreeBSD/src a553e07sys/sys bus.h

new-bus: Deprecate bus_generic_(attach|probe)

Reviewed by:    imp
Differential Revision:  https://reviews.freebsd.org/D47676
DeltaFile
+4-2sys/sys/bus.h
+4-21 files

FreeBSD/src 6da04bcshare/man/man9 cdefs.9, sys/sys cdefs.h

cdefs: Add __deprecated1 which accepts a message as an argument

This message will be included in any warning issued by the compiler
for use of the deprecated function.

Reviewed by:    imp
Differential Revision:  https://reviews.freebsd.org/D47701
DeltaFile
+6-1share/man/man9/cdefs.9
+1-0sys/sys/cdefs.h
+7-12 files

FreeBSD/src 18250ecsys/compat/linuxkpi/common/src linux_i2c.c linux_i2cbb.c, sys/dev/bhnd/cores/pci bhnd_pci.c

Replace calls to bus_generic_attach with bus_attach_children

Reviewed by:    imp
Differential Revision:  https://reviews.freebsd.org/D47675
DeltaFile
+5-12sys/dev/dpaa2/dpaa2_rc.c
+5-8sys/dev/etherswitch/miiproxy.c
+4-7sys/dev/mii/mii.c
+2-9sys/compat/linuxkpi/common/src/linux_i2c.c
+2-9sys/compat/linuxkpi/common/src/linux_i2cbb.c
+1-9sys/dev/bhnd/cores/pci/bhnd_pci.c
+19-54264 files not shown
+491-449270 files

FreeBSD/src 723da5dsys/dev/cxgbe t4_main.c, sys/dev/dpaa2 dpaa2_rc.c dpaa2_mc_fdt.c

Replace calls to bus_generic_probe with bus_identify_children

Reviewed by:    imp
Differential Revision:  https://reviews.freebsd.org/D47674
DeltaFile
+4-4sys/dev/dpaa2/dpaa2_rc.c
+1-5sys/dev/cxgbe/t4_main.c
+3-2sys/dev/dpaa2/dpaa2_mc_fdt.c
+1-3sys/dev/xen/bus/xenpv.c
+2-2sys/dev/xen/xenstore/xenstore.c
+2-2sys/x86/x86/legacy.c
+13-1869 files not shown
+82-8775 files

FreeBSD/src 4629785sys/kern subr_bus.c, sys/sys bus.h param.h

new-bus: Add bus_(identify|attach|detach)_children

These correspond to the current implementations of
bus_generic_(probe|attach|detach) but with more accurate names and
semantics.  The intention is to deprecate bus_generic_(probe|attach)
and reimplement bus_generic_detach in a future commit.

Reviewed by:    imp
Differential Revision:  https://reviews.freebsd.org/D47673
DeltaFile
+60-5sys/kern/subr_bus.c
+4-0sys/sys/bus.h
+1-1sys/sys/param.h
+65-63 files

FreeBSD/src 831531asys/kern kern_jail.c

prison_proc_iterate(): make it work for prison0

Do not exclude processes owned by host/prison0 if there are jails
configured.

PR:     283163
Reviewed by:    jamie, markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D47943
DeltaFile
+1-2sys/kern/kern_jail.c
+1-21 files

FreeBSD/src 0fd7b46contrib/mandoc lib.in

mandoc: remove duplicate libstdthreads entry
DeltaFile
+0-1contrib/mandoc/lib.in
+0-11 files

FreeBSD/src c1c95adcontrib/mandoc roff.c roff_escape.c

Merge mandoc snapshot 2024-09-22
DeltaFile
+481-447contrib/mandoc/roff.c
+546-0contrib/mandoc/roff_escape.c
+9-385contrib/mandoc/mandoc.c
+343-0contrib/mandoc/mandoc_dbg.c
+280-0contrib/mandoc/mandoc_dbg_init.3
+150-56contrib/mandoc/mandoc.1
+1,809-88869 files not shown
+3,249-1,68975 files

FreeBSD/src ada9196sys/dev/cxgbe offload.h, sys/dev/cxgbe/tom t4_listen.c t4_tom.h

cxgbe/t4_tom: Change stid allocation strategy to be more IPv6 friendly.

A hardware IPv6 server needs 2 consecutive stids (server tids) starting
from a 2-aligned stid whereas an IPv4 server needs only 1 stid without
any constraint.  The allocator used to grab the first free stid(s) for
both but this can fragment the stid space leaving nothing suitable for
IPv6 even when lots of stids are available.  Change the allocator to
prefer stids for IPv4 from the ones that cannot be used for IPv6.

Reviewed by:    jhb
Sponsored by:   Chelsio Communications
Differential Revision:  https://reviews.freebsd.org/D47042

(cherry picked from commit f48fb131c2523d4915d1ad4eba002251c64f5574)
DeltaFile
+103-73sys/dev/cxgbe/tom/t4_listen.c
+2-11sys/dev/cxgbe/offload.h
+1-1sys/dev/cxgbe/tom/t4_tom.h
+106-853 files

FreeBSD/src 839fb85sys/x86/x86 io_apic.c

intr/x86: cleanup io_apic device method tables

Replace the { 0, 0 } construct with the preferred DEVMETHOD_END.  Add
a space after to indicate it is separate from the section above.

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1457
DeltaFile
+4-2sys/x86/x86/io_apic.c
+4-21 files

FreeBSD/src 984add3usr.bin/find option.c

find: Re-enable the -acl primary on FreeBSD

This was made conditional to support cross-builds, but the relevant
header wasn't included so it was never enabled for native builds.

PR:             278124
Fixes:          c3a6ea5ba6b5 Allow compiling usr.bin/find on Linux and Mac
DeltaFile
+1-0usr.bin/find/option.c
+1-01 files

FreeBSD/src 6ae8e07sys/dev/cxgbe t4_main.c

cxgbe(4): Fix the name of the 2 x 10/25 OCP card.

Reported by:    Sony Arpita Das @ Chelsio
Fixes:  5c15094916bf cxgbe(4): Update the board names of the T6 OCP cards.
Sponsored by:   Chelsio Communications

(cherry picked from commit 878413d5590c9f24fb8a92ebca00899662594874)
DeltaFile
+1-1sys/dev/cxgbe/t4_main.c
+1-11 files