FreeBSD/src b882d21sys/conf ldscript.arm

arm: link all .rodata variants into one output section

MFC after:      1 week
DeltaFile
+1-1sys/conf/ldscript.arm
+1-11 files

FreeBSD/src 60e72ebsys/conf ldscript.arm

arm: align data section to the supersection.

Offset based data section alignment is probably not applicable to any system
other than i386.

MFC after:      4 week
DeltaFile
+1-3sys/conf/ldscript.arm
+1-31 files

FreeBSD/src d98a18dsys/conf ldscript.arm

arm: add read_frequently, read_mostly and exclusive_cache_line sections to linker script.

MFC after:      1 week
DeltaFile
+15-0sys/conf/ldscript.arm
+15-01 files

FreeBSD/src 0381f0bsys/conf ldscript.arm

arm: Fix typo in ldscript.arm.

MFC after:      1 week
DeltaFile
+1-1sys/conf/ldscript.arm
+1-11 files

FreeBSD/src 1701dfasys/conf ldscript.arm

arm: fix symbols around the .ARM.exidx section

Insert a direct assignment to the location counter to ensure that orphaned
sections cannot be emitted between the _exidx_start symbol and the .ARM.exidx
section.

Discussed with: jrtc27
MFC after:      1 week
DeltaFile
+1-0sys/conf/ldscript.arm
+1-01 files

FreeBSD/src 4b4e88dsys/arm/allwinner aw_wdog.c

aw_wdog: disable timer on attach

Otherwise it may cause system reset before the watchdog can be pat. This
is consistent with other watchdog drivers.

Tested on Allwinner D1.

Reviewed by:    manu
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D47517
DeltaFile
+3-0sys/arm/allwinner/aw_wdog.c
+3-01 files

FreeBSD/src f334c0bsys/vm vm_page.c

vm_page: use iterators in alloc_contig_domain

Restructure a bit of code to allow vm_page_alloc_contig_domain to use
pctrie iterators for lookup and insertion into the object radix tree,
to improve performance.

Reviewed by:    alc
Differential Revision:  https://reviews.freebsd.org/D47036
DeltaFile
+37-9sys/vm/vm_page.c
+37-91 files

FreeBSD/src 184d0b3share/man/man4/man4.arm aw_syscon.4, sys/arm/allwinner aw_syscon.c

aw_syscon: enable for Allwinner D1 (riscv)

Add the relevant compatible string and build glue. Update the man page
with relevant compat strings.

Reviewed by:    manu
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D47516
DeltaFile
+9-1share/man/man4/man4.arm/aw_syscon.4
+1-0sys/riscv/allwinner/files.allwinner
+1-0sys/arm/allwinner/aw_syscon.c
+11-13 files

FreeBSD/src 9ddd516sys/arm/allwinner aw_rtc.c, sys/riscv/allwinner files.allwinner

riscv: enable allwinner RTC

For the Allwinner D1 (Nehza) SBC.

This RTC driver is also a clock provider, which registers two fixed
clocks. In all the devices we currently support, the names of the clocks
are present in the "clock-output-names" property of the device tree.
This is not the case for the D1 DTS, as this property does not appear in
upstream. Therefore the clock definitions are statically assigned a
name, which is overridden when specified.

Reviewed by:    manu
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D47514
DeltaFile
+16-8sys/arm/allwinner/aw_rtc.c
+1-0sys/riscv/allwinner/files.allwinner
+1-0sys/riscv/conf/std.allwinner
+18-83 files

FreeBSD/src c5c02a1sys/conf options.riscv, sys/dev/clk/allwinner ccu_d1.c

riscv: Allwinner D1 clock and reset driver

Add the SOC_ALLWINNER_D1 config option, following other platforms.

Co-authored-by: mhorne
Reviewed by:    manu (previous version)
Sponsored by:   The FreeBSD Foundation (in part)
Differential Revision:  https://reviews.freebsd.org/D47515
DeltaFile
+1,062-0sys/dev/clk/allwinner/ccu_d1.c
+14-2sys/riscv/allwinner/files.allwinner
+4-0sys/riscv/conf/std.allwinner
+3-0sys/conf/options.riscv
+1,083-24 files

FreeBSD/src 4ef07eblib/libc/gen getentropy.c

getentropy: Add Git hashes corresponding to SVN references

getentropy has a comment about a special case to support kernels between
SVN revisions r331280 and r337999.  Add the corresponding Git hashes so
there's a usable reference after Subversion infrastructure disappears.

Sponsored by:   The FreeBSD Foundation
DeltaFile
+5-5lib/libc/gen/getentropy.c
+5-51 files

FreeBSD/src 3c113eeshare/man/man7 build.7

build: Note paths that must be absolute

PR:             282711
PR:             282737
Sponsored by:   The FreeBSD Foundation

