FreeBSD/src 96af6ac. UPDATING

UPDATING: Add an entry for commit 772258c89f28
DeltaFile
+4-0UPDATING
+4-01 files

FreeBSD/src 772258csys/fs/nfs nfs_commonsubs.c, sys/fs/nfsclient nfs_clrpcops.c

nfs_clrpcops.c: Fix acquisition of post-op attributes for link

Without this patch, the link RPC (done by nfsrpc_link()) did not
acquire post link operation attributes for the file object for NFSv4.
For some recent Linux NFSv4 servers that support delegations, this
would result in the client's cached attribute for st_nlinks not being
increased right away, because the delegation would indicate that the
now stale cached attributes were still valid.

This patch fixes the problem by acquiring post link attributes and
updating the client's cached copy in the same manner as the NFSv3
RPC did.

Detected at the recent NFSv4 Bakeathon testing event.

Applications will only be affected if they examine st_nlinks after
a new hard link is created for a file object.

MFC after:      2 weeks
DeltaFile
+27-13sys/fs/nfsclient/nfs_clrpcops.c
+1-1sys/fs/nfs/nfs_commonsubs.c
+28-142 files

FreeBSD/src a2ebf64sys/conf newvers.sh

14.3: Update to BETA3

Approved by:    re (implicit)
Sponsored by:   Amazon
DeltaFile
+1-1sys/conf/newvers.sh
+1-11 files

FreeBSD/src 29d6968release/tools ec2.conf

EC2: Remove old broken_txfifo workaround

Early versions of Xen, including those used in the early days of EC2,
had a bug in their UART emulation whereby the TX FIFO wouldn't send the
expected interrupt when emptying; as a result, FreeBSD would write 16
characters to the serial console and then stop because we thought the
FIFO was forever full.

In 2013 (1c60b24baa50) I added a loader tunable "hw.broken_txfifo"
which spinwaits for the FIFO TX rather than relying on the interrupt,
and enabled this in loader.conf in EC2 images.

A decade later, this workaround is almost certainly no longer needed in
EC2 -- most instances don't run Xen, and the bug was long since fixed
in Xen anyway -- but we've been holding on to the workaround "just in
case".  Unfortunately, the spinwait behaviour is causing latency spikes
and triggering warnings from the ena(4) driver.

This commit removes the hw.broken_txfifo setting from loader.conf in

    [11 lines not shown]
DeltaFile
+0-5release/tools/ec2.conf
+0-51 files

FreeBSD/src ecc352ashare/misc committers-src.dot

committers-src: add myself (kgalazka@)

Add kgalazka@ (myself) as new src committer
with erj@ and kbowling@ as mentors.

Signed-off-by: Krzysztof Galazka <kgalazka at FreeBSD.org>
Reviewed by:    kbowling, erj
Approved by:    erj (mentor)
Differential Revision:  https://reviews.freebsd.org/D50332
DeltaFile
+4-0share/misc/committers-src.dot
+4-01 files

FreeBSD/src 36174c3sys/compat/linuxkpi/common/src linux_80211.c

LinuxKPI: 802.11: make sure AUTH frames are not being sent if BSS changed

iwlwifi keeps logging 'Invalid TXQ id' even after previous changes to
catch the BSS changed.  The reason for this is that we do not error in
the SCAN -> AUTH path as otherwise we would not have the state machine
get us back to SCAN to clear up firmware state before auth/assoc to the
new BSS.

If we are not in synch as net80211 just swapped the iv_bss from under us,
disable the TX queue for the (old) lsta to prevent the AUTH frame sent
from sta_newstate() reaching the driver.  After all we are not trying to
authenticate to that node (sta) anymore.

Sponsored by:   The FreeBSD Foundation
PR:             274382
Approved by:    re (cperciva)

(cherry picked from commit 16d987fe781780100a31df30b9edd79ebb54f957)
(cherry picked from commit e0692e7bb6e8abcc55a2510dceea5f83e823a827)
DeltaFile
+14-10sys/compat/linuxkpi/common/src/linux_80211.c
+14-101 files

FreeBSD/src f938c0alib/libusb libusb10.c libusb.3, usr.sbin/usbconfig dump.c

libusb: add SUPER_PLUS in speed enum.

Summary:
Some application(like usbmuxd) start to use LIBUSB_SPEED_SUPER_PLUS now.
Though we don't have the corresponding infra in kernel right now, it is
harmless to have this enum value in userspace to prevent the compile error

Reviewed By: bapt
Sponsored By: FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D50359
DeltaFile
+5-0lib/libusb/libusb10.c
+1-1lib/libusb/libusb.3
+2-0lib/libusb/libusb01.c
+2-0usr.sbin/usbconfig/dump.c
+1-0lib/libusb/libusb20.3
+1-0lib/libusb/libusb.h
+12-11 files not shown
+13-17 files

