FreeBSD/src 4e8444dsys/conf newvers.sh, sys/sys param.h

Post-14.2-branch updates

Rename stable/14 to -STABLE

Bump __FreeBSD_version

Approved by:    re (implicit)
Sponsored by:   Amazon
DeltaFile
+1-1sys/conf/newvers.sh
+1-1sys/sys/param.h
+2-22 files

FreeBSD/src 603608erelease/pkg_repos release-dvd.conf, sys/conf newvers.sh

14.2: create releng/14.2 branch

Update from PRERELEASE to BETA1
Switch pkg(8) configuration to use the quarterly repository
Bump __FreeBSD_version

Approved by:    re (implicit)
Sponsored by:   Amazon
DeltaFile
+1-1release/pkg_repos/release-dvd.conf
+1-1sys/conf/newvers.sh
+1-1sys/sys/param.h
+3-33 files

FreeBSD/src 6540ac1sys/modules/gpio Makefile

modules: gpioaei only on ACPI-supporting archs

Fixes:  9709bda03cd0 ("GPIO: Add ACPI _AEI support")
Pointy-hat to:  cperciva
Sponsored by:   Amazon
DeltaFile
+5-1sys/modules/gpio/Makefile
+5-11 files

FreeBSD/src 9709bdasys/conf files, sys/dev/gpio gpioaei.c acpi_gpiobus.c

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.)

Reviwed by:     imp, andrew, Ahmad Khalifa
MFC after:      3 days
Sponsored by:   Amazon
Differential Revision:  https://reviews.freebsd.org/D47253
Co-authored-by: Andrew Turner <andrew at FreeBSD.org>
DeltaFile
+131-0sys/dev/gpio/gpioaei.c
+121-0sys/dev/gpio/acpi_gpiobus.c
+49-0sys/dev/gpio/acpi_gpiobusvar.h
+14-0sys/modules/gpio/gpioaei/Makefile
+1-1sys/modules/gpio/Makefile
+1-0sys/conf/files
+317-16 files

FreeBSD/src 310743csys/compat/linuxkpi/common/src linux_80211.c

LinuxKPI: 802.11: improvements to (*ampdu_action)() callers

Annotate lkpi_ic_recv_action(), lkpi_ic_send_action(), and
lkpi_ic_ampdu_enable() with HT specifc debug logging as we only hook
them up currently for debug tracing but later should not need them
anymore.

Start the implementation for lkpi_ic_addba_request(),
lkpi_ic_addba_response(), and lkpi_ic_addba_stop().

Improve the implementation of lkpi_ic_ampdu_rx_start() and
lkpi_ic_ampdu_rx_stop().

Sponsored by:   The FreeBSD Foundation (commit)
MFC after:      3 days
DeltaFile
+192-14sys/compat/linuxkpi/common/src/linux_80211.c
+192-141 files

FreeBSD/src 86bc725sys/compat/linuxkpi/common/src linux_80211.c

LinuxKPI: 802.11: hookup net80211 callbacks dependent on (*ampdu_action)()

If a LinuxkPI base wireless driver does not support the (*ampdu_action)()
ieee80211_ops function for offloading parts to firmware there is no
reason for us to hook into the net80211 callbacks either but simply
to let software (net80211) handle this.

Sponsored by:   The FreeBSD Foundation (commit)
MFC after:      3 days
DeltaFile
+27-21sys/compat/linuxkpi/common/src/linux_80211.c
+27-211 files

FreeBSD/src 44ef883release/tools oracle.conf

release: increase VMSIZE for Oracle images

While OK for 14.x, both 13.x and 15.0 are failing in snapshot
builds.

Reported by:    cperciva
Sponsored by:   SkunkWerks, GmbH

Reviewed by:    emaste
Approved by:    cperciva
Differential Revision:  https://reviews.freebsd.org/D47285

(cherry picked from commit 89311e6f987ebb1a968eee6fe594b11bfb91977a)
DeltaFile
+1-1release/tools/oracle.conf
+1-11 files

FreeBSD/src 89311e6release/tools oracle.conf

