FreeBSD/src 0135101share/mk meta.autodep.mk

meta.autodep.mk do not override start_utc

Update meta.autodep.mk
If included at level 0 it is important not to override start_utc
DeltaFile
+3-1share/mk/meta.autodep.mk
+3-11 files

FreeBSD/src d7ac426sys/sys elf_common.h

elf_common.h: Add STO_AARCH64_VARIANT_PCS

This is used to mark symbols that use a variant procedure call with
a different calling convention to the main ABI.

Reviewed by:    kib, imp
Sponsored by:   Arm Ltd
Differential Revision:  https://reviews.freebsd.org/D44868
DeltaFile
+3-0sys/sys/elf_common.h
+3-01 files

FreeBSD/src 2c35c86. Makefile.inc1

showconfig: Set MACHINE for src.opts.mk

Also set MACHINE and MACHINE_ARCH when reading config options from
src.opts.mk. This ensures any machine-dependent options are reported
correctly.

Reviewed by:    emaste, imp
Sponsored by:   Arm Ltd
Differential Revision:  https://reviews.freebsd.org/D44838
DeltaFile
+2-1Makefile.inc1
+2-11 files

FreeBSD/src 9d40492sys/arm64/arm64 efirt_machdep.c minidump_machdep.c, sys/arm64/include vmparam.h

arm64: Check DMAP address is valid in PHYS_IN_DMAP

When checking if a physical address is in the DMAP region we assume
all physical addresses between DMAP_MIN_PHYSADDR and DMAP_MAX_PHYSADDR
are able to be accesses through the DMAP. It may be the case that
there is device memory in this range that shouldn't be accessed through
the DMAP mappings.

Add a check to PHYS_IN_DMAP that the translated virtual address is a
valid kernel address. To support code that already checks the address
is valid add PHYS_IN_DMAP_RANGE.

PR:             278233
Reviewed by:    alc, markj
Sponsored by:   Arm Ltd
Differential Revision:  https://reviews.freebsd.org/D44677
DeltaFile
+15-3sys/arm64/include/vmparam.h
+2-7sys/arm64/arm64/efirt_machdep.c
+4-3sys/arm64/arm64/minidump_machdep.c
+1-1sys/arm64/arm64/machdep.c
+22-144 files

FreeBSD/src ef80df0sys/arm64/vmm vmm_hyp_exception.S

arm64/vmm: Ensure the tlbi has completed

Ensure the TLB is invalidated before enabling the EL2 MMU. Without
this the TLB may be in an inconsistant state leading to a possible
exception when enabling the MMU.

PR:             277559
Reviewed by:    markj
Sponsored by:   Arm Ltd
Differential Revision:  https://reviews.freebsd.org/D44799
DeltaFile
+3-0sys/arm64/vmm/vmm_hyp_exception.S
+3-01 files

FreeBSD/src a913f3a. .cirrus.yml

Cirrus-CI: bump Clang versions to 16 and 17

Clang/LLVM 17 is currently the in-tree default compiler, so use it as
the default Cirrus-CI toolchain.  Clang/LLVM 18 is coming soon and needs
to be added here, but I ran into trouble with llvm18-lite package
availability so will look at that later.

Reviewed by:    dim (earlier), Jose Luis Duran
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D44162

(cherry picked from commit 51c6bf0478bd331225121eb4a0a60510cc3920b1)
(cherry picked from commit adc61137fdf7b31b5f32354b970a8d824347b0de)
DeltaFile
+14-14.cirrus.yml
+14-141 files

FreeBSD/src 1a4e512sys/dev/acpica acpi_battery.c

acpi_battery: avoid divide-by-zero when no devices have capacity info

On laptops with builtin batteries, disconnecting the battery may show up
as a battery without any capacity information. (The theory is that one
is disconnecting the cells but the electronics identifying the battery
are still connected.) As a result, the loop over all batteries in
acpi_battery_get_battinfo results in total_lfcap == 0.

So, just check that total_lfcap is non-zero to avoid a division by zero
(triggerable by sysctl hw.acpi.battery).

Reported by:    Stefano Marinelli
Tested by:      Stefano Marinelli
Reviewed by:    emaste
Differential Revision: https://reviews.freebsd.org/D44818

