FreeBSD/src 8ae306atools/tools/git git-mfc git-mfc.1

git-mfc: Add an ignore-list feature

Commit hashes listed in ~/.git-mfc-ignore are not listed in output of
git-mfc --dangling or --pending.  This is handy for silencing output
about commits that are tagged for MFC or as fixing another commit, but
which were not MFCed for some reason or other.

Requested by:   des
Reviewed by:    des
Differential Revision:  https://reviews.freebsd.org/D58161
DeltaFile
+31-0tools/tools/git/git-mfc
+14-0tools/tools/git/git-mfc.1
+45-02 files

FreeBSD/src 24816abusr.sbin/syslogd syslogd.c

syslogd: Limit rights on procdescs

Reviewed by:    jfree, kib
MFC after:      3 weeks
Differential Revision:  https://reviews.freebsd.org/D58160
DeltaFile
+5-0usr.sbin/syslogd/syslogd.c
+5-01 files

FreeBSD/src 9bb576dtools/tools/git git-mfc

git-mfc: Update exception lists

This silences warnings when running git-mfc --pending against stable/13,
14 and 15.

Reviewed by:    des
Differential Revision:  https://reviews.freebsd.org/D58162
DeltaFile
+25-0tools/tools/git/git-mfc
+25-01 files

FreeBSD/src 8a36572sys/kern kern_exec.c

kern_execve.c: simplify execve_block_wait()

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D58147
DeltaFile
+2-8sys/kern/kern_exec.c
+2-81 files

FreeBSD/src 7cc2f18sys/x86/cpufreq hwpstate_intel.c

hwpstate_intel(4): Introduce a CPU ID cache

To minimize the diff with hwpstate_intel(4).  See previous commit there
for the rationale.

Reviewed by:    aokblast
Sponsored by:   The FreeBSD Foundation
DeltaFile
+29-31sys/x86/cpufreq/hwpstate_intel.c
+29-311 files

FreeBSD/src 1a3d615sys/x86/cpufreq hwpstate_amd.c

hwpstate_amd(4): Restore CPU ID cache after introducing cpu_get_pcpuid()

Using cpu_get_pcpuid() directly or having a CPU ID cache does not really
make any significant difference.  With cache: Less function calls, less
space on stack, but an additional allocation in the softc, who stays
permanently.  Without cache: Some function calls, but one less slot in
the softc, and no data duplication (but that info never changes).

The main reason for this change is to reduce conflicts with some
work-in-progress by aokblast@.

While here, move the check that a per-CPU structure is provided by the
bus from the attach to the probe method, as it is already used by
hwpstate_probe_pstate() there.

Reviewed by:    aokblast
Sponsored by:   The FreeBSD Foundation
DeltaFile
+23-23sys/x86/cpufreq/hwpstate_amd.c
+23-231 files

FreeBSD/src 6cd16efsys/dev/ice ice_lib.c ice_adminq_cmd.h

ice(4): Add support for 40G maximal PMD speed

E823 backplane devices may support 40G as maximal PMD speed.
Extend port topology reading logic to handle this case.
While at that fix indentation according to FreeBSD style(9).

Signed-off-by: Krzysztof Galazka <krzysztof.galazka at intel.com>

Tested by:      gowtham.kumar.ks_intel.com
Approved by:    kbowling (mentor), erj (mentor)
Sponsored by:   Intel Corporation
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D53587

(cherry picked from commit c6212b7da110d82b1d0086ec525deb216993021e)
DeltaFile
+4-3sys/dev/ice/ice_lib.c
+1-0sys/dev/ice/ice_adminq_cmd.h
+5-32 files

FreeBSD/src 15ef9adsys/dev/ice ice_lib.c

ice(4): Fix link speed after changing cable type

When interface was connected to a link partner with a cable
type limitting maximum supported speed, e.g. SFP+ cable
in 25G port, driver incorrectly saved a supported speed
as the user configured speed. This prevented interface
from using all supported speeds after switching cable to SFP28.
Link was established at 10G as supported by previously used
SFP+ cable. Don't set user requested speed unless actually
configured by an user, to allow automatic selection of highest
available speed. Only when user sets custom config
using advertise_speed sysctl save it and try
to apply after cable is changed.

