]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
7 weeks agonetworking.7 : create network quickstart guide
Alexander Ziaee [Wed, 17 Apr 2024 15:51:35 +0000 (09:51 -0600)]
networking.7 : create network quickstart guide

Now that the handbook has been moved to ports, I think it's very nice to
have a network quickstart guide in-band, in base, in the system manual.
If the user uses any of the following terms "man -k
{network,networking,wifi,quickstart}" this page will come up, which is I
think a very common use case for new users.

Currently, this document explains connecting to a basic Ethernet
network, a basic wifi network, scanning for wifi networks, and airplane
mode, as well as linking to other sections, including the handbook

Co-authored-by: Graham Perrin <grahamperrin@gmail.com>
Reviewed by: imp, bcr, freebsd@igalic.co
Pull Request: https://github.com/freebsd/freebsd-src/pull/833

7 weeks agonfsserver: Rate-limit messages about requests from unprivileged ports
Mark Johnston [Wed, 17 Apr 2024 14:36:58 +0000 (10:36 -0400)]
nfsserver: Rate-limit messages about requests from unprivileged ports

If access from unreserved ports is disabled, then a remote host can
cause an NFS server to log a message by sending a packet.  This is
useful for diagnosing problems but bad for resiliency in the case where
the server is being spammed with a large number of rejected requests.

Limit prints to once per second (racily).

Reviewed by: rmacklem, emaste
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D44819

7 weeks agonuageinit: start the script after zfs
Baptiste Daroussin [Wed, 17 Apr 2024 14:25:02 +0000 (16:25 +0200)]
nuageinit: start the script after zfs

It prevents the home directory for the new users to be hidden
by late mount of the home directory

7 weeks agolibarchive: add two missing package files to libarchive tests
Martin Matuska [Wed, 17 Apr 2024 07:58:32 +0000 (09:58 +0200)]
libarchive: add two missing package files to libarchive tests

MFC after: 1 week

7 weeks agolibarchive: fix null format string error in tests (unbreaks gcc13 build)
Martin Matuska [Wed, 17 Apr 2024 07:33:13 +0000 (09:33 +0200)]
libarchive: fix null format string error in tests (unbreaks gcc13 build)

Obtained from: libarchive (d43c39247)
MFC after: 1 week

7 weeks agozfs: unbreak aarch64 build with non-gcc compilers
Martin Matuska [Tue, 16 Apr 2024 23:34:25 +0000 (01:34 +0200)]
zfs: unbreak aarch64 build with non-gcc compilers

Workaround until a permanent fix comes from vendor

7 weeks agoWITH_NVME: Remove from broken.
Warner Losh [Tue, 16 Apr 2024 23:07:49 +0000 (17:07 -0600)]
WITH_NVME: Remove from broken.

NVME works everywhere, so we can eliminate this. We may remove the
option altogether.

Sponsored by: Netflix
Discussed with: ken, jhb

7 weeks agonvmecontrol: One file per line
Warner Losh [Tue, 16 Apr 2024 22:37:30 +0000 (16:37 -0600)]
nvmecontrol: One file per line

Move to a one file per line setup, and sort the files alphabetically.

Sponsored by: Netflix
Reviewed by: chuck, jhb
Differential Revision: https://reviews.freebsd.org/D44684

7 weeks agonvmecontrol: Add nvme 2.0 fields to read_logpage
Warner Losh [Tue, 16 Apr 2024 22:37:20 +0000 (16:37 -0600)]
nvmecontrol: Add nvme 2.0 fields to read_logpage

Add the lpo, ot, csi and uuid_index fields to read_logpage. The logpage
command has not been updated to allow these to be specified.

Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D44683

7 weeks agonvmecontrol: Preliminary namespace documentation
Warner Losh [Tue, 16 Apr 2024 22:37:02 +0000 (16:37 -0600)]
nvmecontrol: Preliminary namespace documentation

Provide preliminary namespace subcommand documentation, along with some
basic definitions from the NVM standards relating to namespaces.

Sponsored by: Netflix
Reviewed by: jhb
Differential Revision: https://reviews.freebsd.org/D44682

7 weeks agonvmecontrol: add newlines where needed for ns command printfs
Warner Losh [Tue, 16 Apr 2024 22:36:54 +0000 (16:36 -0600)]
nvmecontrol: add newlines where needed for ns command printfs

Sponsored by: Netflix
Reviewed by: chuck, jhb
Differential Revision: https://reviews.freebsd.org/D44681

7 weeks agonvme: Eliminate intel_log_temp_stats_swapbytes
Warner Losh [Tue, 16 Apr 2024 22:36:47 +0000 (16:36 -0600)]
nvme: Eliminate intel_log_temp_stats_swapbytes

We can't post a AER for this page, so there's no need to be able to swap
it to host byte order. It's not one of the standard defined pages that
can post via AER, and the vendor's public docs for this temperature page
don't suggest it's possible to get over or under event changes. Since
nvmecontrol no longer needsd the swap routine, remove it since it's
now unused.

Sponsored by: Netflix
Reviewed by: chuck
Differential Revision: https://reviews.freebsd.org/D44659

7 weeks agonvmecontrol: Move intel temperature page printing to little endian orderinng
Warner Losh [Tue, 16 Apr 2024 22:36:41 +0000 (16:36 -0600)]
nvmecontrol: Move intel temperature page printing to little endian orderinng

Sponsored by: Netflix
Reviewed by: chuck
Differential Revision: https://reviews.freebsd.org/D44658

7 weeks agonvmecontrol: Move sanitize status page printing to little endian orderinng
Warner Losh [Tue, 16 Apr 2024 22:36:36 +0000 (16:36 -0600)]
nvmecontrol: Move sanitize status page printing to little endian orderinng

Sponsored by: Netflix
Reviewed by: chuck
Differential Revision: https://reviews.freebsd.org/D44657

7 weeks agonvmecontrol: Move reservation notifcation page printing to little endian orderinng
Warner Losh [Tue, 16 Apr 2024 22:36:31 +0000 (16:36 -0600)]
nvmecontrol: Move reservation notifcation page printing to little endian orderinng

Sponsored by: Netflix
Reviewed by: chuck
Differential Revision: https://reviews.freebsd.org/D44656

