]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
10 months agointr: move MAX_STRAY_LOG to interrupt.h
Elliott Mitchell [Sun, 19 Jun 2022 15:05:20 +0000 (08:05 -0700)]
intr: move MAX_STRAY_LOG to interrupt.h

The two interrupt controllers which implement squelching of reports
after a maximum use the same limit.  Move the limit to interrupt.h, the
better to encourage other interrupt controllers to implement the same.

Reviewed by: markj
MFC after: 2 weks
Differential Revision: https://reviews.freebsd.org/D35527

10 months agoRELNOTES: Clarify package building on older branches for 32-bit.
John Baldwin [Thu, 17 Aug 2023 21:25:44 +0000 (14:25 -0700)]
RELNOTES: Clarify package building on older branches for 32-bit.

"on" could be read to require native builds only vs cross-builds
via qemu-user and that was not the intention.

Suggested by: Mark Millard <marklmi@yahoo.com>

10 months agolinux(4): Update my copyrights, add SPDX tag
Dmitry Chagin [Thu, 17 Aug 2023 20:54:36 +0000 (23:54 +0300)]
linux(4): Update my copyrights, add SPDX tag

10 months agolinux(4): Fix leftovers after 2ff63af9
Dmitry Chagin [Thu, 17 Aug 2023 20:54:00 +0000 (23:54 +0300)]
linux(4): Fix leftovers after 2ff63af9

10 months agolinux(4): Drop bogus __arm__ condition due to lack of 32-bit arm support
Dmitry Chagin [Thu, 17 Aug 2023 19:57:17 +0000 (22:57 +0300)]
linux(4): Drop bogus __arm__ condition due to lack of 32-bit arm support

MFC after: 1 month

10 months agolinux(4): Don't miss error from underlying in sendfile
Dmitry Chagin [Thu, 17 Aug 2023 19:57:17 +0000 (22:57 +0300)]
linux(4): Don't miss error from underlying in sendfile

MFC after: 1 month

10 months agolinux(4): Add sendfile fallback for non-socket fds
James McLaughlin [Thu, 17 Aug 2023 19:57:17 +0000 (22:57 +0300)]
linux(4): Add sendfile fallback for non-socket fds

Before Linux 2.6.33, out_fd must refer to a socket. Since Linux 2.6.33
it can be any file.
The patch was originally provided by James McLaughlin and adapted by me
for copy_file_range.

PR: 262535
Differential revision: https://reviews.freebsd.org/D34555
MFC after: 1 month

10 months agolinux(4): Use native off_t for fo_sendfile call
Dmitry Chagin [Thu, 17 Aug 2023 19:57:17 +0000 (22:57 +0300)]
linux(4): Use native off_t for fo_sendfile call

MFC after: 1 month

10 months agolinux(4): Regen for sendfile
Dmitry Chagin [Thu, 17 Aug 2023 19:57:17 +0000 (22:57 +0300)]
linux(4): Regen for sendfile

10 months agolinux(4): Use l_off_t type for offset argument in sendfile syscall
Dmitry Chagin [Thu, 17 Aug 2023 19:57:16 +0000 (22:57 +0300)]
linux(4): Use l_off_t type for offset argument in sendfile syscall

The off_t on Linux is a long, so it's non-functional change, just to
avoid confusing future readers.

MFC after: 1 month

10 months agolinux(4): Be verbose about unsupported ioctl commands on ifreq ioctl
Alvin Chen [Thu, 17 Aug 2023 19:57:16 +0000 (22:57 +0300)]
linux(4): Be verbose about unsupported ioctl commands on ifreq ioctl

Differential revision: https://reviews.freebsd.org/D39786
MFC after: 1 month

10 months agolinux(4): Add 2 Linux socket ioctl commands
Alvin Chen [Thu, 17 Aug 2023 19:57:16 +0000 (22:57 +0300)]
linux(4): Add 2 Linux socket ioctl commands

Support 2 Linux socket ioctl commands: SIOCGIFMETRIC, SIOCSIFMETRIC.

Differential revision: https://reviews.freebsd.org/D39786
MFC after: 1 month

10 months agobhyve: default UART to 115200
Ed Maste [Thu, 17 Aug 2023 17:36:02 +0000 (13:36 -0400)]
bhyve: default UART to 115200

Reviewed by: jhb
Differential Revision: https://reviews.freebsd.org/D41494

10 months agoiflib drivers: Constify PCI ID LUTs
Marius Strobl [Wed, 16 Aug 2023 16:49:34 +0000 (18:49 +0200)]
iflib drivers: Constify PCI ID LUTs

Since d49e83eac3baf16a22b1c5d42e8438b68b17e6f9, iflib(9) is ready
for this change.
While at it, make isc_driver_version strings (static) const where
not apparently un-const on purpose, too.
This reduces the size of the amd64 GENERIC by about 10 KiB.

