bf898488 imp Dec. 31, 2021, 10:09 p.m.
Sponsored by:		Netflix
c66fd95c imp Dec. 31, 2021, 10:09 p.m.
Sponsored by:		Netflix
f9bf8876 imp Dec. 31, 2021, 10:09 p.m.
Remove all mips .if conditionals. Since _sym was now set
unconditionally, just add it to the right place w/o a variable.

Sponsored by:		Netflix
6b95cf5b markj Dec. 31, 2021, 10:01 p.m.
When a softclock thread prepares to go off-CPU, the following happens in
the context of the thread:

1. callout state is locked
2. thread state is set to IWAIT
3. thread lock is switched from the tdq lock to the callout lock
4. tdq lock is released
5. sched_switch() sets td_lock to &blocked_lock
6. sched_switch() releases old td_lock (callout lock)
7. sched_switch() removes td from its runqueue
8. cpu_switch() sets td_lock back to the callout lock

Suppose a timer interrupt fires while the softclock thread is switching
off, and callout_process() schedules the softclock thread.  Then there
is a window between steps 5 and 8 where callout_process() can call
sched_add() while td_lock is &blocked_lock, but this is not correct
since the thread is not logically locked.

callout_process() thus needs to spin waiting for the softclock thread to
finish switching off (i.e., after step 8 completes) before rescheduling
it, since callout_process() does not acquire the thread lock directly.

Reported by:
Fixes:		74cf7cae4d22 ("softclock: Use dedicated ithreads for running callouts.")
Reviewed by:	mav, kib, jhb
Sponsored by:	The FreeBSD Foundation
Differential Revision:
5a73a6c1 imp Dec. 31, 2021, 9:56 p.m.
lio appears to be partially removed from this file. It's a modern enough
card, so add it back. It builds everywhere.

Sponsored by:		Netflix
daf481f3 emaste Dec. 31, 2021, 6:16 p.m.
Ping does not build (and serves no purpose) if neither is enabled
(i.e., building WITHOUT_INET and WITHOUT_INET6).

This is equvalent to a4ef9e58bc0c but for rescue/.

PR:		260082
Fixes:		a4ef9e58bc0c ("sbin: build ping if at least one of...")
Sponsored by:	The FreeBSD Foundation
88105995 markj Dec. 31, 2021, 5:57 p.m.
This is a re-application of commit
2d82b47a5b4ef18550565dd55628d51f54d0af2e, which was reverted since it
broke with syslog daemons that don't adjust the /dev/log recv buffer
size.  Now that the default is large enough to accomodate 8KB messages,
restore support for large messages.

PR:		260126
963f5dc7 markj Dec. 31, 2021, 5:55 p.m.
Members with such a type will legitimately have a size of zero, so don't
emit a warning.

PR:		260818
Reviewed by:	bz
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:
f04a0960 markj Dec. 31, 2021, 5:50 p.m.
Simplify control flow around handling of the execpath length and signal
trampoline.  Cache the sysentvec pointer in a local variable.

No functional change intended.

Reviewed by:	kib
MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
Differential Revision:
757089f0 mav Dec. 31, 2021, 4:48 p.m.
MFC after:	1 weeks
5650d340 se Dec. 31, 2021, 1:09 p.m.
The _s parameter was missing in the paramater list.

Reported by:	gljennjohn at (Gary Jennejohn)
58101517 bz Dec. 31, 2021, 11:51 a.m.
The firmware files for 3160, 7260, and 7265 imported contain old versions
no longer supported by the driver.
Replace with latest versions from linux-firmware to possibly also
support these chip revisions.

Reported by:	FreeBSD User (freebsd on wireless (2021-12-30)
Sponsored by:	The FreeBSD Foundation
MFC after:	3 days
500be2e8 bz Dec. 31, 2021, 11:47 a.m.
We are using a bandaid to wait for queues after station creation
looping and pausing.
The abort condition was looping in the wrong direction so we were
potentially waiting forever if queues never became ready.
From initial user test data we also found that the wait time was
too low in some cases so increase the length.

Sponsored by:	The FreeBSD Foundation
MFC after:	3 days
cb65d443 se Dec. 31, 2021, 10:08 a.m.
The lang/python* ports failed since they expected CPU_COUNT_S() to be
provided by sys/cpuset.h. Add this function plus 2 more in a way that
is compatible with GLIBC.

Reported by:	ler at (Larry Rosenman)
b7810e05 dougm Dec. 31, 2021, 8:33 a.m.
Reported by:	jenkins
Fixes:	c606ab59e7f9 vm_extern: use standard address checkers everywhere