FreeBSD/src 2b95477sys/dev/nvme nvme_ctrlr.c

nvme: Use passed in max_pages.

Noticed by: jhb
Sponsored by: Netflix
DeltaFile
+1-1sys/dev/nvme/nvme_ctrlr.c
+1-11 files

FreeBSD/src 81b2055bin/sh histedit.c

sh: Increase default history size to POSIX mandated minimum of 128

The default history size in bin/sh is currently 100 however POSIX.1-2024
mandates that a default greater than or equal to 128 shall be used,
therefore this increases the default history size in /bin/sh to 128.

POSIX standards reference:
https://pubs.opengroup.org/onlinepubs/9799919799/utilities/sh.html#tag_20_110_08

MFC after:      3 days
Reviewed by:    emaste, jilles, jlduran, ziaee
Signed-off-by:  Kristofer Peterson <kris at tranception.com>
Closes:         https://github.com/freebsd/freebsd-src/pull/2093
DeltaFile
+1-1bin/sh/histedit.c
+1-11 files

FreeBSD/src a3c4573sys/compat/linux linux_stats.c

linux: add sysfs filetype support for Linux statfs()

Added MAGIC number below and map to linsysfs in bsd_to_linux_ftype()

This maps:
  - `linsysfs` -> `LINUX_SYSFS_MAGIC` (`0x62656572`)

Signed-off-by: YAO, Xin <mr.yaoxin at outlook.com>

Reviewed by:    emaste
Pull request:   https://github.com/freebsd/freebsd-src/pull/2119
DeltaFile
+16-14sys/compat/linux/linux_stats.c
+16-141 files

FreeBSD/src 777767f. fw.c reg.h

rtw89: update Realtek's rtw89 driver

This version is based on
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
028ef9c96e96197026887c0f092424679298aae8 ( tag: v7.0 ).

Sponsored by:   The FreeBSD Foundation
DeltaFile
+1,097-90fw.c
+924-10reg.h
+650-46mac_be.c
+543-20phy_be.c
+446-73fw.h
+384-56phy.c
+4,044-29538 files not shown
+5,680-54044 files

FreeBSD/src 2916357. main.c phy.c

rtw88: update Realtek's rtw88 driver

This version is based on
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
028ef9c96e96197026887c0f092424679298aae8 ( tag: v7.0 ).

Sponsored by:   The FreeBSD Foundation
DeltaFile
+37-17main.c
+20-0phy.c
+2-4sdio.c
+3-2usb.c
+2-2util.c
+2-1rtw8822b.c
+66-2610 files not shown
+78-3416 files

FreeBSD/src 5927bf2. scan.c agg-rx.c, mt7615 mac.c

mt76: update Mediatek's mt76 driver

This version is based on
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
028ef9c96e96197026887c0f092424679298aae8 ( tag: v7.0 ).

Sponsored by:   The FreeBSD Foundation
DeltaFile
+1-3scan.c
+1-1agg-rx.c
+1-1mt7615/mac.c
+1-1mt7996/mcu.c
+1-1mt7996/main.c
+1-0mt76_connac_mac.c
+6-73 files not shown
+9-79 files

FreeBSD/src 38f2811fw regulatory.c, fw/api mac-cfg.h

iwlwifi: update Intel's mvm/mld drivers

This version is based on
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
028ef9c96e96197026887c0f092424679298aae8 ( tag: v7.0 ).

Sponsored by:   The FreeBSD Foundation
DeltaFile
+299-0mld/nan.c
+4-202fw/regulatory.c
+201-4mvm/fw.c
+11-184mvm/mld-mac80211.c
+152-7fw/api/mac-cfg.h
+137-5mld/rx.c
+804-40274 files not shown
+1,831-1,09580 files

FreeBSD/src bc66030brcmfmac cfg80211.c pcie.c, brcmsmac main.c

brcm80211: update Broadcom wireless brcmsmac and brcmfmac drivers

This version is based on
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
028ef9c96e96197026887c0f092424679298aae8 ( tag: v7.0 ).

Sponsored by:   The FreeBSD Foundation
DeltaFile
+14-15brcmsmac/main.c
+13-14brcmfmac/cfg80211.c
+5-10brcmsmac/phy/phy_lcn.c
+7-8brcmfmac/pcie.c
+6-7brcmfmac/bcmsdh.c
+6-6brcmfmac/msgbuf.c
+51-6027 files not shown
+106-11233 files

FreeBSD/src 80f1906. dp_mon.c dp_rx.c, wifi7 dp_mon.c hal_desc.h

