FreeBSD/src 954bb76sys/net/route fib_algo.c

fib_algo(4): Lower level of algorithm switching messages to LOG_INFO

Otherwise, with the default flm_debug_level of LOG_NOTICE, it's rather
easy to trigger debug messages such as:
[fib_algo] inet.0 (bsearch4#18) rebuild_fd_flm: switching algo to
radix4_lockless

Also, the "severity" of these events generally only justifies LOG_INFO
and not LOG_NOTICE.

Reviewed by:    melifaro

(cherry picked from commit ed81a15517b8a8f587fd7282c3690513bb798242)
DeltaFile
+1-1sys/net/route/fib_algo.c
+1-11 files

FreeBSD/src 67783db. CONTRIBUTING.md

CONTRIBUTING: request only one submission type per change

We have some instances of contributors opening a GitHub pull request and
a Phabricator review for the same change, which divides or duplicates
review effort.

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D44856
DeltaFile
+4-0CONTRIBUTING.md
+4-01 files

FreeBSD/src ede4563. CONTRIBUTING.md

CONTRIBUTING: mention sys/crypto as another "contrib" directory

Reviewed by:    imp
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D44857
DeltaFile
+8-8CONTRIBUTING.md
+8-81 files

FreeBSD/src 2fd73b7share/mk bsd.cpu.mk

share/mk/bsd.cpu.mk: add F16C feature for i386 and amd64 architectures

As discussed in bug 278417, some ports require the F16C instruction set
to compile, but there is no way yet to detect whether the currently
chosen CPUTYPE supports this feature.

Add the feature to the MACHINE_CPU variable, for each processor that
supports it. The list of processors was extracted from clang 18's -dM
output, filtered on the __F16C__ define.

PR:             278417
Reviewed by:    brooks, emaste
MFC after:      3 days
Differential Revision: https://reviews.freebsd.org/D44848
DeltaFile
+24-18share/mk/bsd.cpu.mk
+24-181 files

FreeBSD/src 7f1fc5dsbin/mdmfs mdmfs.8

mount_mfs.8: remove self-reference

Change .Xr instances to .Nm, which quiets several mandoc warnings.

Reviewed by:    mhorne
MFC after:      3 days
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1135

(cherry picked from commit 2ebc7806a1e4f4cd82a21a123ee5078ca6c4b113)
DeltaFile
+5-5sbin/mdmfs/mdmfs.8
+5-51 files

FreeBSD/src ac3bd59share/man/man4 cfumass.4

cfumass.4: remove self-reference

Change .Xr to .Nm, which quiets a mandoc warning.

Reviewed by:    mhorne
MFC after:      3 days
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1135

(cherry picked from commit f8ce29b63181912e01625addb47168e987d9bbed)
DeltaFile
+1-1share/man/man4/cfumass.4
+1-11 files

FreeBSD/src c8aac78share/man/man3 assert.3

assert.3: Update manual page based on mandoc -Tlint

Execute the mandoc -Tlint option on assert(3). This results in two areas
of updates:

Remove invalid Rs block
Remove invalid Re block

Reviewed by:    mhorne
MFC after:      3 days
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1132

(cherry picked from commit 3f72f36cf2f92e00a248f729d50803232ff4cef8)
DeltaFile
+0-4share/man/man3/assert.3
+0-41 files

FreeBSD/src d16abffshare/man/man9 bhnd_erom.9

bhnd_erom.9: remove self-reference

Change .Xr to .Fn, which quiets a mandoc warning.

Reviewed by:    mhorne
MFC after:      3 days
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1135

(cherry picked from commit 81727a3dd38287d437d1e7e416dd89107a706e55)
DeltaFile
+1-1share/man/man9/bhnd_erom.9
+1-11 files

FreeBSD/src de436a4share/man/man9 device_add_child.9

device_add_child.9: remove self-reference

Change .Xr to .Nm, which quiets a mandoc warning

Reviewed by:    mhorne
MFC after:      3 days
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1135

(cherry picked from commit f9ea7b6e8253273ebb1023c4380a305e6d3cf02b)
DeltaFile
+2-2share/man/man9/device_add_child.9
+2-21 files

FreeBSD/src ac4ddd8lib/libc/sys open.2

open.2: remove self-reference

Change .Xr reference to .Fn, which quiets a mandoc warning.

Reviewed by:    mhorne
MFC after:      3 days
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1135

(cherry picked from commit d3de1bd429bc51fbbcb37fadaf2581461edf848b)
DeltaFile
+1-1lib/libc/sys/open.2
+1-11 files

FreeBSD/src 0c62a06sys/sys kassert.h

kassert.h: update MPASS definition commentary

We now have a detailed man page describing both MPASS and KASSERT. Give
a warning that careless use of MPASS can result in inadequate assertion
messages, and point to the MPASS(9) page which describes this.

While here add a comment above the KASSERT definitions pointing to the
man page.

Suggested by:   bz
Reviewed by:    emaste
MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D44438

(cherry picked from commit 36de8bb226671ef9fe373d8d95f77cdb76157738)
DeltaFile
+8-2sys/sys/kassert.h
+8-21 files

FreeBSD/src e9d06e8share/man/man9 KASSERT.9

KASSERT(9): describe history of MPASS

The macro originates from BSD/OS, with a different etymology than what
is presented. Add a brief HISTORY section to capture this.

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

(cherry picked from commit 5d956e11ed3713ff769d51b71f7b4ee6ce0085fe)
DeltaFile
+9-0share/man/man9/KASSERT.9
+9-01 files

FreeBSD/src 929d8efshare/man/man9 KASSERT.9

KASSERT(9): add assertion message guidelines

Add some text describing how to create useful assertion messages.
Improve and add to the EXAMPLES.

See the discussion prompting this on -hackers:
https://mail-archive.freebsd.org/cgi/mid.cgi?57o4rnnq-013s-3nsn-59n5-4ssn1pq81s94

Reviewed by:    emaste
Discussed with: imp, bz
MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D44434

(cherry picked from commit 83a426d13a6a384e63e75d8252c03dd40af3817e)
DeltaFile
+67-5share/man/man9/KASSERT.9
+67-51 files

FreeBSD/src 74b1a9cbin/cp utils.c

cp: Remove useless ssize_t cast

Both wcount and wresid are ssize_t so this cast is not needed. Just
remove it so the code is easier to read.

Signed-off-by:  Collin Funk <collin.funk1 at gmail.com>
Reviewed by:    emaste, zlei
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1116

(cherry picked from commit 8b864151856fbba97fed16b1200248cf9f6f3ccf)
DeltaFile
+1-1bin/cp/utils.c
+1-11 files

FreeBSD/src 5f375fdshare/man/man4 em.4

em.4: add interfaces to name section

Improving first-glance comprehension that this manual page applies to
igb/lem interfaces provided by the em(4) driver.

While here, tag SPDX, link the framework, and shuffle a sentence to fix
linter warning.

Co-authored-by: mhorne
Reviewed by:    mhorne
MFC after:      1 week
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1134

(cherry picked from commit 501f7e7bf847c66e3869b533805e76897e4685b9)
DeltaFile
+21-7share/man/man4/em.4
+21-71 files

FreeBSD/src 9319a8asys/dev/fdt simple_mfd.c

simple_mfd: don't attach children twice

Trying to probe+attach the child device at the point it is added comes
before the syscon handle is set up (if relevant). It will therefore be
unavailable to the attach method which is expecting it, and the first
attempt to attach the device will fail.

Just rely on the call to bus_generic_attach() at the end of the function
to perform probe+attach of dev's children.

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

(cherry picked from commit accda781531788a814bc438e1e96ef544c12aeaf)
DeltaFile
+1-4sys/dev/fdt/simple_mfd.c
+1-41 files

FreeBSD/src 2970196sys/dev/extres/clk clk_fixed.c

clk_fixed: call clkdom_dump() for verbose boot

This is standard practice for clock drivers that register clocks
dynamically. Nothing else uses the CLK_DEBUG macro.

The result is that the name and frequency of the fixed clock is printed
for a verbose boot, which may aid in debugging.

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

(cherry picked from commit 6e66bb9fc3d026765113fa1258cd12292da9309a)
DeltaFile
+4-3sys/dev/extres/clk/clk_fixed.c
+4-31 files

FreeBSD/src 5eb27a0sys/dev/extres/clk clk_fixed.c

clk_fixed: quiet by default

We may attach several of these devices, but there is no meaningful
information added to dmesg. For example:

  ofwbus0: <Open Firmware Device Tree>
  clk_fixed0: <Fixed clock> on ofwbus0
  clk_fixed1: <Fixed clock> on ofwbus0
  clk_fixed2: <Fixed clock> on ofwbus0
  clk_fixed3: <Fixed clock> on ofwbus0
  clk_fixed4: <Fixed clock> on ofwbus0
  clk_fixed5: <Fixed clock> on ofwbus0
  clk_fixed6: <Fixed clock> on ofwbus0
  clk_fixed7: <Fixed clock> on ofwbus0
  clk_fixed8: <Fixed clock> on ofwbus0
  clk_fixed9: <Fixed clock> on ofwbus0
  clk_fixed10: <Fixed clock> on ofwbus0
  clk_fixed11: <Fixed clock> on ofwbus0


    [9 lines not shown]
DeltaFile
+7-2sys/dev/extres/clk/clk_fixed.c
+7-21 files

FreeBSD/src 3279875sys/dev/extres/clk clk.c

clkdom_dump(): improve output text

If the call to clknode_get_freq() returns an error (unlikely), report
this, rather than printing the error code as the clock frequency.

If the clock has no parent (e.g. a fixed reference clock), print "none"
rather than "(NULL)(-1)". This is a more human-legible presentation of the
same information.

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

(cherry picked from commit 08635c51d1e34f8a3e42c7cf35dc7264a5b68118)
DeltaFile
+14-4sys/dev/extres/clk/clk.c
+14-41 files

FreeBSD/src 9050a43share/man/man9 intro.9

intro.9: minor changes

A correction: 'and' -> 'an'. Plus, several tweaks for brevity or
clarity.

Reviewed by:    mhorne
MFC after:      3 days
Pull Request:   https://github.com/freebsd/freebsd-src/pull/813

(cherry picked from commit 712fd5ac9181b544d8ffcf88ab6313233c8ddaed)
DeltaFile
+20-20share/man/man9/intro.9
+20-201 files

FreeBSD/src 0a40193sys/arm/arm busdma_machdep.c, sys/arm64/arm64 busdma_bounce.c

busdma: fix page miscount for small segment sizes

For small segments (< PAGE_SIZE) there is a mismatch between how
required bounce pages are counted in _bus_dmamap_count_pages() and
bounce_bus_dmamap_load_buffer().

This problem has been observed on the RISC-V VisionFive v2 SoC (and
earlier revisions of the hardware) which has memory physically addressed
above 4GB. This requires some bouncing for the dwmmc driver, which has
has a maximum segment size of 2048 bytes. When attempting to load a
page-aligned 4-page buffer that requires bouncing, we can end up
counting 4 bounce pages for an 8-segment transfer. These pages will be
incorrectly configured to cover only the first half of the transfer (4 x
2048 bytes).

Fix the immediate issue by adding the maxsegsz check to
_bus_dmamap_count_pages(); this is what _bus_dmamap_count_phys() does
already. The result is that we will inefficiently allocate a separate
bounce page for each segment (8 pages for the example above), but the

    [15 lines not shown]
DeltaFile
+6-5sys/arm/arm/busdma_machdep.c
+1-0sys/arm64/arm64/busdma_bounce.c
+1-0sys/powerpc/powerpc/busdma_machdep.c
+1-0sys/riscv/riscv/busdma_bounce.c
+1-0sys/x86/x86/busdma_bounce.c
+10-55 files

FreeBSD/src 4e997a3sys/conf files.riscv, sys/riscv/riscv aplic.c

riscv: Introduce support for APLIC interrupt controller

This patch introduces support for the RISC-V APLIC interrupt controller
[1]. Currently, it is only supports direct mode, i.e. without an IMSIC
and functionally replacing the legacy RISC-V PLIC. Work on IMSIC support
is in progress.

[1] https://github.com/riscv/riscv-aia/releases/tag/1.0

Reviewed by:    mhorne
Discussed with: jrtc27
MFC after:      1 month
Differential Revision:  https://reviews.freebsd.org/D43293

(cherry picked from commit ee91dae43d23a3fa94dca1c905157e66c73c45de)
DeltaFile
+554-0sys/riscv/riscv/aplic.c
+1-0sys/conf/files.riscv
+555-02 files

FreeBSD/src cb9d4bbtests/ci Makefile Makefile.riscv64, tests/ci/tools ci.conf freebsdci

Add preliminary in-tree CI infrastructure for developers

The goal of this project is to integrate the relevant scripts from the
FreeBSD-CI project (https://github.com/freebsd/freebsd-ci) into the src
repository. This allows developers to run the test suite similar to how
it is executed on ci.freebsd.org, and eventually, have it directly used
by our CI system. This effort is also part of the workflow improvement
project, aiming to incorporate pre-merge testing.

Current Features:
* Does smoke tests using either bhyve(amd64 only) or qemu(Non x86_64 or
  when defined USE_QEMU=1). Currently defined CITYPE=smoke. Once we have
  added full tests we can also utilize something like CITYPE=full
* Most of the resources are dynamically allocated based on available
  resources in the host
* If CPU supports POPCNT or vmm can be loaded then bhyve is used for
  amd64 otherwise automatically installs and uses qemu at nox11
* When required third party applications or packages for booting non-x86
  images are automatically installed

    [29 lines not shown]
DeltaFile
+210-0tests/ci/Makefile
+96-0tests/ci/tools/ci.conf
+90-0tests/ci/tools/freebsdci
+32-0tests/ci/Makefile.riscv64
+29-0tests/ci/Makefile.armv7
+29-0tests/ci/Makefile.aarch64
+486-03 files not shown
+568-09 files

FreeBSD/src f115e03share/man/man7 intro.7

intro(7): add link to new networking(7)

It improves the discoverability of the page.

Sponsored by:   The FreeBSD Foundation
DeltaFile
+3-1share/man/man7/intro.7
+3-11 files

FreeBSD/src 9dfe484share/man/man7 hier.7

hier.7: polish entry to system manual

Entries reworded to improve grammar or add keywords:
- document description: substitute layout for index for first-glance
- /etc/freebsd/update.conf
- /usr/share/vi/

Entries that have been wordshuffled for brevity or consistency:
- /{bin,libexec,nonexistent,sbin,tmp}/
- /boot/dtb/overlays/
- /boot/{defaults,efi,kernel,lua}/
- /usr/libexec/
- /var/{db,games,lib,log/{bsdisks.log,spool/,tmp/}}
- /usr/share/sysroot/VERSION/MACHINE.MACHINE_ARCH/ (unfold a little)
- /usr/local/share/doc/freebsd/ (unfold a little)

Entries that have macro or linking adjustments:
- /{boot,boot/efi,dev,etc,home,sbin,usr/bin}/ (overview or intro pages)
- /media/ (bsdisks is from ports, but afaik pulled by every desktop)

    [21 lines not shown]
DeltaFile
+123-84share/man/man7/hier.7
+123-841 files

FreeBSD/src 02ea70econtrib/tcpdump print-pfsync.c

tcpdump: fix build

Apply the change that was supposed to be in bf0700716a2e
DeltaFile
+1-1contrib/tcpdump/print-pfsync.c
+1-11 files

FreeBSD/src 464b1absbin/dumpon dumpon.c

dumpon: fix set but not used variable

Signed-off-by: inkeliz <inkeliz at inkeliz.com>

Reviewed by:    markj
MFC after:      1 week
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1178
DeltaFile
+10-2sbin/dumpon/dumpon.c
+10-21 files

FreeBSD/src f7f570etools/build depend-cleanup.sh

tools: Remove stray "then"

Fixes:          26a09db3add3
DeltaFile
+1-1tools/build/depend-cleanup.sh
+1-11 files

FreeBSD/src a01c708sys/dev/virtio/network if_vtnet.c

vtnet: use CURVNET_SET() instead of CURVNET_SET_QUIET()

We don't expect the VNET context to be set for virtqueue neither
for taskqueue handlers.

Suggested by:   zec
Fixes:          3f2b9607756d0f92ca29c844db0718b313a06634
DeltaFile
+1-1sys/dev/virtio/network/if_vtnet.c
+1-11 files

FreeBSD/src e991acdsys/dev/oce oce_mbox.c

oce(4): Fix a typo in a source code comment

- s/addres/address/

MFC after:      3 days
DeltaFile
+1-1sys/dev/oce/oce_mbox.c
+1-11 files