Also don't save initial supported speeds if FW supports
reporting default PHY config.

Signed-off-by: Krzysztof Galazka <krzysztof.galazka at intel.com>


    [5 lines not shown]
DeltaFile
+11-7sys/dev/ice/ice_lib.c
+11-71 files

FreeBSD/src f243651sys/dev/ice ice_drv_info.h

ice(4): Add support for new E810-XXV-2 adapters

Add two new subdevice IDs for E810-XXV-2 and E810-XXV-2 for OCP 3.0.

Signed-off-by: Krzysztof Galazka <krzysztof.galazka at intel.com>

Reviewed by:    kbowling, erj, mateusz.moga_intel.com
Sponsored by:   Intel Corporation
Differential Revision:  https://reviews.freebsd.org/D54069

(cherry picked from commit bea6f7d02dfbef8f8209f0ca5f1d76877d549f46)
DeltaFile
+6-0sys/dev/ice/ice_drv_info.h
+6-01 files

FreeBSD/src 074ff66sys/dev/ice ice_lib.c ice_adminq_cmd.h

ice(4): Add support for 40G maximal PMD speed

E823 backplane devices may support 40G as maximal PMD speed.
Extend port topology reading logic to handle this case.
While at that fix indentation according to FreeBSD style(9).

Signed-off-by: Krzysztof Galazka <krzysztof.galazka at intel.com>

Tested by:      gowtham.kumar.ks_intel.com
Approved by:    kbowling (mentor), erj (mentor)
Sponsored by:   Intel Corporation
Differential Revision:  https://reviews.freebsd.org/D53587

(cherry picked from commit c6212b7da110d82b1d0086ec525deb216993021e)
DeltaFile
+4-3sys/dev/ice/ice_lib.c
+1-0sys/dev/ice/ice_adminq_cmd.h
+5-32 files

FreeBSD/src 513d3fdtools/build/mk Makefile.boot

tools/build: Don't set RANLIB for non-FreeBSD builds

RANLIB is not used by our build, so there is no need to set it.

Reviewed by:    imp
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D58156
DeltaFile
+2-4tools/build/mk/Makefile.boot
+2-41 files

FreeBSD/src f0b8c51sys/netinet/libalias alias_db.c

libalias: use htons() when converting from host to network

PR:     295434
DeltaFile
+1-1sys/netinet/libalias/alias_db.c
+1-11 files

FreeBSD/src c503d23tests/sys/fs/fusefs misc.cc

fusefs: fix gcc build error with shadowed variable in tests

Reported by:    gcc -Werror=shadow
Reviewed by:    asomers, markj
Fixes:  ee1c3d38a26a ("fusefs: fix vnode locking violations during execve")
Differential Revision:  https://reviews.freebsd.org/D58130
DeltaFile
+2-2tests/sys/fs/fusefs/misc.cc
+2-21 files

FreeBSD/src 3c8cc66sys/netinet6 ip6_var.h

netinet6: Remove unused rip6_usrreqs declaration

Fixes:  e7d02be19d40063783d6b8f1ff2bc4c7170fd434
Signed-off-by:  Yusuke Ichiki <public at yusuke.pub>
DeltaFile
+0-2sys/netinet6/ip6_var.h
+0-21 files

FreeBSD/src b1bb3aatests/sys/kern/tty test_sti.c

tests: Fix build if TIOCSTI is not defined

Some downstream projects (e.g. ElectroBSD) have removed the TIOCSTI