ath12k: update Atheros/QCA's ath12k driver

This version is based on
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
028ef9c96e96197026887c0f092424679298aae8 ( tag: v7.0 ).

Sponsored by:   The FreeBSD Foundation
DeltaFile
+103-3,414dp_mon.c
+257-3,231dp_rx.c
+3,385-0wifi7/dp_mon.c
+0-3,045hal_desc.h
+2,742-0wifi7/hal_desc.h
+256-2,048hal.c
+6,743-11,73886 files not shown
+28,189-23,74492 files

FreeBSD/src c3e04a1. cfr.c cfr.h

ath11k: update Atheros/QCA's ath11k driver

This version is based on
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
028ef9c96e96197026887c0f092424679298aae8 ( tag: v7.0 ).

Sponsored by:   The FreeBSD Foundation
DeltaFile
+1,022-0cfr.c
+308-0cfr.h
+154-13wmi.c
+141-1debugfs_sta.c
+96-12core.c
+94-3wmi.h
+1,815-2921 files not shown
+1,999-11027 files

FreeBSD/src bbc9d10. snoc.c wmi.c

ath10k: update Atheros/QCA's ath10k driver

This version is based on
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
028ef9c96e96197026887c0f092424679298aae8 ( tag: v7.0 ).

Sponsored by:   The FreeBSD Foundation
DeltaFile
+50-3snoc.c
+16-16wmi.c
+4-8ce.c
+8-2sdio.c
+5-5qmi.c
+4-6mac.c
+87-406 files not shown
+100-5112 files

FreeBSD/src 18b3ba7. dfs_pri_detector.c dfs_pattern_detector.c

ath-common: update common Atheros/QCA code

This version is based on
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
028ef9c96e96197026887c0f092424679298aae8 ( tag: v7.0 ).

Sponsored by:   The FreeBSD Foundation
DeltaFile
+3-3dfs_pri_detector.c
+2-2dfs_pattern_detector.c
+5-52 files

FreeBSD/src e11eba7. Makefile.inc1

pkgbase: only provide shlibs from /lib,/usr/lib,/usr/lib32

Reviewed by:    bapt
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D54793
DeltaFile
+2-0Makefile.inc1
+2-01 files

FreeBSD/src 07b00belib/libc/gen syslog.3, sbin/dmesg dmesg.8

manuals: System message vs kernel message

Wordsmith mentions throughout the manual of syslog and dmesg, to clearly
differentiate them in an externally consisteny way, increasing operator
onboarding speed and elegance.

The daemon that handles general system messages, syslog, describes them
as "system messages", and "messages" is the standard filename. Rewrite
syslog related manual titles to align search results with this, and hier
entries to align the index. Use care to maintain keywords and not add
extra lines. Newsyslog trades "maintain" with "rotate" for visibility.

MFC after:      3 days (resolved newsyslog.8 merge conflict)
Reviewed by:    markj
Closes:         https://github.com/freebsd/freebsd-src/pull/2067

(cherry picked from commit 04d58d529a61f3bba2c1a843bc2793923a005759)
DeltaFile
+3-3sbin/dmesg/dmesg.8
+3-3share/man/man7/hier.7
+2-4usr.sbin/newsyslog/newsyslog.conf.5
+2-4usr.sbin/syslogd/syslog.conf.5
+2-2lib/libc/gen/syslog.3
+2-2usr.sbin/newsyslog/newsyslog.8
+14-186 files

FreeBSD/src 99aa0cdshare/man/man4 arcmsr.4

arcmsr.4: Improve HARDWARE introductory sentence

MFC after:      3 days

(cherry picked from commit ff32dbb1d14f05bf77e356ae68c82c048c88888f)
DeltaFile
+3-2share/man/man4/arcmsr.4
+3-21 files

FreeBSD/src 1b8723dsys/x86/x86 cpu_machdep.c tsc.c

x86: Handle when MPERF/APERF MSRs aren't writable

For performance and/or correct reasons some hypervisors allow
MPERF/APERF MSRs to be read but not written to. This change
modifies the handling of these MSRs to not rely on writes.
This patch is part of Google Cloud Engine (GCE) C4-LSSD turnup.

Sponsored by:           Google
Tested by:              NetApp (previous)
PR:                     292808
MFC after:              3 days
Co-authored-by:         Jim Mattson <jmattson at google.com>
Reviewed by:            jrtc27, imp, kib, markj, olce, obiwac
Differential Revision:  https://reviews.freebsd.org/D55996

