FreeBSD/src 67c5db9lib/libsys clock_gettime.2

clock_gettime: Better markup

Markup CLOCK_REALTIME better.

Noticed by: kib
Fixes: 7b7ba7857ce8
Sponsored by:           Netflix
DeltaFile
+3-1lib/libsys/clock_gettime.2
+3-11 files

FreeBSD/src 330b17esys/amd64/amd64 pmap.c, sys/powerpc/aim mmu_oea64.c

vm: remove pa_index from the machine-independent layer

After the demise of vm_page_lock(), the only remaining uses of
pa_index() are in various pmap implementations.  In many cases, e.g.,
amd64, the pmap implementations already provided their own definitions,
often identical to the machine-independent one.  For those that didn't
provide one, this change adds it.

Reviewed by:    kib, markj
Differential Revision:  https://reviews.freebsd.org/D50823
DeltaFile
+0-8sys/vm/vm_page.h
+4-1sys/powerpc/aim/mmu_oea64.c
+2-1sys/riscv/riscv/pmap.c
+0-1sys/amd64/amd64/pmap.c
+6-114 files

FreeBSD/src 7747d82share/man/man4 mac_do.4

mac_do(4): Bump .Dd to reflect latest update

MFC with:       94828b338033 ("mac_do(4): Examples: Fix some descriptions and a typo")
Sponsored by:   The FreeBSD Foundation
DeltaFile
+1-1share/man/man4/mac_do.4
+1-11 files

FreeBSD/src 67f18e8usr.sbin Makefile.riscv

usr.sbin: Gate bhyve/bhyvectl on MK_BHYVE for riscv

When this is false there is no libvmmapi, nor even its headers, for
these to build against.

Reported by:    Milan Obuch <freebsd-riscv at dino.sk>
Fixes:          7ab1a32cd43c ("bhyve/riscv: Initial import.")
DeltaFile
+2-0usr.sbin/Makefile.riscv
+2-01 files

FreeBSD/src b7536f9sys/arm64/arm64 pmap.c

arm64 pmap: Simplify pmap_demote_l{2,3}c()

Simplify the loop for remaking the mappings in pmap_demote_l{2,3}c().
Since the mappings are invalid, we needn't use an atomic read-modify-
write operation to remake the mappings.  The accessed and dirty bits
won't concurrently change.
DeltaFile
+6-6sys/arm64/arm64/pmap.c
+6-61 files

FreeBSD/src 1563b30share/man/man4 Makefile

linuxkpi.4, linuxkpi_wlan.4: connect to build

Fixes:  bfaec3e64741 linuxkpi.4, linuxkpi_wlan.4: add short man pages
Sponsored by:   The FreeBSD Foundation
DeltaFile
+4-0share/man/man4/Makefile
+4-01 files

FreeBSD/src 900bc02libexec/rc/rc.d zpool

rc.d/zpool: change mountcritlocal dep from BEFORE to REQUIRE

In cases where the `/boot` directory is mounted from a different disk,
`/boot/zfs/zpool.cache` will not be found during a `rc.d/zpool`
run. This is because `/etc/fstab` mounts are mounted in
`rc.d/mountcritlocal`, which currently runs AFTER (i.e. `REQUIRE:`)
`rc.d/zpool`.

This change swaps the `rcorder` of `rc.d/zpool`'s dependency on
`mountcritlocal` from `BEFORE:` to `REQUIRE:`. This will ensure that
`/boot` (or even `/etc/` in some configurations) to be visible while
searching for `zpool.cache`.

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1614
Closes: https://github.com/freebsd/freebsd-src/pull/1614
DeltaFile
+1-2libexec/rc/rc.d/zpool
+1-21 files

FreeBSD/src cae3d6clibexec/rc/rc.d nuageinit_user_data_script

nuageinit: fix typo

PR:     287503
Reported by:    crest at rlwinm.de
DeltaFile
+1-1libexec/rc/rc.d/nuageinit_user_data_script
+1-11 files

FreeBSD/src 458308ashare/man/man4 iwlwifi.4

iwlwifi.4: add a note on how to bootstrap firmware files

