FreeBSD/src 83c8ec7 — sys/dev/sound/midi midi.h midi.c

sound/midi: Pass the queue sizes as arguments to midi_init()

There is no reason to have kobj methods for this.

MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
DeltaFile
+3-17sys/dev/sound/midi/mpu401.c
+4-10sys/dev/sound/midi/mpu_if.m
+4-9sys/dev/sound/midi/midi.c
+2-1sys/dev/sound/midi/midi.h
+13-374 files

FreeBSD/src 3fc4d02 — sys/dev/sound/midi mpu401.c midi.c

sound/midi: Pair kobj_init() with kobj_delete()

kobj_init() bumps the class refcount, so without a matching
kobj_delete() it never drops to zero.

MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
DeltaFile
+2-2sys/dev/sound/midi/mpu401.c
+2-2sys/dev/sound/midi/midi.c
+4-42 files

FreeBSD/src 5f00965 — sys/dev/sound/midi mpu_if.m midi.h

sound/midi: Use size_t instead of int where appropriate

Also switch the affected min() calls to ulmin().

No functional change intended.

MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
DeltaFile
+23-25sys/dev/sound/midi/midi.c
+5-5sys/dev/sound/midi/mpu401.c
+2-2sys/dev/sound/midi/mpu_if.m
+2-2sys/dev/sound/midi/midi.h
+32-344 files

FreeBSD/src ab9bdb4 — sys/dev/sound/midi midi.c

sound/midi: Centralize snd_midi cleanup

midi_init()'s error path leaked both unit numbers and duplicated
existing code.

While here, drop the locking in midi_init(), because nothing can reach m
before make_dev() publishes it.

MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
DeltaFile
+21-24sys/dev/sound/midi/midi.c
+21-241 files

FreeBSD/src 70d3fab — sys/dev/sound/midi midi.c

sound/midi: Always notify the provider from midi_close()

Be consistent with midi_open() which also invokes the callback
unconditionally.

MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
DeltaFile
+1-2sys/dev/sound/midi/midi.c
+1-21 files

FreeBSD/src 690b242 — sys/dev/sound/midi midi.c

sound/midi: Fix inverted POLLOUT test in midi_poll()

midi_queue_avail() returns the free space, so the test had it backwards.

MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
DeltaFile
+1-1sys/dev/sound/midi/midi.c
+1-11 files

FreeBSD/src 543adfc — sys/dev/sound/midi mpu401.c mpu401.h, sys/dev/sound/pci csamidi.c

sound/midi: Do not duplicate MPU constants in snd_csa(4)

No functional change intended.

MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
DeltaFile
+4-8sys/dev/sound/midi/mpu401.c
+12-0sys/dev/sound/midi/mpu401.h
+0-9sys/dev/sound/pci/csamidi.c
+16-173 files

FreeBSD/src 961e18b — sys/dev/sound/midi midi.c

sound/midi: Do not return from midi_close() with the lock held

This was already fixed in midi_open().

MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
DeltaFile
+3-2sys/dev/sound/midi/midi.c
+3-21 files

FreeBSD/src 276e696 — sys/dev/sound/midi midi.h midi.c

sound/midi: Retire M_RXEN

It was always set and cleared together with M_RX and never tested on its
own, so it was redundant. The only thing that read it was midi_close()'s
check for whether the flags had changed, which can be reduced to a plain
FREAD test.

No functional change intended.

MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
DeltaFile
+3-6sys/dev/sound/midi/midi.c
+2-3sys/dev/sound/midi/midi.h
+5-92 files

FreeBSD/src f960b33 — sys/dev/sound/midi mpu401.c

sound/midi: Drain the mpu401 callout

MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
DeltaFile
+1-0sys/dev/sound/midi/mpu401.c
+1-01 files

FreeBSD/src a41ab6b — sys/dev/sound/midi mpu401.c midi.c

sound/midi: Clean up zero assignments

No functional change intended.

MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
DeltaFile
+4-12sys/dev/sound/midi/midi.c
+0-1sys/dev/sound/midi/mpu401.c
+4-132 files

FreeBSD/src 315d508 — sys/dev/sound/midi midi.c

sound/midi: Create the device node with make_dev_s()

make_dev(9) publishes the node before si_drv1 is assigned, so an open(2)
racing with midi_init() could dereference si_drv1 before it's set.
Triggering a UAF is not currently an issue because all cdevsw methods
check for NULL, but the fix makes it more robust in any case.

MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
DeltaFile
+16-3sys/dev/sound/midi/midi.c
+16-31 files

FreeBSD/src fd2bc75 — sys/dev/sound/midi midi.h mpu401.c

sound/midi: Rename M_TXEN to M_TXPEND

The flag means that there is data queued to transmit, not that
transmission is enabled.

No functional change intended.

MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
DeltaFile
+6-6sys/dev/sound/midi/midi.c
+3-3sys/dev/sound/midi/mpu401.c
+1-1sys/dev/sound/midi/midi.h
+10-103 files