(cherry picked from commit 7e7d4e711ff94d114c93fd522d4125aa9bd9f5cd)
DeltaFile
+7-7sys/x86/x86/cpu_machdep.c
+6-3sys/x86/x86/tsc.c
+13-102 files

FreeBSD/src 4d6fb9dsys/dev/nvme nvme_private.h nvme_ahci.c

nvme: Removed unused 'regs' variable

The private struct has a 'regs' member that's only written to
and otherwise unused. This change removes it.

Fixes:                  b3d9e5013f3e5 (Don't active memory space)
Requested by:           jhb
Reviewed by:            imp, jhb, jrtc27
Differential Revision:  https://reviews.freebsd.org/D55817

(cherry picked from commit 4e3beef84628ce6dfea7f053cddf3289fddf7794)
DeltaFile
+0-2sys/dev/nvme/nvme_private.h
+0-1sys/dev/nvme/nvme_ahci.c
+0-1sys/dev/nvme/nvme_pci.c
+0-43 files

FreeBSD/src 925387fsys/dev/nvme nvme_pci.c

nvme: Don't active memory space until all BARs are configured

In the current current behavior the 2nd and 3rd BARs can be activated
when they're configured with address zero. This change defers the
activation of all BARs until after they've all been configured with an
address.

This enables FreeBSD on Google Compute Engine C4-LSSD Machines.

Sponsored by:           Google
Tested by:              NetApp (previous version)
Reviewed by:            gallatin, imp
Discussed with:         jrtc27 (improved error reporting)
Differential Revision:  https://reviews.freebsd.org/D55541

(cherry picked from commit b3d9e5013f3e5016ffbd3d3d6091194658af2b92)
DeltaFile
+37-7sys/dev/nvme/nvme_pci.c
+37-71 files

FreeBSD/src 296debesys/x86/x86 cpu_machdep.c

x86: Guard clock frequency against a divide by 0

We may be running in a Virtual Machine which may not fully support
hardware performance counters. If the MPERF counter somehow ends up
at zero, return an error and fail gracefully instead of panicking.
This patch is part of Google Cloud Engine (GCE) C4-LSSD turnup.

Sponsored by:           Google
Tested by:              NetApp (previous)
PR:                     292808
MFC after:              3 days
Co-authored-by:         Aymeric Wibo <obiwac at google.com>
Co-authored-by:         Jim Mattson <jmattson at google.com>
Suggested by:           jrtc27 (split out this part)
Reviewed by:            imp, obiwac, olce
Differential Revision:  https://reviews.freebsd.org/D56056

(cherry picked from commit c505fc1468849150f48484b225b6476d8316de57)
DeltaFile
+8-1sys/x86/x86/cpu_machdep.c
+8-11 files

FreeBSD/src b8429acsys/dev/nvme nvme_private.h nvme_qpair.c

nvme: Replace bus_space_[read|write]_4 with bus_[read|write]_4

The goal this change is to remove the use of the tag and handle
needed by bus_space_[read|write]_4.

Fixes:                  b3d9e5013f3e5 (Don't active memory space)
Requested by:           jhb
Reviewed by:            gallatin, imp, jhb, jrtc27
Differential Revision:  https://reviews.freebsd.org/D55818

(cherry picked from commit 889d10d5b12050b4b3923917b5edeac85e8ca706)
DeltaFile
+6-11sys/dev/nvme/nvme_private.h
+3-4sys/dev/nvme/nvme_qpair.c
+0-3sys/dev/nvme/nvme_pci.c
+0-2sys/dev/nvme/nvme_ahci.c
+9-204 files

FreeBSD/src afe57c1usr.sbin/diskinfo diskinfo.8 diskinfo.c

diskinfo: Align and alphabetize options

MFC after:      3 days
DeltaFile
+6-6usr.sbin/diskinfo/diskinfo.8
+5-5usr.sbin/diskinfo/diskinfo.c
+11-112 files

FreeBSD/src b1bc748bin/timeout timeout.1

timeout.1: Document non-POSIX options

MFC after:              3 days
Reviewed by:            Aaron Li <aly at aaronly.me>, ziaee
Differential Revision:  https://reviews.freebsd.org/D56090
DeltaFile
+5-1bin/timeout/timeout.1
+5-11 files

FreeBSD/src fa31e76release/tools ec2-small.conf ec2-builder.conf

Revert "EC2: Add clibs-lib32 pkg to small/builder images"

This should no longer be necessary after 2018ae4e3b6a.

This reverts commit cfe0b7d37e552d78762c029f5b15e0f36d9d0d38.
DeltaFile
+0-1release/tools/ec2-small.conf
+0-1release/tools/ec2-builder.conf
+0-22 files

FreeBSD/src 2018ae4release/packages/ucl clang.ucl

pkgbase: remove incorrect clang shlib requires

The FreeBSD-clang package contains a 32-bit shared object at
/usr/lib/clang/19/lib/freebsd/libclang_rt.asan-i386.so

This is expected, since clang uses this object when compiling for i386
targets with asan enabled.

What is not expected is that the FreeBSD-clang package currently depends
on 32-bit libc packages due to pkg's shared library analysis, making it
impossible to install pkgbase on x86_64 without any lib32 packages.

This commit leverages a new pkg feature implemented in [1], but could
be landed before a pkg version including that feature is released
without any ill effects. Unknown keys in package manifests are ignored.

[1]: https://github.com/freebsd/pkg/pull/2594

Reviewed by:    ivy

    [2 lines not shown]
DeltaFile
+5-0release/packages/ucl/clang.ucl
+5-01 files

FreeBSD/src 8b8ae24stand defs.mk

stand: Force disable RETPOLINE for boot loaders

Boot loaders do not require speculative execution protection, and may be
too large if enabled.

Reported by:    Shawn Webb
Reviewed by:    dim, imp
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D56068

(cherry picked from commit 61f78130c2f3a6abaa70bd66d6d6974060fb3d04)
DeltaFile
+1-0stand/defs.mk
+1-01 files

FreeBSD/src dc61491lib/msun/man fmax.3

fmax.3: Add caveat for going beyond C std requirements

libm's fmax and fmin family of functions treat +0.0 as greater than
-0.0.  This is not required by the C standard, so the user may not see
this behaviour due to compiler optimization.

PR:             294214
Reviewed by:    fuz
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D56230

(cherry picked from commit 7764e9ca28a9702aed4ba7391e055ec2fcf35c41)
(cherry picked from commit 855507463e0d3903d31aa7c084efbf4f819b5d63)
DeltaFile
+8-5lib/msun/man/fmax.3
+8-51 files

FreeBSD/src b06d6b9sys/kern kern_event.c

kqueue_fork_copy_knote(): zero kn_knlist for the copy before calling knlist_add()

Reported by:    pho, dhw
Sponsored by:   The FreeBSD Foundation

(cherry picked from commit aab1ef4527f1b0935add3e8dba9e928e0623376f)
DeltaFile
+1-0sys/kern/kern_event.c
+1-01 files

FreeBSD/src c4266d8sbin/tunefs tunefs.c

tunefs: Better fix for arm64 alignment issues

Rather than trust that the compiler will lay out the stack frame the
way we expect it to, use a union to force the correct alignment.

MFC after:      1 week
Fixes:          616f47f176c3 ("tunefs: Fix alignment warning on arm64")
Reviewed by:    kevans, mckusick
Differential Revision:  https://reviews.freebsd.org/D56245

(cherry picked from commit 8244dd326265867293b2286efc3d571f06ef0dab)

tunefs: Fix pointer arithmetic

While here, remove a bogus const which has been there for years.

MFC after:      1 week
Reported by:    ivy@
Fixes:          1b83e8a3f840 ("Constify string pointers.")

    [5 lines not shown]
DeltaFile
+37-27sbin/tunefs/tunefs.c
+37-271 files

FreeBSD/src 84e7cd4sbin/tunefs tunefs.c

tunefs: Better fix for arm64 alignment issues

Rather than trust that the compiler will lay out the stack frame the
way we expect it to, use a union to force the correct alignment.

MFC after:      1 week
Fixes:          616f47f176c3 ("tunefs: Fix alignment warning on arm64")
Reviewed by:    kevans, mckusick
Differential Revision:  https://reviews.freebsd.org/D56245

(cherry picked from commit 8244dd326265867293b2286efc3d571f06ef0dab)

tunefs: Fix pointer arithmetic

While here, remove a bogus const which has been there for years.

MFC after:      1 week
Reported by:    ivy@
Fixes:          1b83e8a3f840 ("Constify string pointers.")

    [5 lines not shown]
DeltaFile
+37-27sbin/tunefs/tunefs.c
+37-271 files

FreeBSD/src e272f4acontrib/bmake main.c

Fix default for .MAKE.SAVE_DOLLARS

NetBSD make defaults this to "yes",
bmake defauts it to "no" to retain the traditional behavior.

The default is dealt with in bmake's Makefile but that does not
address boot-strap.

For now, just change the ifdef in main.

PR: 294436
DeltaFile
+1-1contrib/bmake/main.c
+1-11 files