FreeBSD/src 5b5a10e. .git-blame-ignore-revs

.git-blame-ignore-revs: Fix hash for sys/kern/kern_cpu.c whitespace changes

Really fill in the hash of the MFCed commit, removing the placeholder
I forgot to update before commit.

This is a direct commit to stable/14.

Fixes:          83e087e0ea21 (".git-blame-ignore-revs: sys/kern/kern_cpu.c whitespace changes")
Sponsored by:   The FreeBSD Foundation
DeltaFile
+1-1.git-blame-ignore-revs
+1-11 files

FreeBSD/src 815c439. .git-blame-ignore-revs

.git-blame-ignore-revs: Fix hash for sys/kern/kern_cpu.c whitespace changes

Really fill in the hash of the MFCed commit, removing the placeholder
I forgot to update before commit.

This is a direct commit to stable/15.

Fixes:          bd13516d400b (".git-blame-ignore-revs: sys/kern/kern_cpu.c whitespace changes")
Sponsored by:   The FreeBSD Foundation
DeltaFile
+1-1.git-blame-ignore-revs
+1-11 files

FreeBSD/src f594f06sys/dev/acpica acpi_cpu.c

acpi_cpu(4): Call ACPI_GET_FEATURES() on a reset 'features' variable

This is to prevent child drivers from using the features returned by
previous drivers (in an arbitrary order).  None of the existing ones do
that, so this is purely defensive.

MFC after:      2 weeks
Sponsored by:   The FreeBSD Foundation

(cherry picked from commit 664ad9ac4c9047d29d5f37d43174e1b469e2ec80)
DeltaFile
+2-1sys/dev/acpica/acpi_cpu.c
+2-11 files

FreeBSD/src 45254c2sys/x86/include apicvar.h, sys/x86/x86 local_apic.c

x86/local_apic.c: Fiddle with thermal LVT slot only if supported

The thermal LVT slot does not necessarily exist.

According to Intel's Software Developers Manual, for Intel processors
supporting 64-bit operation (amd64), probably even the earliest ones
should have a local APIC with such a slot (the slot was introduced with
Pentium 4 and Xeon processors according to the manual, and the 64-bit
implementation in some later versions of them).  AMD's Architecture
Programmer's Manual also seems to imply that all AMD processors
supporting amd64 should have the slot too.  So this change may not be
needed when i386's code is dropped, but it does not hurt to have it, and
it might ease possible MFCs.

Change the signature of lapic_enable_thermal() so that it can report
failure (if there is no local APIC or if there is no thermal LVT slot).

Reviewed by:    bnovkov, kib
MFC after:      2 weeks

    [4 lines not shown]
DeltaFile
+16-6sys/x86/x86/local_apic.c
+1-1sys/x86/include/apicvar.h
+17-72 files

FreeBSD/src f02f552sys/i386/include pcpu.h

i386: provide PCPU pc_small_core for amd64 compat

Provide pc_small_core for i386 too to fix an i386 build break from x86
code referring to it.  It won't be set.

Reviewed by:    aokblast, kib
Fixes:  7b26353a59d6 ("hwpstate_intel: Disable package control on hybrid CPU")
Differential Revision:  https://reviews.freebsd.org/D58335

(cherry picked from commit 29d15d658d175139196d821b123c30a5b58e135e)
DeltaFile
+2-1sys/i386/include/pcpu.h
+2-11 files

FreeBSD/src 49f19f3sys/i386/i386 apic_vector.S

i386: supply thermal interrupt handler

This fixes a build break for i386.

Reviewed by:    kib, olce, Koine Yuusuke <koinec at yahoo.co.jp>
Fixes:  87ba088fa310 ("x86/local_apic.c: Add support for installing a thermal interrupt handler")
Differential Revision:  https://reviews.freebsd.org/D58332

(cherry picked from commit cb325dcedfa291c9bfe350a513694df3776a17a4)
DeltaFile
+15-0sys/i386/i386/apic_vector.S
+15-01 files

FreeBSD/src 93dbde1sys/x86/x86 local_apic.c

x86/local_apic.c: Factor out version read and max LVT slot computation

This makes the code slightly more compact and easier to read.

No functional change intended.

Reviewed by:    bnovkov
MFC after:      2 weeks
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D58110

(cherry picked from commit 060ecf296664fd150328ac6dcdc24764a427bc3a)
DeltaFile
+36-36sys/x86/x86/local_apic.c
+36-361 files

FreeBSD/src de695c6sys/x86/include apicvar.h, sys/x86/x86 local_apic.c

x86/local_apic.c: Thermal interrupt support: Additional style fixes

