]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
3 years agoMFC r366712:
Konstantin Belousov [Wed, 21 Oct 2020 15:04:12 +0000 (15:04 +0000)]
MFC r366712:
Limit workaround for errata E400 to appropriate AMD cpus.

3 years agoMFC r366707: Use RTD3 Entry Latency value as shutdown timeout.
Alexander Motin [Wed, 21 Oct 2020 00:46:53 +0000 (00:46 +0000)]
MFC r366707: Use RTD3 Entry Latency value as shutdown timeout.

This field was not in specs when the driver was written, but now there
are SSDs with the reported latency of 10s, where hardcoded value of 5s
seems to be not enough sometimes, causing shutdown timeout messages.

3 years agoMFC r366682:
Andrey V. Elsukov [Tue, 20 Oct 2020 11:44:54 +0000 (11:44 +0000)]
MFC r366682:
  Join to AllHosts multicast group again when adding an existing IPv4 address.

  When SIOCAIFADDR ioctl configures an IPv4 address that is already exist,
  it removes old ifaddr. When this IPv4 address is only one configured on
  the interface, this also leads to leaving from AllHosts multicast group.
  Then an address is added again, but due to the bug, this doesn't lead
  to joining to AllHosts multicast group.

  Submitted by: yannis.planus_alstomgroup.com

3 years agoMFC r366681:
Andrey V. Elsukov [Tue, 20 Oct 2020 11:40:37 +0000 (11:40 +0000)]
MFC r366681:
  Add IPv4 fragments reassembling to NAT64LSN.

  NAT64LSN requires the presence of upper level protocol header
  in a IPv4 datagram to find corresponding state to make translation.
  Now it will be handled automatically by nat64lsn instance.

  Obtained from: Yandex LLC
  Sponsored by: Yandex LLC

3 years agoMFC r366481: intro(3): Update the list of included libraries
Gordon Bergling [Tue, 20 Oct 2020 09:51:41 +0000 (09:51 +0000)]
MFC r366481: intro(3): Update the list of included libraries

- Extend the list of main libraries of section 3
- Extend the library functions that are included in the libc

Submitted by: Naga Chaitanya Vellanki <pnagato at protonmail dot com>
Differential Revision: https://reviews.freebsd.org/D26476

3 years agoMFC r366669:
Hans Petter Selasky [Tue, 20 Oct 2020 08:35:16 +0000 (08:35 +0000)]
MFC r366669:
Implement more RCU list functions in the LinuxKPI.

This also fixes a bug in the existing list_add_rcu() where the
prev->prev pointer was updated to the new element instead of
next->prev. Currently this function is not widely used.

Sponsored by: Mellanox Technologies // NVIDIA Networking

3 years agoMFC r366536:
Hans Petter Selasky [Tue, 20 Oct 2020 08:33:11 +0000 (08:33 +0000)]
MFC r366536:
Try a bit harder to get the USB device descriptor in case the initial read fails.

Sponsored by: Mellanox Technologies // NVIDIA Networking

3 years agoMFC r366535:
Hans Petter Selasky [Tue, 20 Oct 2020 08:31:20 +0000 (08:31 +0000)]
MFC r366535:
The ethernet header structure is read-only. Add const keyword.

(This is a diff reduction towards D26254)

Sponsored by: Mellanox Technologies // NVIDIA Networking

3 years agoMFC r366533:
Hans Petter Selasky [Tue, 20 Oct 2020 08:29:28 +0000 (08:29 +0000)]
MFC r366533:
Allow  evdev's rcpt_mask and sysmouse_t_axis parameters to be specified in
/boot/loader.conf .

Sponsored by: Mellanox Technologies // NVIDIA Networking

3 years agoMFC r366518:
Hans Petter Selasky [Tue, 20 Oct 2020 08:25:02 +0000 (08:25 +0000)]
MFC r366518:
Properly cleanup driver during remove_one() in mlx5core.

Cleanup all host resources, SYSCTLs, MSIX vectors and memory used
by the host and only leave the device allocated memory behind, if any,
because it may still be in use, when the PCI remove function is called.
Else future probe calls may fail due to SYSCTLs already existing.

Sponsored by: Mellanox Technologies // NVIDIA Networking

3 years agoMFC r366432:
Hans Petter Selasky [Tue, 20 Oct 2020 08:17:47 +0000 (08:17 +0000)]
MFC r366432:
Populate the acquire context field of a ww_mutex in the LinuxKPI.
Bump the FreeBSD version to force recompilation of external kernel modules.

Differential Revision: https://reviews.freebsd.org/D26657
Submitted by: greg_unrelenting.technology (Greg V)
Sponsored by: Mellanox Technologies // NVIDIA Networking