FreeBSD/src a7e183cshare/man/man4 iwlwififw.4 iwlwifi.4

iwlwifi: update man pages for generations, firmware. and 11n/11ac

Put Intel's iwlwifi better in context to iwm, iwx and iwn.
Document the important tunables so users know where to go.
Document the port/package for firmware where firmware is now
maintained.
Adjust wording and table for the firmware and a flavor column.
Update History sections for 11n/11ac support as well as firmware
module removal from base.

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
Reviewed by:    ziaee, emaste (comments)
Differential Revision: https://reviews.freebsd.org/D50319
DeltaFile
+1,023-1,006share/man/man4/iwlwififw.4
+78-8share/man/man4/iwlwifi.4
+1,101-1,0142 files

FreeBSD/src d7837causr.sbin/bluetooth/rtlbtfw rtlbt_hw.c

rtlbtfw(8): Fix incorrect chunk index overwrap in rtlbt_load_fwfile()

It prevented large (>256 chunks) firmwares from loading.

Fixes: 5036d9652a57 ("rtlbtfw: Firmware loader for Realtek 87XX/88XX")

Sponsored by:   Future Crew, LLC
MFC after:      1 week

(cherry picked from commit a4fcbac5d891e3909474ffe7ed7064972a1a7577)
DeltaFile
+5-6usr.sbin/bluetooth/rtlbtfw/rtlbt_hw.c
+5-61 files

FreeBSD/src 718273dsys/netgraph/bluetooth/drivers/ubt ng_ubt_rtl.c, usr.sbin/bluetooth/rtlbtfw rtlbtfw.conf main.c

rtlbtfw(8): Add Mercusys MA530 VID/PID for Realtek 8761BUV

Tested by:      Yusuf Yaman <nxjoseph at protonmail.com>
PR:             286369
MFC after:      1 week

(cherry picked from commit 7a7ab347fc6535a8c91d458dda76a61019163869)
DeltaFile
+8-0usr.sbin/bluetooth/rtlbtfw/rtlbtfw.conf
+1-0sys/netgraph/bluetooth/drivers/ubt/ng_ubt_rtl.c
+1-0usr.sbin/bluetooth/rtlbtfw/main.c
+10-03 files

FreeBSD/src 7798b72sys/dev/iicbus iichid.c

iichid(4): Do not send packets read in interrupt handler to hidbus

if no hidbus and hidbus clients were attached and opened by users.

iichid(4) enables interrupts before hidbus is attached and sending
packets to it at this time leads to panic at boot time.

Fixes: daa098cc37b9 ("Wait for RESET command response while attaching")

Tested by:      dch
PR:             286045
MFC with:       daa098cc37b9

(cherry picked from commit 2abdb305bd0c105226f6a71a8d3dc89698c9ef6b)
DeltaFile
+1-1sys/dev/iicbus/iichid.c
+1-11 files

FreeBSD/src 072e0b1sys/dev/iicbus iichid.c

iichid(4): Wait for RESET command response while attaching

before starting of children initialization to ensure that parent device
is fully functional.

Sponsored by:   Future Crew LLC
MFC after:      2 month
Differential Revision:  https://reviews.freebsd.org/D48958

(cherry picked from commit daa098cc37b9db36281623c00558976aea4fa90e)
DeltaFile
+41-14sys/dev/iicbus/iichid.c
+41-141 files

FreeBSD/src 3bd684fsys/dev/iicbus iichid.c

iichid(4): Read wMaxInputLength bytes over I2C even if we discards data

For some devices e.g. ITE5570 it is not enough to read HID-over-I2C
input length header of RESET command response to acknowledge interrupt.
Do a full-size read to avoid interrupt storm.

Sponsored by:   Future Crew LLC
MFC after:      2 month
Differential Revision:  https://reviews.freebsd.org/D48957

(cherry picked from commit 548d3aa856a97f4483554beceeb57fa9ba0ff913)
DeltaFile
+36-11sys/dev/iicbus/iichid.c
+36-111 files

FreeBSD/src c58c931sys/dev/ichiic ig4_iic.c ig4_var.h, sys/dev/iicbus iichid.c

ig4_iic: Allow sleeping if called from iichid interrupt handler.

This replaces 50 ms busy loop with mtx_sleep for the same duration thus
saving CPU time when iichid is driven with interrupts.

Sponsored by:   Future Crew, LLC
MFC after:      2 month
Differential Revision:  https://reviews.freebsd.org/D48956