10 months agoRestore blank line after #include
John Baldwin [Thu, 17 Aug 2023 18:32:14 +0000 (11:32 -0700)]
Restore blank line after #include

10 months agoarm64 db_trace: Ensure trapframe pointer is suitably aligned.
John Baldwin [Thu, 17 Aug 2023 18:31:20 +0000 (11:31 -0700)]
arm64 db_trace: Ensure trapframe pointer is suitably aligned.

Reviewed by: jrtc27, markj
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D41486

10 months agobhyve: Store the FreeBSD OUI in little-endian in the controller data
John Baldwin [Thu, 17 Aug 2023 18:30:50 +0000 (11:30 -0700)]
bhyve: Store the FreeBSD OUI in little-endian in the controller data

Section 7.10.3 of the NVME 1.4b specification states that the IEEE OUI
in the identify controller structure is stored in little-endian format
(unlike the embedded OUI in EUI64 identifiers).

Reviewed by: corvink, chuck, imp
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D41487

10 months agoshare/examples: clarify BOOT_COMCONSOLE_SPEED
Ed Maste [Thu, 17 Aug 2023 17:43:39 +0000 (13:43 -0400)]
share/examples: clarify BOOT_COMCONSOLE_SPEED

Give an example of why one may want to override BOOT_COMCONSOLE_SPEED so
that it's clear why the default (in a comment) and the commented-out
example setting have different values.

Reported by: otis
Fixes: 4722ceb7d53e ("Use 115200 bps by default for serial communication")
10 months agoUse 115200 bps by default for serial communication
Ed Maste [Thu, 17 Aug 2023 17:14:52 +0000 (13:14 -0400)]
Use 115200 bps by default for serial communication

9600 was a standard baud rate decades ago, but 115200 is now more common
so choose defaults that are useful to the largest number of users.

Note that boot0sio does not support rates above 9600 so it remains
unchanged.

Reviewed by: bz, imp, manu
Relnotes: Yes
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D36295

10 months agoCirrus-CI: for *-gcc12, build world with make -s
Ed Maste [Wed, 16 Aug 2023 23:34:24 +0000 (19:34 -0400)]
Cirrus-CI: for *-gcc12, build world with make -s

Cirrus-CI appears to have a 100MB limit for log output.  Use `make -s`
to attempt to reduce the amount of output.

Sponsored by: The FreeBSD Foundation

10 months agoforkpty: Avoid fd leak if fork() fails.
Dag-Erling Smørgrav [Thu, 17 Aug 2023 13:48:42 +0000 (13:48 +0000)]
forkpty: Avoid fd leak if fork() fails.

MFC after: 1 week
Sponsored by: Klara, Inc.
Reviewed by: allanjude
Differential Revision: https://reviews.freebsd.org/D41491

10 months agoRemove my middle name.
Dag-Erling Smørgrav [Thu, 17 Aug 2023 13:08:11 +0000 (15:08 +0200)]
Remove my middle name.

10 months agoixl: fix multicast filters handling
Mateusz Pacuszka [Thu, 17 Aug 2023 11:30:54 +0000 (13:30 +0200)]
ixl: fix multicast filters handling

Summary:
Hardware supports up to 128 entries of multicast filters. If there is more,
filters should be removed and multicast promiscuous enabled. In case
user deletes the multicast address and overall count is less than 128,
multicast promiscuous mode should be disabled and all the filters
reapplied into the HW.

Currently driver only enables multicast promiscuous mode and deletes
the entries without any information to the user and it's not capable of
reapplying the filters once count is less than 128.

Address that by:

1. Add logging
2. Add logic in case multicast promiscuous is enabled and user lowers
the number of multicast entries to <128.
3. Fix a bug where driver removes different MAC entries along with the one
that's being deleted by the user.

Reviewers: #intel_networking, erj

Reviewed By: #intel_networking, erj

Subscribers: imp, ae

Differential Revision: https://reviews.freebsd.org/D40860

10 months agoAdd a virtio-gpu 2D driver
Andrew Turner [Thu, 17 Aug 2023 11:26:57 +0000 (12:26 +0100)]
Add a virtio-gpu 2D driver

Add a driver to connect vt to the VirtIO GPU device in 2D mode. This
provides a output on the display when a qemu virtio gpu device is
added, e.g. with -device virtio-gpu-pci.

Tested on qemu using UTM, and a Hetzner arm64 VM instance.

Reviewed by: bryanv (earlier version)
Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D40094

10 months agobhyve: add cmdline option for TPM emulation
Corvin Köhne [Thu, 7 Oct 2021 14:20:37 +0000 (16:20 +0200)]
bhyve: add cmdline option for TPM emulation

