FreeBSD/src 3c6ea45usr.sbin/makefs/tests makefs_msdos_tests.sh

makefs: Fix atime tests on MS-DOS (FAT) file systems

On FAT file systems, access time has a resolution of 1 day, so it is
really the access date.

Strip the time component from the epoch timestamp in order to check the
access time.

Reference: https://learn.microsoft.com/en-us/windows/win32/sysinfo/file-times

Reviewed by:    ngie
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D54584

(cherry picked from commit 2916ae647303e3bd92e533002a8e6c476417fe7f)
DeltaFile
+10-6usr.sbin/makefs/tests/makefs_msdos_tests.sh
+10-61 files

FreeBSD/src 019d13dusr.sbin/makefs zfs.c makefs.8, usr.sbin/makefs/tests makefs_zfs_tests.sh

makefs: zfs: Allow the path vdev property to be set

This allows specifying custom vdev paths (such as GPT labels like
/dev/gpt/...) when creating ZFS filesystem images via makefs(8), rather
than defaulting to /dev/null.

Reviewed by:    markj
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D59031

(cherry picked from commit 5fece2484324be52737e4cea86658a4b8d3107fc)
DeltaFile
+45-0usr.sbin/makefs/tests/makefs_zfs_tests.sh
+21-17usr.sbin/makefs/makefs.8
+9-1usr.sbin/makefs/zfs.c
+1-0usr.sbin/makefs/zfs/zfs.h
+76-184 files

FreeBSD/src 70ca3c6share/man/man4 vge.4

vge.4: Canonicalize SYNOPSIS + Nit Nd quotes

MFC after:      3 days
DeltaFile
+14-13share/man/man4/vge.4
+14-131 files

FreeBSD/src 70f0d78share/man/man4 viawd.4

viawd.4: Canonicalize SYNOPSIS + tag SPDX

MFC after:      3 days
DeltaFile
+6-12share/man/man4/viawd.4
+6-121 files

FreeBSD/src 400cc89share/man/man4 virtio_random.4

virtio_random.4: Canonicalize SYNOPSIS + AUTHORS

Also tag SPDX

MFC after:      3 days
DeltaFile
+8-16share/man/man4/virtio_random.4
+8-161 files

FreeBSD/src 87909fdshare/man/man4 virtio_gpu.4

virtio_gpu.4: Canonicalize SYNOPSIS

MFC after:      3 days
DeltaFile
+1-6share/man/man4/virtio_gpu.4
+1-61 files

FreeBSD/src d9cb19cshare/man/man4 virtio_console.4

virtio_console.4: Canonicalize SYNOPSIS + AUTHORS

Also tag SPDX.

MFC after:      3 days
DeltaFile
+9-17share/man/man4/virtio_console.4
+9-171 files

FreeBSD/src 937e641share/man/man4 virtio_balloon.4

virtio_balloon.4: Canonicalise SYNOPSIS + AUTHORS

Also tag SPDX.

MFC after:      3 days
DeltaFile
+9-14share/man/man4/virtio_balloon.4
+9-141 files

FreeBSD/src 9d65dc4share/man/man4 virtio.4

virtio.4: Canonicalize SYNOPSIS + tag SPDX

MFC after:      3 days
DeltaFile
+10-12share/man/man4/virtio.4
+10-121 files

FreeBSD/src 46c1651share/man/man4 rl.4

rl.4: Canonicalize SYNOPSIS + HARDWARE + nits

While here, remove superflouous Nd quotes and canonicalize %unit to %d.

MFC after:      3 days
DeltaFile
+13-18share/man/man4/rl.4
+13-181 files

FreeBSD/src 098adfcshare/man/man4 virtio_blk.4

virtio_blk.4: Canonicalize SYNOPSIS and HARDWARE

Also tag SPDX, and switch X to %d for consistency/clarity.

MFC after:      3 days
DeltaFile
+20-15share/man/man4/virtio_blk.4
+20-151 files

