r368197 glebius Nov. 30, 2020, 9:05 p.m.
r368196 mmacy Nov. 30, 2020, 8:58 p.m.
Reported by: Jessica Clarke
r368195 mmacy Nov. 30, 2020, 8:54 p.m.
r368194 markj Nov. 30, 2020, 8:53 p.m.
Otherwise qat_detach() may attempt to deregister an unrelated crypto
driver if an error occurs in qat_attach() before crypto_get_driverid()
is called, since 0 is a valid driver ID.

MFC after:	3 days
Sponsored by:	Rubicon Communications, LLC (Netgate)
r368193 markj Nov. 30, 2020, 8:53 p.m.
If firmware_get() fails to find a loaded firmware image, it searches for
candidate KLDs to load.  It will search for a KLD containing a module
with the same name as the requested image, and failing that, will load a
KLD with the same basename as the requested image.

The module name given by fw_stub.awk is simply "<mangled KLD name>_fw".

QAT firmware modules contain two images, neither of which match either
of the names used during lookup, so automatic loading of firmware images
after mountroot does not work.  Work around this by using the same
string for the first image name and for the KLD basename.

MFC after:	3 days
Sponsored by:	Rubicon Communications, LLC (Netgate)
r368192 dim Nov. 30, 2020, 7:18 p.m.
* libzfs.so was bumped from 3 to 4 in r364746
* libcap_random.so.1 was removed in r350307, but its .so symlink was not
r368191 kib Nov. 30, 2020, 5:03 p.m.
BA_CLRBUF specifies that existing context of the block will be
completely overwritten by caller, so there is no reason to spend io
fetching existing data.  We do the same for indirect blocks.

Reported by:	tmunro
Reviewed by:	mckusick, tmunro
Tested by:	pho, tmunro
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D27353
r368190 kib Nov. 30, 2020, 5 p.m.
We need at least thr_malloc ready.  The situation is possible e.g. in case
of libthr being listed in DT_NEEDED before some of its consumers.

Reported and tested by:	lev
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
r368189 markj Nov. 30, 2020, 4:18 p.m.
Allocation of a bucket can trigger a cross-domain free in the bucket
zone, e.g., if the per-CPU alloc bucket is empty, we free it and get
migrated to a remote domain.  This can lead to deadlocks since a bucket
zone may allocate buckets from itself or a pair of bucket zones could be
allocating from each other.

Fix the problem by dropping the cross-domain lock before allocating a
new bucket and handling refill races.  Use a list of empty buckets to
ensure that we can make forward progress.

Reported by:	imp, mjg (witness(9) warnings)
Discussed with:	jeff
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D27341
r368188 olivier Nov. 30, 2020, 3:04 p.m.
- remove unwanted whitespaces
- remove useless function ifphys()
- fix the Makefile to install it into /usr/bin

PR:		250133
Reviewed by:	glebius, maxim
Approved by:	glebius
Differential Revision:	https://reviews.freebsd.org/D27155
r368187 mmel Nov. 30, 2020, 2:51 p.m.
Reported by:	kp, tuexen, jenkins, and many others
MFC with:	r368167
r368186 manu Nov. 30, 2020, 2:49 p.m.
This not not useful if you are not debuging mmccam
r368185 manu Nov. 30, 2020, 2:48 p.m.
Add a new hw.aw_mmc.debug sysctl to help debugging the driver.
Bit 0 will debug card changes (removal, insertion, power up/down)
Bit 1 will debug ios changes
Bit 2 will debug interrupts received
Bit 3 will debug commands sent
r368184 tsoome Nov. 30, 2020, 11:45 a.m.
The built in 8x16 font may be way too small with large framebuffer
resolutions, to improve readability, use loader provied font.
r368182 hselasky Nov. 30, 2020, 9:47 a.m.
MFC after:	1 week
Sponsored by:	Mellanox Technologies // NVIDIA Networking