3 years agoMFC r366431:
Hans Petter Selasky [Tue, 20 Oct 2020 08:14:06 +0000 (08:14 +0000)]
MFC r366431:
Add support for Google Cr50 (GSC) Closed Case Debugging UART interfaces to
the USB generic serial port driver, ugensa.

Differential Revision: https://reviews.freebsd.org/D21863
Submitted by: greg_unrelenting.technology (Greg V)
Sponsored by: Mellanox Technologies // NVIDIA Networking

3 years agoMFC r365966:
Hans Petter Selasky [Tue, 20 Oct 2020 08:12:35 +0000 (08:12 +0000)]
MFC r365966:
Add support for Winbond USB CDC modem device found in Tenma power supply.

PR: 249384
Submitted by: darius@dons.net.au
Sponsored by: Mellanox Technologies // NVIDIA Networking

3 years agoMFC r365958:
Hans Petter Selasky [Tue, 20 Oct 2020 08:11:34 +0000 (08:11 +0000)]
MFC r365958:
Add example to ng_bpf(4) showing how ng_bpf(4) can be used to prevent spoofing.

Differential Revision: https://reviews.freebsd.org/D26488
Reviewed by: pi, bcr (manpages)
Submitted by: lutz_donnerhacke.de (Lutz Donnerhacke)
Sponsored by: Mellanox Technologies // NVIDIA Networking

3 years agoMFC r365236:
Hans Petter Selasky [Tue, 20 Oct 2020 08:08:08 +0000 (08:08 +0000)]
MFC r365236:
Add small tool to invoke kernel test framework tests.

Sponsored by: Mellanox Technologies // NVIDIA Networking

3 years agoMFC r366689: Fix sbuf_finish() error code check in user-space.
Alexander Motin [Tue, 20 Oct 2020 02:28:07 +0000 (02:28 +0000)]
MFC r366689: Fix sbuf_finish() error code check in user-space.

3 years agoMFC r365884:
Mitchell Horne [Mon, 19 Oct 2020 22:27:21 +0000 (22:27 +0000)]
MFC r365884:
arm64: generate ISO release images

This was modified slightly to cope with how ESP partitions are generated
in stable/12.

Sponsored by: The FreeBSD Foundation

3 years agoMFC r360546, r360547 (by imp): Various improvements to this man page:
Alexander Motin [Mon, 19 Oct 2020 20:42:01 +0000 (20:42 +0000)]
MFC r360546, r360547 (by imp): Various improvements to this man page:

o Be consistent about device-id and namespace-id
o Use consistent arg markup for these
o document you can use disk names too
o document nsid command better
o document the idenntify command
o add a couple of examples.

3 years agoMFC r352671 (by imp): Size is unsigned, so remove the test entirely.
Alexander Motin [Mon, 19 Oct 2020 20:40:03 +0000 (20:40 +0000)]
MFC r352671 (by imp): Size is unsigned, so remove the test entirely.

The kernel won't crash if you have a bad value and I'd rather not have
nvmecontrol know the internal details about how the nvme driver limits
the transfer size.

3 years agoMFC r352665 (by imp):
Alexander Motin [Mon, 19 Oct 2020 20:39:00 +0000 (20:39 +0000)]
MFC r352665 (by imp):
After my comnd changes, the number of threads and size weren't set. In
addition, the flags are optional, but were made to be mandatory. Set
these things, as well as santiy check the specified size.

3 years agoMFC r352212 (by imp):
Alexander Motin [Mon, 19 Oct 2020 20:37:04 +0000 (20:37 +0000)]
MFC r352212 (by imp):
Assume all the short args have optional args so allocate space for the
':'. It's slightly wasteful, but much easier (and the savings in bytes
at runtime would be tiny, but the code to do it larger).

3 years agoMFC r365402: musb/allwinner: add support for configuring phy as well as device mode
Andriy Gapon [Mon, 19 Oct 2020 07:03:04 +0000 (07:03 +0000)]
MFC r365402: musb/allwinner: add support for configuring phy as well as device mode

At least on Orange Pi PC Plus even the host mode does not work without
enabling the phy and setting it to the host mode.

The driver will now parse dr_mode property and will try to configure
itself and the phy accordingly.
OTG mode is not supported yet, so it is treated as the device / peripheral
mode.

The phy is enabled -- powered on -- only for the host mode.

The device mode requires support from a phy driver, e.g., aw_usbphy on
Allwinner platform.
aw_usbphy does not support the device mode, so it cannnot work yet.

3 years agoMFC r365401: musb/allwinner: add H3 support
Andriy Gapon [Mon, 19 Oct 2020 06:44:07 +0000 (06:44 +0000)]
MFC r365401: musb/allwinner: add H3 support