FreeBSD/src d63b11c — sys/dev/sound/midi midiq.h midi.c

sound/midi: Replace MIDIQ with a simple byte queue

MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
DeltaFile
+62-28sys/dev/sound/midi/midi.c
+0-87sys/dev/sound/midi/midiq.h
+62-1152 files

FreeBSD/src fb357da — sys/dev/sound/midi midi.c mpu401.h, sys/dev/sound/pci csamidi.c

sound/midi: Remove unused and dead code

No functional change intended.

MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
DeltaFile
+6-30sys/dev/sound/midi/mpu401.c
+3-4sys/dev/sound/midi/mpu401.h
+2-3sys/dev/sound/midi/midi.c
+0-2sys/dev/sound/pci/csamidi.c
+11-394 files

FreeBSD/src c8d1c94 — sys/dev/sound dummy.c

snd_dummy: Do not use dummy_chan_io() as mpu401's interrupt handler

dummy_chan_io() runs with sc->lock held, but mpu401 calls its handler
from a callout with no mutex associated with it, so writing to the MIDI
device node caused a panic.

Give mpu401 its own handler, and leave MIDI to mpu401's timer instead of
the PCM callout.

Fixes:          e963472ef853 ("snd_dummy: Initial MIDI support")
Sponsored by:   The FreeBSD Foundation
DeltaFile
+10-4sys/dev/sound/dummy.c
+10-41 files

FreeBSD/ports 5bb75d8 — www/comentario Makefile distinfo, www/comentario/files/packagejsons package.json yarn.lock

www/comentario: Update to 3.19.0

Refresh frontend dependencies, require Go 1.27, and update the Angular
API generator version. Select the JavaScript Sass compiler to avoid a
frontend build hang on FreeBSD.

Changelog: https://gitlab.com/comentario/comentario/-/releases/v3.19.0
DeltaFile
+2,926-3,523www/comentario/files/packagejsons/yarn.lock
+21-22www/comentario/files/packagejsons/frontend/package.json
+10-16www/comentario/files/packagejsons/package.json
+9-9www/comentario/distinfo
+7-9www/comentario/files/packagejsons/embed/package.json
+6-4www/comentario/Makefile
+2,979-3,5836 files

FreeBSD/ports e3978ac — mail/roundcube Makefile distinfo

mail/roundcube: Security update to 1.7.6

PR:             300630
Submitted by:   Fabian Wenk <fabian at wenks.ch>
MFH:            2026Q4
DeltaFile
+3-3mail/roundcube/distinfo
+1-1mail/roundcube/Makefile
+4-42 files

FreeBSD/src 637fce6 — sys/dev/uart uart_cpu_fdt.c

uart: Set the bus space tag before parsing hw.uart.console

uart_cpu_getdev() lets hw.uart.console override the FDT, but
uart_getenv() maps an "mm:" address with uart_bus_space_mem, which is
only assigned after the FDT probe.  On riscv and arm it is still NULL
at that point, so bus_space_map() faults before there is a console.
On riscv this happens on any EFI boot where the firmware provides an
SPCR table, since the loader turns it into hw.uart.console.

Initialize uart_bus_space_mem to fdtbus_bs_tag, as uart_cpu_arm64.c
does with &memmap_bus (See also 0624eddcffefe).

PR:             299089
Reviewed by:    mhorne
MFC after:      1 week
Signed-off-by:  Rick Richard <rick at sloservers.com>

(cherry picked from commit 9db8ae83e62e9a1391674a14b0b7d76de2e3c3f7)
DeltaFile
+4-0sys/dev/uart/uart_cpu_fdt.c
+4-01 files

FreeBSD/src 736dc39 — sys/riscv/include cpu.h, sys/riscv/riscv identcpu.c

riscv: add QEMU marchid

Globally allocated per:
https://github.com/riscv/riscv-isa-manual/blob/main/marchid.md

MFC after:      3 days
Sponsored by:   The FreeBSD Foundation

(cherry picked from commit bba06f0681bb8197f1cd11160fa489c1631f399c)
DeltaFile
+1-0sys/riscv/riscv/identcpu.c
+1-0sys/riscv/include/cpu.h
+2-02 files

FreeBSD/src 2292e7a — sys/riscv/include cpu.h, sys/riscv/riscv identcpu.c

riscv: add QEMU marchid

Globally allocated per:
https://github.com/riscv/riscv-isa-manual/blob/main/marchid.md

MFC after:      3 days
Sponsored by:   The FreeBSD Foundation

(cherry picked from commit bba06f0681bb8197f1cd11160fa489c1631f399c)
DeltaFile
+1-0sys/riscv/riscv/identcpu.c
+1-0sys/riscv/include/cpu.h
+2-02 files

FreeBSD/src 4b9057d — sys/dev/uart uart_cpu_fdt.c

uart: Set the bus space tag before parsing hw.uart.console