At the moment, only a TPM passthru is supported. The cmdline looks like:

-l tpm,passthru,/dev/tpm0

Reviewed by: markj
MFC after: 1 week
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D32961

10 months agoshare/examples/tests: fix comments after $FreeBSD$ removal
Ed Maste [Wed, 16 Aug 2023 21:37:21 +0000 (17:37 -0400)]
share/examples/tests: fix comments after $FreeBSD$ removal

Fixes: 2a63c3be1582 ("Remove $FreeBSD$: one-line .c comment pattern")
10 months agoCirrus-CI: temporarily disable amd64-gcc12 build/test on main
Ed Maste [Wed, 16 Aug 2023 20:26:49 +0000 (16:26 -0400)]
Cirrus-CI: temporarily disable amd64-gcc12 build/test on main

The amd64-gcc12 job is failing at present.  Unfortunately Cirrus-CI
appears to have a 100MB log limit and we exceed this before the error
is reported.  Disable the job for now until we can address the log
length issue.

See also https://github.com/cirruslabs/cirrus-ci-docs/issues/1176.

Sponsored by: The FreeBSD Foundation

10 months agomakefs: clean up some leftovers after $FreeBSD$ tag removal
Ed Maste [Thu, 30 Mar 2023 14:02:02 +0000 (10:02 -0400)]
makefs: clean up some leftovers after $FreeBSD$ tag removal

Fixes: 2a63c3be1582
10 months agoFix partially removed comment by removing the rest
Warner Losh [Wed, 16 Aug 2023 20:17:33 +0000 (14:17 -0600)]
Fix partially removed comment by removing the rest

Fixes: 2a63c3be1582
10 months agolibc: regoranize malloc build
Brooks Davis [Wed, 16 Aug 2023 18:16:51 +0000 (19:16 +0100)]
libc: regoranize malloc build

Create a stdlib/malloc to hold the definition of the malloc interface
(e.g., the Symbol.map file) and make jemalloc a subdirectory.  This will
make it easier to integrate alternative allocators such as snmalloc
while making it clear that the current jemalloc symbols are the FreeBSD
API/ABI (for better or worse).

Suggested by: jrtc27
Reviewed by: jrtc27, emaste
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D41457

10 months agojemalloc: drop unused .PATH
Brooks Davis [Wed, 16 Aug 2023 18:16:43 +0000 (19:16 +0100)]
jemalloc: drop unused .PATH

All jemalloc sources are in contrib so don't look for them in the
jemalloc subdirectory.

Reviewed by: jrtc27, emaste
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D41481

10 months agolibc: include malloc via stdlib/Makefile.inc
Brooks Davis [Wed, 16 Aug 2023 18:16:26 +0000 (19:16 +0100)]
libc: include malloc via stdlib/Makefile.inc

There's a hierarchy here and we should use it.

Improves: cbeacb7c46f3a3650e5dbefa9a1a18bc9943a8cc

Reviewed by: jrtc27, jhb, emaste
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D41456

10 months agofreebsd-yeet: Tool to remove $FreeBSD$ from tree
Warner Losh [Wed, 16 Aug 2023 18:06:37 +0000 (12:06 -0600)]
freebsd-yeet: Tool to remove $FreeBSD$ from tree

Use at your own risk, but this will remove $FreeBSD$ from your tree. It
does commits and tries to be at least a little smart about it.

Sponsored by: Netflix

10 months agoRemove $FreeBSD$: one-line xdr pattern
Warner Losh [Wed, 16 Aug 2023 17:55:47 +0000 (11:55 -0600)]
Remove $FreeBSD$: one-line xdr pattern

Remove /^\s*%\s*__FBSDID\("\$FreeBSD\$"\);?\s*\n/

10 months agoRemove $FreeBSD$: one-line forth tag
Warner Losh [Wed, 16 Aug 2023 17:55:43 +0000 (11:55 -0600)]
Remove $FreeBSD$: one-line forth tag

Remove /^\\[\s*]*\$FreeBSD\$.*$\n/

10 months agoRemove $FreeBSD$: one-line ps tag
Warner Losh [Wed, 16 Aug 2023 17:55:39 +0000 (11:55 -0600)]
Remove $FreeBSD$: one-line ps tag

Remove /^%\s*RCSID:\s*\$FreeBSD\$.*$\n/

10 months agoRemove $FreeBSD$: one-line lua tag
Warner Losh [Wed, 16 Aug 2023 17:55:34 +0000 (11:55 -0600)]
Remove $FreeBSD$: one-line lua tag

Remove /^--\s*\$FreeBSD\$.*$\n/