3 years agoMFC r363173: [ipfw] quieten maybe-uninitialized errors in ipfw.
Alexander V. Chernikov [Sun, 18 Oct 2020 20:54:15 +0000 (20:54 +0000)]
MFC r363173:   [ipfw] quieten maybe-uninitialized errors in ipfw.

PR: 250434
Reported by: brndr

3 years agoMFC r366730: Fix nvmecontrol logpage -i parameter.
Alexander Motin [Sun, 18 Oct 2020 01:13:41 +0000 (01:13 +0000)]
MFC r366730: Fix nvmecontrol logpage -i parameter.

3 years agoMFC r366779: Import tzdata 2020c
Philip Paeps [Sun, 18 Oct 2020 01:09:55 +0000 (01:09 +0000)]
MFC r366779: Import tzdata 2020c

3 years agoMFC r366611: cpuset(1): Fix a typo
Gordon Bergling [Sat, 17 Oct 2020 09:51:17 +0000 (09:51 +0000)]
MFC r366611: cpuset(1): Fix a typo

- 'at at' -> 'at a'

3 years agoMFC r366610: sigevent(3): Fix a typo
Gordon Bergling [Sat, 17 Oct 2020 09:50:12 +0000 (09:50 +0000)]
MFC r366610: sigevent(3): Fix a typo

- asychronous -> asynchronous

3 years agoMFC r366617: pnfsdsfile(8): Remove dublicate word 'the'
Gordon Bergling [Sat, 17 Oct 2020 09:48:56 +0000 (09:48 +0000)]
MFC r366617: pnfsdsfile(8): Remove dublicate word 'the'

3 years agoMFC r366609: dtrace_audit(4): Fix a typo
Gordon Bergling [Sat, 17 Oct 2020 09:47:56 +0000 (09:47 +0000)]
MFC r366609: dtrace_audit(4): Fix a typo

- asynchonously -> asynchronously

3 years agoMFC r366616: cxgbetool(8): Remove dublicate word 'whether'
Gordon Bergling [Sat, 17 Oct 2020 09:45:05 +0000 (09:45 +0000)]
MFC r366616: cxgbetool(8): Remove dublicate word 'whether'

3 years agoMFC r366367:
Mark Johnston [Fri, 16 Oct 2020 13:34:56 +0000 (13:34 +0000)]
MFC r366367:
Simplify the check for non-dumpable VM object types

3 years agoMFC r366568:
Andrey V. Elsukov [Fri, 16 Oct 2020 08:56:20 +0000 (08:56 +0000)]
MFC r366568:
  Fix EINVAL message when CPU binding information is requested for IRQ.

  `cpuset -g -x N` along with requested information always prints
  message `cpuset: getdomain: Invalid argument'. The EINVAL is returned
  from kern_cpuset_getdomain(), since it doesn't expect CPU_LEVEL_WHICH
  and CPU_WHICH_IRQ parameters.

  To fix the error, do not call cpuset_getdomain() when `-x' is specified.

3 years agoMFC r366140: aw_pwm: fix programming of the period
Andriy Gapon [Fri, 16 Oct 2020 06:42:25 +0000 (06:42 +0000)]
MFC r366140: aw_pwm: fix programming of the period

The programmed value is biased by one: 0 means 1 cycle,
1 means 2 cycles, etc.

3 years agoMFC r366138: aw_pwm: remove the busy bit check
Andriy Gapon [Fri, 16 Oct 2020 06:40:59 +0000 (06:40 +0000)]
MFC r366138: aw_pwm: remove the busy bit check

The bit seems to always be set on my hardware, H3.
However, programming the hardware seems to work just fine.

3 years agoMFC r366551:
Konstantin Belousov [Thu, 15 Oct 2020 00:50:26 +0000 (00:50 +0000)]
MFC r366551:
Do not leak B_BARRIER.

3 years agoMFC r366313: Add cd device to arm64 GENERIC
Ed Maste [Wed, 14 Oct 2020 15:26:19 +0000 (15:26 +0000)]
MFC r366313: Add cd device to arm64 GENERIC

Big-iron arm64 machines might have a CD, possibly provided by some IPMI
emulation.

3 years agoMFC r355083 (by rlibby): sysctl: wire old buf before output with sysctl lock
Alexander Motin [Tue, 13 Oct 2020 17:50:01 +0000 (17:50 +0000)]
MFC r355083 (by rlibby): sysctl: wire old buf before output with sysctl lock

Several sysctl sysctls output to a user buffer while holding a
non-sleepable lock that protects the sysctl topology.  They need to wire
the output buffer, or else they may try to sleep on a page fault.