In case someone ends up without any networking and no firmware files
add short instructions on how firmware can be bootstrapped manually.
This was prompted by PR287393 and D50777 during the 14.3-RELEASE days
after firmware was removed from the stable/14 and only available via
ports/package/fwget.

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
Reviewed by:    ziaee, pauamma_gundo.com
Differential Revision: https://reviews.freebsd.org/D50791
DeltaFile
+12-1share/man/man4/iwlwifi.4
+12-11 files

FreeBSD/src eb8a794share/man/man4 rtw88.4 rtw89.4

iwlwifi.4/rtw88.4/rtw89.4: adjust note about loading from loader

Despite being discouraged in the man page already,  people are trying
to load the driver(s) from loader.  Now that the drivers are on
module_blacklist="" simply state that it is not possible.
If someone wants anyway they can figure out how to remove it from there,
load the driver, and loader the firmware file(s) upfront.

Sponsored by:   The FreeBSD Foundation (iwlwifi)
MFC after:      3 days
PR:             287480
Reviewed by:    pauamma_gundo.com
Differential Revision: https://reviews.freebsd.org/D50816
DeltaFile
+4-25share/man/man4/rtw88.4
+3-24share/man/man4/rtw89.4
+1-1share/man/man4/iwlwifi.4
+8-503 files

FreeBSD/src bfaec3eshare/man/man4 linuxkpi_wlan.4 linuxkpi.4

linuxkpi.4, linuxkpi_wlan.4: add short man pages

Add brief documentation on LinuxKPI.
Add brief documentation on LinuxKPI 802.11 compat so we can refer to
something about which features are supported.

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
Reviewed by:    dumbbell, ziaee, pauamma_gundo.com
Differential Revision: https://reviews.freebsd.org/D50790
DeltaFile
+134-0share/man/man4/linuxkpi_wlan.4
+42-0share/man/man4/linuxkpi.4
+176-02 files

FreeBSD/src a3d38c1share/man/man4 wlan.4

wlan.4: and add rtw89 and iwx drivers in see also

Sponsored by:   The FreBSD Foundation
MFC after:      3 days
X-MFC:          no iwx.4 in stable/14 yet
Reviewed by:    ziaee
Differential Revision: https://reviews.freebsd.org/D50788
DeltaFile
+3-1share/man/man4/wlan.4
+3-11 files

FreeBSD/src ca6d68ashare/man/man4 wlan_gcmp.4 wlan.4

wlan_gcmp.4: add man page

The man page is heavily based on wlan_ccmp.4 with minor modifications
for GCMP.

Add the .Xr to the other wlan*.4 man pages.

Sposnored by:   The FreeBSD Foundation
MFC after:      3 days
Reviewed by:    adrian, ziaee
Differential Revision: https://reviews.freebsd.org/D50789
DeltaFile
+72-0share/man/man4/wlan_gcmp.4
+1-0share/man/man4/wlan.4
+1-0share/man/man4/wlan_ccmp.4
+1-0share/man/man4/wlan_tkip.4
+1-0share/man/man4/wlan_wep.4
+76-05 files

FreeBSD/src 4f7473dsys/dev/qlnx/qlnxe qlnx_os.c

qlnx: fix panic at startup

While attaching the qlnx driver we can end up trying to call ifmedia functions
before those are set up (through ether_ifattach() -> rtnl_handle_ifattach()
-> dump_iface() -> get_operstate_ether() -> ifmedia_ioctl()). Postpone the
ether_ifattach() until after the ifmedia setup.

Reviewed by:    markj,zlei
Sponsored by:   Rubicon Communications, LLC ("Netgate")
Differential Revision:  https://reviews.freebsd.org/D50819
DeltaFile
+3-3sys/dev/qlnx/qlnxe/qlnx_os.c
+3-31 files

FreeBSD/src bd8621clib/libsys clock_gettime.2, sys/kern kern_time.c

kern_time: minor style nits

Typically we spell error values 'error' not 'err'. And fix EINVAL markup
nit.

Suggested by: kib
Fixes: 7b7ba7857ce8
Sponsored by:           Netflix
DeltaFile
+16-16sys/kern/kern_time.c
+3-1lib/libsys/clock_gettime.2
+19-172 files