10 months agoRemove $FreeBSD$: two-line lua tag
Warner Losh [Wed, 16 Aug 2023 17:55:30 +0000 (11:55 -0600)]
Remove $FreeBSD$: two-line lua tag

Remove /^--\n--\s*\$FreeBSD\$.*$\n/

10 months agosys: Remove $FreeBSD$: two-line lua tag
Warner Losh [Wed, 16 Aug 2023 17:55:27 +0000 (11:55 -0600)]
sys: Remove $FreeBSD$: two-line lua tag

Remove /^--\n--\s*\$FreeBSD\$.*$\n/

10 months agoRemove $FreeBSD$: one-line catalog
Warner Losh [Wed, 16 Aug 2023 17:55:26 +0000 (11:55 -0600)]
Remove $FreeBSD$: one-line catalog

Remove /^\s*\$\s*\$FreeBSD\$$\n/

10 months agosys: Remove $FreeBSD$: one-line catalog
Warner Losh [Wed, 16 Aug 2023 17:55:22 +0000 (11:55 -0600)]
sys: Remove $FreeBSD$: one-line catalog

Remove /^\s*\$\s*\$FreeBSD\$$\n/

10 months agoRemove $FreeBSD$: one-line bare tag
Warner Losh [Wed, 16 Aug 2023 17:55:20 +0000 (11:55 -0600)]
Remove $FreeBSD$: one-line bare tag

Remove /^\s*\$FreeBSD\$$\n/

10 months agosys: Remove $FreeBSD$: one-line bare tag
Warner Losh [Wed, 16 Aug 2023 17:55:17 +0000 (11:55 -0600)]
sys: Remove $FreeBSD$: one-line bare tag

Remove /^\s*\$FreeBSD\$$\n/

10 months agoRemove $FreeBSD$: one-line nroff pattern
Warner Losh [Wed, 16 Aug 2023 17:55:15 +0000 (11:55 -0600)]
Remove $FreeBSD$: one-line nroff pattern

Remove /^\.\\"\s*\$FreeBSD\$$\n/

10 months agoRemove $FreeBSD$: two-line nroff pattern
Warner Losh [Wed, 16 Aug 2023 17:55:10 +0000 (11:55 -0600)]
Remove $FreeBSD$: two-line nroff pattern

Remove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/

10 months agosys: Remove $FreeBSD$: two-line nroff pattern
Warner Losh [Wed, 16 Aug 2023 17:55:06 +0000 (11:55 -0600)]
sys: Remove $FreeBSD$: two-line nroff pattern

Remove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/

10 months agoRemove $FreeBSD$: one-line sh pattern
Warner Losh [Wed, 16 Aug 2023 17:55:03 +0000 (11:55 -0600)]
Remove $FreeBSD$: one-line sh pattern

Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/

10 months agosys: Remove $FreeBSD$: one-line sh pattern
Warner Losh [Wed, 16 Aug 2023 17:54:58 +0000 (11:54 -0600)]
sys: Remove $FreeBSD$: one-line sh pattern

Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/

10 months agoRemove $FreeBSD$: one-line .S pattern
Warner Losh [Wed, 16 Aug 2023 17:54:57 +0000 (11:54 -0600)]
Remove $FreeBSD$: one-line .S pattern

Remove /^\s\.(asciz|ident)\s+\"\$FreeBSD\$\".*\n/

10 months agosys: Remove $FreeBSD$: one-line .S pattern
Warner Losh [Wed, 16 Aug 2023 17:54:54 +0000 (11:54 -0600)]
sys: Remove $FreeBSD$: one-line .S pattern

Remove /^\s\.(asciz|ident)\s+\"\$FreeBSD\$\".*\n/

10 months agoRemove $FreeBSD$: alt one-line .c pattern
Warner Losh [Wed, 16 Aug 2023 17:54:53 +0000 (11:54 -0600)]
Remove $FreeBSD$: alt one-line .c pattern

Remove /^\s*__RCSID\("\$FreeBSD\$"\);\n/

10 months agoRemove $FreeBSD$: alt two-line .c pattern
Warner Losh [Wed, 16 Aug 2023 17:54:48 +0000 (11:54 -0600)]
Remove $FreeBSD$: alt two-line .c pattern

Remove /^\s*__RCSID\("\$FreeBSD\$"\);\n\n/

10 months agoRemove $FreeBSD$: one-line .c pattern
Warner Losh [Wed, 16 Aug 2023 17:54:42 +0000 (11:54 -0600)]
Remove $FreeBSD$: one-line .c pattern

Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/

10 months agosys: Remove $FreeBSD$: one-line .c pattern
Warner Losh [Wed, 16 Aug 2023 17:54:36 +0000 (11:54 -0600)]
sys: Remove $FreeBSD$: one-line .c pattern

Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/