Rename handler function type 'lapic_thermal_handle_function' to the
shorter 'lapic_thermal_handler_t'.  Move it closer to the function
declaration block where it is used.  Make it a true function type (no
pointer) and add explicit pointer marks on usage.

Rename 'lapic_thermal_function_value' to the more immediately clear
'lapic_thermal_function_arg'.  In lapic_thermal_enable(), use 'func_arg'
as the argument name for the handler argument, which at least refers to
function 'func', rather than the generic 'value'.

Finally, rename the global handler variable from
'lapic_thermal_function_ptr' to the shorter 'lapic_thermal_function'
(dynamic functions can be referenced only through a pointer).

MFC with:       87ba088fa310 ("x86/local_apic.c: Add support for installing a thermal interrupt handler")
Sponsored by:   The FreeBSD Foundation

(cherry picked from commit e1f4a8cb8656e64a1fe2b1ab519821b14c4985a0)
DeltaFile
+11-11sys/x86/x86/local_apic.c
+4-2sys/x86/include/apicvar.h
+15-132 files

FreeBSD/src 387646csys/conf files.riscv files.arm64

files: riscv, arm64: Remove redundant 'ofw_cpu.c'

Should have been removed when that line was moved from 'files.arm' to
'files'.

Fixes:          14e1a2cd295d ("Move ofw_cpu file to the main files conf file.")
MFC after:      2 weeks
Event:          Halifax Hackathon 202606
Location:       Seat 36K in AC667, over Maine near Canadian border
Sponsored by:   The FreeBSD Foundation

(cherry picked from commit 10213f01773f22ab948ec1e87c880b1d19a1fc45)
DeltaFile
+0-1sys/conf/files.riscv
+0-1sys/conf/files.arm64
+0-22 files

FreeBSD/src 272c6a3sys/amd64/amd64 apic_vector.S, sys/x86/include apicvar.h

x86/local_apic.c: Add support for installing a thermal interrupt handler

The thermal interrupt is initially masked.

Thermal interrupt handling is enabled by calling lapic_enable_thermal(),
which installs a (single) handler.

[olce: Wrote the commit message.]

Reviewed by:    kib, olce
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D44454

(cherry picked from commit 87ba088fa3108dd180008a04f25760ec71476c87)
DeltaFile
+72-2sys/x86/x86/local_apic.c
+8-4sys/x86/include/apicvar.h
+9-0sys/amd64/amd64/apic_vector.S
+89-63 files

FreeBSD/src 952eb3dbin/ps ps.1

ps.1: Fix broken comment line

While here, remove the long-unused dash in the first line.

Reviewed by:    ziaee, olce
Fixes:          ddf144a04b53 ("ps.1: Revamp: Explain general principles, update to match reality")
MFC after:      1 day
Differential Revision:  https://reviews.freebsd.org/D58038

(cherry picked from commit 759ce9a2b38e1de70c14c81dee7e245bf0bc6b94)
DeltaFile
+2-2bin/ps/ps.1
+2-21 files

FreeBSD/src f7b8a6fsys/dev/acpica acpi_hpet.c, sys/x86/include init.h

acpi_hpet(4): Remove unused 'acpi_hpet_disabled' boolean

Same reason as for the previous commit to acpi_cpu(4).  This boolean is
not used anywhere.  Disabling acpi_hpet(4) can be done through the
regular ACPI disable mechanism (using the 'debug.acpi.disabled' tunable,
see acpi_disabled()).

Reviewed by:    emaste (implicit)
Fixes:          ac3ede5371af ("x86/xen: remove PVHv1 code")
MFC after:      3 days
Event:          Halifax Hackathon 202606
Location:       Dalhousie CS Faculty building
Sponsored by:   The FreeBSD Foundation

(cherry picked from commit 25df388574ac1d295f4014825de0df1d65cbdc53)
DeltaFile
+1-4sys/dev/acpica/acpi_hpet.c
+0-3sys/x86/include/init.h
+1-72 files

FreeBSD/src f58b90fsys/dev/acpica acpi_timer.c, sys/x86/include init.h

acpi_timer(4): Remove unused 'acpi_timer_disabled' boolean

Same reason as for the previous commit to acpi_cpu(4).  This boolean is
not used anywhere.  Disabling acpi_timer(4) can be done through the
regular ACPI disable mechanism (using the 'debug.acpi.disabled' tunable,
see acpi_disabled()).

Reviewed by:    emaste (implicit)
Fixes:          ac3ede5371af ("x86/xen: remove PVHv1 code")
MFC after:      3 days
Event:          Halifax Hackathon 202606
Location:       Dalhousie CS Faculty building
Sponsored by:   The FreeBSD Foundation