FreeBSD/src 65cda8abin/cat/tests Makefile, contrib/netbsd-tests/bin/cat t_cat.sh stdin_test.out

bin/cat: add test for reading data from stdin

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1671
Closes: https://github.com/freebsd/freebsd-src/pull/1671
DeltaFile
+15-0contrib/netbsd-tests/bin/cat/t_cat.sh
+1-0bin/cat/tests/Makefile
+1-0contrib/netbsd-tests/bin/cat/stdin_test.out
+17-03 files

FreeBSD/src 83f7e20share/misc bsd-family-tree

bsd-family-tree: add Dragonfly 6.4.2 and FreeBSD 14.3
DeltaFile
+11-6share/misc/bsd-family-tree
+11-61 files

FreeBSD/src 4027e17sys/dev/sound/pci/hda hdaa_patches.c hdac.h

snd_hda: Patch Lenovo T420s

PR:             222636
Tested by:      vermaden at interia.pl
Sponsored by:   The FreeBSD Foundation
MFC after:      1 day

(cherry picked from commit 84e73074412719ec83143fb514625c09d27f468c)
DeltaFile
+16-0sys/dev/sound/pci/hda/hdaa_patches.c
+1-0sys/dev/sound/pci/hda/hdac.h
+17-02 files

FreeBSD/src f482411sys/dev/sound/pci/hda hdac.c

snd_hda: fix attaching to some AMD Radeon GPUs

HDMI audio did not work on my older Radeon GPU, the error message
during attach was:

hdac0: hdac_get_capabilities: Invalid corb size (0)

This is fixed by calling hdac_reset() before the HDA device
capabilities are retrieved. This solution was proposed by Andriy Gapon
in 2010, but apparently did not solve the problem reported at the time.

Approved by:    christos
Differential Revision:  https://reviews.freebsd.org/D50737

(cherry picked from commit dab9ef5448682c3c35e34d857b17ac1c23445321)
DeltaFile
+1-0sys/dev/sound/pci/hda/hdac.c
+1-01 files

FreeBSD/src c43d6dasys/netgraph ng_iface.c

ng_iface(4): Remove a redundant assignment of if_type

That is unnecessary since change [1], as if_alloc(IFT_PROPVIRTUAL) has
set if_type already.

[1] fc74a9f93a5f Stop embedding struct ifnet at the top of driver softcs

No functional change intended.

MFC after:      1 week
DeltaFile
+0-1sys/netgraph/ng_iface.c
+0-11 files

FreeBSD/src 1873f2ashare/misc committers-src.dot

committers-src: add myself

Add myself (vexeduxr@) as a new src committer with imp@ as my mentor.

Approved by: imp (mentor)
Differential Revision: https://reviews.freebsd.org/D50824
DeltaFile
+2-0share/misc/committers-src.dot
+2-01 files

FreeBSD/src 1beab14stand/lua drawer.lua

stand: lua: add a more productive comment

The global `shift` is a special little hack for shifting everything when
the logo is gone, and we should explain that.

Fixes:  33d3373faf30d ("stand: lua: convert orb to a new format [...]")
DeltaFile
+3-1stand/lua/drawer.lua
+3-11 files

FreeBSD/src 33d3373stand/lua drawer.lua gfx-orbbw.lua

stand: lua: convert orb to a new format that allows per-graphic shift

Previously, we had one shift that had to work for both the ASCII version
and the image that we may draw if we have a framebuffer to play with.
That makes it more difficult to get the positioning just right, so split
them out into their own tables for convenience.

While we're here, stop clipping off the bottom of the orb when the
autoboot sequence is interrupted.  There's plenty of space for it to
move up a hair, so let's do that..

Reviewed by:    imp, tsoome
Differential Revision:  https://reviews.freebsd.org/D50801
DeltaFile
+75-29stand/lua/drawer.lua
+19-17stand/lua/gfx-orbbw.lua
+10-5stand/lua/gfx-orb.lua
+104-513 files

FreeBSD/src 754bc3dusr.sbin/bsdinstall/scripts bootconfig

bsdinstall: fix ps3 regression

b6644f5 introduces FREEBSD_BOOTLABEL="FreeBSD" as default value
but cc42ef5 removed this line, expecting it to be set by update_uefi_bootentry()