7 weeks agonvmecontrol: Move command effeccts page printing to little endian orderinng
Warner Losh [Tue, 16 Apr 2024 22:36:25 +0000 (16:36 -0600)]
nvmecontrol: Move command effeccts page printing to little endian orderinng

Sponsored by: Netflix
Reviewed by: chuck
Differential Revision: https://reviews.freebsd.org/D44655

7 weeks agonvmecontrol: Move self test status page printing to little endian orderinng
Warner Losh [Tue, 16 Apr 2024 22:36:19 +0000 (16:36 -0600)]
nvmecontrol: Move self test status page printing to little endian orderinng

Also, add printing vnedor_specific field, which doesn't have a valid
bit, so is always valid.

Sponsored by: Netflix
Reviewed by: chuck
Differential Revision: https://reviews.freebsd.org/D44654

7 weeks agonvmecontrol: Move namespace change page printing to little endian orderinng
Warner Losh [Tue, 16 Apr 2024 22:36:13 +0000 (16:36 -0600)]
nvmecontrol: Move namespace change page printing to little endian orderinng

Sponsored by: Netflix
Reviewed by: chuck
Differential Revision: https://reviews.freebsd.org/D44653

7 weeks agonvmecontrol: Move smart/health printing to little endian orderinng
Warner Losh [Tue, 16 Apr 2024 22:36:05 +0000 (16:36 -0600)]
nvmecontrol: Move smart/health printing to little endian orderinng

Move health printing to little endian ordering...

Sponsored by: Netflix
Reviewed by: chuck
Differential Revision: https://reviews.freebsd.org/D44652

7 weeks agonvmecontrol: Fix to128 for big endian targets
Warner Losh [Tue, 16 Apr 2024 22:35:59 +0000 (16:35 -0600)]
nvmecontrol: Fix to128 for big endian targets

The source is always 128-bits in little endian format. For big endian
hosts, we have to convert, or we print bogus numbers.

Sponsored by: Netflix
Reviewed by: chuck
Differential Revision: https://reviews.freebsd.org/D44651

7 weeks agonvmecontrol: Have to truncate on all 32-bit architectures
Warner Losh [Tue, 16 Apr 2024 22:35:53 +0000 (16:35 -0600)]
nvmecontrol: Have to truncate on all 32-bit architectures

armv7, powerpc, powerpcspe and i386 all lack 128-bit integer
types. Adjust the comment and #ifdef. I don't think we support nvme on
any of these other architectures at the moment, but it won't hurt to be
more precise.

Sponsored by: Netflix
Reviewed by: chuck
Differential Revision: https://reviews.freebsd.org/D44650

7 weeks agonvmecontrol: Make the error log page work on native format
Warner Losh [Tue, 16 Apr 2024 22:35:46 +0000 (16:35 -0600)]
nvmecontrol: Make the error log page work on native format

As the number of page types proliferates, it becomes untennable to
convert them in read_logpage (especailly since new UUID page types will
need to be supported). Convert the error page printing code to operate
on little endian data.

Sponsored by: Netflix
Reviewed by: chuck
Differential Revision: https://reviews.freebsd.org/D44680

7 weeks agonvmecontrol: Create letoh to generically convert to host order
Warner Losh [Tue, 16 Apr 2024 22:35:33 +0000 (16:35 -0600)]
nvmecontrol: Create letoh to generically convert to host order

Using _Generic, create letoh which will generically convert uintXX_t
types from little endian to host, regardless of the size. This name has
been floated as a possible addition to endian.h.

Sponsored by: Netflix
Discussed with: jhb
Reviewed by: chuck
Differential Revision: https://reviews.freebsd.org/D44649

7 weeks agoarm_kernel_bothdr.awk: Update to latest ota
Warner Losh [Mon, 15 Apr 2024 21:07:46 +0000 (15:07 -0600)]
arm_kernel_bothdr.awk: Update to latest ota

The latest ota is the first one in FreeBSD that treats 0 + "0xf" as
being '0' instead of '15'. Don't use this old trick anymore to convert
from hexidecimal to a number. Write a function to do that instead. This
fixes kernel.bin building on arm*. awk on 14 doesn't need this, but to
build FreeBSD stable/14's kernel.bin on 15 we'll need it, so fast MFC.

MFC After: 3 days
Sponsored by: Netflix
Reviewed by: kevans
Differential Revision:  https://reviews.freebsd.org/D44801

7 weeks agocp: Use warnc().
Dag-Erling Smørgrav [Wed, 17 Apr 2024 02:07:20 +0000 (04:07 +0200)]
cp: Use warnc().

MFC after: 1 week
Sponsored by: Klara, Inc.

7 weeks agoinstall: Assorted nitpickery.
Dag-Erling Smørgrav [Wed, 17 Apr 2024 01:36:42 +0000 (03:36 +0200)]
install: Assorted nitpickery.

* Use `errc()` instead of manually setting `errno` before calling `err()`.
* Change one warning into a fatal error.
* Drop some unnecessary casts.
* `strlcat()` bounds checks were off-by-one.  This does not matter in
  practice because the subsequent code renders an overrun harmless.
* We were passing `SSIZE_MAX` to `copy_file_range()` instead of the
  requested size.  This only matters if we're asked to install a file
  which is still being written to while we are copying it.

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

7 weeks agoinstall: Remove the mmap(2) option.
Dag-Erling Smørgrav [Wed, 17 Apr 2024 01:36:31 +0000 (03:36 +0200)]
install: Remove the mmap(2) option.

We already removed it from cp(1) over a year ago but never followed up
here.  Do so now, for the same reasons: significant complexity for
little to no benefit.

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

7 weeks agocp: Additional sanity check.
Dag-Erling Smørgrav [Wed, 17 Apr 2024 01:36:26 +0000 (03:36 +0200)]
cp: Additional sanity check.

Once we've successfully opened the file we've been asked to copy, check
that it's of the same type as FTS told us it was.

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

7 weeks agocp: Clarify an obscure comment.
Dag-Erling Smørgrav [Wed, 17 Apr 2024 01:36:22 +0000 (03:36 +0200)]
cp: Clarify an obscure comment.

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

7 weeks agoacpi_battery: avoid divide-by-zero when no devices have capacity info
Josef 'Jeff' Sipek [Tue, 16 Apr 2024 23:01:28 +0000 (19:01 -0400)]
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