(cherry picked from commit 2e850b832f5d2adb9b230d191277d67c00caaab9)
(cherry picked from commit 788987e034b1c73d779a3aa179f79f672bbdb366)
DeltaFile
+8-1sys/dev/acpica/acpi_battery.c
+8-11 files

FreeBSD/src 71b2ba9usr.sbin/bhyve bhyve.8

bhyve.8: Document arm64 support

- Mention the options that are amd64-only.
- Provide a minimal example for booting an arm64 guest.

Reviewed by:    corvink
Sponsored by:   Innovate UK
Differential Revision:  https://reviews.freebsd.org/D44738
DeltaFile
+34-6usr.sbin/bhyve/bhyve.8
+34-61 files

FreeBSD/src 63d5f8cshare/examples/bhyve vmrun.sh

vmrun.sh: Stop passing -A to bhyve

It's a no-op now.

Sponsored by:   Innovate UK
DeltaFile
+1-1share/examples/bhyve/vmrun.sh
+1-11 files

FreeBSD/src 1075847usr.sbin/bhyve bhyve.8, usr.sbin/bhyve/amd64 bhyverun_machdep.c

bhyve.8: Remove mention of the -A flag

It is a no-op on amd64 now and is not implemented on arm64, so let's
remove mention of it altogether so as to reduce confusion for arm64
users.

Reviewed by:    corvink, jhb
Sponsored by:   Innovate UK
Differential Revision:  https://reviews.freebsd.org/D44737
DeltaFile
+5-8usr.sbin/bhyve/bhyve.8
+1-2usr.sbin/bhyve/amd64/bhyverun_machdep.c
+6-102 files

FreeBSD/src 4b79491lib/geom/eli geli.8

geli.8: add some notes regarding performance tuning

MFC after:      1 week
Sponsored by:   Axcient
Reviewed by:    markj
Differential Revision: https://reviews.freebsd.org/D44908
DeltaFile
+41-1lib/geom/eli/geli.8
+41-11 files

FreeBSD/src 8ef2c02sys/kern subr_busdma_bufalloc.c

busdma: uma_zcreate() does not fail

No functional change intended.

MFC after:      1 week
DeltaFile
+0-4sys/kern/subr_busdma_bufalloc.c
+0-41 files

FreeBSD/src 1e607a0sys/kern kern_khelp.c

khelp: uma_zcreate() does not fail

No functional change intended.

MFC after:      1 week
DeltaFile
+0-4sys/kern/kern_khelp.c
+0-41 files

FreeBSD/src 78c51dbsys/fs/udf udf_vfsops.c

udf: uma_zcreate() does not fail

While here remove an old comment regarding preallocation; it appears to
refer to an optimization that is almost certainly irrelevant at this
point.

No functional change intended.

MFC after:      1 week
DeltaFile
+0-11sys/fs/udf/udf_vfsops.c
+0-111 files

FreeBSD/src b6a0ed7sys/dev/wg if_wg.c wg_cookie.c

wg: uma_zcreate() does not fail

No functional change intended.

MFC after:      1 week
DeltaFile
+3-3sys/dev/wg/if_wg.c
+2-3sys/dev/wg/wg_cookie.c
+5-62 files

FreeBSD/src 9640649sys/dev/dpaa if_dtsec_rm.c

dpaa: uma_zcreate() does not fail

No functional change intended.

MFC after:      1 week
DeltaFile
+0-4sys/dev/dpaa/if_dtsec_rm.c
+0-41 files

FreeBSD/src bb2ab7asys/netgraph ng_pipe.c

ng_pipe: Remove node when all hooks are disconnected

This is the behavior described in the man page.

Signed-off-by: Martin Vahlensieck <git at academicsolutions.ch>

Discussed with: glebius
Reviewed by:    markj
MFC after:      2 weeks
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1181
DeltaFile
+7-0sys/netgraph/ng_pipe.c
+7-01 files

FreeBSD/src a3ecf8csys/netgraph ng_pipe.c

ng_pipe: Replace deprecated random() with prng32_bounded()

