r346355 kib April 18, 2019, 3:31 p.m.
Sponsored by:	Mellanox Technologies
MFC after:	1 week
r346354 imp April 18, 2019, 3:19 p.m.
compat shims for building bootstrap tools that use new features
on systems too old to have those new features. The world view
for this part of the build is unique to the whole build process
and continuty of design for new compat shims help this library
remain viable.
r346353 imp April 18, 2019, 3:19 p.m.
Make it clear we're loading from UFS.
r346352 kib April 18, 2019, 2:18 p.m.
On some machines, DMAR contexts must be created before all devices
under the scope of the corresponding DMAR unit are enumerated.
Current code has two problems with that:
- scope lookup returns NULL device_t, which causes to skip creating a
  context with RMRR, which is fatal for the affected device.
- calculation of the final pci dbsf address fails if any bridge in the
  scope is not yet enumerated, because code relies on pcib_get_bus().

Make creation of contexts work either with device_t, or with DMAR PCI
scope paths.  Scope provides enough information to infer context
address, and it is directly matched against DMAR tables scopes.

When calculating bus addresses for the scope or device, use direct
pci_cfgregread(PCIR_SECBUS_1) to get the secondary bus number, instead
of pcib_get_bus().

The issue was observed on HP Gen servers, where iLO PCI devices are
located behind south bridge switch.  Turning on translation without
satisfying RMRR requests caused iLO to mostly hang, up to the level of
being unusable to control the server.

While there, remove hw.dmar.dmar_match_verbose tunable, and make the
normal logging under bootverbose useful and sufficient to diagnose
DRHD and RMRR parsing and matching.

Sponsored by:	Mellanox Technologies
MFC after:	1 week
r346351 kib April 18, 2019, 2:03 p.m.
Sponsored by:	Mellanox Technologies
MFC after:	1 week
r346350 kib April 18, 2019, 2:02 p.m.
Sponsored by:	Mellanox Technologies
MFC after:	1 week
r346349 kp April 18, 2019, 11:37 a.m.
Now that we don't hold a lock during DIOCRSETTFLAGS memory allocation we can

MFC after:	1 week
Event:		Aberdeen hackathon 2019
Pointed out by:	glebius@
r346348 thj April 18, 2019, 11:06 a.m.
FreeBSD does not set the pid field in the pfloghdr struct. This field is
populated on other platforms, document this to save people from trying
to use this field.

Event:	Aberdeen hackathon 2019
Reviewed by:	kp, bcr, bz
Approved by:	bz (mentor)
Differential Revision:	https://reviews.freebsd.org/D19952
r346347 kp April 18, 2019, 10:54 a.m.
The test should fail if pf rules can't be set. This is helpful both
while writing tests and to verify that pfctl works as expected.

MFC after:	1 week
Event:		Aberdeen hackathon 2019
r346346 imp April 18, 2019, 5:40 a.m.
Add an interface to remove / delete UEFI variables.
r346345 imp April 18, 2019, 5:37 a.m.
efi_setenv allows any UEFI variable to be set.
r346341 cy April 18, 2019, 1:02 a.m.
workaround the following error:

/usr/src/contrib/elftoolchain/strings/strings.c:198:55: error: use of
undeclared identifier
'FA_OPEN' fa = fileargs_init(argc, argv, O_RDONLY, 0, &rights, FA_OPEN);

Reported by:	O. Hartmann <ohartmann@walstatt.org>
Reported by:	Michael Butler <imb@protected-networks.net>
Reported by:	gjb@ & cy@ (implicit)
Reviewed by:	emaste@
Noted by:	rgrimes@
r346334 manu April 17, 2019, 9:45 p.m.
Due to three conditions the codec driver for Allwinner A10/A20 and H3/H5 did not work properly here:

    Wrong bit position for the analog audio reset
    Hardware Reset of codec was not de-asserted correctly
    Linux DTS file did not contain the address of the analog register the way as the driver was expecting it.

This patch proposes fixes for those three parts.

Submitted by:	freebsdnewbie@freenet.de (Manuel Stühn)
MFC after:	1 month
Differential Revision:	https://reviews.freebsd.org/D19910
r346332 manu April 17, 2019, 8:09 p.m.
Those functions are helpers to work on graph bindings.
graphs are mostly use with video related devices.
See https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/graph.txt?id=4436a3711e3249840e0679e92d3c951bcaf25515

MFC after:	1 month
Differential Revision:	https://reviews.freebsd.org/D19877
r346330 emaste April 17, 2019, 7:24 p.m.
Sponsored by:	The FreeBSD Foundation