3 years agoMFC r366433
Ryan Moeller [Mon, 12 Oct 2020 17:43:38 +0000 (17:43 +0000)]
MFC r366433

Explicit CTLFLAG_DYN not needed

Dynamically created OIDs automatically get this flag set.

Reviewed by: jhb
Sponsored by: iXsystems, Inc.
Differential Revision: https://reviews.freebsd.org/D26561

3 years agoMFC r366450:
Mark Johnston [Mon, 12 Oct 2020 16:45:07 +0000 (16:45 +0000)]
MFC r366450:
Remove sysctl_kern_consmute()

3 years agoMFC r366464:
Mark Johnston [Mon, 12 Oct 2020 16:44:05 +0000 (16:44 +0000)]
MFC r366464:
re(4): Add a 8168-compatible device ID

PR: 250037

3 years agoMFC r365397: twsi: some variants clear interrupt flag by writing 0, others by writing 1
Andriy Gapon [Mon, 12 Oct 2020 11:40:43 +0000 (11:40 +0000)]
MFC r365397: twsi: some variants clear interrupt flag by writing 0, others by writing 1

Make that distinction more explicit and regular in the code.
The difference in behavior is documented in the respective datasheets.

Previously, the code handled the distinction by writing the control
register multiple times where at least one write was zero and another
was one.

This can be considered a follow-up to r363021 (MFC-ed as r366645).

3 years agoMFC r363021 by manu: twsi: Fix for > Allwinner A20
Andriy Gapon [Mon, 12 Oct 2020 11:34:09 +0000 (11:34 +0000)]
MFC r363021 by manu: twsi: Fix for > Allwinner A20

Every revision of twsi after the A20 have a bug where we need to
write again the control register after each interrupts. We also need
to add some delay before writing to this register, a simple read of the
same register does the job so do that.
Also fix the case when we have finish sending all the bytes, it only worked
for 1 byte transfer (the same kind that we do for talking to the PMIC on A20
boards).
While here add more debug messages and rework some of them.

This was tested by talking to a AT23C32 eeprom and a DS3231 RTC from an
H3 and A20 board.

PR: 247576

3 years agoMFC r366144: pwm(8): fix potential duty overflow, use unsigneds for period and duty
Andriy Gapon [Mon, 12 Oct 2020 11:04:52 +0000 (11:04 +0000)]
MFC r366144: pwm(8): fix potential duty overflow, use unsigneds for period and duty

3 years agoMFC r366142: aw_pwm: add a check and some comments related to long periods
Andriy Gapon [Mon, 12 Oct 2020 11:03:26 +0000 (11:03 +0000)]
MFC r366142: aw_pwm: add a check and some comments related to long periods

The hardware supports periods as long as 196 seconds[*] when using the
maximal prescaling of 72000 and maximum cycle count of 2^16.

But the code becomes incorrect when the period length approaches 1 second.
That's because of things like NS_PER_SEC / period.

[*] At the same time I must note that the KPI provides for maximum
period of about 4 seconds (2^32 nanoseconds).

3 years agoMFC r366141: aw_pwm: ensure sane configuration, just in case
Andriy Gapon [Mon, 12 Oct 2020 11:01:54 +0000 (11:01 +0000)]
MFC r366141: aw_pwm: ensure sane configuration, just in case

3 years agoMFC r366139: aw_pwm: fix selection of the prescaler
Andriy Gapon [Mon, 12 Oct 2020 10:57:59 +0000 (10:57 +0000)]
MFC r366139: aw_pwm: fix selection of the prescaler

3 years agoMFC r366137: aw_pwm: trivially add H3 support
Andriy Gapon [Mon, 12 Oct 2020 10:55:03 +0000 (10:55 +0000)]
MFC r366137: aw_pwm: trivially add H3 support

3 years agoMFC r365400: musb/allwinner: apply register filter in awusbdrd_bs_r_2() as well
Andriy Gapon [Mon, 12 Oct 2020 10:53:35 +0000 (10:53 +0000)]
MFC r365400: musb/allwinner: apply register filter in awusbdrd_bs_r_2() as well

3 years agoMFC r365398,r365399: Allwinner USB DRD support (musb_otg)
Andriy Gapon [Mon, 12 Oct 2020 10:51:34 +0000 (10:51 +0000)]
MFC r365398,r365399: Allwinner USB DRD support (musb_otg)

Allwinner USB DRD is based on the Mentor USB OTG controller, with a
different register layout and a few missing registers.

The code is by Andrew Turner (andrew).

3 years agoMFC r366613: ls(1): Use \& as an escape character for the ',' option
Gordon Bergling [Mon, 12 Oct 2020 08:43:21 +0000 (08:43 +0000)]
MFC r366613: ls(1): Use \& as an escape character for the ',' option