Signed-off-by: Martin Vahlensieck <git at academicsolutions.ch>

MFC after:      2 weeks
Reviewed by:    markj
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1181
DeltaFile
+3-2sys/netgraph/ng_pipe.c
+3-21 files

FreeBSD/src d44c780sys/netgraph ng_pipe.c

ng_pipe: Do not panic when memory allocations fail

Signed-off-by: Martin Vahlensieck <git at academicsolutions.ch>

Reviewed by:    markj
MFC after:      2 weeks
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1181
DeltaFile
+30-15sys/netgraph/ng_pipe.c
+30-151 files

FreeBSD/src 8512311sys/netgraph ng_pipe.c

ng_pipe: Fix whitespace

Signed-off-by: Martin Vahlensieck <git at academicsolutions.ch>

Reviewed by:    markj
MFC after:      2 weeks
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1181
DeltaFile
+8-8sys/netgraph/ng_pipe.c
+8-81 files

FreeBSD/src b8e171bshare/misc organization.dot

organization.dot: Fix typos

MFC after:      3 days

(cherry picked from commit 806bd5e00658e66a5625397335cafa4748112f14)
DeltaFile
+2-2share/misc/organization.dot
+2-21 files

FreeBSD/src d7deb68sys/arm/arm gic.c

arm: Fix a typo in a KASSERT message

- s/resoure/resource/

(cherry picked from commit 178cf4b9db4bb6726e845b10923788cf4e7a5ef0)
DeltaFile
+1-1sys/arm/arm/gic.c
+1-11 files

FreeBSD/src d94c239sys/arm/freescale/vybrid vf_sai.c

freescale: Fix a typo in a source code comment

- s/cant/can't/

(cherry picked from commit 26f6c148bce2d6734a07ea621616724f1e76e4fd)
DeltaFile
+1-1sys/arm/freescale/vybrid/vf_sai.c
+1-11 files

FreeBSD/src 87f5c26sys/geom geom_subr.c

geom(4): Fix a typo in a source code comment

- s/cant/can't/

(cherry picked from commit c0a01ee83d3d4749ac9e7e46d8d47b991c65537f)
DeltaFile
+1-1sys/geom/geom_subr.c
+1-11 files

FreeBSD/src 656ec7bsys/kern uipc_domain.c

uipc_domain: Fix a typo in a source code comment

- s/cant/can't/

(cherry picked from commit 9576fc16ca6cb360e085735dfaf891ae6d7f6181)
DeltaFile
+1-1sys/kern/uipc_domain.c
+1-11 files

FreeBSD/src e03c9c3sys/arm/arm gic.c

arm: Fix a typo in a KASSERT message

- s/resoure/resource/

(cherry picked from commit 178cf4b9db4bb6726e845b10923788cf4e7a5ef0)
DeltaFile
+1-1sys/arm/arm/gic.c
+1-11 files

FreeBSD/src c64f93bsys/arm/freescale/vybrid vf_sai.c

freescale: Fix a typo in a source code comment

- s/cant/can't/

(cherry picked from commit 26f6c148bce2d6734a07ea621616724f1e76e4fd)
DeltaFile
+1-1sys/arm/freescale/vybrid/vf_sai.c
+1-11 files

FreeBSD/src 67e24edsys/geom geom_subr.c

geom(4): Fix a typo in a source code comment

- s/cant/can't/

(cherry picked from commit c0a01ee83d3d4749ac9e7e46d8d47b991c65537f)
DeltaFile
+1-1sys/geom/geom_subr.c
+1-11 files

FreeBSD/src 64dfe0asys/kern uipc_domain.c

uipc_domain: Fix a typo in a source code comment

- s/cant/can't/

(cherry picked from commit 9576fc16ca6cb360e085735dfaf891ae6d7f6181)
DeltaFile
+1-1sys/kern/uipc_domain.c
+1-11 files

FreeBSD/src a6ee6b6sys/arm/arm gic.c

arm: Fix a typo in a KASSERT message

- s/resoure/resource/

(cherry picked from commit 178cf4b9db4bb6726e845b10923788cf4e7a5ef0)
DeltaFile
+1-1sys/arm/arm/gic.c
+1-11 files