]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
3 years agoMFC r366573: Add DSCP support for network QoS to iscsi initiator.
Richard Scheffenegger [Sat, 24 Oct 2020 20:52:05 +0000 (20:52 +0000)]
MFC r366573: Add DSCP support for network QoS to iscsi initiator.

Allow the DSCP codepoint also to be configurable
for the traffic in the direction from the initiator
to the target, such that writes and any requests
are also treated in the appropriate QoS class.

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

3 years agoMFC r366570: Stop sending tiny new data segments during SACK recovery
Richard Scheffenegger [Sat, 24 Oct 2020 20:48:35 +0000 (20:48 +0000)]
MFC r366570: Stop sending tiny new data segments during SACK recovery

Consider the currently in-use TCP options when
calculating the amount of new data to be injected during
SACK loss recovery. That addresses the effect that very small
(new) segments could be injected on partial ACKs while
still performing a SACK loss recovery.

Reported by: Liang Tian
Reviewed by: tuexen, chengc_netapp.com
MFC after: 2 weeks
Sponsored by: NetApp, Inc.
Differential Revision: https://reviews.freebsd.org/D26446

3 years agoMFC r366569: Add IP(V6)_VLAN_PCP to set 802.1 priority per-flow.
Richard Scheffenegger [Sat, 24 Oct 2020 20:23:20 +0000 (20:23 +0000)]
MFC r366569: Add IP(V6)_VLAN_PCP to set 802.1 priority per-flow.

This adds a new IP_PROTO / IPV6_PROTO setsockopt (getsockopt)
option IP(V6)_VLAN_PCP, which can be set to -1 (interface
default), or explicitly to any priority between 0 and 7.

Note that for untagged traffic, explicitly adding a
priority will insert a special 801.1Q vlan header with
vlan ID = 0 to carry the priority setting

Reviewed by: gallatin, rrs
MFC after: 2 weeks
Sponsored by: NetApp, Inc.
Differential Revision: https://reviews.freebsd.org/D26409

3 years agoMFC r366566;r366567: Extend netstat to display TCP stack and detailed congestion...
Richard Scheffenegger [Sat, 24 Oct 2020 17:47:43 +0000 (17:47 +0000)]
MFC r366566;r366567: Extend netstat to display TCP stack and detailed congestion state

Upstreaming the "-c" option used to show detailed per-connection
congestion control state for TCP sessions.

This is one summary patch, which adds the relevant variables into
xtcpcb. As previous "spare" space is used, these changes are ABI
compatible (an older version of netstat will simply not show
the newly available data from newer kernels, and a newer version
of netstat will only show zeroed data querying older kernels.

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

3 years agoMFC r366375:
Mark Johnston [Fri, 23 Oct 2020 14:47:32 +0000 (14:47 +0000)]
MFC r366375:
newlocale(3): Fix a memory leak.

PR: 249416

3 years agoMFC r366771:
Ryan Moeller [Fri, 23 Oct 2020 10:48:14 +0000 (10:48 +0000)]
MFC r366771:

bhyve: Update TX descriptor base address and host mapping on change

bhyve sometimes segfaults when using an e1000 NIC with a Windows guest.

We are only updating our tdba and cached host mapping when the low address
register is written and when tx is set enabled, but not when the high address
or length registers are written. It is observed that Windows 10 is occasionally
enabling tx first then writing the registers in the order low, high, len. This
leaves us with a bogus base address and mapping, which causes a segfault later
when we try to copy from a descriptor that has unpredictable garbage in a
pointer.

Updating the address and mapping when any of those registers change seems to fix
that particular issue.

Reviewed by: mav, grehan (bhyve)
Sponsored by: iXsystems, Inc.
Differential Revision: https://reviews.freebsd.org/D26798

3 years agoMFC r366768:
Konstantin Belousov [Fri, 23 Oct 2020 10:24:37 +0000 (10:24 +0000)]
MFC r366768:
amd64 pmap.h: explicitly provide constants values instead of relying
on some more advanced C features.

3 years agoMFC r366921: Import tzdata 2020d
Philip Paeps [Fri, 23 Oct 2020 01:06:33 +0000 (01:06 +0000)]
MFC r366921: Import tzdata 2020d

3 years agoMFC r362574
Marcin Wojtas [Thu, 22 Oct 2020 17:31:41 +0000 (17:31 +0000)]
MFC r362574

Fix AccessWidth and BitWidth parsing in SPCR table

The ACPI Specification defines a Generic Address Structure (GAS),
which is used to describe UART controller register layout in the
SPCR table. The driver responsible for parsing it (uart_cpu_acpi)
wrongly associates the Access Size field to the uart_bas's regshft
and the register BitWidth to the regiowidth - according to
the definitions it should be opposite.

This problem remained hidden most likely because the majority of platforms
use 32-bit registers (BitWidth) which are accessed with the according
size (Dword). However on Marvell Armada 8k / Cn913x platforms,
the 32-bit registers should be accessed with Byte granulity, which
unveiled the issue.

This patch fixes above by proper values assignment and slightly improved
parsing.

Note that handling of the AccessWidth set to EFI_ACPI_6_0_UNDEFINED is
needed to work around a buggy SPCR table on EC2 x86 "bare metal" instances.

Reviewed by: manu, imp, cperciva, greg_unrelenting.technology
Obtained from: Semihalf

3 years agoMFC r366731:
Brooks Davis [Thu, 22 Oct 2020 16:27:24 +0000 (16:27 +0000)]
MFC r366731:

physio: Don't store user addresses in bio_data

Only assign the address from the iovec to bio_data if it is a kernel
address.  This was the single place where bio_data stored (however
briefly) a userspace pointer.

Reviewed by: imp, markj
Obtained from: CheriBSD
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D26783

3 years agoMFC r339748, r340343, r340347, r341256, r366015-r366023, r366549:
Konstantin Belousov [Thu, 22 Oct 2020 15:23:41 +0000 (15:23 +0000)]
MFC r339748, r340343, r340347, r341256, r366015-r366023, r366549:
O_BENEATH and related features.

Sponsored by: The FreeBSD Foundation
Tested by: pho

3 years agoMFC r366671:
Brooks Davis [Wed, 21 Oct 2020 16:04:57 +0000 (16:04 +0000)]
MFC r366671:

libgssapi: modernize static string array use

Use designated initializers to document positions in the arrays rather
than requiring counting. Use nitems() rather than rolling it by hand to
count elements.

Also, passify a Clang 12 warning about suspcious string concatenation
within an array initializer by adding parentheses.

Reviewed by: emaste
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D26592

3 years agoMFC r366713, r366843 (by jhb):
Konstantin Belousov [Wed, 21 Oct 2020 15:06:44 +0000 (15:06 +0000)]
MFC r366713, r366843 (by jhb):
Fix for mis-interpretation of PCB_KERNFPU.

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