10 months agoRemove $FreeBSD$: two-line .c pattern
Warner Losh [Wed, 16 Aug 2023 17:54:34 +0000 (11:54 -0600)]
Remove $FreeBSD$: two-line .c pattern

Remove /^#include\s+<sys/cdefs.h>.*$\n\s+__FBSDID\("\$FreeBSD\$"\);\n/

10 months agosys: Remove $FreeBSD$: two-line .c pattern
Warner Losh [Wed, 16 Aug 2023 17:54:30 +0000 (11:54 -0600)]
sys: Remove $FreeBSD$: two-line .c pattern

Remove /^#include\s+<sys/cdefs.h>.*$\n\s+__FBSDID\("\$FreeBSD\$"\);\n/

10 months agoRemove $FreeBSD$: one-line .c comment pattern
Warner Losh [Wed, 16 Aug 2023 17:54:29 +0000 (11:54 -0600)]
Remove $FreeBSD$: one-line .c comment pattern

Remove /^/[*/]\s*\$FreeBSD\$.*\n/

10 months agosys: Remove $FreeBSD$: one-line .c comment pattern
Warner Losh [Wed, 16 Aug 2023 17:54:24 +0000 (11:54 -0600)]
sys: Remove $FreeBSD$: one-line .c comment pattern

Remove /^/[*/]\s*\$FreeBSD\$.*\n/

10 months agoRemove $FreeBSD$: one-line .h pattern
Warner Losh [Wed, 16 Aug 2023 17:54:23 +0000 (11:54 -0600)]
Remove $FreeBSD$: one-line .h pattern

Remove /^\s*\*+\s*\$FreeBSD\$.*$\n/

10 months agosys: Remove $FreeBSD$: one-line .h pattern
Warner Losh [Wed, 16 Aug 2023 17:54:18 +0000 (11:54 -0600)]
sys: Remove $FreeBSD$: one-line .h pattern

Remove /^\s*\*+\s*\$FreeBSD\$.*$\n/

10 months agoRemove $FreeBSD$: two-line .h pattern
Warner Losh [Wed, 16 Aug 2023 17:54:16 +0000 (11:54 -0600)]
Remove $FreeBSD$: two-line .h pattern

Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/

10 months agosys: Remove $FreeBSD$: two-line .h pattern
Warner Losh [Wed, 16 Aug 2023 17:54:11 +0000 (11:54 -0600)]
sys: Remove $FreeBSD$: two-line .h pattern

Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/

10 months agoRemove $FreeBSD$: one-line m4 tag
Warner Losh [Wed, 16 Aug 2023 17:54:09 +0000 (11:54 -0600)]
Remove $FreeBSD$: one-line m4 tag

Remove /^dnl\s*\$FreeBSD\$.*$\n/

10 months agosys: Remove $FreeBSD$: sound driver version
Warner Losh [Wed, 16 Aug 2023 17:53:59 +0000 (11:53 -0600)]
sys: Remove $FreeBSD$: sound driver version

Remove /SND_DECLARE_FILE\("\$FreeBSD\$"\);/

10 months agoFix incremental builds after GoogleTest update
Dimitry Andric [Tue, 15 Aug 2023 21:14:26 +0000 (23:14 +0200)]
Fix incremental builds after GoogleTest update

At the moment, several Makefiles under tests/ do not correctly generate
.depend files, which can lead to link errors when doing incremental
(e.g. WITHOUT_CLEAN) builds:

  ld: error: undefined symbol: testing::internal::g_linked_ptr_mutex
  >>> referenced by gtest-port.h:2137 (/usr/obj/usr/src/amd64.amd64/tmp/usr/include/private/gtest/internal/gtest-port.h:2137)
  >>>               mockfs.o:(testing::internal::linked_ptr_internal::depart())
  >>> referenced by gtest-port.h:2139 (/usr/obj/usr/src/amd64.amd64/tmp/usr/include/private/gtest/internal/gtest-port.h:2139)
  >>>               mockfs.o:(testing::internal::linked_ptr_internal::depart())
  >>> referenced by gtest-port.h:2139 (/usr/obj/usr/src/amd64.amd64/tmp/usr/include/private/gtest/internal/gtest-port.h:2139)
  >>>               mockfs.o:(testing::internal::linked_ptr_internal::depart())
  >>> referenced 3 more times

For the time being, put in a depend-cleanup.sh workaround for this.

Reported by: des
Reviewed by: emaste
Fixes: 28f6c2f29280
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D41476

10 months agoRELNOTES: Note the deprecation of 32-bit platforms for 15.0.
John Baldwin [Wed, 16 Aug 2023 16:49:17 +0000 (09:49 -0700)]
RELNOTES: Note the deprecation of 32-bit platforms for 15.0.