But ps3 don't use this function so its broken completely.

So we add this line back.

Signed-off-by: Chattrapat Sangmanee <aomsin27 at hotmail.co.th>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1594
DeltaFile
+3-0usr.sbin/bsdinstall/scripts/bootconfig
+3-01 files

FreeBSD/src 54f278cshare/man/man5 pf.conf.5

pf.conf.5: additional quoting for ranges in lists

When defining network address ranges in macros that will later be used
as items in list macro, these ranges must be quoted with additiona
simple quotes.

For instance, the following does not work and is rejected as a syntax
error:

    usr = "192.168.1.0/24"
    srv = "192.168.2.10 - 192.168.29"
    nat_ranges = "{" $usr $srv "}"

Defining ranges as the following instead will work:
    usr = "'192.168.1.0/24'"
    srv = "'192.168.2.10 - 192.168.29'"

MFC after: 3 days
Reviewed by: imp, ziaee
Pull Request: https://github.com/freebsd/freebsd-src/pull/1516
DeltaFile
+7-0share/man/man5/pf.conf.5
+7-01 files

FreeBSD/src 12859eeshare/man/man5 pf.conf.5

pf.conf.5: use subsections and reword titles

The current manpage has two PARAMETERS top-level sections, which can be
confusing when searching or browsing documentation quickly.

Since the parameters described in these two sections are actually
applicable within the scope of the sections they follow (ETHERNET
FILTERING and PACKET FILTERING respectively), I propose we move them to
subsections.

I also propose we reword the title of one of those subsections to
facilitate quick searching or browsing.

MFC after: 3 days
Reviewed by: imp, ziaee
Pull Request: https://github.com/freebsd/freebsd-src/pull/1516
Closes: https://github.com/freebsd/freebsd-src/pull/1516
DeltaFile
+3-3share/man/man5/pf.conf.5
+3-31 files

FreeBSD/src d8f021ausr.sbin/jail jail.8 command.c, usr.sbin/jail/tests jail_basic_test.sh commands.jail.conf

jail: add JID, JNAME and JPATH to environment for exec.* commands

Although variable substitution is available in the jail configuration
file, the jail identifier is often not since it is dynamically
attributed at run time.

In order to facilitate scripting of exec.* commands executed on the
system, this change sets the JID, JNAME and JPATH environment variables.

These variables are not added when using exec.clean. Neither are they
for commands executed inside jails, to avoid disclosing information
about the host system.

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1609
Closes: https://github.com/freebsd/freebsd-src/pull/1609
DeltaFile
+21-0usr.sbin/jail/jail.8
+13-1usr.sbin/jail/command.c
+9-2usr.sbin/jail/tests/jail_basic_test.sh
+3-0usr.sbin/jail/tests/commands.jail.conf
+46-34 files

FreeBSD/src aae67a2usr.sbin/mfiutil mfi_bbu.c

mfiutil: Fix unsafe assumptions of snprintf(3) return value

PR: 281160
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1405
Closes: https://github.com/freebsd/freebsd-src/pull/1405
DeltaFile
+15-2usr.sbin/mfiutil/mfi_bbu.c
+15-21 files

FreeBSD/src b44147b. Makefile.inc1

Makefile.inc1: allow real-update-packages to be called independently

To perform an incremental update of a pkgbase repo, you would
call 'make update-packages', which will stage, create, and
incrementally choose newer package versions to sign as part
of a pkg repo. However, this forces you to stage the kernel
and source packages along with the world packages. For a
jail-only installation of FreeBSD, these packages are generally
not required.

This patch separates the 'update-packages' target from the
'real-update-packages' target to allow choosing world, kernel,
and/or source individually at the command line like so:

Jail-only installation:
1. make -j`nproc` buildworld
2. make PKG_VERSION='15.snap<date>' \
       stage-packages-world create-packages-world \
       real-update-packages

    [4 lines not shown]
DeltaFile
+3-4Makefile.inc1
+3-41 files

FreeBSD/src 3601528. Makefile.inc1

Makefile.inc1: define PKG_VERSION_FROM only if $REPO/latest symlink exists

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1445
DeltaFile
+1-1Makefile.inc1
+1-11 files