(cherry picked from commit 75af1320f4b57fb568ec4f6df6171a0343953f4f)
(cherry picked from commit 02dc158215a69c6439e5a0809e5f9c79e62c5fd1)
(cherry picked from commit 54efa38e255184f7f7862294666b017acb093a08)
DeltaFile
+6-1share/man/man7/build.7
+6-11 files

FreeBSD/src df1b835sys/geom/mirror g_mirror.c

g_eli: update comment for bool return type

Fixes: 68eadcec0f7c8 ("Give a couple of predication functions a bool return type.")
Sponsored by: The FreeBSD Foundation

(cherry picked from commit 01e186731a141d106ff5bee5a41412e7e2582a78)
DeltaFile
+2-2sys/geom/mirror/g_mirror.c
+2-21 files

FreeBSD/src 54efa38share/man/man7 build.7

build: Note paths that must be absolute

PR:             282711
PR:             282737
Sponsored by:   The FreeBSD Foundation

(cherry picked from commit 75af1320f4b57fb568ec4f6df6171a0343953f4f)
(cherry picked from commit 02dc158215a69c6439e5a0809e5f9c79e62c5fd1)
DeltaFile
+6-1share/man/man7/build.7
+6-11 files

FreeBSD/src 2c2f741tools/tools/git mfc-candidates.lua

mfc-candidates: Improve hash expansion

`git rev-parse` is the canonical way to turn a short hash (or other
commit-ish) into a full hash.

Sponsored by:   The FreeBSD Foundation
DeltaFile
+1-1tools/tools/git/mfc-candidates.lua
+1-11 files

FreeBSD/src 834d633share/man/man9 ifnet.9

ifnet(9): Document the IFF_PALLMULTI flag

It was introduced by the recent commit [1].

1. 58f194223ab8 ifnet: Add handling for toggling IFF_ALLMULTI in ifhwioctl()

Reviewed by:    markj
MFC after:      3 days
Differential Revision:  https://reviews.freebsd.org/D47511

(cherry picked from commit f9f470f72c8718c3503874791d593997c3d751b4)
DeltaFile
+5-1share/man/man9/ifnet.9
+5-11 files

FreeBSD/src 615c9cesbin/sysctl sysctl.c sysctl.8

sysctl: Add flags to filter jail prison and vnet variables

So users do not have to contact the source code to tell whether a
variable is a jail prison / vnet one or not.