Reported by: karels@, xtouqh at hotmail dot com

3 years agoMFC r366206: Add DSCP support for network QoS to iscsi target.
Richard Scheffenegger [Sun, 11 Oct 2020 13:39:04 +0000 (13:39 +0000)]
MFC r366206: Add DSCP support for network QoS to iscsi target.

In order to prioritize iSCSI traffic across a network,
DSCP can be used. In order not to rely on "ipfw setdscp"
or in-network reclassification, this adds the dscp value
directly to the portal group (where TCP sessions are accepted).

Reviewed by: mav, trasz
MFC after: 2 weeks
Sponsored by: NetApp, Inc.
Differential Revision: https://reviews.freebsd.org/D26385

3 years agoMFC r366529: Import tzdata 2020b
Philip Paeps [Sun, 11 Oct 2020 09:04:56 +0000 (09:04 +0000)]
MFC r366529: Import tzdata 2020b

3 years agoMFC r366417:
Konstantin Belousov [Sat, 10 Oct 2020 13:46:48 +0000 (13:46 +0000)]
MFC r366417:
amd64: Store full 64bit of FIP/FDP for 64bit processes when using XSAVE.

PR: 250043

3 years agoMFC r366514:
Konstantin Belousov [Sat, 10 Oct 2020 13:33:57 +0000 (13:33 +0000)]
MFC r366514:
Fix typo.

3 years agoMFC r366407, r366403
Gordon Bergling [Sat, 10 Oct 2020 09:52:41 +0000 (09:52 +0000)]
MFC r366407, r366403

ls(1): Bugfix for an issue reported by mandoc
dhclient(8): Bugfixes for some issues reported by mandoc

- no blank before trailing delimiter
- new sentence, new line

3 years agoMFC r366408, r366410, r366405
Gordon Bergling [Sat, 10 Oct 2020 09:50:09 +0000 (09:50 +0000)]
MFC r366408, r366410, r366405

fsdb(8): Fix an issue reported by mandoc
mdmfs(8): Fix an issue reported by mandoc
devd.conf(5): Bugfix for an issue reported by mandoc

- whitespace at end of input line

3 years agoMFC r366411: gvinum(8): Fix an issue reported by mandoc
Gordon Bergling [Sat, 10 Oct 2020 09:44:56 +0000 (09:44 +0000)]
MFC r366411: gvinum(8): Fix an issue reported by mandoc

- new sentence, new line

3 years agoMFC 366404: cp(1): Bugfixes for some issues reported by mandoc
Gordon Bergling [Sat, 10 Oct 2020 09:43:35 +0000 (09:43 +0000)]
MFC 366404: cp(1): Bugfixes for some issues reported by mandoc

- no blank before trailing delimiter

3 years agoMFC r366409: veriexec(8): Bugfix for an issue reported by mandoc
Gordon Bergling [Sat, 10 Oct 2020 09:42:24 +0000 (09:42 +0000)]
MFC r366409: veriexec(8): Bugfix for an issue reported by mandoc

- consider using OS macro: Nx

3 years agoMFC r366406: camcontrol(8): Bugfixes for some issues reported by mandoc
Gordon Bergling [Sat, 10 Oct 2020 09:41:20 +0000 (09:41 +0000)]
MFC r366406: camcontrol(8): Bugfixes for some issues reported by mandoc

- new sentence, new line

3 years agoMFC r366414: cpuset(1): Fix some issues reported by mandoc
Gordon Bergling [Sat, 10 Oct 2020 09:40:03 +0000 (09:40 +0000)]
MFC r366414: cpuset(1): Fix some issues reported by mandoc

- whitespace at end of input line
- new sentence, new line

3 years agoMFC r364787:
Allan Jude [Fri, 9 Oct 2020 23:02:09 +0000 (23:02 +0000)]
MFC r364787:

ZFS: whitelist zstd and encryption in the loader

Please note that neither zstd nor encryption is
supported by the loader at this instant. This
change makes it safe to use those features in
one's root pool, but not in one's root dataset.

3 years agoClean up the mess I made with r366590 and r366591
Allan Jude [Fri, 9 Oct 2020 22:59:27 +0000 (22:59 +0000)]
Clean up the mess I made with r366590 and r366591

3 years agoRevert r366590 that contains garbage
Allan Jude [Fri, 9 Oct 2020 22:50:16 +0000 (22:50 +0000)]
Revert r366590 that contains garbage

3 years agoMFC r364787:
Allan Jude [Fri, 9 Oct 2020 22:42:04 +0000 (22:42 +0000)]
MFC r364787:

ZFS: whitelist zstd and encryption in the loader