This draws a line in the sand of removing support for 32-bit worlds
and kernels aside from COMPAT_FREEBSD32 and lib32 support.  The
project may choose to alter this approach when 15.0 is released by
extending some level of 32-bit support in 15.0 or later.

In particular, at present there is a fair bit of interest in retaining
armv7 support in 15.0 at least.

Reviewed by: brooks
Differential Revision: https://reviews.freebsd.org/D41164

10 months agosys: Add a deprecation warning for 32-bit kernels.
John Baldwin [Wed, 16 Aug 2023 16:48:51 +0000 (09:48 -0700)]
sys: Add a deprecation warning for 32-bit kernels.

Per recent discussions on arch@ and at the BSDCan developer summit, we
are considering removing support for 32-bit platforms (in some form)
for 15.0 (at the earliest).  A final decision on what will ship in
15.0 will be made closer to the release of 15.0.  However, we should
communicate the potential deprecation in 14.0 to provide notice to
users.

This commit adds a warning during boot on 32-bit kernels that they are
deprecated and may be removed in 15.0.  More details will be included
in a followup commit to RELNOTES.

Reviewed by: brooks, imp, emaste
Differential Revision: https://reviews.freebsd.org/D41163

10 months agocxgbe(4): Update firmwares to 1.27.4.0
Navdeep Parhar [Wed, 16 Aug 2023 12:42:00 +0000 (05:42 -0700)]
cxgbe(4): Update firmwares to 1.27.4.0

This is the list of changes since last release, taken from the release
notes of Chelsio Unified Wire 3.18.0.1.

Version : 1.27.4.0
Date    : 07/05/2023
=======================================
Fixes
-----

BASE:
- Handle 40G to 100G cable change.
- Avoid unnecessary i2c read.
=======================================

Obtained from: Chelsio Communications
Sponsored by: Chelsio Communications
MFC after: 1 week

10 months agolocal.dirdeps.mk ensure tools/build is built if needed
Simon J. Gerraty [Wed, 16 Aug 2023 15:31:11 +0000 (08:31 -0700)]
local.dirdeps.mk ensure tools/build is built if needed

If MK_host_egacy is yes, we need it built, make sure that happens.

Reviewed by: stevek

10 months agonetstat(1): fix manpage date
Doug Rabson [Wed, 16 Aug 2023 14:13:31 +0000 (15:13 +0100)]
netstat(1): fix manpage date

MFC after: 1 week

10 months agonetstat(1): teach netstat to attach to jails
Doug Rabson [Mon, 14 Aug 2023 08:01:28 +0000 (09:01 +0100)]
netstat(1): teach netstat to attach to jails

Add -j <jail> flag to netstat(1) to allow access to network information
from a jail.

MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D41446

10 months agopowerpc/ata: Remove non-standard __FBSDID()
Warner Losh [Wed, 16 Aug 2023 07:42:59 +0000 (01:42 -0600)]
powerpc/ata: Remove non-standard __FBSDID()

This one has an extra '* ' at the front, so isn't picked up by the
scripts

Sponsored by: Netflix

10 months agoglob.h: Remove $FreeBSD$
Warner Losh [Wed, 16 Aug 2023 07:42:14 +0000 (01:42 -0600)]
glob.h: Remove $FreeBSD$

This likely documented where this file was copied, but the $FreeBSD$
tag was lost as soon as it was committed. Just remove it. Also remove
the one that looked like it was intended to track versions. That will
simplify the MFC.

Sponsored by: Netflix

10 months agompool: Remove $FreeBSD$ comment
Warner Losh [Wed, 16 Aug 2023 07:37:16 +0000 (01:37 -0600)]
mpool: Remove $FreeBSD$ comment

Remove non-standard $FreeBSD$ comment. It's not useful

Sponsored by: Netflix

10 months agocursor.bdf: Remove $FreeBSD$ tag
Warner Losh [Wed, 16 Aug 2023 07:36:00 +0000 (01:36 -0600)]
cursor.bdf: Remove $FreeBSD$ tag

Remove $FreeBSD$ tag COMMENT

Sponsored by: Netflix

10 months agops3: Don't add $FreeBSD$ to generated file
Warner Losh [Wed, 16 Aug 2023 07:30:04 +0000 (01:30 -0600)]
ps3: Don't add $FreeBSD$ to generated file

Sponsored by: Netflix

10 months agogenerate-hfs.sh: don't embed $FreeBSD$ in generated code
Warner Losh [Wed, 16 Aug 2023 07:24:03 +0000 (01:24 -0600)]
generate-hfs.sh: don't embed $FreeBSD$ in generated code

Sponsored by: Netflix