7 weeks agoexports.5: Clarify that exported dirs should be local mount points
Mark Johnston [Tue, 16 Apr 2024 22:25:57 +0000 (18:25 -0400)]
exports.5: Clarify that exported dirs should be local mount points

If not, then in general the entire filesystem containing the exported
directory is accessiable.  This may be surprising, so try to make it
more clear.

Reviewed by: rmacklem, emaste
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D44614

7 weeks agoexports.5: Update an example to use service(8)
Mark Johnston [Tue, 16 Apr 2024 22:25:19 +0000 (18:25 -0400)]
exports.5: Update an example to use service(8)

MFC after: 1 week

7 weeks agolibarchive: merge from vendor branch
Martin Matuska [Tue, 16 Apr 2024 21:39:31 +0000 (23:39 +0200)]
libarchive: merge from vendor branch

Libarchive 3.7.3

New features:
  #1941 uudecode filter: support file name and file mode in raw mode
  #1943 7-zip reader: translate Windows permissions into UNIX
        permissions
  #1962 zstd filter now supports the "long" write option
  #2012 add trailing letter b to bsdtar(1) substitute pattern
  #2031 PCRE2 support
  #2054 add support for long options "--group" and "--owner" to tar(1)

Security fixes:
  #2101 Fix possible vulnerability in tar error reporting introduced
        in f27c173

Important bugfixes:
  #1974 ISO9660: preserve the natural order of links
  #2105 rar5: fix infinite loop if during rar5 decompression the last
        block produced no data
  #2027 xz filter: fix incorrect eof at the end of an lzip member
  #2043 zip: fix end-of-data marker processing when decompressing zip
        archives

PR: 278315 (exp-run)
MFC after: 1 week

7 weeks agolibc/arm: export __signalcontext not _signalcontext
Brooks Davis [Tue, 16 Apr 2024 17:05:16 +0000 (18:05 +0100)]
libc/arm: export __signalcontext not _signalcontext

The former exists and architectures other than aarch64 and riscv provide
it.  The later does not exist.

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

7 weeks agolibcxxrt: don't export nonexistant symbols
Brooks Davis [Tue, 16 Apr 2024 17:04:16 +0000 (18:04 +0100)]
libcxxrt: don't export nonexistant symbols

Remove version entries that we don't build.

Add an arm specific Version.map and for other targets run the files
through sed to handle int vs long in new and delete.

Ideally we'd use the SYMBOL_MAPS functionality to preprocess with cpp,
but it doesn't currently handle C++ symbols so be annoyingly duplicative
for now.

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

7 weeks agolibgcc_s: exclude symbols not present on some arches
Brooks Davis [Tue, 16 Apr 2024 17:03:42 +0000 (18:03 +0100)]
libgcc_s: exclude symbols not present on some arches

arm, aarch64, and riscv lack some/all frame_info interfaces.
arm and powerpc lack some numeric functions.

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

7 weeks agolibgcc_s: only export 128-bit int APIs when available
Brooks Davis [Tue, 16 Apr 2024 17:03:21 +0000 (18:03 +0100)]
libgcc_s: only export 128-bit int APIs when available

These interfaces are only compiled when the platform supports 128-bit
ints.  Use a CRT_HAS_128BIT guard similar to the one used in the
compiler_rt sources.

Reviewed by: dim
Differential Revision: https://reviews.freebsd.org/D44323

7 weeks agolibgcc_s: only export 128-bit long double when available
Brooks Davis [Tue, 16 Apr 2024 17:02:55 +0000 (18:02 +0100)]
libgcc_s: only export 128-bit long double when available

These functions are only available on aarch64 and riscv so only try to
export them on those architectures.

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

7 weeks agolibrpcsec_gss: don't export non-existant symbols
Brooks Davis [Tue, 16 Apr 2024 17:02:14 +0000 (18:02 +0100)]
librpcsec_gss: don't export non-existant symbols

rpc_gss_mesh_to_oid was never implemented.

This doesn't seem to be any reason why we would need to export the _stub
functions, but it's also a little unclear to me why the linker thinks
they aren't present.  Perhaps they should be static.

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

7 weeks agolibc: don't try to export __sF
Brooks Davis [Tue, 16 Apr 2024 17:01:54 +0000 (18:01 +0100)]
libc: don't try to export __sF

This symbol has been static since 2008 (commit 1e98f88776fc).

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

7 weeks agolibc: don't try to export _nsdbtdump
Brooks Davis [Tue, 16 Apr 2024 17:01:45 +0000 (18:01 +0100)]
libc: don't try to export _nsdbtdump

It is only present when compiling nsdispatch.c with -D_NSS_DEBUG and we
provide no mechanism to do so.

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

7 weeks agolibc: don't try to export mexitcount
Brooks Davis [Tue, 16 Apr 2024 17:01:35 +0000 (18:01 +0100)]
libc: don't try to export mexitcount

This requires that mcount.c be compiled with -DGUPROF and we provide no
mechanism to do so.

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

7 weeks agolibc: don't try to export mpool_stat
Brooks Davis [Tue, 16 Apr 2024 17:01:25 +0000 (18:01 +0100)]
libc: don't try to export mpool_stat

This requires that mpool.c be compiled with -DSTATISTICS and we provide
no mechanism to do this.

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

7 weeks agolibc: only export hesiod symbols when enabled
Brooks Davis [Tue, 16 Apr 2024 17:00:54 +0000 (18:00 +0100)]
libc: only export hesiod symbols when enabled

Create a seperate symbol file for hesiod and conditionally include it.
This allows linkage with --no-undefined-version.

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

7 weeks agozfs: merge openzfs/zfs@90ba19eb7
Martin Matuska [Tue, 16 Apr 2024 20:52:34 +0000 (22:52 +0200)]
zfs: merge openzfs/zfs@90ba19eb7