Please note that neither zstd nor encryption is
supported by the loader at this instant. This
change makes it safe to use those features in
one's root pool, but not in one's root dataset.

3 years agoMFC: r366216 imp
Warner Losh [Fri, 9 Oct 2020 21:01:53 +0000 (21:01 +0000)]
MFC: r366216 imp

Fix video on PCI heuristic

The video on PCI heuristic was broken. It was supposed to infer a
video device when the last element of the path was a PCI DEVICE PATH
node. However, the last node in the device path is an END node, so
this heuristic never fired.

This leads, among other things, to bhyve only producing output in the
serial connection once we leave the boot loader. This restores the
dual headed boot on bhyve + UEFI (as we did in 11.2), but will favor
serial in the absence of other config which may be a change from 11.2.

MFC After: 3 days
Differential Revision: https://reviews.freebsd.org/D26572

3 years agoMFC r365847: makefs: connect cd9660 El Torito EFI boot image system type
Ed Maste [Fri, 9 Oct 2020 18:30:49 +0000 (18:30 +0000)]
MFC r365847: makefs: connect cd9660 El Torito EFI boot image system type

Sponsored by: The FreeBSD Foundation

3 years agoMFC r366150: TCP: send full initial window when timestamps are in use
Richard Scheffenegger [Fri, 9 Oct 2020 09:37:43 +0000 (09:37 +0000)]
MFC r366150: TCP: send full initial window when timestamps are in use

The fastpath in tcp_output tries to send out
full segments, and avoid sending partial segments by
comparing against the static t_maxseg variable.
That value does not consider tcp options like timestamps,
while the initial window calculation is using
the correct dynamic tcp_maxseg() function.

Due to this interaction, the last, full size segment
is considered too short and not sent out immediately.

Reported by: tuexen
MFC after: 2 weeks
Sponsored by: NetApp, Inc.
Differential Revision: https://reviews.freebsd.org/D26478

3 years agoMFC r366149: TCP newreno: improve after_idle ssthresh
Richard Scheffenegger [Fri, 9 Oct 2020 09:33:45 +0000 (09:33 +0000)]
MFC r366149: TCP newreno: improve after_idle ssthresh

Adjust ssthresh in after_idle to the maximum of
the prior ssthresh, or 3/4 of the prior cwnd. See
RFC2861 section 2 for an in depth explanation for
the rationale around this.

As newreno is the default "fall-through" reaction,
most tcp variants will benefit from this.

Reviewed by: tuexen
MFC after: 2 weeks
Sponsored by: NetApp, Inc.
Differential Revision: https://reviews.freebsd.org/D22438

3 years agoMFC r366501:
Pedro F. Giffuni [Fri, 9 Oct 2020 05:28:32 +0000 (05:28 +0000)]
MFC r366501:
ext2fs: minor typo.

Obtained from: Dragonfly

3 years agoMFC r366466: crunchgen: fix MK_AUTO_OBJ logic after r364166
Kyle Evans [Thu, 8 Oct 2020 12:56:23 +0000 (12:56 +0000)]
MFC r366466: crunchgen: fix MK_AUTO_OBJ logic after r364166

r364166 converted echo -n `/bin/pwd` to a raw pwd invocation, leaving a
trailing newline at the end of path.  This caused a later stat() of it to
erroneously fail and the fallback to MK_AUTO_OBJ=no logic proceeded as
unexpected.

Harry Schmalzbauer bissected the resulting build failure he experienced
(stable/12 host, -HEAD build) down to r365887. This change is mostly
unrelated, except it switches the build to bootstrapped crunchgen - clue!

I then bissected recent crunchgen changes going back a bit since we wouldn't
observe the failure immediately with -CURRENT in most configurations, which
landed me on r364166. After many intense head-scratching minutes and printf
debugging, I realized that the newline was the difference. This is where our
tale ends.

3 years agoMFC r366287:
Cy Schubert [Thu, 8 Oct 2020 04:00:31 +0000 (04:00 +0000)]
MFC r366287:

Continued ipfilter #ifdef cleanup. The r343701 log entry contains a
complete description.

3 years agoMFC r366300:
Konstantin Belousov [Wed, 7 Oct 2020 10:43:29 +0000 (10:43 +0000)]
MFC r366300:
pciconf: print PCIe CTL max read request.

3 years agoMFC r366394
Vincenzo Maffione [Tue, 6 Oct 2020 19:15:11 +0000 (19:15 +0000)]
MFC r366394

netmap: tools: extend CFLAGS after including bsd.prog.mk

MFC after:      1 week

3 years agoMFC r366393
Vincenzo Maffione [Tue, 6 Oct 2020 19:14:03 +0000 (19:14 +0000)]
MFC r366393