release: increase VMSIZE for Oracle images

While OK for 14.x, both 13.x and 15.0 are failing in snapshot
builds.

Reported by:    cperciva
Sponsored by:   SkunkWerks, GmbH

Reviewed by:    emaste
Approved by:    cperciva
Differential Revision:  https://reviews.freebsd.org/D47285
DeltaFile
+1-1release/tools/oracle.conf
+1-11 files

FreeBSD/src f02d9edsys/kern uipc_ktls.c

ktls: Mark mbufs containing outbound encrypted TLS records read-only

Reviewed by:    gallatin, kp
Differential Revision:  https://reviews.freebsd.org/D46784
DeltaFile
+2-0sys/kern/uipc_ktls.c
+2-01 files

FreeBSD/src 28aafebsys/netinet ip_mroute.c ip_options.c, sys/netinet6 ip6_mroute.c

netinet*: Add assertions for some places that don't support M_EXTPG mbufs

Found while auditing calls to M_WRITABLE to see if M_EXTPG could be
removed from its checks.

Reviewed by:    gallatin
Differential Revision:  https://reviews.freebsd.org/D46785
DeltaFile
+5-0sys/netinet6/ip6_mroute.c
+4-0sys/netinet/ip_mroute.c
+2-0sys/netinet/ip_options.c
+1-0sys/netinet/igmp.c
+12-04 files

FreeBSD/src 314cb27sys/dev/cxgbe/cxgbei icl_cxgbei.c, sys/dev/cxgbe/tom t4_cpl_io.c

mbuf: Don't force all M_EXTPG mbufs to be read-only

Some M_EXTPG mbufs are read-only (e.g. those backing sendfile
requests), but others are not.  Add a flags argument to
mb_alloc_ext_pgs that can be used to set M_RDONLY when needed rather
than setting it unconditionally.  Update mb_unmapped_to_ext to
preserve M_RDONLY from the unmapped mbuf.

Reviewed by:    gallatin
Differential Revision:  https://reviews.freebsd.org/D46783
DeltaFile
+5-4sys/kern/kern_mbuf.c
+2-2sys/kern/uipc_mbuf.c
+1-1sys/sys/mbuf.h
+1-1sys/dev/cxgbe/cxgbei/icl_cxgbei.c
+1-1sys/dev/cxgbe/tom/t4_cpl_io.c
+1-1sys/dev/iscsi/icl_soft.c
+11-103 files not shown
+14-139 files

FreeBSD/src 7ab1a32lib/libvmmapi/riscv vmmapi_machdep.c, usr.sbin/bhyve/riscv vmexit.c bhyverun_machdep.c

bhyve/riscv: Initial import.

Add machine-dependent parts for bhyve hypervisor to support
virtualization on RISC-V ISA.

No objection:   markj
Sponsored by: UK Research and Innovation
Differential Revision: https://reviews.freebsd.org/D45512
DeltaFile
+366-0usr.sbin/bhyve/riscv/vmexit.c
+357-0usr.sbin/bhyve/riscv/bhyverun_machdep.c
+326-0usr.sbin/bhyve/riscv/fdt.c
+117-0lib/libvmmapi/riscv/vmmapi_machdep.c
+82-0usr.sbin/bhyvectl/riscv/bhyvectl_machdep.c
+66-0usr.sbin/bhyve/riscv/pci_irq.c
+1,314-011 files not shown
+1,472-417 files

FreeBSD/src d3916easys/riscv/include vmm.h vmm_dev.h, sys/riscv/vmm vmm.c vmm_riscv.c

riscv/vmm: Initial import.

Add kernel code for 'H' — Hypervisor Extension[1] to support
virtualization on RISC-V ISA.

This comes with a separate userspace patch allowing us to boot
unmodified freebsd/riscv guest. Other operating systems are untested.

This also comes with a U-Boot port that is configured to run in bhyve
guest environment — in RISC-V virtual supervisor mode.
The vmm SBI code emulates RISC-V machine-mode for the guest, handling
SBI calls partly in vmm kernel and partly in bhyve userspace.