Reviewed by:    cy (previous version), markj, jamie (for #jails)
MFC after:      2 weeks
Relnotes:       yes
Differential Revision:  https://reviews.freebsd.org/D47107

(cherry picked from commit 5ec83c660acaf30c1d6b9417dbd8c80dfa9d56ac)
DeltaFile
+16-2sbin/sysctl/sysctl.c
+7-2sbin/sysctl/sysctl.8
+23-42 files

FreeBSD/src 12cbad9tools/tools/nanobsd defaults.sh fill_pkg.sh, tools/tools/nanobsd/Files/root save_cfg

nanobsd: Fix typos

Fix a number of typos in the code or comments.
Files under dhcpd, embedded, pcengines, and rescue were intentionally
omitted. These directories will be reviewed at a later date.

PR:             269884
Reviewed by:    imp, zlei
Approved by:    emaste (mentor)
MFC after:      1 month
Differential Revision:  https://reviews.freebsd.org/D47587
DeltaFile
+5-5tools/tools/nanobsd/defaults.sh
+1-1tools/tools/nanobsd/Files/root/save_cfg
+1-1tools/tools/nanobsd/fill_pkg.sh
+1-1tools/tools/nanobsd/mtree-dedup.awk
+8-84 files

FreeBSD/src 0f7b0dbtools/tools/nanobsd defaults.sh

nanobsd: Fix cust_comconsole search patterns

The current patterns are outdated, and may produce "offifexists", after
e310437971b8 ("For video consoles, only launch a getty if the device
exists.").

Fix the expressions to:

1. Disable getty(8) on the virtual syscons(4) or vt(4) terminals
   (/dev/ttyv*).
2. Enable the use of the first serial port as the system console.

Reviewed by:    imp
Approved by:    emaste (mentor)
MFC after:      1 month
Differential Revision:  https://reviews.freebsd.org/D47586
DeltaFile
+3-3tools/tools/nanobsd/defaults.sh
+3-31 files

FreeBSD/src 4223c66tools/tools/nanobsd defaults.sh

nanobsd: Use the real path for NANO_PACKAGE_DIR

As users may have the Pkg directory as a symbolic link to the NanoBSD
"package dump directory".  In commit 9af130ae8c03, cust_pkgng() was
greatly improved, however as a side effect of using a nullfs mount, the
directories and files must not be symlinks.

Fix it by using NANO_PACKAGE_DIR realpath().

PR:             269884
Reviewed by:    imp
Approved by:    emaste (mentor)
MFC after:      1 month
Differential Revision:  https://reviews.freebsd.org/D47532
DeltaFile
+1-0tools/tools/nanobsd/defaults.sh
+1-01 files

FreeBSD/src 4db04f5tools/tools/nanobsd fill_pkg.sh

nanobsd: Update fill_pkg.sh

fill_pkg.sh is a script that links a package and its dependencies from a
"package dump" directory (like /usr/ports/packages/All) to a specified
directory (NANO_PACKAGE_DIR), for cust_pkgng()[*].

Update the script by:

- Using `make package-name` instead of `make -V pkgname`
- Looking for package files with *.pkg instead of *.txz
- Adding a -c option that copies the files instead of linking them[*]

[*] After 9af130ae8c03 cust_pkgng() cannot be used with a directory
populated by fill_pkg.sh, because it uses a nullfs mount, which doesn't
follow symlinks, therefore the links inside NANO_PACKAGE_DIR will not
work.

PR:             269884
Reviewed by:    imp

    [3 lines not shown]
DeltaFile
+17-15tools/tools/nanobsd/fill_pkg.sh
+17-151 files

FreeBSD/src f6f311dshare/man/man8 nanobsd.8

nanobsd.8: Chase usage string updates

Update the manual page for NanoBSD to match its usage.

Reviewed by:    emaste, imp
Approved by:    emaste (mentor)
MFC after:      1 month
Differential Revision:  https://reviews.freebsd.org/D47505
DeltaFile
+11-3share/man/man8/nanobsd.8
+11-31 files

FreeBSD/src e5579f9tools/tools/nanobsd defaults.sh

nanobsd: Avoid read-only file system warnings

The default setting of some loader or rc variables generate warnings
because the file system is read-only:

Set the following options to avoid printing these warnings:

/boot/defaults/loader.conf:

- hostuuid_load="NO" to disable loading /etc/hostid early at boot time
- entropy_cache_load="NO" to disable loading cached entropy at boot time
- kern.random.initial_seeding.disable_bypass_warnings="1" to disable
  logging a warning if the 'bypass_before_seeding' knob is enabled
  (enabled by default) and a request is submitted prior to initial
  seeding

/etc/defaults/rc.conf:

- kldxref_enable="NO" to disable building linker.hints files with

    [13 lines not shown]
DeltaFile
+33-4tools/tools/nanobsd/defaults.sh
+33-41 files

FreeBSD/src 3c5d19atools/tools/nanobsd defaults.sh nanobsd.sh

nanobsd: Fix parallel make

The NANO_NCPU (number of CPUs) value gets ignored by the build script
when setting the NANO_PMAKE (parallel make) value.

Fix it by setting the NANO_PMAKE later in the process.

PR:             277269
Reviewed by:    imp, emaste
Approved by:    emaste (mentor)
MFC after:      1 month
Differential Revision:  https://reviews.freebsd.org/D47476
DeltaFile
+4-1tools/tools/nanobsd/defaults.sh
+0-4tools/tools/nanobsd/nanobsd.sh
+4-52 files

FreeBSD/src 999f288tools/tools/nanobsd defaults.sh

nanobsd: Add missing options to usage()

-B suppress installs (both kernel and world)
-I build disk image from existing build/install
-W suppress installworld

PR:             277269
Reviewed by:    imp, emaste
Approved by:    emaste (mentor)
MFC after:      1 month
Differential Revision:  https://reviews.freebsd.org/D47475
DeltaFile
+4-1tools/tools/nanobsd/defaults.sh
+4-11 files

FreeBSD/src 566c039lib/libsys fork.2

fork: Document _Fork (and fork) as POSIX 2024

Also remove some information from HISTORY that is no longer needed (and
could be confusing), now that _Fork is part of a standard.

Reported by:    kib
Reviewed by:    imp, kib
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D47588
DeltaFile
+7-7lib/libsys/fork.2
+7-71 files

FreeBSD/src 9b2226esys/ufs/ffs ffs_softdep.c

SU+J: all writes to SU journal must be exempt from runningbufspace throttling

PR:     282449

(cherry picked from commit 46f02c4282ff76b66579c83be53ef441ea522536)
DeltaFile
+7-1sys/ufs/ffs/ffs_softdep.c
+7-11 files

FreeBSD/src ff7de7asys/kern vfs_bio.c

bufwrite(): adjust the comment

PR:     282449

(cherry picked from commit d0b41249bfbe4481baec8f1659468ffbb30388ab)
DeltaFile
+3-5sys/kern/vfs_bio.c
+3-51 files

FreeBSD/src 9d9a14csys/kern vfs_bio.c

bufwrite(): style

(cherry picked from commit c1d93f81e49c5c32262eefcd087b9c5582e0f83c)
DeltaFile
+10-13sys/kern/vfs_bio.c
+10-131 files

FreeBSD/src bcd5f95sys/conf newvers.sh

14.2: Update to BETA3

Approved by:    re (implicit)
Sponsored by:   Amazon
DeltaFile
+1-1sys/conf/newvers.sh
+1-11 files