(cherry picked from commit ad26a56cf2f55967cc73d04a6ea17c27892d3141)
DeltaFile
+1-5sys/dev/acpica/acpi_timer.c
+0-3sys/x86/include/init.h
+1-82 files

FreeBSD/src bd13516. .git-blame-ignore-revs

.git-blame-ignore-revs: sys/kern/kern_cpu.c whitespace changes

Event:          Halifax Hackathon 202606
Location:       jrm@'s kitchen
Sponsored by:   The FreeBSD Foundation

(cherry picked from commit 5f43a84d049ec3451c7c5fa5b4f00a299d5f4c34)
DeltaFile
+2-0.git-blame-ignore-revs
+2-01 files

FreeBSD/src ec59a50sys/dev/acpica acpi_cpu.c, sys/x86/include init.h

acpi_cpu(4): Remove unused 'acpi_cpu_disabled' boolean

It is not used anywhere.  Disabling acpi_cpu(4) can be done through the
regular ACPI disable mechanism (using the 'debug.acpi.disabled' tunable,
see acpi_disabled()).

Reviewed by:    emaste, obiwac
Fixes:          ac3ede5371af ("x86/xen: remove PVHv1 code")
MFC after:      3 days
Event:          Halifax Hackathon 202606
Location:       Dalhousie CS Faculty building
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D57888

(cherry picked from commit 98a77972381c6bb5ceda375fd1db7dccb3a1c89e)
DeltaFile
+1-4sys/dev/acpica/acpi_cpu.c
+0-3sys/x86/include/init.h
+1-72 files

FreeBSD/src d0fc89bsys/kern sched_ule.c

sched_ule: Fix off by one in preempt_thresh definition

Since 'preempt_thresh' is set to PRI_MIN_KERN by default, and comparison
of the considered thread's priority with that threshold is done with
'<=', PRI_MIN_KERN threads actually can preempt other threads, contrary
to other non-interrupt kernel ones (between PRI_MIN_KERN + 1 and
PRI_MAX_KERN).

So, replace the comparison operator '<=' by '<'.  The alternative would
be to change the default value, but changing the comparison instead has
the benefit to be consistent with the 0 setting (which forbids
preemption entirely), since allowing only threads with priority 0 to
preempt becomes possible.

Consequently, we also change the default value for the FULL_PREEMPTION
option by adding 1 to PRI_MAX_IDLE (in practice, that does not make any
difference in the current setting, since no preemption will happen if
the new priority value is not strictly lower than the current one, and
PRI_MAX_IDLE is PRI_MAX, the highest possible priority).

    [10 lines not shown]
DeltaFile
+2-2sys/kern/sched_ule.c
+2-21 files

FreeBSD/src 0fc121asys/kern sched_ule.c

sched_ule: sched_priority(): More accurate __unused annotation

Change a '__unused' to '__diagused', which is more precise for that use.

No functional change.

MFC after:      1 week
Event:          Halifax Hackathon 202606
Sponsored by:   The FreeBSD Foundation

(cherry picked from commit 83a6946595829407c80075f33e49329d1b621522)
DeltaFile
+1-1sys/kern/sched_ule.c
+1-11 files

FreeBSD/src 87b46f9sys/kern sched_ule.c

sched_ule: sched_clock(): Remove a superfluous space

MFC after:      1 week
Event:          Halifax Hackathon 202606
Sponsored by:   The FreeBSD Foundation

(cherry picked from commit 5f376d52f2c86fd19e3f774a02c4b0debeb3f2cf)
DeltaFile
+1-1sys/kern/sched_ule.c
+1-11 files

FreeBSD/src 22f8004sys/kern kern_cpu.c

cpufreq: Fix the incorrect format

Event:          Halifax Hackathon 202606
Location:       jrm@'s dining room
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D57275

(cherry picked from commit 35255280e51ca8f7a8f350b944aa6ffe42a7e5b5)
DeltaFile
+3-3sys/kern/kern_cpu.c
+3-31 files

FreeBSD/src 13db101sys/dev/acpica acpi.c

acpi: Suffix acpi_sleep_enable() with '_locked'

For clarification.  This function assumes that the acpi mutex is held,
contrary to acpi_sleep_disable().

No functional change (intended).

Reviewed by:    obiwac
Event:          Halifax Hackathon 202606
Sponsored by:   The FreeBSD Foundation
Pull Request:   https://github.com/OlCe2/freebsd-src/pull/8

(cherry picked from commit 3b3911aaf834824f2de0db9fc7d0b9e2b3c089b4)
DeltaFile
+3-3sys/dev/acpica/acpi.c
+3-31 files

FreeBSD/src 490d561sys/dev/acpica acpi.c acpi_if.m