Developed in Spike simulator during short period of time, the support
is considered experimental.  The first real hardware with hypervisor
spec included should have just reached the market, so this was tested
in Spike and QEMU only.  Note that this depends on Sstc extension
presence in the hardware (both Spike and QEMU have it).


    [12 lines not shown]
DeltaFile
+1,606-0sys/riscv/vmm/vmm.c
+922-0sys/riscv/vmm/vmm_riscv.c
+528-0sys/riscv/vmm/vmm_aplic.c
+328-0sys/riscv/include/vmm.h
+258-0sys/riscv/include/vmm_dev.h
+220-0sys/riscv/vmm/vmm_switch.S
+3,862-016 files not shown
+4,682-322 files

FreeBSD/src 13a1dbfsys/dev/iicbus/controller/vybrid vf_i2c.c

vf_i2c: Don't hold a mutex across bus_generic_detach

This was also leaking the lock if bus_generic_detach failed.

Reviewed by:    imp
Differential Revision:  https://reviews.freebsd.org/D47221
DeltaFile
+7-7sys/dev/iicbus/controller/vybrid/vf_i2c.c
+7-71 files

FreeBSD/src f2e50cesys/dev/pci ignore_pci.c

ignore_pci: Add a proper stub attach routine

This isn't a bus driver, so an empty attach routine is more appropriate.

Reviewed by:    imp
Differential Revision:  https://reviews.freebsd.org/D47220
DeltaFile
+8-1sys/dev/pci/ignore_pci.c
+8-11 files

FreeBSD/src 1cddce8sys/dev/pci fixup_pci.c

fixup_pci: Remove unused attach DEVMETHOD

The probe routine always fails, so the attach routine is unused.
However, this weird driver is really a quirk system for PCI and should
be turned into PCI quirks instead.  The Natoma quirk is also broken as
it should be doing a runtime check either on mp_ncpus (or more likely
to see if it is using APIC) instead of #ifdef.

Reviewed by:    imp
Differential Revision:  https://reviews.freebsd.org/D47219
DeltaFile
+0-1sys/dev/pci/fixup_pci.c
+0-11 files

FreeBSD/src 77b296arelease Makefile.vm release.conf.sample, release/tools oci.conf oracle.conf

release: move OCI to ORACLE

This allows future releng tooling to use OCI for the industry
standard Open Container Initiative tooling, reducing potential
for confusion.

Approved by:    cperciva
Reviewed by:    emaste
Differential Revision:  https://reviews.freebsd.org/D46975

MFC after:      3 days
Sponsored by:   SkunkWerks, GmbH

(cherry picked from commit 1be84d745bcc11b766ac1fa03afd2c8ea8771737)
DeltaFile
+0-94release/tools/oci.conf
+94-0release/tools/oracle.conf
+4-4release/Makefile.vm
+1-1release/release.conf.sample
+99-994 files

FreeBSD/src 786ebfarelease Makefile.vm

release: tweak Oracle Cloud settings

- use raw image disk type and enable zfs, this yields smaller
  images for upload after using native qcow2 + zstd compression

Reviewed by:    lwhsu, emaste
Differential Revision:  https://reviews.freebsd.org/D47055
MFC after:      3 days
Approved by:    emaste

(cherry picked from commit c611041660845e8ee8bf3009b32327d1f783a47b)
DeltaFile
+2-2release/Makefile.vm
+2-21 files

FreeBSD/src cf1aba2usr.sbin/freebsd-update freebsd-update.sh

freebsd-update: refuse to operate on a pkgbase system

FreeBSD-update is not compatible with packaged base.

PR:             282252
Reviewed by:    bapt, markj (earlier)
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D47341
DeltaFile
+22-0usr.sbin/freebsd-update/freebsd-update.sh
+22-01 files

FreeBSD/src 68e0137bin/hostname/tests hostname_test.sh

tests: Switch bin/hostname/hostname_test to execenv=jail

Kyua skips tests based on the jail execution environment if a system is
built WITHOUT_JAIL. Thus, the test case does not need to handle it.

