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