acpi: Constify thanks to AcpiGetHandle() taking a constant pathname

Make the ACPI interface's functions evaluate_object() and get_property()
take a constant pathname (by substituting ACPI_STRING with 'const char
*').

This allows to remove some __DECONST().

No functional change (intended).

Reviewed by:    obiwac
Event:          Halifax Hackathon 202606
Sponsored by:   The FreeBSD Foundation
Pull Request:   https://github.com/OlCe2/freebsd-src/pull/8

(cherry picked from commit a12d069ef37fd60538b6f46372b194e6cf117250)
DeltaFile
+9-15sys/dev/acpica/acpi.c
+4-4sys/dev/acpica/acpi_if.m
+3-3sys/dev/acpica/acpivar.h
+16-223 files

FreeBSD/doc 722a2d4documentation/static/pgpkeys kevans.key

pgpkeys: add my @f.o uid to my new key, as well

Fixes:  bd5cfe18aceb ("pgpkeys: include second key for kevans")
DeltaFile
+11-6documentation/static/pgpkeys/kevans.key
+11-61 files

FreeBSD/doc eb8499edocumentation/content/en/articles/pgpkeys _index.adoc

pgpkeys: update the keys for core@

adrian@ omitted at the moment until he publishes a new key, soon.

Approved by:    core
Reviewed by:    adrian
Differential Revision:  https://reviews.freebsd.org/D58430
DeltaFile
+11-11documentation/content/en/articles/pgpkeys/_index.adoc
+11-111 files

FreeBSD/doc 80e2de1website/data/zh-tw/news news.toml

traditional Chinese translation of Ports Repository Frozen announcement
DeltaFile
+5-0website/data/zh-tw/news/news.toml
+5-01 files

FreeBSD/doc 26db902website/content/en/releases/14.5R schedule.adoc

14.5: On schedule

The code slush has started.

Approved by:    re (implicit)
Sponsored by:   OpenSats Initiative
DeltaFile
+1-1website/content/en/releases/14.5R/schedule.adoc
+1-11 files

FreeBSD/doc 9452c69website/content/en/news/2026-ports-freeze ports-reset.sh

news: add the ports reset script

Following the freeze of the ports tree announced on 2026-07-22, this
script may be used to correct branches that contain the offending
object.  Note that it contains some commit hashes that need to be
replaced if your local branch has changes included that alter these;
instructione are included inside.

The script was originally written by glebius@, with slight modifications
by kevans@ and dhw@.

Reviewed by:    adrian, dhw, glebius, lwhsu (all previous version)
Differential Revision:  https://reviews.freebsd.org/D58417
DeltaFile
+112-0website/content/en/news/2026-ports-freeze/ports-reset.sh
+112-01 files

FreeBSD/src 0d00939sys/conf newvers.sh, usr.bin/yacc config.h

14.5: Update stable/14 to -PRERELEASE

This marks the start of the FreeBSD 14.5 release cycle; the stable/14
tree is now in "code slush".

Developers are encouraged to prioritize fixing bugs (and/or merging bug
fixes from HEAD) over new features at this time.  Commit approval from
re@ is not required but if new features introduce problems they may be
removed from the release.

Approved by:    re (implicit)
Sponsored by:   OpenSats Initiative
DeltaFile
+2-2sys/conf/newvers.sh
+1-1usr.bin/yacc/config.h
+3-32 files

FreeBSD/src 8f320c2sys/kern kern_prot.c

getpgrp(2), getsid(2): allow to call on zombies

Also be more protective in getsid().

Reported by:    arrowd
Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differrential revision: https://reviews.freebsd.org/D58393
DeltaFile
+8-4sys/kern/kern_prot.c
+8-41 files

FreeBSD/src 86182d8sbin/nvmecontrol devlist.c

Fix namespace listing for old NVMe devices

Commit 9e1db51d4b5fc made nvmecontrol devlist get list of active
namespaces from the device instead of iterating through all possible
IDs.  The problem is that this request is not supported before NVMe
1.1, and in particular by Intel Optane 905P drives.  This change
reintroduces iteration for devices before NVMe 1.2.

Reviewed by:    imp
Differential Revision:  https://reviews.freebsd.org/D58010
DeltaFile
+26-14sbin/nvmecontrol/devlist.c
+26-141 files

FreeBSD/src a18e773tests/sys Makefile

tests/sys/pmc: only build if MK_PMC != no

This unbreaks the build when pmc support is explicitly disabled via the
aforementioned build knob.

MFC after:      10 days
Fixes:          2cfd82f74 ("hwpmc: add regression tests for ...")
Differential Revision:  https://reviews.freebsd.org/D58401
DeltaFile
+5-1tests/sys/Makefile
+5-11 files