10 months agovnode_if: Don't add $FreeBSD$ to the output
Warner Losh [Wed, 16 Aug 2023 06:22:54 +0000 (00:22 -0600)]
vnode_if: Don't add $FreeBSD$ to the output

Sponsored by: Netflix

10 months agofw_stub: Don't add $FreeBSD$ to generated file
Warner Losh [Wed, 16 Aug 2023 06:21:20 +0000 (00:21 -0600)]
fw_stub: Don't add $FreeBSD$ to generated file

Sponsored by: Netflix

10 months agomiidevs2h: Ignore the first line
Warner Losh [Wed, 16 Aug 2023 05:33:18 +0000 (23:33 -0600)]
miidevs2h: Ignore the first line

The first line hasn't contained version information in years. Ignore it
entirely.

Sponsored by: Netflix

10 months agousbdevs2h: Ignore First Line and stop generating $FreeBSD$
Warner Losh [Wed, 16 Aug 2023 05:32:04 +0000 (23:32 -0600)]
usbdevs2h: Ignore First Line and stop generating $FreeBSD$

Just ignore the first line of the usbdevs file. And stop recording what
the usbdevs* files were generated from. It's said '$FreeBSD$' for years
now...

Sponsored by: Netflix

10 months agosystat: Remove obsolete copyright string
Warner Losh [Wed, 16 Aug 2023 03:22:50 +0000 (21:22 -0600)]
systat: Remove obsolete copyright string

This is unused, so remove it. We don't put a copyright string in most of
the other binaries. This one doesn't need one either.

Sponsored by: Netflix

10 months agodevmatch: introduce quiet command line option
Bjoern A. Zeeb [Sun, 13 Aug 2023 21:33:48 +0000 (21:33 +0000)]
devmatch: introduce quiet command line option

In setups without hints whatsoever one can get a long list of
"Can't read linker hints file" error messages during boot.
Add a -q/--quiet option which would suppress the noise and leave
space for more essential information.

While here switch to a pre-defined exit code from sysexits.

MFC after: 4 weeks
Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D41443

10 months agoboot0: add a note about BIOS-supported serial rates
Ed Maste [Tue, 15 Aug 2023 22:42:22 +0000 (18:42 -0400)]
boot0: add a note about BIOS-supported serial rates

We plan to increase the default serial rate to 115200 (see review
D36295) but early boot components that use BIOS interfaces do not
support higher rates.  Add a note to that effect.

Reported by: imp
Sponsored by: The FreeBSD Foundation

10 months agoe1000: Fix off by one ipcse
Kevin Bowling [Tue, 15 Aug 2023 21:37:43 +0000 (14:37 -0700)]
e1000: Fix off by one ipcse

This has been off by one in the FreeBSD drivers as far back as I've
looked.  Emperically HW and SW emulations I have available don't seem to
mind.  Noticed while debugging other issues.

MFC after: 3 days

10 months agollvm: fix armv[67] after 0bc26e325450
Warner Losh [Tue, 15 Aug 2023 19:08:39 +0000 (13:08 -0600)]
llvm: fix armv[67] after 0bc26e325450

During the life-cycle of the patch that landed as 0bc26e325450, the
variable names changed and I missed that in the rebase. Use the proper
TARGET_TRIPLE_ABI.

Fixes: 0bc26e325450
Sponsored by: Netflix

10 months agonvme.h: Fix a comment typo in admin opcode enum
John Baldwin [Tue, 15 Aug 2023 18:05:30 +0000 (11:05 -0700)]
nvme.h: Fix a comment typo in admin opcode enum

Sponsored by: Chelsio Communications

10 months agossh: Remove note about memory leak now resolved upstream
Ed Maste [Tue, 15 Aug 2023 15:54:09 +0000 (11:54 -0400)]
ssh: Remove note about memory leak now resolved upstream