We already have some components (such as mail and tcsh) that build
without TIOCSTI defined.  This is (existing portability support in those
projects.

Simplify things for downstreams by extending this approach to this
additional TIOCSTI user.

Reviewed by:    markj
Differential Revision: https://reviews.freebsd.org/D50614

(cherry picked from commit 52a2b4bc5da21d7a54cb16b9450196244b59b8c0)
DeltaFile
+6-0tests/sys/kern/tty/test_sti.c
+6-01 files

FreeBSD/src e33854etools/build/mk OptionalObsoleteFiles.inc

OptionalObsoleteFiles: Add missing headers

The header files for dialog, figpar, dpv were never listed.

Fixes:          bc6c827078b7 ("OptionalObsoleteFiles: Add figpar to dialog section")
(cherry picked from commit acf6518a2d6f33fb56c861861cbad0c0cb56817e)
DeltaFile
+7-0tools/build/mk/OptionalObsoleteFiles.inc
+7-01 files

FreeBSD/src a97df13sys/dev/usb usbdevs, sys/dev/usb/quirk usb_quirk.c

usb/quirks: Add entry for Verbatim Store'n'Go

PR:             199101
MFC after:      1 week
Reviewed by:    imp
Differential Revision:  https://reviews.freebsd.org/D57929

(cherry picked from commit e1a0592ccd8141c609b45dfbe2fba13929ee4d51)
DeltaFile
+4-0sys/dev/usb/usbdevs
+1-0sys/dev/usb/quirk/usb_quirk.c
+5-02 files

FreeBSD/src 4f8ff99sys/dev/usb/quirk usb_quirk.c

usb/quirks: Sort the USB mass storage quirks

MFC after:      1 week
Reviewed by:    imp
Differential Revision:  https://reviews.freebsd.org/D57930

(cherry picked from commit 43da0c93ff9da32fda89d58727cd9bbe7beea4c9)

usb/quirks: More USB mass storage quirk sorting

(cherry picked from commit 0b95429fde2ae83c159ca991458608a97ca6b93a)
DeltaFile
+13-13sys/dev/usb/quirk/usb_quirk.c
+13-131 files

FreeBSD/src d5142c9sys/dev/usb/quirk usb_quirk.c

usb/quirks: Sort the USB mass storage quirks

MFC after:      1 week
Reviewed by:    imp
Differential Revision:  https://reviews.freebsd.org/D57930

(cherry picked from commit 43da0c93ff9da32fda89d58727cd9bbe7beea4c9)

usb/quirks: More USB mass storage quirk sorting

(cherry picked from commit 0b95429fde2ae83c159ca991458608a97ca6b93a)
DeltaFile
+13-12sys/dev/usb/quirk/usb_quirk.c
+13-121 files

FreeBSD/src 5e83b07sys/dev/usb usbdevs, sys/dev/usb/quirk usb_quirk.c

usb/quirks: Add entry for Verbatim Store'n'Go

PR:             199101
MFC after:      1 week
Reviewed by:    imp
Differential Revision:  https://reviews.freebsd.org/D57929

(cherry picked from commit e1a0592ccd8141c609b45dfbe2fba13929ee4d51)
DeltaFile
+4-0sys/dev/usb/usbdevs
+1-0sys/dev/usb/quirk/usb_quirk.c
+5-02 files

FreeBSD/src 7a5ef20sys/riscv/riscv pmap.c

riscv/pmap.c: Handle spurious kernel page faults in critical sections

The Privileged ISA specification permits caching of invalid PTEs
12.2.1. Supervisor Memory-Management Fence Instruction), which may
result in a spurious page fault. Such faults are handled by 'pmap_fault'
which locks the kernel pmap before inspecting and possibly updating the
offending L2 entry.
Unfortunately, spurious faults may also occur when we're already holding
the kernel_pmap lock or running in a critical section, where any attempt
to grab the pmap lock will result in a kernel panic.

Fix this avoidable panic by performing a lockless lookup to determine
whether a valid kernel mapping exits and flushing appropriate TLB entry.

Differential Revision:  https://reviews.freebsd.org/D56925
Reviewed by:    jrtc27, mhorne, markj
DeltaFile
+35-11sys/riscv/riscv/pmap.c
+35-111 files

FreeBSD/src 7489f0bsys/riscv/riscv mp_machdep.c

riscv/mp_machdep.c: Flush the TLB after releasing APs

Spurious page faults caused by cached invalid entries may occur when
starting APs and potentially panic the kernel if we're running in
a non-sleepable context.

Fix this avoidable panic by flushing the TLB after the AP is released.

Differential Revision:  https://reviews.freebsd.org/D57003
Reviewed by:    markj
DeltaFile
+5-0sys/riscv/riscv/mp_machdep.c
+5-01 files

FreeBSD/src 10487e3sys/riscv/riscv pmap.c

riscv/pmap.c: Add a ddb command for inspecting PTEs

This change implements the equivalent of the amd64-specific
'show pte' ddb command used to dump the page table entries
associated with a specific virtual address.