netmap: tools: fix several compiler warnings

MFC after:      1 week

3 years agoMFC r366389
Vincenzo Maffione [Tue, 6 Oct 2020 19:12:43 +0000 (19:12 +0000)]
MFC r366389

netmap: minor documentation fix

Also update date of pkt-gen.8 (not done in r366387).

Submitted by:   milosz.kaniewski@gmail.com

3 years agoMFC r366388
Vincenzo Maffione [Tue, 6 Oct 2020 19:11:55 +0000 (19:11 +0000)]
MFC r366388

netmap: fix constness warnings generated by "-Wcast-qual"

Submitted by:   milosz.kaniewski@gmail.com

3 years agoMFC r366387
Vincenzo Maffione [Tue, 6 Oct 2020 19:10:32 +0000 (19:10 +0000)]
MFC r366387

netmap: pkt-gen: minor corrections to documentation

Submitted by:   Brian Poole <brian90013@gmail.com>

3 years agoMFC r365759-r365765, r365788:
Mark Johnston [Tue, 6 Oct 2020 14:03:59 +0000 (14:03 +0000)]
MFC r365759-r365765, r365788:
Simplify unix domain socket locking.

3 years agoMFC r366415:
Konstantin Belousov [Tue, 6 Oct 2020 09:28:24 +0000 (09:28 +0000)]
MFC r366415:
Move ctx_switch_xsave declaration to amd64 md_var.h.

3 years agoMFC r366354:
Navdeep Parhar [Mon, 5 Oct 2020 19:45:11 +0000 (19:45 +0000)]
MFC r366354:

cxgbe(4): validate largest_rx_cluster and safest_rx_cluster.

These tunables can only be set to a valid cluster size (2K, 4K, 9K, or
16K) as documented in the man page.  Anything else could lead to a
panic on interface up.

Reported by: mav@
Sponsored by: Chelsio Communications

3 years agoMFC r366247:
Navdeep Parhar [Mon, 5 Oct 2020 19:22:28 +0000 (19:22 +0000)]
MFC r366247:

cxgbe(4): Avoid unnecessary work in the firmware during netmap tx.

Bind the netmap tx queues to a special '0xff' scheduling class which
makes the firmware skip some processing related to rate limiting on the
outgoing traffic.  Future firmwares will do this automatically.

Sponsored by: Chelsio Communications

3 years agoMFC r366246:
Navdeep Parhar [Mon, 5 Oct 2020 18:59:10 +0000 (18:59 +0000)]
MFC r366246:

Remove duplicate line.

3 years agoMFC r366245:
Navdeep Parhar [Mon, 5 Oct 2020 18:49:55 +0000 (18:49 +0000)]
MFC r366245:

cxgbe(4): adjust the doorbell threshold for netmap freelists to match the
maximum burst size used when fetching descriptors from the list.

Sponsored by: Chelsio Communications

3 years agoMFC r366244:
Navdeep Parhar [Mon, 5 Oct 2020 18:47:12 +0000 (18:47 +0000)]
MFC r366244:

cxgbe(4): display an error message when netmap cannot be enabled because
the interface is down.

Sponsored by: Chelsio Communications

3 years agoMFC r366242:
Navdeep Parhar [Mon, 5 Oct 2020 18:45:32 +0000 (18:45 +0000)]
MFC r366242:

cxgbe(4): fixes for netmap operation with only some queues active.

- Only active netmap receive queues should be in the RSS lookup table.

- The RSS table should be restored for NIC operation when the last
  active netmap queue is switched off, not the first one.

- Support repeated netmap ON/OFF on a subset of the queues.  This works
  whether the the queues being enabled and disabled are the only ones
  active or not.  Some kring indexes have to be reset in the driver for
  the second case.

Sponsored by: Chelsio Communications

3 years agoMerge commit 0fac1c191 from llvm git (by Craig Topper):
Dimitry Andric [Mon, 5 Oct 2020 18:08:52 +0000 (18:08 +0000)]
Merge commit 0fac1c191 from llvm git (by Craig Topper):

  [X86] Allow Yz inline assembly constraint to choose ymm0 or zmm0 when
  avx/avx512 are enabled and type is 256 or 512 bits

  gcc supports selecting ymm0/zmm0 for the Yz constraint when used with
  256 or 512 bit vector types.

  Fixes PR45806

  Differential Revision: https://reviews.llvm.org/D79448

This should fix 'fatal error: error in backend: Cannot select' errors if
assertions are disabled, or 'Assertion failed: (isVector() && "Invalid
vector type!"), function getVectorNumElements, file
/usr/src/contrib/llvm-project/llvm/include/llvm/CodeGen/ValueTypes.h,
line 276.', when building the audio/lsp-plugins-lv2 port.