OpenSSH 9.4p1 (updated in commit 535af610a4fd) includes the memory leak
fix that we originally applied in 69c72a57af84 ("sftp: avoid leaking
path arg in calls to make_absolute_pwd_glob.").

Sponsored by: The FreeBSD Foundation

10 months agodrm2: remove unused Alpha and MIPS #defines
Ed Maste [Tue, 18 Oct 2022 14:27:32 +0000 (10:27 -0400)]
drm2: remove unused Alpha and MIPS #defines

10 months agoetdump: warn only once for non El Torito bootable ISO images
Ed Maste [Sat, 22 Apr 2023 00:36:28 +0000 (20:36 -0400)]
etdump: warn only once for non El Torito bootable ISO images

Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D39869

10 months agox86: include CPU ID in "Invalid CPU ID" panic
Ed Maste [Fri, 4 Aug 2023 18:56:15 +0000 (14:56 -0400)]
x86: include CPU ID in "Invalid CPU ID" panic

Sponsored by: The FreeBSD Foundation

10 months agossh: correct VersionAddendum date
Ed Maste [Tue, 15 Aug 2023 13:29:06 +0000 (09:29 -0400)]
ssh: correct VersionAddendum date

Reported by: Herbert J. Skuhra <herbert@gojira.at>
Fixes: 535af610a4fd ("ssh: Update to OpenSSH 9.4p1")
Sponsored by: The FreeBSD Foundation

10 months agoarm64: increase MAXCPU to 1024, following amd64
Ed Maste [Thu, 3 Aug 2023 21:47:06 +0000 (17:47 -0400)]
arm64: increase MAXCPU to 1024, following amd64

As in commit 9051987e40c5 for amd64, support up to 1024 CPU cores.
arm64 hardware with more than 256 CPU cores is currently available and
will become increasingly common over FreeBSD 14's lifetime.

PR: 269572
Reviewed by: andrew
Relnotes: Yes
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D41319

10 months agoarm64: Add a driver for the Arm PL031 RTC
Andrew Turner [Tue, 1 Aug 2023 15:21:21 +0000 (16:21 +0100)]
arm64: Add a driver for the Arm PL031 RTC

It is a simple RTC found in some Arm SoCs, e.g. the Arm Juno.

Reviewed by: manu
Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D41267

10 months agoofw_firmware: Return BUS_PROBE_GENERIC instead of 0
Emmanuel Vadot [Tue, 15 Aug 2023 05:59:09 +0000 (07:59 +0200)]
ofw_firmware: Return BUS_PROBE_GENERIC instead of 0

While here make it only probe if the node is directly under the root
one. If it's not it's likely a device node named 'firmware' and not the
firmware group we're interested in.

Suggested by: jhb
Sponsored by: Beckhoff Automation GmbH & Co. KG

10 months agoe1000: disable TSO on lem(4) and em(4)
Kevin Bowling [Tue, 15 Aug 2023 00:25:39 +0000 (17:25 -0700)]
e1000: disable TSO on lem(4) and em(4)

Disable TSO on lem(4) and em(4) until a ring stall can be debugged.

I am not able to reproduce the issue on lem(4) but disabling there in
abundance of caution in case the issue is not specific to em(4).

Reported by: grog

10 months agonvme: use mtx_padaalign instead of mtx + alignment attribute
Warner Losh [Mon, 14 Aug 2023 22:31:37 +0000 (16:31 -0600)]
nvme: use mtx_padaalign instead of mtx + alignment attribute

nvme driver predates, it seems, mtx_padalign. Modernize.

Sponsored by: Netflix

10 months agopci: return 0 for pci_remap_intr_method MSI-X non-error case
Ed Maste [Mon, 14 Aug 2023 20:35:34 +0000 (16:35 -0400)]
pci: return 0 for pci_remap_intr_method MSI-X non-error case

When remapping a MSI-X vector, we would always return ENOENT, even if
successful.  This didn't really matter, as the sole caller of
BUS_REMAP_INTR also didn't check for errors.

Return 0 if there's no error, so that we can start handling (or at least
warning about) actual failures.

Reviewed by: jhb
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D41449

10 months agox86: move EARLY_AP_STARTUP into DEFAULTS
Ed Maste [Mon, 7 Aug 2023 21:49:57 +0000 (17:49 -0400)]
x86: move EARLY_AP_STARTUP into DEFAULTS

EARLY_AP_STARTUP was introduced in 2016 (commit fdce57a04219) with note:

    As a transition aid, the new behavior is moved under a new
    kernel option (EARLY_AP_STARTUP). This will allow the option
    to be turned off if need be during initial testing. I hope to
    enable this on x86 by default in a followup commit ...

It was enabled by default, but became effectively mandatory (on x86)
some time later.  Move it to DEFAULTS to avoid an unbootable system if
the option is left out of a custom kernel configuration file.

Reported by: wollman
Reviewed by: jhb
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D41352

10 months agosockets: on accept(2) don't copy all of so_options to new socket
Gleb Smirnoff [Mon, 14 Aug 2023 19:56:07 +0000 (12:56 -0700)]
sockets: on accept(2) don't copy all of so_options to new socket

As uncovered by e3ba0d6adde3 we are copying lots of irrelevant options
from the listener to an accepted socket, even those that aren't relevant
to a non-listener, e.g. SO_REUSE*, SO_ACCEPTFILTER.  Stop doing that
and provide a fixed opt-in list for options to be inherited.  Ideally
we shall not inherit anything at all.  For compatibility inherit a set
of options that are meaningful for a non-listening socket of a protocol
that can listen(2).

Differential Revision: https://reviews.freebsd.org/D41412
Fixes: e3ba0d6adde3c694f46a30b3b67eba43a7099395