(cherry picked from commit c7225a3ede3cf99c538158962f4d65dee435bbcd)
DeltaFile
+1-4sys/dev/ichiic/ig4_iic.c
+3-0sys/dev/iicbus/iichid.c
+0-1sys/dev/ichiic/ig4_var.h
+4-53 files

FreeBSD/src e9baf47sys/kern vfs_subr.c

vfs: vntblinit(): Raise default 'kern.maxvnodes' higher than 'kern.maxfiles'

Having 'kern.maxvnodes' higher than 'kern.maxfiles' mitigates a scenario
where some processes can eat up all vnodes in the system, causing
a deadlock, as long as the kernel itself does not create too many vnodes
without creating some file descriptor in some process' FD table.  A very
small percentage (~0.6%) of excess vnodes at infinity, coupled with
a large difference near the origin, should cover basic cases more than
enough.  Note however that this measure can be defeated, e.g., by using
nullfs mounts with non-trivial file hierarchies.

MFC after:      5 days
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D50314
DeltaFile
+4-5sys/kern/vfs_subr.c
+4-51 files

FreeBSD/src ebeeeaesys/arm/include pmap.h, sys/kern subr_devmap.c

subr_devmap: Implement pmap_mapdev with pmap_mapdev_attr

We can now support pmap_mapdev_attr on arm. Switch to use this to
implement pmap_mapdev to reduce duplicate code.

Reviewed by:    mhorne, mmel
Sponsored by:   Arm Ltd
Differential Revision:  https://reviews.freebsd.org/D50309
DeltaFile
+12-39sys/kern/subr_devmap.c
+1-7sys/arm/include/pmap.h
+13-462 files

FreeBSD/src 66886d9sys/kern subr_devmap.c

subr_devmap: Add the function name to KASSERT

These messages are almost identical, other than one has " 2" appended.
Change this to include the function name at the start to make it more
obvious which function the KASSERT is from.

Reviewed by:    mhorne, emaste
Sponsored by:   Arm Ltd
Differential Revision:  https://reviews.freebsd.org/D50308
DeltaFile
+3-3sys/kern/subr_devmap.c
+3-31 files

FreeBSD/src 68baf04sys/arm/arm pmap-v6.c mem.c, sys/arm/include pmap.h

arm: Make the pmap_kenter signature like arm64

To support a common pmap_mapdev_attr change pmap_kenter to include the
size any memory type in the signature.

Reviewed by:    mhorne
Sponsored by:   Arm Ltd
Differential Revision:  https://reviews.freebsd.org/D50307
DeltaFile
+23-20sys/arm/arm/pmap-v6.c
+2-2sys/arm/arm/mem.c
+1-1sys/arm/include/pmap.h
+26-233 files

FreeBSD/src bf8890csys/kern vfs_subr.c

vfs: vntblinit(): Rework comments on the computation of 'kern.maxvnodes'

Remove the parts that describe what is already in the code formula.  Add
hints about which of 'physvnodes'/'virtvnodes' takes precedence, and
when 'desiredvnodes' becomes smaller than 'maxfiles'.  These were both
computed analytically and verified experimentally.

Reviewed by:    kib (older version)
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D50310
DeltaFile
+9-9sys/kern/vfs_subr.c
+9-91 files

FreeBSD/src 1fd8018sys/kern vfs_subr.c

Revert commit 1935cc945642 ("vfs: vntblinit(): Rework comments on...")

This is because the Differential Revision tag was wrong.  Will be recommitted shortly.
DeltaFile
+9-9sys/kern/vfs_subr.c
+9-91 files

FreeBSD/src ae28929lib/libusb libusb10.c libusb10_io.c

libusb: use eventfd

Simplify libusb code by replacing pipe(2) inter thread event mecanism
with eventfd(2).

MFC After:      3 weeks
Reviewed by:    kevans
Differential Revision:  https://reviews.freebsd.org/D50360
DeltaFile
+7-13lib/libusb/libusb10.c
+2-3lib/libusb/libusb10_io.c
+1-1lib/libusb/libusb10.h
+10-173 files

FreeBSD/src 1935cc9sys/kern vfs_subr.c

vfs: vntblinit(): Rework comments on the computation of 'kern.maxvnodes'

Remove the parts that describe what is already in the code formula.  Add
hints about which of 'physvnodes'/'virtvnodes' takes precedence, and
when 'desiredvnodes' becomes smaller than 'maxfiles'.  These were both
computed analytically and verified experimentally.

Reviewed by:    kib (older version)
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D50130
DeltaFile
+9-9sys/kern/vfs_subr.c
+9-91 files

FreeBSD/src 73f9251sys/kern subr_param.c

Compute 'maxproc'/'maxfiles' from memory amount; Expand/fix comments