Notable upstream pull request merges:
 #15784 90ba19eb7b Do no use .cfi_negate_ra_state within the assembly
                   on Arm64
 #15942 b6bbaa8372 Give a better message from 'zpool get' with invalid
                   pool name
 #15943 ca678bc0bc Makefile.bsd: sort and cleanup source file list
 #15953 fa480fe5ba zinject: show more device fault fields
 #15983 30c4eba4ea Fix panics when truncating/deleting files
 #15992 99741bde59 zvol: use multiple taskq
 #16015 a100a195fa Add support for zfs mount -R <filesystem>
 #16022 5e5fd0a178 Speculative prefetch for reordered requests
 #16040 997f85b4d3 L2ARC: Relax locking during write
 #16042 b12738182c Improve dbuf_read() error reporting
 #16051 a9a4290173 xdr: header cleanup
 #16052 eeca9a91d6 Fix read errors race after block cloning
 #16057 aa5445c28b Remove db_state DB_NOFILL checks from syncing context
 #16061 76d1dde94c zinject: inject device errors into ioctls
 #16072 9e63631dea Small fix to prefetch ranges aggregation
 #16077 44f337be30 Illumos#16463 zfs_ioc_recv leaks nvlist
 #16085 4725e543be zinject: "no-op" error injection
 #16086 c6da985e28 Add the BTI elf note to the AArch64 SHA2 assembly

Obtained from: OpenZFS
OpenZFS commit: 90ba19eb7b81f0225e63bedfb902000d23383921

7 weeks agoiflib: Correct indentation according to style(9)
Stephen J. Kiernan [Tue, 16 Apr 2024 18:35:57 +0000 (14:35 -0400)]
iflib: Correct indentation according to style(9)

The indentation style for the SYSCTL_* macros used was not matching KNF.

Reported by: jhb
Differential Revision: https://reviews.freebsd.org/D44811

7 weeks agomfc-candidates: fix output order with incorrect commit dates
Ed Maste [Tue, 16 Apr 2024 15:41:05 +0000 (11:41 -0400)]
mfc-candidates: fix output order with incorrect commit dates

Previously we obtained the list of MFC candidate hashes (i.e., those
commits only in the mfc-from branch), removed the already-merged
commits based on "cherry picked from" commit message entries, and then
printed the list sorted by commit time.  This is usually the correct
order, but it is not when commits have non-monotonically-increasing
commit times.  This is unfortunately the case for a number of commits in
our tree.  This made it difficult to merge some groups of dependent
commits in the correct order.

Instead, leave the from-list in git rev-parse order, and move the
matching logic to a new lua script.

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

7 weeks agolibc: INTERPOS_SYS macro for interposed syscalls
Brooks Davis [Tue, 16 Apr 2024 16:48:08 +0000 (17:48 +0100)]
libc: INTERPOS_SYS macro for interposed syscalls

This macro makes uses the __sys_<foo>_t typedefs from libsys.h to
greatly simplify calling functions in the interposing table.

Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D44389

7 weeks agolib{c,rt}: use libsys.h for __sys_* declerations
Brooks Davis [Tue, 16 Apr 2024 16:48:07 +0000 (17:48 +0100)]
lib{c,rt}: use libsys.h for __sys_* declerations

Use the genreated source of truth for system call declerations.

Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D44388

7 weeks agolibsys: add a libsys.h
Brooks Davis [Tue, 16 Apr 2024 16:48:07 +0000 (17:48 +0100)]
libsys: add a libsys.h

This declares an API for libsys which currently consists of
__sys_<foo>() declarations for system call stubs and function pointer
typedefs of the form __sys_<foo>_t.  The vast majority of the
implementation resides in a generated _libsys.h which ensures that all
system call stub declarations match syscalls.master.

Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D44387

7 weeks agomakesyscalls: generate core libsys header
Brooks Davis [Tue, 16 Apr 2024 16:48:07 +0000 (17:48 +0100)]
makesyscalls: generate core libsys header

Create a header covering most of the "stable" libsys interfaces.
Specifically __sys_<foo> syscall stubs and __sys_<foo>_t typedefs for
those interfaces.

Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D44386

7 weeks agomergemaster: postpone removal to FreeBSD 15
Ed Maste [Tue, 16 Apr 2024 14:19:14 +0000 (10:19 -0400)]
mergemaster: postpone removal to FreeBSD 15

Mergemaster has been deprecated for quite some time, but was not
removed prior to FreeBSD 14.0.  Update the deprecation notice in the man
page to reflect this.

PR: 274967
Reported by: naddy
Sponsored by: The FreeBSD Foundation

7 weeks agotzsetup: be explicit about *timezone* abbreviation
Ed Maste [Mon, 25 Mar 2024 20:25:23 +0000 (16:25 -0400)]
tzsetup: be explicit about *timezone* abbreviation