FreeBSD/src 746b910share/man/man4 virtio_scsi.4

virtio_scsi.4: Canonicalize

+ Tag SPDX
+ Canonicalize SYNOPSIS and HARDWARE
+ Canonicalize SYSCTL VARIABLES, adding the sysctl to apropos
+ Canonicalize AUTHORS and HISTORY, which were combined
+ Use more traditional and consistent %d instead of less clear X

MFC after:      3 days
DeltaFile
+31-29share/man/man4/virtio_scsi.4
+31-291 files

FreeBSD/src 7eaf7b2share/man/man4 vlan.4

vlan.4: Canonicalize SYNOPSIS + tag SPDX

MFC after:      3 days
DeltaFile
+6-12share/man/man4/vlan.4
+6-121 files

FreeBSD/src 02f59bashare/man/man4 vmci.4

vmci.4: Canonicalize SYNOPSIS

MFC after:      3 days
DeltaFile
+3-11share/man/man4/vmci.4
+3-111 files

FreeBSD/src 84b4054share/man/man4 vmd.4

vmd.4: Canonicalize SYNOPSIS + fix linter errors

MFC after:      3 days
DeltaFile
+10-12share/man/man4/vmd.4
+10-121 files

FreeBSD/src 581c5d4share/man/man4 vtnet.4

vtnet.4: Add a HARDWARE section

For inclusion in the hardware release notes.

MFC after:      3 days
DeltaFile
+4-0share/man/man4/vtnet.4
+4-01 files

FreeBSD/src 2bea9dbshare/man/man4 vmm.4

vmm.4: Canonicalize SYNOPSIS + minor nits

+ Tag SPDX
+ Remove superflouous Nd quotes
+ Add "The" and "module" to introductory sentence
+ Remove a malformed "compact" specifier from a list
+ Add a missing list ending block

MFC after:      3 days
DeltaFile
+11-13share/man/man4/vmm.4
+11-131 files

FreeBSD/src cd75419sys/dev/gpio gpioled_fdt.c

gpioled: defer gpio pin writes to a taskqueue

led(4) invoked the led_t callback with its mutex held, including from the
blink callout, so the callback must not sleep.

PR: 251032

MFC After: 1 week

Reviewed by:    adrian
Differential Revision:  https://reviews.freebsd.org/D59263
DeltaFile
+26-3sys/dev/gpio/gpioled_fdt.c
+26-31 files

FreeBSD/src 2d9c41dsys/geom/raid g_raid.h g_raid.c

graid: Add rotation rate support

If all member devices report the same rotation rate, pass it up.
DeltaFile
+33-0sys/geom/raid/g_raid.c
+1-0sys/geom/raid/g_raid.h
+34-02 files

FreeBSD/src e5283a9sys/geom/raid3 g_raid3.h g_raid3.c

graid3: Add rotation rate support

If all member devices report the same rotation rate, pass it up.
DeltaFile
+33-0sys/geom/raid3/g_raid3.c
+1-0sys/geom/raid3/g_raid3.h
+34-02 files

FreeBSD/src f8c6f9fshare/man/man4 vmx.4

vmx.4: Canonicalize SYNOPSIS

MFC after:      3 days
DeltaFile
+12-12share/man/man4/vmx.4
+12-121 files

FreeBSD/src f1da14eshare/man/man4 vmx.4

vmx.4: Spinoff HARDWARE + tag SPDX

This section will appear in the Hardware Release Note.

MFC after:      3 days
DeltaFile
+6-4share/man/man4/vmx.4
+6-41 files

FreeBSD/src edadc3fusr.bin/whereis whereis.1 whereis.c

whereis(1): Respect PORTSDIR variable

PORTSDIR is a very common variable that points to the location of a ports
directory. Make whereis(1) respect this variable too.

Reviewed by:    arrowd@, christos@
Approved by:    christos@
Differential Revision:  https://reviews.freebsd.org/D56845
DeltaFile
+66-54usr.bin/whereis/whereis.c
+4-0usr.bin/whereis/whereis.1
+70-542 files