uart_cpu_getdev() lets hw.uart.console override the FDT, but
uart_getenv() maps an "mm:" address with uart_bus_space_mem, which is
only assigned after the FDT probe.  On riscv and arm it is still NULL
at that point, so bus_space_map() faults before there is a console.
On riscv this happens on any EFI boot where the firmware provides an
SPCR table, since the loader turns it into hw.uart.console.

Initialize uart_bus_space_mem to fdtbus_bs_tag, as uart_cpu_arm64.c
does with &memmap_bus (See also 0624eddcffefe).

PR:             299089
Reviewed by:    mhorne
MFC after:      1 week
Signed-off-by:  Rick Richard <rick at sloservers.com>

(cherry picked from commit 9db8ae83e62e9a1391674a14b0b7d76de2e3c3f7)
DeltaFile
+4-0sys/dev/uart/uart_cpu_fdt.c
+4-01 files

FreeBSD/src c37b830 — sys/dev/hwpmc hwpmc_mod.c

hwpmc: refuse MOD_UNLOAD while PMC owners exist

Unloading hwpmc while processes own PMCs frees state they still use.
Return EBUSY instead.  Use a try-lock on pmc_sx, since MOD_UNLOAD runs
with kld_sx held. MOD_SHUTDOWN still always cleans up.

Reviewed by:    mhorne
MFC after:      1 week
Sponsored by:   Advanced Micro Devices, Inc.
Differential Revision:  https://reviews.freebsd.org/D60561
DeltaFile
+36-1sys/dev/hwpmc/hwpmc_mod.c
+36-11 files

FreeBSD/ports 19ff19f — databases/mongodb80 distinfo Makefile, databases/mongodb80/files bazel-cache-add.py bazel-distfiles.py

databases/mongodb80: cleanup of local distfile

Remove huge local bazel-cache distfile by downloading the original distfiles.
This change is similar to commit f09187effdb3db1d3e5097d0b79dec9ac85cc1fb of mongodb90.
No functional change intended. All hashes of the distfiles are the same.
DeltaFile
+250-0databases/mongodb80/files/bazel-distfiles.py
+40-91databases/mongodb80/Makefile.bazel-cache
+64-9databases/mongodb80/Makefile
+60-0databases/mongodb80/files/bazel-cache-add.py
+47-3databases/mongodb80/distinfo
+461-1035 files

FreeBSD/src 0a8d25e — share/man/man4 aq.4, sys/dev/aq aq_fw.h aq_fw2x.c

aq(4): arm PHY thermal shutdown from the admin poll

move thermal shutdown arming to the admin poll

this gives a more reasonable delay prior to the first attempt, and also
allows us to retry and make the option runtime-tuneable via a new
disable_thermal_arm sysctl

Approved by:    adrian (mentor)
Reviewed by:    adrian
Differential Revision:  https://reviews.freebsd.org/D59593

Signed-off-by: Nick Price <nprice at FreeBSD.org>
(cherry picked from commit 75a1939f6360d4a329891e2075d18eef069db9bb)
DeltaFile
+34-1sys/dev/aq/aq2_fw.c
+30-0sys/dev/aq/aq_irq.c
+14-10sys/dev/aq/aq_main.c
+16-6sys/dev/aq/aq_fw2x.c
+20-1share/man/man4/aq.4
+2-2sys/dev/aq/aq_fw.h
+116-201 files not shown
+118-207 files

FreeBSD/ports 9a69436 — databases/db18 Makefile, databases/db5 Makefile

Tcl/Tk: fix ports in preparation to bump default version to 9.x
DeltaFile
+1-1databases/mysqltcl/Makefile
+1-1databases/letos/Makefile
+1-1databases/db5/Makefile
+1-1databases/db18/Makefile
+4-44 files

FreeBSD/ports 2e6356a — ports-mgmt Makefile, ports-mgmt/pkgfe pkg-descr distinfo

ports-mgmt/pkgfe: [NEW PORT] Ncurses frontend for ports collection

Package Frontend is a ncurses-based, graphical frontend for
the FreeBSD ports collection.

WWW:    http://ketas.si.pri.ee/pkgfe/
PR:     295922
DeltaFile
+26-0ports-mgmt/pkgfe/Makefile
+3-0ports-mgmt/pkgfe/distinfo
+2-0ports-mgmt/pkgfe/pkg-descr
+1-0ports-mgmt/Makefile
+32-04 files

FreeBSD/src 02c0eef — sys/cam/ctl ctl_ioctl.h

nvmft: Document all CTL_NVMF status codes

Sponsored by:   Chelsio Communications
DeltaFile
+8-0sys/cam/ctl/ctl_ioctl.h
+8-01 files

FreeBSD/src bfdce40 — sys/dev/nvme nvme.h

nvme: Typo ranage -> range

Sponsored by:   Chelsio Communications
DeltaFile
+1-1sys/dev/nvme/nvme.h
+1-11 files

FreeBSD/src cc33771 — usr.sbin/ctld nvmf.cc

ctld: Use expand_unsigned for parsing unsigned NVMe option values

Sponsored by:   Chelsio Communications
DeltaFile
+3-4usr.sbin/ctld/nvmf.cc
+3-41 files