During the install process tzsetup asks a question like

    Does the abbreviation `EDT' look reasonable?

The installer asks lots of questions, some that relate to the previous
screen or topic and some that do not.  A new user installed FreeBSD for
the first time and was confused by this question, not realizing that it
was asking whether the abbreviation is correct for the selected
timezone.

Reviewed by: bapt, brooks, imp
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D44500

7 weeks agomv: Set file flags after setting file times
Ricardo Branco [Sat, 16 Mar 2024 17:13:10 +0000 (18:13 +0100)]
mv: Set file flags after setting file times

Some file flags prevent modification of file times, so they should be
set later.  This matches NetBSD's behaviour.

Reviewed by: markj
MFC after: 1 week
Pull Request: https://github.com/freebsd/freebsd-src/pull/1138

7 weeks agostress2: Add an option to exit on error
Peter Holm [Tue, 16 Apr 2024 08:22:03 +0000 (10:22 +0200)]
stress2: Add an option to exit on error

7 weeks agostress2: Add new unionfs test scenarios
Peter Holm [Tue, 16 Apr 2024 08:21:14 +0000 (10:21 +0200)]
stress2: Add new unionfs test scenarios

7 weeks agox86/xen: fix accounted interrupt time
Roger Pau Monné [Tue, 5 Mar 2024 13:15:03 +0000 (14:15 +0100)]
x86/xen: fix accounted interrupt time

The current addition to the interrupt nesting level in
xen_arch_intr_handle_upcall() needs to be compensated in
xen_intr_handle_upcall(), otherwise interrupts dispatched by the upcall handler
end up seeing a td_intr_nesting_level of 2 or more, which makes them assume
there's been an interrupt nesting.

Such extra interrupt nesting count lead to statclock() reporting idle time as
interrupt, as the call from interrupt context will always be seen as a nested
one (td->td_intr_nesting_level >= 2) due to the nesting count increase done by
both xen_arch_intr_handle_upcall() and intr_execute_handlers().

Fix this by adjusting the nested interrupt count before dispatching interrupts
from xen_intr_handle_upcall().

PR: 277231
Reported by: Matthew Grooms <mgrooms@shrew.net>
Fixes: af610cabf1f4 ('xen/intr: adjust xen_intr_handle_upcall() to match driver filter')
Sponsored by: Cloud Software Group
Reviewed by: Elliott Mitchell <ehem+freebsd@m5p.com>

7 weeks agotcp bbr: improve code consistency
Michael Tuexen [Mon, 15 Apr 2024 21:52:08 +0000 (23:52 +0200)]
tcp bbr: improve code consistency

Improve code consistency with the RACK stack.
Reviewed by: gallatin, rscheff
MFC after: 3 days
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D44800

7 weeks agosrc.libnames.mk: fix LIBPFCTL definition
Lexi Winter [Sun, 14 Apr 2024 10:37:46 +0000 (11:37 +0100)]
src.libnames.mk: fix LIBPFCTL definition

Following the convention used in the rest of this file, ${LIBPFCTLDIR}
should refer to the directory, and ${LIBPFCTL} to the library itself.

Instead, both values were assigned to ${LIBPFCTL}, and ${LIBPFCTLDIR} was
not set at all.

This appears to be a simple typo and not a deliberate choice, so fix it
by assigning the directory name to ${LIBPFCTLDIR} instead.

7 weeks agoDo no use .cfi_negate_ra_state within the assembly on Arm64
Tino Reichardt [Mon, 15 Apr 2024 20:56:10 +0000 (22:56 +0200)]
Do no use .cfi_negate_ra_state within the assembly on Arm64

Compiling openzfs on aarch64 with gcc-8 and gcc-9 is failing currently.
See issue #14965 for deeper context.

On platforms without pointer authentication, .cfi_negate_ra_state can be
defined to a no-op:
https://sourceware.org/git/?p=binutils-gdb.git;a=blob;f=gdb/aarch64-tdep.c#l1413

I have tested this on Arm64 FreeBSD 13.2 and AlmaLinux-8.

Reviewed-by: Andrew Turner <andrew.turner4@arm.com>
Signed-off-by: Tino Reichardt <milky-zfs@mcmilk.de>
Closes #14965
Closes #15784

7 weeks agoAdd the BTI elf note to the AArch64 SHA2 assembly
Andrew Turner [Mon, 15 Apr 2024 20:53:39 +0000 (21:53 +0100)]
Add the BTI elf note to the AArch64 SHA2 assembly

On ELF platforms there is a note to specify when an application or
library supports BTI. When linking one of these the linker needs
all input object files to have the note. If not it will not include
it in the output file.

Normally the compiler would generate it, but for assembly files we
need to do it our selves.

Add the note to the aarch64 sha256 and sha512 assembly files.

Tested by building with BTI enabled and using the -zbti-report=error
flag to lld that makes it an error if the note is missing.

Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Andrew Turner <andrew.turner4@arm.com>
Closes #16086

7 weeks agozinject: "no-op" error injection
Rob N [Mon, 15 Apr 2024 20:52:20 +0000 (06:52 +1000)]
zinject: "no-op" error injection

When injected, this causes the matching IO to appear to succeed, but the
actual work is never submitted to the physical device. This can be used
to simulate a write-back cache servicing a write, but the backing device
has failed and the cache cannot complete the operation in the
background.

Sponsored-by: Klara, Inc.
Sponsored-by: Wasabi Technology, Inc.
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Closes #16085

7 weeks agozts: allow running a single test by name only
Rob N [Mon, 15 Apr 2024 20:44:12 +0000 (06:44 +1000)]
zts: allow running a single test by name only

Specifying a single test is kind of a hassle, because the full relative
path under the test suite dir has to be included, but it's not always
clear what that path even is.

This change allows `-t` to take the name of a single test instead of a
full path. If the value has no `/` characters, we search for a file of
that name under the test root, and if found, use that as the full test
path instead.

Sponsored-by: Klara, Inc.
Sponsored-by: Wasabi Technology, Inc.
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Akash B <akash-b@hpe.com>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Closes #16088

7 weeks agosys/acl.h: reduce header pollution
Brooks Davis [Mon, 15 Apr 2024 16:55:07 +0000 (17:55 +0100)]
sys/acl.h: reduce header pollution

In commit d1dfd921774f0 the acl allocator was switched from malloc(9) to
uma(9) and done in a way required vm/uma.h and prerequisites.  This added
considerable header pollution to sys/sysproto.h.  The uma details were
hidden in commit b998d381f2868, but the header pollution remained.  Add
less broad includes as required to keep the header self contained.

Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D44468

7 weeks agoacl_to_text: include sys/param.h for MAXLOGNAME
Brooks Davis [Mon, 15 Apr 2024 16:54:53 +0000 (17:54 +0100)]
acl_to_text: include sys/param.h for MAXLOGNAME

Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D44474

7 weeks agosysproto.h: sys/acl.h -> sys/types.h
Brooks Davis [Mon, 15 Apr 2024 16:54:28 +0000 (17:54 +0100)]
sysproto.h: sys/acl.h -> sys/types.h

In sysproto.h, stop including sys/acl.h as syscall defintions now use
__acl* types from sys/_types.h.  Add sys/types.h to provide types
previously provided by sys/param.h (via sys/acl.h).

Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D44467

7 weeks agosys/_{cpu,domain}set.h: don't require sys/param.h
Brooks Davis [Mon, 15 Apr 2024 16:53:39 +0000 (17:53 +0100)]
sys/_{cpu,domain}set.h: don't require sys/param.h

Add machine/param.h for MAXCPU and MAXMEMDOM in the _KERNEL case of
sys/_cpuset.h and sys/_domainset.h, making them more self contained.

This eliminates the need to include sys/param.h before sys/cpuset.h and
sys/domainset.h.

Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D44466

7 weeks agoReduce reliance on sys/sysproto.h pollution
Brooks Davis [Mon, 15 Apr 2024 16:53:05 +0000 (17:53 +0100)]
Reduce reliance on sys/sysproto.h pollution

Add sys/errno.h, sys/malloc.h, sys/queue.h, and vm/uma.h as needed.

sys/sysproto.h currently includes sys/acl.h which currently includes
sys/param.h, sys/queue.h, and vm/uma.h which in turn bring in
sys/errno.h sys/malloc.h.

Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D44465

7 weeks agosys/malloc.h: move sys/proc.h MALLOC_DECLAREs here
Brooks Davis [Mon, 15 Apr 2024 16:52:40 +0000 (17:52 +0100)]
sys/malloc.h: move sys/proc.h MALLOC_DECLAREs here

This avoids the need to explicitly include sys/malloc.h before
sys/proc.h.

Suggested by: kib
Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D44766

7 weeks agoLinuxKPI: add __counted_by() and __nonstring
Bjoern A. Zeeb [Tue, 2 Apr 2024 09:41:54 +0000 (09:41 +0000)]
LinuxKPI: add __counted_by() and __nonstring

Add checks for __counted_by(_x) and __nonstring as and depending
on compiler support enable the attribute/feature.

This is needed to make mtk76 and ath1xk drivers compile.

Sposnored by: The FreeBSD Foundation
MFC after: 3 days
Reviewed by: emaste, dim
Differential Revision: https://reviews.freebsd.org/D44587

7 weeks agogit/mfc-candidates.sh: allow comments in exclude file
Bjoern A. Zeeb [Tue, 28 Nov 2023 19:09:07 +0000 (19:09 +0000)]
git/mfc-candidates.sh: allow comments in exclude file

As branches ages, the list of unmerged or unmergable changes may grow
longer.  In some cases it is helpful to group and or annotate them
in an exclude file.  Filtering out lines starting with "#" allows adding
comment lines to aid tracking.

Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D42790

7 weeks agoLinuxKPI: 802.11: disable early queue wakeup workaround; better classify
Bjoern A. Zeeb [Fri, 16 Feb 2024 21:14:02 +0000 (21:14 +0000)]
LinuxKPI: 802.11: disable early queue wakeup workaround; better classify

We used to call lkpi_wake_tx_queues() for all queues early on in order
to make sure they are ready.  Turns out whatever logic in iwlwifi
startup is working correctly these days under LinuxKPI so this is no
longer needed.  As the comment indicated the "workaround" did not
always work.  Disable it for now.

The second part of the improvement is to properly classify Non-QOS
non-data frames (mgmt and ctl frames for now, unless we have to be
even more careful in the future about certain sub-types) as TID 7/VO.
Contrary to net80211 we must not promote PAE frames.

PR: 274382
MFC after: 3 day
Reviewed by: cc
Differential Revision: https://reviews.freebsd.org/D43944

7 weeks agonet80211: amrr_init: change order of commands
Bjoern A. Zeeb [Mon, 5 Feb 2024 14:48:08 +0000 (14:48 +0000)]
net80211: amrr_init: change order of commands

First run the KASSERT before trying to do the free operation.
Better for reporting and debugging.
Add a guard setting the value to NULL afterwards.  NULL pointers
are a lot easier to test for.

MFC after: 3 days
Reviewed by: cc
Differential Revision: https://reviews.freebsd.org/D43751

7 weeks agoLinuxKPI: 802.11: remove unneeded re-lookup in lkpi_80211_txq_tx_one()
Bjoern A. Zeeb [Sun, 18 Feb 2024 18:07:00 +0000 (18:07 +0000)]
LinuxKPI: 802.11: remove unneeded re-lookup in lkpi_80211_txq_tx_one()

Given we are passed the lsta in as a function argument there is no
need to re-lookup the sta by ni and possibly not find it.
We know the sta and ni from the lsta and whether it is uploaded to
firmware or not we can check directly from the local lsta flag.

MFC after: 3 days
Reviewed by: cc
Differential Revision: https://reviews.freebsd.org/D43965

7 weeks agoLinuxKPI: add devm_kfree()
Bjoern A. Zeeb [Tue, 2 Apr 2024 09:45:43 +0000 (09:45 +0000)]
LinuxKPI: add devm_kfree()

mt76 calls devm_kfree() directly, so alias it to our
lkpi_devm_kmalloc_release() function.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D44589

7 weeks agoMerge commit 37b7207651b4 from llvm-project (by zhongyunde@huawei.com):
Dimitry Andric [Mon, 15 Apr 2024 16:24:39 +0000 (18:24 +0200)]
Merge commit 37b7207651b4 from llvm-project (by zhongyunde@huawei.com):

  [SimplifyCFG] Fix crash when there is unreachable large index (#88616)

  The large case index out of scope is dead code, but it is still be
  created for TableContents in SwitchLookupTable::SwitchLookupTable,
  so make sure the table size after growing should not get smaller.

  Fix https://github.com/llvm/llvm-project/issues/88607

This should fix "Assertion failed: (idx < size()), function operator[]"
when building the science/dynare port.

PR: 276104, 278320
Reported by: yuri
MFC after: 1 month

7 weeks agoLinuxKPI: napi_schedule() requires return value, implement napi_is_scheduled()
Bjoern A. Zeeb [Sun, 31 Mar 2024 17:27:45 +0000 (17:27 +0000)]
LinuxKPI: napi_schedule() requires return value, implement napi_is_scheduled()

A newer version of iwlwifi requires a return value from napi_schedule();
unclear if the function always should have been bool. Add the bool to test
based on the napi_schedule_prep() result.

Also add napi_is_scheduled() for rtw89.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days
Reviewed by: emaste (previous version)
Differential Revision: https://reviews.freebsd.org/D44591

7 weeks agoLinuxKPI: sk_buff: implement skb_queue_splice_tail_init()
Bjoern A. Zeeb [Tue, 2 Apr 2024 09:17:31 +0000 (09:17 +0000)]
LinuxKPI: sk_buff: implement skb_queue_splice_tail_init()

Implement skb_queue_splice_tail_init() and SKB_DATA_ALIGN() as
needed by the mt76 wireless driver.

Sponsord by: The FreeBD Foundation
MFC after: 3 days
Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D44590

7 weeks agoiflib: Fix compiler warnings
Stephen J. Kiernan [Wed, 3 Apr 2024 20:21:55 +0000 (16:21 -0400)]
iflib: Fix compiler warnings

Some of the QUAD sysctls are actually for unsigned quad values.
Switch to using UQUAD instead, as that is meant for unsigned.

Reviewed by: erj, jhb
Obtained from: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D44620

7 weeks agosnd_hda: fix "duplicated free" on module unloading
Michael Zhilin [Sat, 13 Apr 2024 09:59:24 +0000 (12:59 +0300)]
snd_hda: fix "duplicated free" on module unloading

This is trivial fix of hdacc_detach to avoid duplicated free on snd_hda
unloading.

The first try of detaching (kldunload) may results into "device busy" error,
but codec->fgs is freed by detach. Second try attempts to free codec->fgs again
and system panicks.

Here is example:

pcm0: unregister: channel pcm0:virtual:dsp0.vp0 busy (pid 3428)
pulseaudio[3428] [oss] module-oss.c: DSP shutdown.
pcm0: detached
hdaa0: detached
panic: Duplicate free of 0xfffff80412ee7d20 from zone 0xfffffe006bc0ba00
(malloc-32) slab 0xfffff80412ee7fc8(105)
cpuid = 6
time = 1712999565
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe0202f859e0
vpanic() at vpanic+0x135/frame 0xfffffe0202f85b10
panic() at panic+0x43/frame 0xfffffe0202f85b70
uma_dbg_free() at uma_dbg_free+0x105/frame 0xfffffe0202f85b90
uma_zfree_arg() at uma_zfree_arg+0x95/frame 0xfffffe0202f85be0
free() at free+0xa1/frame 0xfffffe0202f85c20
hdacc_detach() at hdacc_detach+0x2f/frame 0xfffffe0202f85c40
device_detach() at device_detach+0x197/frame 0xfffffe0202f85c80
devclass_driver_deleted() at devclass_driver_deleted+0x66/frame 0xfffffe0202f85c
devclass_delete_driver() at devclass_delete_driver+0x81/frame 0xfffffe0202f85d00
driver_module_handler() at driver_module_handler+0xff/frame 0xfffffe0202f85d50
module_unload() at module_unload+0x32/frame 0xfffffe0202f85d70
linker_file_unload() at linker_file_unload+0x1eb/frame 0xfffffe0202f85db0
kern_kldunload() at kern_kldunload+0x18e/frame 0xfffffe0202f85e00
amd64_syscall() at amd64_syscall+0x153/frame 0xfffffe0202f85f30
fast_syscall_common() at fast_syscall_common+0xf8/frame 0xfffffe0202f85f30

MFC after:              3 days
Reviewed by:            markj, christos
Differential Revision:  https://reviews.freebsd.org/D44778
Sponsored by:           Postgres Professional

7 weeks agosnd_hda: Add the full Intel Meteor/Arrow/Lunar Lake HD Audio PCI IDs
Michael Zhilin [Sat, 13 Apr 2024 09:57:59 +0000 (12:57 +0300)]
snd_hda: Add the full Intel Meteor/Arrow/Lunar Lake HD Audio PCI IDs

This is based off the Linux file sound/hda/intel-dsp-config.c.

Tested on:              Lenovo Thinkbook 16 G6+ IMH
MFC after:              3 days
Reviewed by:            markj, christos
Differential Revision:  https://reviews.freebsd.org/D44777
Sponsored by:           Postgres Professional

7 weeks agorelease: Build dvd image before staging pkgs
Colin Percival [Sun, 14 Apr 2024 22:31:26 +0000 (15:31 -0700)]
release: Build dvd image before staging pkgs

This missing dependency is only visible with -jN (which was otherwise
broken until recently) and only when building DVD images (which aren't
included in weekly snapshots and thereby slipped past testing).

MFC after: 3 days

7 weeks agoMakefile.vm: Set CLEANDIRS correctly for vm-image
Colin Percival [Sun, 14 Apr 2024 22:27:19 +0000 (15:27 -0700)]
Makefile.vm: Set CLEANDIRS correctly for vm-image

With multiple filesystems and disk image formats, we now use different
staging directories; we need to include them all in CLEANDIRS.

Fixes: 97bd53ef4d20b "Makefile.vm: Fix duplicate rc.conf files"
MFC after: 3 days

7 weeks agorelease: Use the ABI of the target release to fetch packages
John Baldwin [Sat, 13 Apr 2024 21:16:01 +0000 (14:16 -0700)]
release: Use the ABI of the target release to fetch packages

- Point --rootdir at the installed destdir in the dvd tree.  This
  causes pkg to determine the ABI from the installed destdir instead
  of the host's binaries.  Previously the result was that packages
  for the host's ABI were always downloaded breaking cross-releases
  (e.g. arm64 releases built on an amd64 host included amd64
  packages on the DVD ISO image rather than arm64 packages).  This
  also handles version mismatches, and I tested this by cross-building
  a 15.x arm64 release on a 14.x amd64 host.

- As a result, pkg now does a chdir(3) to the rootdir before running,
  so the -o argument to fetch needs to be updated to be relative to
  rootdir instead of the CWD as make runs.

- Add a new ROOTDIR variable to limit references to "dvd" to one
  place.  Ideally ROOTDIR would be an argument to this script so
  that it didn't really know about the dvd layout at all.

- While here, simplify creation of symlinks by just using a longer
  path to the link name instead of using 'cd' in the shell before
  invoking ln(1).  Also use ln -sf to create the pkg.pkg symlink
  rather than rm + ln.

PR: 278273
Reported by: gatekeeper <tiago.gasiba@gmail.com>
Reviewed by: imp, delphij
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D44749

7 weeks agocloudware: allow disk format to be a list
Colin Percival [Sun, 14 Apr 2024 17:44:07 +0000 (10:44 -0700)]
cloudware: allow disk format to be a list

Make basic-cloudinit available both in qcow2 and raw formats

MFC After: 3 days
Co-Authored-By: bapt
Sponsored by: OVHCloud (original patch from bapt)
Differential Revision: https://reviews.freebsd.org/D44747

7 weeks agonet8011: radiotap: add more EHT constants
Bjoern A. Zeeb [Tue, 2 Apr 2024 23:34:22 +0000 (23:34 +0000)]
net8011: radiotap: add more EHT constants

MFC after: 3 days

7 weeks agofreebsd-update: Add check for kernel modules
Fernando Apesteguía [Wed, 19 Apr 2023 16:08:47 +0000 (18:08 +0200)]
freebsd-update: Add check for kernel modules

People get confused when some software (VirtualBox, etc) does not work as
expected (or at all) after a major upgrade.

We have a nice way to deal with this when using sources, namely including
PORTS_MODULES in /etc/make.conf, but we lack something similar for binary
updates.

This patch retrieves a list of kernel modules installed from packages and
advises the user to recompile from ports to avoid problems.

Approved by: zlei@
Differential Revision: https://reviews.freebsd.org/D39695

7 weeks agosanitizers: mark __elf_aux_vector as weak, to allow linking without libsys
Dimitry Andric [Sun, 14 Apr 2024 17:38:42 +0000 (19:38 +0200)]
sanitizers: mark __elf_aux_vector as weak, to allow linking without libsys

After libsys was introduced, linking sanitized programs started failing
with:

  # c++ -fsanitize=address main.cc
  ld: error: undefined symbol: __elf_aux_vector
  >>> referenced by sanitizer_linux_libcdep.cpp:950 (/usr/src/contrib/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cpp:950)
  >>>     sanitizer_linux_libcdep.o:(__sanitizer::ReExec()) in archive /usr/lib/clang/17/lib/freebsd/libclang_rt.asan-x86_64.a
  c++: error: linker command failed with exit code 1 (use -v to see invocation)

Mark __elf_aux_vector as weak in the internal sanitizer declaration, so
the linker will accept it at link time. The dynamic linker will then
take care of the symbol at run time.

Suggestion by: brooks
PR: 276104, 277393
MFC after: 1 month

7 weeks agombuf: restore m_uiotombuf() feature of returning a zero length mbuf
Gleb Smirnoff [Sun, 14 Apr 2024 17:21:07 +0000 (10:21 -0700)]
mbuf: restore m_uiotombuf() feature of returning a zero length mbuf

PR: 278340
Fixes: aba79b0f4a3f69f070ace6effd5700d65226bd20

7 weeks agotests/unix_stream: test that send(2) of zero bytes is successful
Gleb Smirnoff [Sun, 14 Apr 2024 17:19:20 +0000 (10:19 -0700)]
tests/unix_stream: test that send(2) of zero bytes is successful

Put this simple test into an existing file.  We don't have a designated
file for all unix/stream tests.  There is extensive unix_seqpacket_test,
but (at least right now) unix/seqpacket is not a superset of unix/stream,
but a different implementation.  We have one file that does one test for
unix/stream - unix_socketpair_test.  So rename it to unix_stream and start
collecting all unix/stream tests in it.

7 weeks agoObsoleteFiles.inc: fix timestamps of the recent entries
Gleb Smirnoff [Sun, 14 Apr 2024 17:19:20 +0000 (10:19 -0700)]
ObsoleteFiles.inc: fix timestamps of the recent entries

7 weeks agoamdsmn(4), amdtemp(4): add support for AMD Family 19h Models 10h-1Fh.
Xin LI [Sun, 14 Apr 2024 07:45:17 +0000 (00:45 -0700)]
amdsmn(4), amdtemp(4): add support for AMD Family 19h Models 10h-1Fh.

Tested on AMD Threadripper 7960X.

PR: kern/278311
Tested by: jbo
MFC after: 1 week

7 weeks agodaemon: fix -R to enable supervision mode
Mathieu [Sun, 14 Apr 2024 03:10:06 +0000 (22:10 -0500)]
daemon: fix -R to enable supervision mode

If we're doing restarts, then we must supervise -- the 'R' case simply
got missed.

PR: 278342
Fixes: f907027b49d ("daemon: set supervise_enabled during [..]")

7 weeks agosys: Retire the ISCSI_INITIATOR_DEBUG option
John Baldwin [Sun, 14 Apr 2024 02:16:13 +0000 (19:16 -0700)]
sys: Retire the ISCSI_INITIATOR_DEBUG option

This was used by the old iSCSI initiator, not the current one.

Reported by: trasz

7 weeks agox86 NOTES: Move shared options from amd/i386 NOTES to x86 NOTES
John Baldwin [Sun, 14 Apr 2024 02:12:07 +0000 (19:12 -0700)]
x86 NOTES: Move shared options from amd/i386 NOTES to x86 NOTES

While here, reorder some of the entries using headers more aligned
with sys/conf/NOTES.  Also add a pointer from the amd64/i386 NOTES
files to x86 NOTES.

The "extra" ACPI device drivers were only present in i386 NOTES
previously.

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D44787

7 weeks agoNOTES: Move ENABLE_ALART option to MI NOTES next to intpm device
John Baldwin [Sun, 14 Apr 2024 02:11:49 +0000 (19:11 -0700)]
NOTES: Move ENABLE_ALART option to MI NOTES next to intpm device

This option is for this driver.

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D44786

7 weeks agox86 NOTES: Move NKPT and PMAP_SHPGPERPROC options to VM OPTIONS section
John Baldwin [Sun, 14 Apr 2024 02:11:21 +0000 (19:11 -0700)]
x86 NOTES: Move NKPT and PMAP_SHPGPERPROC options to VM OPTIONS section

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D44785

7 weeks agox86 NOTES: Remove some obsolete comments
John Baldwin [Sun, 14 Apr 2024 02:11:06 +0000 (19:11 -0700)]
x86 NOTES: Remove some obsolete comments

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D44784

7 weeks agoi386: Use DEV_HYPERV to enable HyperV APIC vector
John Baldwin [Sun, 14 Apr 2024 02:10:44 +0000 (19:10 -0700)]
i386: Use DEV_HYPERV to enable HyperV APIC vector

This avoids requiring both 'device hyperv' and 'options HYPERV' for
kernel configs.  Instead, just 'device hyperv' can now be used
matching the kernel configuration used for amd64.

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D44783

7 weeks agoNOTES: Move the VirtIO entries to the MI NOTES file
John Baldwin [Sun, 14 Apr 2024 02:10:27 +0000 (19:10 -0700)]
NOTES: Move the VirtIO entries to the MI NOTES file

While here, add virtio_gpu

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