Change the formulae so that 'maxproc' and 'maxfiles' are computed based
on the physical memory amount, and not the corresponding number of
pages.  Make sure that the practical results are unchanged for all
architectures (which is possible since all have 4096 as their
PAGE_SIZE).  Despite this, we do this change to make it clearer how many
units of these values are computed per MB, which is easier on readers.

Change the comments accordingly and expand them to indicate which parts
of the computations are actually not used by default.  In passing, fix the
comments about default values and limits for 'maxfiles' (they were off).

No functional change (intended).

MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D50124
DeltaFile
+27-17sys/kern/subr_param.c
+27-171 files

FreeBSD/src e9131d5usr.sbin/bhyve/aarch64 mem_aarch64.c Makefile.inc

bhyve aarch64: generate SError exception when accessing non-backed gpa

Reviewed by:    andrew
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D50116
DeltaFile
+58-0usr.sbin/bhyve/aarch64/mem_aarch64.c
+1-1usr.sbin/bhyve/aarch64/Makefile.inc
+59-12 files

FreeBSD/src d8c4c2cusr.sbin/bhyve/amd64 mem_x86.c Makefile.inc

bhyve x86: when accessing non-backed gpa, emulate hw

which reads all bits one, and ignores writes.

PR:     286467
Reviewed by:    markj (previous version)
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D50116
DeltaFile
+82-0usr.sbin/bhyve/amd64/mem_x86.c
+1-1usr.sbin/bhyve/amd64/Makefile.inc
+83-12 files

FreeBSD/src e8b9d83usr.sbin/bhyve mem_md.c mem.c, usr.sbin/bhyve/aarch64 Makefile.inc

bhyve: make code to handle non-backed memory accesses MD

PR:     286467
Reviewed by:    markj (previous version)
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D50116
DeltaFile
+44-0usr.sbin/bhyve/mem_md.c
+19-7usr.sbin/bhyve/mem.c
+2-1usr.sbin/bhyve/riscv/Makefile.inc
+2-0usr.sbin/bhyve/mem.h
+1-0usr.sbin/bhyve/amd64/Makefile.inc
+1-0usr.sbin/bhyve/aarch64/Makefile.inc
+69-86 files

FreeBSD/src 13e5206stand/fdt fdt_loader_cmd.c

fdt_loader_cmd.c: fix compilation with DEBUG

It was broken on 64-bit platforms.
DeltaFile
+1-1stand/fdt/fdt_loader_cmd.c
+1-11 files

FreeBSD/src ac1943fsys/powerpc/powerpc nexus.c

powerpc: Always use BE tag in nexus_map_resource

7b5a5e4e replaced nexus_activate_resource() with the bus generic
equivalent, which uses bus_map_resource().  However, though not intended
to have a functional change, nexus_map_resource() uses the bus tag of
the build (BE vs LE), while nexus_activate_resource() always explicitly
set a big-endian tag, leading to failures on powerpc64le now.  Using BE
unless otherwise explicitly specified with the RF_LITTLEENDIAN fixes LE
on bare metal, and doesn't hurt in a VM, which nexus_map_resource() was
added for.

Reported by:    pkubaj
Tested by:      pkubaj
Fixes:          7b5a5e4e("powerpc nexus: Use bus_generic_rman_*")
MFC after:      1 day
Approved by:    re(cperciva)

(cherry picked from commit c4921a0faaf1683f39347dd066000d929c39c8b9)
(cherry picked from commit 45d585ab7f222ca36988c406df528128a17f9884)
DeltaFile
+1-1sys/powerpc/powerpc/nexus.c
+1-11 files

FreeBSD/src c808beeshare/man/man4 e6000sw.4

e6000sw.4: Add HISTORY

MFC after:              3 days
Reviewed by:            mhorne
Approved by:            mhorne (mentor)
Differential Revision:  https://reviews.freebsd.org/D50358
DeltaFile
+5-0share/man/man4/e6000sw.4
+5-01 files

FreeBSD/src b3fe901bin/cp utils.c cp.c

cp: Avoid prepending ./ in file-to-file case.

* Make to.base large enough to hold a trailing separator.
* Remove the separator from warning and error messages.
* In the FILE_TO_FILE case, leave to.base empty.
* In the FILE_TO_DIR and DIR_TO_DNE cases, append a separator to
  to.base once we've (optionally created and) opened it.
* Thus, in the file-to-file case, we print an empty string followed by
  to.path, while in all other cases, to.base already contains the
  necessary separator.

This fixes failures in tests that used cp and expected a specific
error message and were surprised to see "./" pop up.

Fixes:          82fc0d09e862
Sponsored by:   Klara, Inc.
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D50357
DeltaFile
+25-25bin/cp/utils.c
+28-10bin/cp/cp.c
+1-1bin/cp/extern.h
+54-363 files