d4accf60 imp Sept. 23, 2022, 9:07 p.m.
strchr returns a pointer to the ',', so if the first option in the list
isn't available, we need to step over the , to look at the next
option. So if kern.cfg.order="acpi,fdt" and we have no acpi, we'd loop
forever with order=',fdt'.

Sponsored by:		Netflix
Reviewed by:		andrew, jhb
Differential Revision:	https://reviews.freebsd.org/D36682
cgit
8232a1ed brooks Sept. 23, 2022, 8:20 p.m.
The maximum CPU number of a cpuset_t is determined by CPU_SETSIZE. In
the kernel this is MAXCPU, but in userspace it is CPU_MAXSIZE unless
CPU_SETSIZE is defined before including sys/_cpuset.h. CPU_MAXSIZE is
256 and in userspace MAXCPU is generally 1 because it being set to a
larger MD value is gated on SMP being defined (not generally the case in
userspace).

Reported by:	Nathaniel Wesley Filardo <nwfilardo@gmail.com>
Reviewed by:	cem, jhb
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D36679
cgit
62a7dae4 imp Sept. 23, 2022, 3:53 p.m.
Traditionally, we've used /boot/msdos for the MBR mount point for the SD
images that we produced. For GPT and bsdinstall, we've used
/boot/efi. Migrate to using /boot/efi for MBR as well and add a
/boot/msdos -> /boot/efi symlink for compatibility (which may disappear
before 14.0, but will remain on the stable branches).

When we first created the arm images, there was no EFI booting and the
FAT partion on an MBR image was used to hold the firmware, uboot.bin,
SoC config files and ubldr.  When we transitioned to uboot with EFI, we
put the loader files in the same partition. Later we standardized on
/boot/efi at about the same time we added GPT support to the RE produced
images. We left the MRB case as /boot/msdos for legacy reasons and since
it wasn't always EFI. Later, we dropped support of non-EFI booting on
the RE produced images, so the duality of /boot/msdos diminished even
more. Since so little secondary meaning remains, putting it all in
/boot/efi standardizes the location and reflects the RE images
better as using efi-only booting.

In addition, always label the msdosfs partion 'efi'. While a small
misnomer on some systems that store other files in the ESP, it was
requested in review for more consistency for similar reasons to the
mountpoint rename. There was no way to have an 'alias' or 'second label'
here, so this breaks compatibility. Since the images are self-contained,
this was judged to be an acceptable change.

Sponsored by:		Netflix
Reviewed by:		manu, allanjude, emaste, gjb
Differential Revision:	https://reviews.freebsd.org/D36635
cgit
9ba957e4 andrew Sept. 23, 2022, 2:28 p.m.
Reported by:	jrtc27
Sponsored by:	Innovate UK
cgit
7a5d47de andrew Sept. 23, 2022, 2:28 p.m.
Reorder statements to make them consistant between the ACPI and FDT
GICv3 attachments.

Reported by:	jrtc27
Sponsored by:	Innovate UK
cgit
839374bb andrew Sept. 23, 2022, 2:28 p.m.
As with the GICv1/2 driver teach the GICv3 driver to translate memory
ranges of children. This allows us to create a common
bus_alloc_resource implementation for bot hACPI and FDT attachments.

Sponsored by:	The FreeBSD Foundation
cgit
bdc9ece9 andrew Sept. 23, 2022, 2:28 p.m.
This should be common for both ACPI and FDT. Move this to the common
part of the driver.

Sponsored by:	The FreeBSD Foundation
cgit
6fc6896c andrew Sept. 23, 2022, 2:28 p.m.
This will be used to reduce code duplication between the ACPI and FDT
attachments.

Sponsored by:	The FreeBSD Foundation
cgit
f5027467 hselasky Sept. 23, 2022, 11:42 a.m.
Make sure the VNET is set before using this macro.

Fixes:		efe58855f3ea2cfc24cb705aabce3bc0fe1fb6d5
PR:		266054
MFC after:	1 week
Sponsored by:	NVIDIA Networking
cgit
f968cb14 pauamma Sept. 23, 2022, 8:32 a.m.
Fixes:	eec02418d83b Remove support for FDDI and token ring media types in userland utilities.

Reviewed by:	brooks, gjb, imp

Approved by:	brooks (src), gjb (mentor, src), imp (src)

Differential Revision: https://reviews.freebsd.org/D36668

MFC after:	3 days
cgit
00d8a28f cy Sept. 22, 2022, 10:38 p.m.
The single consumer of printpool_live() ignores the return code.
Avoid wasting resources on this.

MFC after:	2 weeks
cgit
5568c8b2 cy Sept. 22, 2022, 10:38 p.m.
When an internal or other error occurs during the listing of a pool,
return an error code when extiting ippool(8). Printing an error to
stderr without returning an error code is useless in shell scripts.

MFC after:	2 weeks
cgit
7531c434 cy Sept. 22, 2022, 10:38 p.m.
Add an ippool(8) option to dump a copy of the inm-memory ippool tables
in an ippool(5) format so that it can be reloaded using ippool -f.

MFC after:	2 weeks
cgit
7e58c8aa maxim Sept. 22, 2022, 10:35 p.m.
PR:	266554
cgit
6bddde30 jhb Sept. 22, 2022, 10:10 p.m.
Sponsored by:	DARPA
cgit