Differential Revision:  https://reviews.freebsd.org/D56924
Reviewed by:    mhorne
DeltaFile
+61-0sys/riscv/riscv/pmap.c
+61-01 files

FreeBSD/src 84148ccsys/riscv/include cpu.h, sys/riscv/riscv identcpu.c

riscv: Add vendor and arch IDs for the SpacemiT K1 CPU

Differential Revision:  https://reviews.freebsd.org/D56923
Reviewed by:    mhorne
DeltaFile
+6-0sys/riscv/riscv/identcpu.c
+4-0sys/riscv/include/cpu.h
+10-02 files

FreeBSD/src fb6c19bsys/kern sched_shim.c

kern/sched_shims.c: back to ifunc

Reported by:    kevans
Reviewed by:    kevans, mhorne
Fixes:  0d3652f67d246348e2c017205c6782caf4484449
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differrential revision: https://reviews.freebsd.org/D55490

(cherry picked from commit ef1218add1d3d2baca9d3b8bcfb57e05ef6fc503)
DeltaFile
+2-3sys/kern/sched_shim.c
+2-31 files

FreeBSD/src 17d7b3dsys/arm/arm elf_machdep.c machdep.c, sys/arm/include ifunc.h

arm: Implement kernel ifunc

Add kernel ifunc support on arm.

MFC after :     3 weeks
Reviewed by:    kib (previous version)
Differential Revision:  https://reviews.freebsd.org/D54970

(cherry picked from commit d78cbf483fe73c987573967042f57f15bf590629)
DeltaFile
+21-3sys/arm/include/ifunc.h
+7-1sys/arm/arm/elf_machdep.c
+2-3sys/arm/arm/machdep.c
+2-3sys/conf/kern.pre.mk
+1-1sys/kern/link_elf.c
+1-0sys/sys/elf_common.h
+34-116 files

FreeBSD/src 825c140share/man/man9 DEFINE_IFUNC.9

DEFINE_IFUNC.9: update NOTES

ifuncs are now implemented for all architectures, so drop the caveat
statement.

Reviewed by:    kib
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D55815

(cherry picked from commit a2b2ce2c15bb73d9f87d5072cf65f1f027e066fb)
DeltaFile
+3-4share/man/man9/DEFINE_IFUNC.9
+3-41 files

FreeBSD/src 4fde25alib/libc Makefile, stand/i386 Makefile.inc

build: Stop testing LINKER_FEATURES for ifunc and build-id

These features are available in all supported linkers, and we can expect
that they'll be supported by any GNU-compatible linker that we'd use to
link FreeBSD.

Reviewed by:    imp, kib
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D55676

(cherry picked from commit 96294c22f7e54a48df44c86a4ee5848e71ac4470)
DeltaFile
+0-6lib/libc/Makefile
+0-6sys/conf/kern.pre.mk
+0-2stand/i386/Makefile.inc
+0-2sys/conf/kmod.mk
+0-164 files

FreeBSD/src 7be4e28sys/kern sched_shim.c

sched_shim: Drop the no-ifunc case

Now all architectures support kernel ifunc resolvers. Therefore, the
alternate implementation can be removed.

Reviewed by:    kib
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D55114

(cherry picked from commit 0d3652f67d246348e2c017205c6782caf4484449)
DeltaFile
+0-8sys/kern/sched_shim.c
+0-81 files

FreeBSD/src 08b56f2sys/conf kern.pre.mk, sys/kern link_elf.c

riscv: implement kernel ifunc resolution

This completes the set of architectures implementing this feature.

Move the calls to sched_instance_select() and link_elf_ireloc() later in
initriscv(), after identify_cpu(0). There will be more information
available to any resolver functions at this time.

Reviewed by:    imp, kib
MFC after:      2 weeks
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D55082

(cherry picked from commit cf41d1113377c44be5aad20c2f7ff2c5324ca89f)
DeltaFile
+8-3sys/riscv/riscv/elf_machdep.c
+4-2sys/riscv/riscv/machdep.c
+2-3sys/conf/kern.pre.mk
+0-2sys/riscv/include/ifunc.h
+0-2sys/kern/link_elf.c
+14-125 files