Direct commit to stable/{11,12} since head has clang 11.0.0, which
already includes this fix.

Reported by: yuri
PR: 232911

3 years agoMFC r365993:
Navdeep Parhar [Mon, 5 Oct 2020 09:03:17 +0000 (09:03 +0000)]
MFC r365993:

cxgbe(4): let the PF driver use VM work requests for transmit.

This allows the PF interfaces to communicate with the VF interfaces over
the internal switch in the ASIC.  Fix the GL limits for VM work requests
while here.

Sponsored by: Chelsio Communications

3 years agoMFC r365871. This needs a couple other revisions which aren't in
Navdeep Parhar [Mon, 5 Oct 2020 08:51:03 +0000 (08:51 +0000)]
MFC r365871.  This needs a couple other revisions which aren't in
stable/12 yet to actually work but is being committed out of order to
ease other cxgbe MFCs.

r365871:
cxgbe(4): add support for stateless offloads for VXLAN traffic.

Hardware assistance includes checksumming (tx and rx), TSO, and RSS on
the inner traffic in a VXLAN tunnel.

Sponsored by: Chelsio Communications

3 years agoMFC r365868:
Navdeep Parhar [Mon, 5 Oct 2020 07:26:06 +0000 (07:26 +0000)]
MFC r365868:

Add two new ifnet capabilities for hw checksumming and TSO for VXLAN traffic.

These are similar to the existing VLAN capabilities.

Reviewed by: kib@
Sponsored by: Chelsio Communications

3 years agoMFC r365867:
Navdeep Parhar [Mon, 5 Oct 2020 06:38:56 +0000 (06:38 +0000)]
MFC r365867:

mbuf checksum flags and fields to support tunneling protocols.

These are being added to support VXLAN but will work for GENEVE as well.
ENCAP_RSVD1 will likely become ENCAP_GENEVE in the future.

The size of struct mbuf does not change and that means this change can be MFC'd.
If size wasn't a constraint a cleaner way may have been to add inner_csum_flags
and inner_csum_data to go with csum_flags and csum_data.

Reviewed by: kib@
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D25873

3 years agoMFC r366384:
Navdeep Parhar [Mon, 5 Oct 2020 05:36:01 +0000 (05:36 +0000)]
MFC r366384:

cxgbe(4): set up the firmware flowc for the tid before send_abort_rpl.

3 years agoMFC r366364:
Mateusz Piotrowski [Mon, 5 Oct 2020 01:26:34 +0000 (01:26 +0000)]
MFC r366364:

Correct the documented size of kern.msgbufsize

The correct value is 96KB after r226090.

PR: 249971
Submitted by: johannes@jo-t.de

3 years agoMFC r362421: raspberry pi 4: cpufreq support
Kyle Evans [Sun, 4 Oct 2020 19:59:12 +0000 (19:59 +0000)]
MFC r362421: raspberry pi 4: cpufreq support

The submitter notes that the bcm2835_cpufreq driver really just needs the
rpi4 compat string added to it; powerd subsequently works and the dev.cpu.0
sysctl values look sane and can be successfully manipulated.

3 years agoMFC r366347:
Mark Johnston [Sun, 4 Oct 2020 16:27:49 +0000 (16:27 +0000)]
MFC r366347:
Remove svn:executable from a couple of vmm(4) source files.

3 years agoMFC: r366229
Warner Losh [Sun, 4 Oct 2020 06:14:51 +0000 (06:14 +0000)]
MFC: r366229

For mulitcons boot, report it and which console is primary

Until we can do proper /etc/rc output on both consoles in multicons
boot (or all of them if we ever generalize), report when we are
booting multicons. Also report the primary console. This will be a big
hint why output stops after this line (though some slow USB discovery
still happens after mountroot / init starts).

Reviewed by: scottl@, tsoome@
Differential Revision: https://reviews.freebsd.org/D26574

3 years agoMFC: r366228
Warner Losh [Sun, 4 Oct 2020 06:12:52 +0000 (06:12 +0000)]
MFC: r366228

Report the kernel console on the boot screen
Report what console the boot loader is telling the kernel to use:
            o Dual (Serial Primary)
            o Dual (Video Primary)
            o Serial
            o Video
and allow toggling between them.

3 years agoMFC r366203:
Cy Schubert [Sun, 4 Oct 2020 03:33:05 +0000 (03:33 +0000)]
MFC r366203:

Remove Linux and IRIX specific files.

3 years agoMFC r366202:
Cy Schubert [Sun, 4 Oct 2020 03:31:35 +0000 (03:31 +0000)]
MFC r366202:

Continuing the effort started in r343701, #ifdef cleanup, remove
never to be used again checks.