Reviewed by:    markj
Approved by:    markj (mentor)
Differential Revision:  https://reviews.freebsd.org/D47334
DeltaFile
+1-6bin/hostname/tests/hostname_test.sh
+1-61 files

FreeBSD/src eac9707sys/netinet sctp_pcb.c

sctp: another cleanup

No functional change intended.

(cherry picked from commit d08713dcdb158b2f55a885e7cfbbe410272c55a2)
DeltaFile
+9-9sys/netinet/sctp_pcb.c
+9-91 files

FreeBSD/src c274b69sys/netinet sctp_pcb.c

sctp: cleanup the addition of addresses which are already known

No functional change intended.

(cherry picked from commit a05620b0f67fe526350bf386882262ca8005533f)
DeltaFile
+42-37sys/netinet/sctp_pcb.c
+42-371 files

FreeBSD/src 03de3fcsys/netinet sctp_pcb.c

sctp: further cleanup

(cherry picked from commit 02478e65910ab1ef53511ebb2271cdcf0e9a14cf)
DeltaFile
+5-11sys/netinet/sctp_pcb.c
+5-111 files

FreeBSD/src f735547sys/netinet sctp_pcb.c sctp_pcb.h

sctp garbage collect sctp_update_ifn_mtu

(cherry picked from commit ce5b5361d4d1b3868631baa6870ba6e1e6ec8330)
DeltaFile
+0-11sys/netinet/sctp_pcb.c
+0-2sys/netinet/sctp_pcb.h
+0-132 files

FreeBSD/src 76c6a76sys/netinet sctp_pcb.c

sctp: cleanup

No functional change intended.

(cherry picked from commit e4ac0183a1a846ef6556c9876dab76c06f5fea9c)
DeltaFile
+4-8sys/netinet/sctp_pcb.c
+4-81 files

FreeBSD/src c7f2035sys/netinet sctp_output.c sctp_asconf.c

sctp: improve debug output

(cherry picked from commit ce20b48a60fbae275085237dd48075d426f00d37)
DeltaFile
+4-4sys/netinet/sctp_output.c
+3-3sys/netinet/sctp_asconf.c
+1-1sys/netinet/sctp_pcb.c
+8-83 files

FreeBSD/src 88dfceesys/netinet sctp_pcb.c

sctp: check locking requirements

Actually assert the locking instead of describing it in a comment.
No functional change intended.

(cherry picked from commit 4466a97e83fd9484cb22dd2867b6972f6b185e8b)
DeltaFile
+2-2sys/netinet/sctp_pcb.c
+2-21 files

FreeBSD/src 9830fedsys/netinet sctp_pcb.c sctp_pcb.h

sctp: make sctp_free_ifn() static

It is not used outside of the file.
No functional change intended.

(cherry picked from commit e1a09d1e9df30347c279604191a04ce2ef20bf0c)
DeltaFile
+1-1sys/netinet/sctp_pcb.c
+0-1sys/netinet/sctp_pcb.h
+1-22 files

FreeBSD/src 258e380sys/netinet sctp_pcb.c

sctp: cleanup sctp_delete_ifn

The address lock is always held, so no need for the second
parameter.
No functional change intended.

(cherry picked from commit 2e9761eb80f3e58c116efc10c739ed0d8497c1d6)
DeltaFile
+5-14sys/netinet/sctp_pcb.c
+5-141 files

FreeBSD/src 6fb92dbsys/kern uipc_socket.c

getsockopt: improve locking for SOL_SOCKET level socket options

Ensure SOLISTENING() is done inside SOCK_LOCK()/SOCK_UNLOCK()
for getsockopt() handling of SOL_SOCKET-level socket options.

Reviewed by:            markj, rscheff
Sponsored by:           Netflix, Inc.
Differential Revision:  https://reviews.freebsd.org/D46881

(cherry picked from commit 3326ab87cc22cb70a41e13aefd8684ff0feed01f)
DeltaFile
+14-0sys/kern/uipc_socket.c
+14-01 files