FreeBSD/src 2454371sys/dev/e1000 if_igb_iov.c e1000_defines.h

e1000: Correct igb(4) DMA coalescing register programming

The disabled path wrote the complement of DMAC_EN to DMACR.  That
set every other field, including reserved bits, the one-shot EXIT_DC
command, watchdog enables, receive threshold, and PCIe Lx selection.

When DMA coalescing was enabled, the requested watchdog and Lx-delay
values were ORed into their reset values rather than replacing the
fields.  PCIEMISC.LX_DECISION was also cleared, preventing
DMACR.DMAC_Lx from controlling PCIe low-power entry.

Disable coalescing by clearing only DMAC_EN and retaining the
documented DMAC_Lx policy and watchdog fields.  On enable, replace the
variable fields under their masks, select DMA requirements for PCIe
low-power entry, and program the loopback and BMC watchdog policies
independently of prior state.

Make igb_init_dmac() the sole owner of this policy, including when
SR-IOV is active, so later IOV initialization cannot overwrite it.

    [14 lines not shown]
DeltaFile
+48-24sys/dev/e1000/if_em.c
+0-2sys/dev/e1000/if_igb_iov.c
+2-0sys/dev/e1000/e1000_defines.h
+50-263 files

FreeBSD/src 46f09c4usr.bin/netstat if.c

netstat: filtering out unsupported address families

getifaddrs(3) may return AF_INET6 addresses even when netstat(1)
is built without INET6 support.  Avoid passing these addresses to
process_ifa_addr(), which does not handle AF_INET6 in that case.

This fixes corrupted column width calculations and runaway output
from netstat -i, which could cause periodic daily check output to
generate multi-gigabyte mail messages and exhaust disk space and
memory.

MFC after:      2 weeks
DeltaFile
+18-2usr.bin/netstat/if.c
+18-21 files

FreeBSD/src bd0449asys/dev/sound/usb uaudio.c

snd_uaudio: Use uDWord for the UAC2 sample rate

uaudio20_set_speed() split the sample rate into bytes by hand. Use
uDWord and USETDW() instead.

No functional change intended.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D59066

(cherry picked from commit 5c3bc8ab427c8624b29cd9ac9265445002da3ba8)
DeltaFile
+3-6sys/dev/sound/usb/uaudio.c
+3-61 files

FreeBSD/src 4204287sys/kern tty_pts.c tty.c, sys/sys tty.h

tty: gracefully handle proctree_lock locking

Instead of relocking tty to get the proctree_lock and experiencing the
race due to the relock, take the proctree_lock in advance for ioctl
commands that need it.  The affected commands, TIOCNOTTY, TIOCSCTTY,
and TIOCSPGRP, must not be overridden by the specific tty drivers,
so the common handling is cleaner.

Reviewed by:    kevans (previous version), markj
Tested by:      pho
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D59132
DeltaFile
+209-172sys/kern/tty.c
+3-0sys/sys/tty.h
+3-0sys/kern/tty_pts.c
+215-1723 files

FreeBSD/src 824f934sys/kern tty_ttydisc.c tty.c, sys/sys tty.h

tty: make tty_wait_background() aware of proctree_lock ownership

Reviewed by:    markj
Tested by:      pho
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D59132
DeltaFile
+11-5sys/kern/tty.c
+8-4sys/kern/tty_ttydisc.c
+2-1sys/sys/tty.h
+21-103 files

FreeBSD/src 9bd3fe5sys/kern tty.c

tty: add tty_wait_proctree(9)

Reviewed by:    markj
Tested by:      pho
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D59132
DeltaFile
+39-0sys/kern/tty.c
+39-01 files

FreeBSD/src a15c712share/man/man9 condvar.9

condvar.9: document cv_wait_sig_unblock(9)

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D59132
DeltaFile
+10-1share/man/man9/condvar.9
+10-11 files