]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
4 years agoMFC r340746, r340750 (oshogbo): strings: fix style nits
Ed Maste [Sun, 8 Mar 2020 20:09:19 +0000 (20:09 +0000)]
MFC r340746, r340750 (oshogbo): strings: fix style nits

4 years agoMFC r348347 (jhibbits): libdwarf: add missing powerpc64 relocation support
Ed Maste [Sun, 8 Mar 2020 20:05:34 +0000 (20:05 +0000)]
MFC r348347 (jhibbits): libdwarf: add missing powerpc64 relocation support

Due to missing relocation support in libdwarf for powerpc64, handling of
dwarf info on unlinked objects was bogus.

Examining raw dwarf data on objects compiled on ppc64 with a modern compiler
(in-tree gcc tends to hide the issue, since it only rarely generates
relocations in .debug_info and uses DW_FORM_str instead of DW_FORM_strp for
everything), you will find that the dwarf data appears corrupt, with
repeated references to the compiler version where things like types and
function names should appear.

This happens because the 0 offset of .debug_str contains the compiler
version, and without applying the relocations, *all* indirect strings in
.dwarf_info will end up pointing to it.

This corruption then propogates to the CTF data, as ctfconvert relies on
libdwarf to read the dwarf info, for every compiled object (when building a
kernel.)

However, if you examine the dwarf data on a compiled executable, it will
appear correct, because during final link the relocations get applied and
baked in by the linker.

Submitted by: Brandon Bergren

4 years agoMFC r354842 (jhibbits): readelf: add PowerPC VMX and VSX note decode
Ed Maste [Sun, 8 Mar 2020 20:03:17 +0000 (20:03 +0000)]
MFC r354842 (jhibbits): readelf: add PowerPC VMX and VSX note decode

4 years agoMFC r341653: hier.7: add /lib/casper directory
Ed Maste [Sun, 8 Mar 2020 19:57:01 +0000 (19:57 +0000)]
MFC r341653: hier.7: add /lib/casper directory

Reported by: imp
Sponsored by: The FreeBSD Foundation

4 years agoMFC r345579 by des: Add workaround for a QoS-related bug in VMWare Workstation
Ed Maste [Sun, 8 Mar 2020 19:49:17 +0000 (19:49 +0000)]
MFC r345579 by des: Add workaround for a QoS-related bug in VMWare Workstation

Submitted by: yuripv

4 years agoMFC r351040: compiler-rt: enable __bswapsi2/__bswapdi2 for RISC-V
Ed Maste [Sun, 8 Mar 2020 18:23:41 +0000 (18:23 +0000)]
MFC r351040: compiler-rt: enable __bswapsi2/__bswapdi2 for RISC-V

As with other archs the compiler may emit calls to the byte swap routines
under certain conditions.

Sponsored by: The FreeBSD Foundation

4 years agoMFC r349602: if_muge: set IFCAP_VLAN_MTU to maintain 1500 MTU with vlan use
Ed Maste [Sun, 8 Mar 2020 18:22:36 +0000 (18:22 +0000)]
MFC r349602: if_muge: set IFCAP_VLAN_MTU to maintain 1500 MTU with vlan use

PR: 238665
Submitted by: Ralf <iz-rpi03@hs-karlsruhe.de>

4 years agoMFC r349751: Update Linux compat version to 2.6.36
Ed Maste [Sun, 8 Mar 2020 18:21:04 +0000 (18:21 +0000)]
MFC r349751: Update Linux compat version to 2.6.36

New system calls between 2.6.32 and 2.6.26 are already implemented.

This should be mostly NFC as far as contemporary Linux applications are
concerned though, as Linux kernel 3.2 is the oldest supported by a
number of popular distros today; work is in progress by others to enable
support for those applications.

4 years agoMFC r355583: strip trailing whitespace from font and keymap INDEX files
Ed Maste [Sun, 8 Mar 2020 18:15:34 +0000 (18:15 +0000)]
MFC r355583: strip trailing whitespace from font and keymap INDEX files

PR: 235853
Submitted by: scootergrisen gmail com

4 years agoMFC r355585: remove nonexistent from-* entries from vt INDEX.keymaps
Ed Maste [Sun, 8 Mar 2020 18:14:45 +0000 (18:14 +0000)]
MFC r355585: remove nonexistent from-* entries from vt INDEX.keymaps

A number of entries of the form "de.kbd.from-cp850" existed in vt's
INDEX.keymaps, added in r270114, but these files do not exist.

PR: 235564
Submitted by: scootergrisen gmail com

4 years agoMFC r355614: kbdmap: allow INDEX.keymaps to provide the dialog title
Ed Maste [Sun, 8 Mar 2020 18:13:16 +0000 (18:13 +0000)]
MFC r355614: kbdmap: allow INDEX.keymaps to provide the dialog title

Previously kbdmap had a localized menu heading ("Choose your keyboard
layout") but not the dialog title ("Keyboard Menu").

Sponsored by: The FreeBSD Foundation

4 years agoMFC r355943: add LDNS build knob dependency on OPENSSL
Ed Maste [Sun, 8 Mar 2020 18:12:07 +0000 (18:12 +0000)]
MFC r355943: add LDNS build knob dependency on OPENSSL

Sponsored by: The FreeBSD Foundation

4 years agoMFC r357056: add MIPS-specific PT header ELF definitions
Ed Maste [Sun, 8 Mar 2020 18:10:41 +0000 (18:10 +0000)]
MFC r357056: add MIPS-specific PT header ELF definitions

Submitted by: David Carlier

4 years agoMFC r355914: localeconv: correct grouping and mon_grouping per C/POSIX
Ed Maste [Sun, 8 Mar 2020 18:09:41 +0000 (18:09 +0000)]
MFC r355914: localeconv: correct grouping and mon_grouping per C/POSIX

grouping and mon_grouping should be "" in the C locale.

PR: 172215
Sponsored by: The FreeBSD Foundation

4 years agoMFC r357579: libfetch: disallow invalid escape sequences
Ed Maste [Sun, 8 Mar 2020 18:08:45 +0000 (18:08 +0000)]
MFC r357579: libfetch: disallow invalid escape sequences

Per RFC1738 escape is "% hex hex"; other sequences do not form a valid URL.

Suggested by: Matthew Dillon
Reviewed by: Matthew Dillon
Sponsored by: The FreeBSD Foundation

4 years agoregen src.conf.5 after BINUTILS option description MFCs
Ed Maste [Sun, 8 Mar 2020 18:07:33 +0000 (18:07 +0000)]
regen src.conf.5 after BINUTILS option description MFCs

Sponsored by: The FreeBSD Foundation

4 years agoMFC r356759, r356890, r357617: BINUTILS option description updates
Ed Maste [Sun, 8 Mar 2020 18:05:17 +0000 (18:05 +0000)]
MFC r356759, r356890, r357617: BINUTILS option description updates

Sponsored by: The FreeBSD Foundation

4 years agoregen sysent after capability mode change MFCs
Ed Maste [Sun, 8 Mar 2020 17:59:46 +0000 (17:59 +0000)]
regen sysent after capability mode change MFCs

Capability mode changes allowing fdatasync and getloginclass.

Sponsored by: The FreeBSD Foundation

4 years agoMFC r357838: Allow getloginclass in capability mode
Ed Maste [Sun, 8 Mar 2020 17:58:36 +0000 (17:58 +0000)]
MFC r357838: Allow getloginclass in capability mode

As with e.g. getgroups and getlogin it allows querying current process
credential state.

Reported by: sigsys@gmail.com via kevans
Sponsored by: The FreeBSD Foundation

4 years agoMFC r357831: Allow fdatasync in capability mode
Ed Maste [Sun, 8 Mar 2020 17:56:44 +0000 (17:56 +0000)]
MFC r357831: Allow fdatasync in capability mode

fdatasync is essentially a subset of fsync (and may be exactly fsync,
depending on filesystem and development effort) and operates only on
a provided fd.

Sponsored by: The FreeBSD Foundation

4 years agoumtx_op.2: correct typo
Ed Maste [Sun, 8 Mar 2020 16:54:55 +0000 (16:54 +0000)]
umtx_op.2: correct typo

PR: 244611

4 years agoMFC r358614:
Michael Tuexen [Sun, 8 Mar 2020 14:48:21 +0000 (14:48 +0000)]
MFC r358614:

Don't send an uninitialised traffic class in the IPv6 header, when
sending a TCP segment from the TCP SYN cache (like a SYN-ACK).
This fix initialises it to zero. This is correct for the ECN bits,
but is does not honor the DSCP what an application might have set via
the IPPROTO_IPV6 level socket options IPV6_TCLASS. That will be
fixed separately.

Reviewed by: Richard Scheffenegger
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D23900

4 years agoMFC r358595,r358619:
Justin Hibbits [Fri, 6 Mar 2020 16:52:20 +0000 (16:52 +0000)]
MFC r358595,r358619:

Add Atom C3000 (Denverton) SMT PCI ID.

Update ismt(4) man page.

Sponsored by: Juniper Networks, Inc

4 years agoAdjust r358702 by dropping type asserts.
Konstantin Belousov [Fri, 6 Mar 2020 15:57:21 +0000 (15:57 +0000)]
Adjust r358702 by dropping type asserts.

They depend on the C11 Generic feature that is not supported by gcc 4.2.1
used on stable/12 for some arches.

This is a direct commit to the branch.

Reported by: gjb
Sponsored by: The FreeBSD Foundation

4 years agoMFC r358435:
Mark Johnston [Fri, 6 Mar 2020 14:56:47 +0000 (14:56 +0000)]
MFC r358435:
Do not load dtraceall.ko if dtrace.ko is already loaded.

4 years agoMFC r358433:
Mark Johnston [Fri, 6 Mar 2020 14:56:02 +0000 (14:56 +0000)]
MFC r358433:
Clear systrace_args_func when systrace probes are disabled.

4 years agoMFC r357948:
Konstantin Belousov [Fri, 6 Mar 2020 14:43:13 +0000 (14:43 +0000)]
MFC r357948:
Consolidate read code for timecounters and fix possible overflow in
bintime()/binuptime().

4 years agoMFC r355626 (manu):
Glen Barber [Fri, 6 Mar 2020 14:24:10 +0000 (14:24 +0000)]
MFC r355626 (manu):
 arm64: rockchip: Add a module for rk_dwmmc

 This is mostly needed for dev/debug as most users will have their root
 on the sdcard or emmc.

* This should fix the stable/12 aarch64 build after r358648.

Sponsored by: Rubicon Communications, LLC (netgate.com)

4 years agoMFC r358387:
Hans Petter Selasky [Fri, 6 Mar 2020 13:57:00 +0000 (13:57 +0000)]
MFC r358387:
Extend the range of the return value from nsecs_to_jiffies64() to support
Mesa's drm_syncobj usage, in the LinuxKPI.

While at it optimise the jiffies conversion functions to avoid repeated
and constant calculations.

Submitted by: Greg V <greg@unrelenting.technology>
Differential Revision: https://reviews.freebsd.org/D23846
Sponsored by: Mellanox Technologies

4 years agoMFC r358609:
Hans Petter Selasky [Fri, 6 Mar 2020 12:01:58 +0000 (12:01 +0000)]
MFC r358609:
Restart the USB keyboard repeat timer at every valid key-press.

This fixes a regression issue after r357861.

Reported by: James Wright <james.wright@jigsawdezign.com>
PR: 224592
PR: 233884
Sponsored by: Mellanox Technologies

4 years agoMFC r346022:
Warner Losh [Thu, 5 Mar 2020 14:05:22 +0000 (14:05 +0000)]
MFC r346022:

r346022 | imp | 2019-04-07 15:01:02 -0600 (Sun, 07 Apr 2019) | 23 lines

Make RELDATE be on a single line.

All variable assignments that start in column 1 have to be on a single
line for amd to build due to as weird dependency there (most likely it
can be fixed to use the new VARS_ONLY feature, but it isn't
today). usr.sbin/amd/include/Makefile calls
usr.sbin/amd/include/newvers.sh which does:
eval `LC_ALL=C egrep '^[A-Z]+=' $1 | grep -v COPYRIGHT`
which is where that requirement comes from. It handles COPYRIGHT since
that's an exception. Rather than add additional exceptions, cope with
the long line in newvers.sh instead. Note: it no longer needs to
filter COPYRIGHT because the assignment doesn't start in column 1
anymore.

I had done a universe when I had an earlier version of r346018 that
had it as one line. When I changed it to multi-line as suggested in
the review, I only built kernels on a couple of architectures to make
sure it didn't break anything.

Add comment to newvers.sh noting this.

Obviously, this unbreaks the amd build.

4 years agoMFC r358560:
Cy Schubert [Thu, 5 Mar 2020 06:38:03 +0000 (06:38 +0000)]
MFC r358560:

Retire macros:

BSD_GE_YEAR
BSD_GT_YEAR
BSD_LT_YEAR

4 years agoMFC r358559:
Cy Schubert [Thu, 5 Mar 2020 06:36:23 +0000 (06:36 +0000)]
MFC r358559:

Remove the now unused FREEBSD_GE_REV, FREEBSD_GT_REV, and FREEBSD_LT_REV
macros.

4 years agoMFC r358558:
Cy Schubert [Thu, 5 Mar 2020 06:35:05 +0000 (06:35 +0000)]
MFC r358558:

Continuing the effort started in r343701, #ifdef cleanup, checking for
__FreeBSD_version > 3.0 and 5.0 is redundant.

4 years agoMFC:
Warner Losh [Thu, 5 Mar 2020 06:19:21 +0000 (06:19 +0000)]
MFC:

r346018 | imp | 2019-04-07 12:39:55 -0600 (Sun, 07 Apr 2019) | 6 lines

Use default shell assignment rather more complicated if then
construct.

Discussed with: emaste@, allanjude@ (changes (or not) based on their feedback)
Differential Revision: https://reviews.freebsd.org/D19797

4 years agoMFC r358652:
Cy Schubert [Wed, 4 Mar 2020 23:54:13 +0000 (23:54 +0000)]
MFC r358652:

MFV r358616:

Update ntp-4.2.8p13 --> 4.2.8p14.

The advisory can be found at:
http://support.ntp.org/bin/view/Main/SecurityNotice#\
March_2020_ntp_4_2_8p14_NTP_Rele

No CVEs have been documented yet.

Security: http://support.ntp.org/bin/view/Main/NtpBug3610
http://support.ntp.org/bin/view/Main/NtpBug3596
http://support.ntp.org/bin/view/Main/NtpBug3592

4 years agoMFC r348885, r351543, r356806-r356807
Emmanuel Vadot [Wed, 4 Mar 2020 21:53:54 +0000 (21:53 +0000)]
MFC r348885, r351543, r356806-r356807

r348885 by bz:
A bit of code hygiene (no functional changes).

Hide unused code under #ifdef notyet (in one case the only caller is under
that same ifdef), or if it is arm (not arm64) specific code under the
__arm__ ifdef to not yield -Wunused-function warnings during the arm64
kernel compile.

r351543 by mmel:
Add support for RK3288 into existing RockChip drivers.
This patch ensures only minimal level of compatibility necessary to boot
on RK3288 based boards. GPIO and pinctrl interaction, missing in current
implementation, will be improved by own patch in the near future.

MFC with: r351452

r356806:
fdt_pinctrl: Add new methods for gpios

Most of the gpio controller cannot configure or get the configuration
of the pin muxing as it's usually handled in the pinctrl driver.
But they can know what is the pinmuxing driver either because they are
child of it or via the gpio-range property.
Add some new methods to fdt_pinctrl that a pin controller can implement.
Some methods are :
fdt_pinctrl_is_gpio: Use to know if the pin in the gpio mode
fdt_pinctrl_set_flags: Set the flags of the pin (pullup/pulldown etc ...)
fdt_pinctrl_get_flags: Get the flags of the pin (pullup/pulldown etc ...)

The defaults method returns EOPNOTSUPP.

Reviewed by: ian, bcr (manpages)
Differential Revision: https://reviews.freebsd.org/D23093

r356807:
arm64: rockchip: Add new interface for rk_pinctrl

The gpio controller in rockchips SoC in a child of the pinctrl driver
and cannot control pullups and pulldowns.
Use the new fdt_pinctrl interface for accessing pin capabilities and
setting them.
We can now report that every pins is capable of being IN or OUT function
and PULLUP PULLDOWN.
If the pin isn't in gpio mode no changes will be allowed.

Reviewed by: ganbold (previous version)
Differential Revision: https://reviews.freebsd.org/D22849

4 years agoMFC r356808:
Emmanuel Vadot [Wed, 4 Mar 2020 21:30:55 +0000 (21:30 +0000)]
MFC r356808:

arm64: rockchip: Add RK3399 PWM driver

Add a driver for the pwm controller in the RK3399 SoC

Submitted by: bdragon (original version)
Reviewed by: ganbold (previous version)
Differential Revision: https://reviews.freebsd.org/D19046

4 years agoMFC r356485-r356486, r356893, r358278-r358279
Emmanuel Vadot [Wed, 4 Mar 2020 21:25:48 +0000 (21:25 +0000)]
MFC r356485-r356486, r356893, r358278-r358279

r356485:
rk808: Add min/max for the switch regulators

The two switch regulator are always 3.0V.
Add a special case in get_voltage that if min=max we directly
return the value without calculating it.

Reviewed by: mmel
Differential Revision: https://reviews.freebsd.org/D23004

r356486:
rk805: Add regnode_status method

This allow consumers to check if the regulator is enable or not.

Reviewed by: mmel
Differential Revision: https://reviews.freebsd.org/D23005

r356893:
rk805: Add a regnode_init method

This method will set the desired voltaged based on values in the DTS.
It will not enable the regulator, this is the job of either a consumer
or regnode_set_constraint SYSINIT if the regulator is boot_on or always_on.

Reviewed by: mmel
Differential Revision: https://reviews.freebsd.org/D23216

r358278:
arm64: rockchip: rk_i2c: Bump to DELAY to 1000

In polling mode with use DELAY to wait for interrupts. The value was
too low for RK3328.

r358279:
arm64: rockchip: rk808: Only init regulator not enabled

If a regulator is already enabled, do not set its value to the minimum
supported on the board.
This fixes booting on rock64 where we set some regulator to the minimal value
while the IPs needs more based on what the bootloader configured.

4 years agoMFC r356148-r356149, r356277
Emmanuel Vadot [Wed, 4 Mar 2020 21:20:15 +0000 (21:20 +0000)]
MFC r356148-r356149, r356277

r356148:
arm64: rockchip: rk808: Add remaining regulators

The RK808 driver was missing the LDO and switch regulators.
Add support for them.

Reviewed by: mmel
Differential Revision: https://reviews.freebsd.org/D22852

r356149:
arm64: rockchip: Add driver for the io domain

This driver configure the registers in the GRF according to the value
of the regulators for the platform.
Some IP can run with either 3.0V or 1.8V, if we don't configure them
correctly according to the external voltage used they will not work.
It's only done at boot time for now and might be needed at runtime for
IP like sdmmc.

Reviewed by: mmel
Tested On: RockPro64, Firefly-RK3399 (gonzo), AIO-3288 (mmel)
Differential Revision: https://reviews.freebsd.org/D22854

r356277:
arm64: rockchip: Add a module for rk_spi

The spi node doesn't lives under a simple-bus compatible node so we need
OFWBUS_PNP_INFO instead of SIMPLEBUS_PNP_INFO.

4 years agoMFC r355624, r355852-r355853
Emmanuel Vadot [Wed, 4 Mar 2020 21:12:08 +0000 (21:12 +0000)]
MFC r355624, r355852-r355853

r355624:
arm64: rk3328: Add the *clk_peri_niu clocks

Those clocks are always enable by default and are not really explained
in the TRM but the reason we had them is that they have the periph clock
as a parent and those parent should never be disable which can happen
if we disable all the childs. The current childs are the sd/emmc/sdio clocks
so the board will hang if we disable them.

r355852:
arm64: rockchip: rk_pinctrl: Fix clear bits in SYSCON_MODIFY

r351187 change the SYSCON_WRITE to SYSCON_MODIFY but didn't changed the
mask variable that used to hold the bitmask in the upper 16 bits of the
register that control which bits are changed. So we ended up clearing
bit from the upper 16bits half which are always 0 after a read.
Use the correct bit mask for bits that we want to clear.

r355853:
arm64: rockchip: rk_gpio: Fix pin number

The maxpin counter starts at 0, fix one by one error.
This is still not totally correct for some banks in some SoC that have
fewer pins but this will be dealt with in another commit.

4 years agoMFC r355356:
Emmanuel Vadot [Wed, 4 Mar 2020 21:06:29 +0000 (21:06 +0000)]
MFC r355356:

arm64: rockchip: rl3399: Remove the ability to put the PLL in normal mode at boot

RK3399 PLLs have three modes :
 - Normal, where they behave normally and their freq is calculated based on
   the registers values.
 - Slow, where the PLL freq is 24Mhz (well, the external oscillator).
 - Deep Slow, used for suspend where the freq is 32Khz.

We used to put every CPU related PLL in normal mode but it can cause problem
if the firmware didn't setup the clocks register correctly.
And even if it did but left the pll in slow or deep slow mode that might be
because the PMIC suppling voltage for the CPU haven't been configured yet
and we cannot do that at this point.
So remove the ability to set PLLs to normal mode at boot to avoid any problems.

4 years agoMFC r355173, r355190-r355191
Emmanuel Vadot [Wed, 4 Mar 2020 21:04:57 +0000 (21:04 +0000)]
MFC r355173, r355190-r355191

r355173 by mmel:
Add driver for temperature sensors found in RK32898, RK3328 and RK3399 SoC's.

Reviewed by: manu
Differential Revision:  https://reviews.freebsd.org/D22442

r355190:
arm64: rockchip: tsadc: Do not free the sysctl context is it wasn't created

X-MFC-With: r355173

r355191:
arm64: rockchip: rk3328: Add TSADC clocks

Add the clocks so we can use the rk_tsadc driver to monitor
the cpu temperature.

4 years agoMFC r354554-r354558, r355115
Emmanuel Vadot [Wed, 4 Mar 2020 21:01:25 +0000 (21:01 +0000)]
MFC r354554-r354558, r355115

r354554 by mmel:
Implement support for (soft)linked clocks.
This kind of clock nodes represent temporary placeholder for clocks
defined later in boot process. Also, these are necessary to break
circular dependencies occasionally occurring in complex clock graphs.

r354555 by mmel:
Cleanup Rockchip clocks implementation.
- style
- unify dprinf defines
- make dprinf's 32-bit compatible
Not a functional change.

Reviewed by: manu, imp
Differential Revision:  https://reviews.freebsd.org/D22281

r354556 by mmel:
Enhance Rockchip clocks implementation.
- add support for fractional dividers
- allow to declare fixed and linked clock

Reviewed by: manu
Differential Revision:  https://reviews.freebsd.org/D22282

r354557 by mmel:
Tidy up Rockchip composite clock.
- add support for log2 based dividers
- use proper write mask when writing to divider register

Reviewed by: manu
Differential Revision:  https://reviews.freebsd.org/D22283

r354558 by mmel:
Remove explicit declaration of rk_clk_fract_set_freq() function
forgotten in r354556.

MFC with: r354556
Noticed by: manu

r355115 by mmel:
Finish implementation of RK3299 clocks.
- implement of all but mmc clocks. MMC clocks will be added later by own commit.
- use 'link' clock type for external clocks.
- use macros for initialization of structure's named members.

Reviewed by: manu
Differential Revision:  https://reviews.freebsd.org/D22441

4 years agoMFC r354088:
Emmanuel Vadot [Wed, 4 Mar 2020 20:52:59 +0000 (20:52 +0000)]
MFC r354088:

arm64: rockchip: Add rk_dwc3 driver

This is a simplebus like driver that attaches the dwc3 child node and
enable the clocks needed for the module.

4 years agoMFC r354087, r354089, r354094, r354100, r354103, r354152
Emmanuel Vadot [Wed, 4 Mar 2020 20:48:29 +0000 (20:48 +0000)]
MFC r354087, r354089, r354094, r354100, r354103, r354152

r354087:
arm64: rk3399: Add clock and gate for usb3 clocks

r354089:
arm64: rockchip: Add RK3399 TypeC phy driver

This is a driver for the USB3 PHY present in the RK3399.
While the phy support DP (Display Port) the driver doesn't has we have
no driver to test this with for now.
All the lane and pll configuration is just magic values from rockchip.
While the manual have some info on those registers it's really hard to
understand how to calculate those values (if there is a way).

r354094 by peterj:
Fix use of uninitialised variable.

The RK805 regs array was being allocated before it's required size was
known, causing the driver to use memory it didn't own.  That memory
was subsequently allocated and used elsewhere causing later fatal data
aborts in rk805_map().

Whilst I'm here, add a sanity check to catch unsupported PMICs (this
shouldn't ever get hit because the probe should have failed).

Reviewed by: manu
Sponsored by: Google

r354100 by gonzo:
arm64: rk3399: Add clock and gate for SPI clocks

r354103 by gonzo:
arm64: rk3399: add SPI driver and include it in GENERIC config

SPI driver for Rockchip's RK3399 SoC. Implements PIO mode, CS selection,
SPI mode and frequency configuration.

Reviewed by: manu
Differential Revision: https://reviews.freebsd.org/D22148

r354152:
arm64: rockchip: typec_phy: Rename timeout to retry

Declare retry in the function scope.
Rename it to retry as there is a timeout function which was
causing to code to compile.

Reported by: jhibbits
X-MFC-WITH: r354089

4 years agoMFC r349638, r350161, r351186
Emmanuel Vadot [Wed, 4 Mar 2020 20:43:29 +0000 (20:43 +0000)]
MFC r349638, r350161, r351186

r349638 by ganbold:
Subclass Rockchip's General Register Files driver from Simple MFD driver.

r350161 by ganbold:
Add driver for Rockchip RK3399 eMMC PHY.
Tested on NanoPC-T4 board.

Reviewed by: manu
Differential Revision: https://reviews.freebsd.org/D20840

r351186 by mmel:
Improve rk_i2c driver:
- Properly handle IIC_M_NOSTOP and IIC_M_NOSTART flags.
- add polling mode, so driver can be used even if interrupts are not
  enabled (this is necessary for proper support of PMICs).
- add support for RK3288

4 years agoMFC r355360-r355361
Emmanuel Vadot [Wed, 4 Mar 2020 20:30:11 +0000 (20:30 +0000)]
MFC r355360-r355361

r355360:
cpufreq_dt: Do not attach the device if the cpu isn't present

If we boot with hw.ncpu=X (available on arm and arm64 at least) we
shouldn't attach the cpufreq driver as cf_set_method will try to get
the cpuid and it doesn't exists.
This solves cpufreq panicing on RockChip RK3399 when booting with
hw.ncpu=4

r355361:
cpufreq_dt: Do not fetch again hw.ncpu

MD code already set the global variable mp_ncpus according to
the tunable hw.ncpu so use the global variable directly.

Reported by: ian

4 years agoMFC r355187:
Emmanuel Vadot [Wed, 4 Mar 2020 20:22:02 +0000 (20:22 +0000)]
MFC r355187:

Import DTS files from Linux 5.4

4 years agoMFC r357765:
Konstantin Belousov [Wed, 4 Mar 2020 17:21:49 +0000 (17:21 +0000)]
MFC r357765:
if_media.h: Add 50G KR4 ethernet media type.

4 years agoMFC r357764:
Konstantin Belousov [Wed, 4 Mar 2020 17:19:25 +0000 (17:19 +0000)]
MFC r357764:
if_media.c: staticize and constify ifmedia description structures used under IFMEDIA_DEBUG.

4 years agoMFC r357763:
Konstantin Belousov [Wed, 4 Mar 2020 17:17:37 +0000 (17:17 +0000)]
MFC r357763:
if_media.c: use __FBSDID().

Sponsored by: Mellanox Technologies

4 years agoMFC r358378:
Baptiste Daroussin [Wed, 4 Mar 2020 11:30:08 +0000 (11:30 +0000)]
MFC r358378:

Update pci_vendors to 2020.02.22

4 years agoMFC r357648:
Baptiste Daroussin [Wed, 4 Mar 2020 11:28:49 +0000 (11:28 +0000)]
MFC r357648:

diff: implement -y (--side-by-side) along with -W and --suppress-common-lines

PR: 219933
Submitted by: fehmi noyan isi <fnoyanisi@yahoo.com>

4 years agoMFC r358357: MFZoL: Relax restriction on zfs_ioc_next_obj() iteration
Alexander Motin [Wed, 4 Mar 2020 04:44:08 +0000 (04:44 +0000)]
MFC r358357: MFZoL: Relax restriction on zfs_ioc_next_obj() iteration

Per the documentation for dnode_next_offset in dnode.c, the "txg"
parameter specifies a lower bound on which transaction the dnode can
be found in. We are interested in all dnodes that are removed between
the first and last transaction in the snapshot. It doesn't need to be
created in that snapshot to correspond to a removed file.

In fact, the behavior of zfs diff in the test case exactly matches
this: the transaction that created the data that was deleted in snapshot
"2" was produced before, in snapshot "1", definitely predating the first
transaction in snapshot "2".

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tim Chase <Tim Chase <tim@onlight.com>
Closes #2081
zfsonlinux/zfs@7290cd3c4ed19fb3f75b8133db2e36afcdd24beb

4 years agoMFC r358342: MFZoL: Fix resilver writes in vdev_indirect_io_start
Alexander Motin [Wed, 4 Mar 2020 04:42:56 +0000 (04:42 +0000)]
MFC r358342: MFZoL: Fix resilver writes in vdev_indirect_io_start

This patch addresses an issue found in ztest where resilver
write zios that were passed to an indirect vdev would end up
being handled as though they were resilver read zios. This
caused issues where the zio->io_abd would be both read to
and written from at the same time, causing asserts to fail.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed by: Matt Ahrens <matt@delphix.com>
Reviewed-by: Serapheim Dimitropoulos <serapheim@delphix.com>
Signed-off-by: Tom Caputi <tcaputi@datto.com>
Closes #8193
zfsonlinux/zfs@5aa95ba0d3502779695341b5f55fa5ba1d3330ff

4 years agoMFC r358339: MFZoL: Fix issue with scanning dedup blocks as scan ends
Alexander Motin [Wed, 4 Mar 2020 04:41:49 +0000 (04:41 +0000)]
MFC r358339: MFZoL: Fix issue with scanning dedup blocks as scan ends

This patch fixes an issue discovered by ztest where
dsl_scan_ddt_entry() could add I/Os to the dsl scan queues
between when the scan had finished all required work and
when the scan was marked as complete. This caused the scan
to spin indefinitely without ending.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Serapheim Dimitropoulos <serapheim.dimitro@delphix.com>
Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
Signed-off-by: Tom Caputi <tcaputi@datto.com>
Closes #8010
zfsonlinux/zfs@5e0bd0ae056e26de36dee3c199c6fcff8f14ee15

4 years agoMFC r358337: MFZoL: Fix 2 small bugs with cached dsl_scan_phys_t
Alexander Motin [Wed, 4 Mar 2020 04:40:35 +0000 (04:40 +0000)]
MFC r358337: MFZoL: Fix 2 small bugs with cached dsl_scan_phys_t

This patch corrects 2 small bugs where scn->scn_phys_cached was
not properly updated to match the primary copy when it needed to
be. The first resulted in the pause state not being properly
updated and the second resulted in the cached version being
completely zeroed even if the primary was not.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Serapheim Dimitropoulos <serapheim.dimitro@delphix.com>
Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
Signed-off-by: Tom Caputi <tcaputi@datto.com>
Closes #8010
zfsonlinux/zfs@8cb119e3dc0ac6c90b1517fbadc021b7e9741fc6

4 years agoMFC r358340: Fix patch mismerge in r358336.
Alexander Motin [Wed, 4 Mar 2020 04:38:30 +0000 (04:38 +0000)]
MFC r358340: Fix patch mismerge in r358336.

4 years agoMFC r358336: MFZoL: Fix txg_sync_thread hang in scan_exec_io()
Alexander Motin [Wed, 4 Mar 2020 04:36:50 +0000 (04:36 +0000)]
MFC r358336: MFZoL: Fix txg_sync_thread hang in scan_exec_io()

When scn->scn_maxinflight_bytes has not been initialized it's
possible to hang on the condition variable in scan_exec_io().
This issue was uncovered by ztest and is only possible when
deduplication is enabled through the following call path.

  txg_sync_thread()
    spa_sync()
      ddt_sync_table()
        ddt_sync_entry()
          dsl_scan_ddt_entry()
            dsl_scan_scrub_cb()
              dsl_scan_enqueuei()
                scan_exec_io()
                  cv_wait()

Resolve the issue by always initializing scn_maxinflight_bytes
to a reasonable minimum value.  This value will be recalculated
in dsl_scan_sync() to pick up changes to zfs_scan_vdev_limit
and the addition/removal of vdevs.

Reviewed-by: Tom Caputi <tcaputi@datto.com>
Reviewed by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #7098
zfsonlinux/zfs@f90a30ad1b32a971f62a540f8944e42f99b254ce

4 years agoMFC r358407:
Dimitry Andric [Tue, 3 Mar 2020 18:01:03 +0000 (18:01 +0000)]
MFC r358407:

Merge r358406 from the clang1000-import branch:

Fix the following -Werror warning from clang 10.0.0:

sys/arm/arm/identcpu-v6.c:227:5: error: misleading indentation; statement is not part of the previous 'if' [-Werror,-Wmisleading-indentation]
                                if (val & CPUV7_CT_CTYPE_RA)
                                ^
sys/arm/arm/identcpu-v6.c:225:4: note: previous statement is here
                        if (val & CPUV7_CT_CTYPE_WB)
                        ^

This was due to an accidentally inserted tab before the if statement.

4 years agoMFC r358344: mprotect.2: sort errors alphabetically
Ed Maste [Tue, 3 Mar 2020 17:30:13 +0000 (17:30 +0000)]
MFC r358344: mprotect.2: sort errors alphabetically

4 years agoMFC r357844: addr2line: Handle DW_AT_ranges in compile units
Ed Maste [Tue, 3 Mar 2020 16:25:28 +0000 (16:25 +0000)]
MFC r357844: addr2line: Handle DW_AT_ranges in compile units

Based on original submission by Marat Radchenko in ELF Tool Chain
ticket #545, rebased and updated by Tiger Gao.

Also r357862, use stdbool.h header for bool

PR: 217736
Submitted by: Marat Radchenko <marat@slonopotamus.org>
Submitted by: Tiger Gao <tig@freebsdfoundation.org>
Sponsored by: The FreeBSD Foundation

4 years agoMFC r358026:
Mark Johnston [Tue, 3 Mar 2020 15:07:48 +0000 (15:07 +0000)]
MFC r358026:
Remove swblk_t.

4 years agoMFC r358315:
Konstantin Belousov [Tue, 3 Mar 2020 15:02:07 +0000 (15:02 +0000)]
MFC r358315:
Fix IBRS for machines with IBRS_ALL capability.

4 years agoMFC r358073:
Fedor Uporov [Tue, 3 Mar 2020 14:58:53 +0000 (14:58 +0000)]
MFC r358073:

Add a EXT2FS-specific implementation for lseek(SEEK_DATA).

Reviewed by:    pfg
MFC after:      1 week

Differential Revision:    https://reviews.freebsd.org/D23605

4 years agoMFC r358297: Fix IPv6 checksums when exthdrs are present.
Bjoern A. Zeeb [Mon, 2 Mar 2020 22:54:32 +0000 (22:54 +0000)]
MFC r358297: Fix IPv6 checksums when exthdrs are present.

  In two places in ip6_output we are doing (delayed) checksum calculations.
  The initial logic came from SCTP in r205075,205104 and later I copied
  and adjusted it for the TCP|UDP case in r235958.
  The problem was that the original SCTP offsets were already wrong for any
  case with extension headers present given IPv6 extension headers are not
  part of the pseudo checksum calculations.
  The later changes do not help in case there is checksum offloading as for
  extension headers (incl. fragments) we do currrently never offload as we
  have no infrastructure to know whether the NIC can handle these cases.

  Correct the offsets for delayed checksum calculations and properly handle
  mbuf flags.  In addition harmonize the almost identical duplicate code.

  While here eliminate the now unneeded variable hlen and add an always
  missing mtod() call in the 1-b and 3 cases after the introduction of
  the mb_unmapped_to_ext() calls. [Keep code in sync with head]

Reported by: Francis Dupont (fdupont isc.org)
PR: 243675

4 years agoMFC r358431:
Justin Hibbits [Mon, 2 Mar 2020 16:56:32 +0000 (16:56 +0000)]
MFC r358431:

Add Denverton UART PCI ID

Sponsored by: Juniper Networks, Inc

4 years agoMFC r358427: initialize oifp to avoid bogus results/panics in edge cases
Bjoern A. Zeeb [Mon, 2 Mar 2020 13:23:28 +0000 (13:23 +0000)]
MFC r358427:  initialize oifp to avoid bogus results/panics in edge cases

  In certain cases (probably not during normal operation but observed in
  the lab during development) ip6_ouput() could return without error
  and ifpp (&oifp) not updated.
  Given oifp was never initialized we would take the later branch
  as oifp was not NULL, and when calling icmp6_ifstat_inc() we would
  panic dereferencing a garbage pointer.
  For code stability initialize oifp to NULL before first use to always
  have a deterministic value and not rely on a called function to behave
  and always and for ever do the work for us as we hope for.

  Sponsored by: Netflix

4 years agoMFC r358167,358311: ip6_output: improve extension header handling
Bjoern A. Zeeb [Mon, 2 Mar 2020 13:16:18 +0000 (13:16 +0000)]
MFC r358167,358311: ip6_output: improve extension header handling

  Move IPv6 source address checks from after extension header heandling
  to the top of the function. If we do not pass these checks there is
  no reason to do a lot of work upfront.

  Fold extension header preparations and length calculations together into
  a single branch and macro rather than doing them sequentially.
  Likewise move extension header concatination into a single branch block
  only doing it if we recorded any extension header length length.

  Sponsored by: Netflix (partially, originally)

4 years agoMFC r358071: ip6_output: update comments.
Bjoern A. Zeeb [Mon, 2 Mar 2020 13:12:45 +0000 (13:12 +0000)]
MFC r358071: ip6_output: update comments.

  Clear up some comments and improve to panic messages.

  No functional changes.

4 years agoMFC r358219 and r358270:
Hans Petter Selasky [Mon, 2 Mar 2020 09:09:16 +0000 (09:09 +0000)]
MFC r358219 and r358270:
Make sure the ACPI lid state is updated during boot and after resume.
While at it update the sysctl(9) description for the lid state.

Always check return value from acpi_GetInteger().
If a failure happens reading the lid state, assume the lid is opened.

Differential Revision: https://reviews.freebsd.org/D23724
PR: 240881
Submitted by: Yuri Pankov <yuripv@yuripv.me>
Sponsored by: Mellanox Technologies

4 years agoMFC r357929:
Dimitry Andric [Mon, 2 Mar 2020 07:13:00 +0000 (07:13 +0000)]
MFC r357929:

Remove /usr/include/ssp from BSD.include.dist after r356356

This avoids having to delete it every time with "make delete-old".

PR: 242950

4 years agoMFC r358132:
Dimitry Andric [Mon, 2 Mar 2020 07:11:37 +0000 (07:11 +0000)]
MFC r358132:

Take LINKER_FREEBSD_VERSION from numerical field after dash

Summary:
With COMPILER_FREEBSD_VERSION, we use a numeric value that we bump each
time we make a change that requires re-bootstrapping, but with the
linker variant, we instead take the entire part after "FreeBSD", as in
this example version output:

LLD 9.0.1 (FreeBSD c1a0a213378a458fbea1a5c77b315c7dce08fd05-1300006) (compatible with GNU linkers)

E.g., LINKER_FREEBSD_VERSION is currently being set to
"c1a0a213378a458fbea1a5c77b315c7dce08fd05-1300006".  This means that
*any* new upstream lld version will cause re-bootstrapping.

We should only look at the numerical field we append after a dash
instead.  This review attempts to make it so.

The only thing I am not happy about is the post-processing of awk output
in Makefile.inc1.  I notice that our awk does not have gensub(), so it
can't substitute a numbered sub-regex with \1, \2, etc.  Suggestions
welcome. :)

Differential Revision: https://reviews.freebsd.org/D23691

4 years agoMFC r358419:
Philip Paeps [Mon, 2 Mar 2020 02:45:52 +0000 (02:45 +0000)]
MFC r358419:

  bsdinstall: remove the Italian mirror

  ftp.it.FreeBSD.org has been down for several years.

PR: 244481
Reported by: xgeoplasma6@gmail.com

4 years agoMFC r358418:
Philip Paeps [Mon, 2 Mar 2020 02:44:21 +0000 (02:44 +0000)]
MFC r358418:

  bsdconfig: remove the Italian mirror

  ftp.it.FreeBSD.org has been down for several years.

PR: 244481
Reported by: xgeoplasma6@gmail.com

4 years agoAdd a quirk for the WDC Green series of SSDs to disable NCQ TRIM, as this
Scott Long [Sun, 1 Mar 2020 18:02:00 +0000 (18:02 +0000)]
Add a quirk for the WDC Green series of SSDs to disable NCQ TRIM, as this
avoids silent data corruption.

PR:             225666
Submitted by:   anders lundgren

4 years agoMFC r358099:
Sergio Carlavilla Delgado [Sat, 29 Feb 2020 22:51:27 +0000 (22:51 +0000)]
MFC r358099:
Add some HISTORY sections to manpages

   environ(7) was in AT&T Version 7
   ac(8): Add a HISTORY section
   sa(8): Add a HISTORY section
   sqrt(3): Add the actual sqrt function to the HISTORY section

   Obtained from: OpenBSD

Submitted by: gbergling@gmail.com
Approved by: bcr@(mentor)
Differential Revision: https://reviews.freebsd.org/D23693

4 years agoMFC r358252:
Konstantin Belousov [Sat, 29 Feb 2020 22:10:00 +0000 (22:10 +0000)]
MFC r358252:
Fix NFS client deadlock when read reports truncated node.

4 years agoMFC r358251:
Konstantin Belousov [Sat, 29 Feb 2020 21:55:48 +0000 (21:55 +0000)]
MFC r358251:
Add td_pflags2, yet another thread-private flags word.

4 years agoMFC r357985:
Konstantin Belousov [Sat, 29 Feb 2020 21:42:34 +0000 (21:42 +0000)]
MFC r357985:
Add pthread_peekjoin_np(3).

4 years agoMFC r358249:
Mark Johnston [Sat, 29 Feb 2020 15:39:54 +0000 (15:39 +0000)]
MFC r358249:
Constify uma_zcache_create() and uma_zsecond_create()'s "name" argument.

4 years agoMFC r358310:
Hans Petter Selasky [Fri, 28 Feb 2020 22:00:01 +0000 (22:00 +0000)]
MFC r358310:
Use hid_get_data_unsigned() instead of hid_get_data() when reading the
key-codes from the USB keyboard. Negative key-codes are currently skipped.

While at it use the bit size value provided by the HID location structure
instead of assuming a value of 8.

This fixes a regression issue after r357861.

Reported by: Minoru TANABE <kotanabe3@gmail.com>
PR: 224592
PR: 233884
Sponsored by: Mellanox Technologies

4 years agoMFC r357828: interp_lua: fix bogus indentation, NFC
Kyle Evans [Fri, 28 Feb 2020 18:35:36 +0000 (18:35 +0000)]
MFC r357828: interp_lua: fix bogus indentation, NFC

4 years agoMFC r358091: certctl(8): switch to install(1) to fix DESTDIR support
Kyle Evans [Fri, 28 Feb 2020 18:34:17 +0000 (18:34 +0000)]
MFC r358091: certctl(8): switch to install(1) to fix DESTDIR support

"Oops" - ln(1) is fine and dandy, but when you're using DESTDIR...it's not-
the path will almost certainly be invalid once the root you've just
installed to is relocated, perhaps to /.

Switch to install(1) using `-l rs` to calculate the relative symlink between
the two, which should work just fine in all cases.

4 years agoMFC r358180
Vincenzo Maffione [Fri, 28 Feb 2020 17:41:46 +0000 (17:41 +0000)]
MFC r358180

bhyve: enable virtio-net mergeable rx buffers for tap(4)

This patch adds a new netbe_peek_recvlen() function to the net
backend API. The new function allows the virtio-net receive code
to know in advance how many virtio descriptors chains will be
needed to receive the next packet. As a result, the implementation
of the virtio-net mergeable rx buffers feature becomes efficient,
so that we can enable it also with the tap(4) backend. For the
tap(4) backend, a bounce buffer is introduced to implement the
peeck_recvlen() callback, which implies an additional packet copy
on the receive datapath. In the future, it should be possible to
remove the bounce buffer (and so the additional copy), by
obtaining the length of the next packet from kevent data.

Reviewed by:    grehan, aleksandr.fedorov@itglobal.com
Differential Revision:  https://reviews.freebsd.org/D23472

4 years agoMFC r355325: devstat_selectdevs: resize dev_select only after copying data
Andriy Gapon [Thu, 27 Feb 2020 15:22:18 +0000 (15:22 +0000)]
MFC r355325: devstat_selectdevs: resize dev_select only after copying data

The resizing could be a downsizing so some data would be lost and we
could attempt to read past the end of the new memory allocation.

Sponsored by: Panzura

4 years agoMFC r357042: vmxnet3: add support for RSS kernel option
Andriy Gapon [Thu, 27 Feb 2020 15:08:43 +0000 (15:08 +0000)]
MFC r357042: vmxnet3: add support for RSS kernel option

We observe at least one problem: if a UDP socket is connect(2)-ed, then a
received packet that matches the connection cannot be matched to the
corresponding PCB because of an incorrect flow ID.  That was oberved for DNS
requests from the libc resolver.  We got this problem because FreeBSD
r343291 enabled code that can set rsstype of received packets to values
other than M_HASHTYPE_OPAQUE_HASH.  Earlier that code was under 'ifdef
notyet'.

The essence of this change is to use the system-wide RSS key instead of
some historic hardcoded key when the software RSS is enabled and it is
configured to use Toeplitz algorithm (the default).
In all other cases, the driver reports the opaque hash type for received
packets while still using Toeplitz algorithm with the internal key.

PR: 242890
Sponsored by: Panzura

4 years agoMFC r357040: virtio_scsi: use max target ID plus one as the initiator ID
Andriy Gapon [Thu, 27 Feb 2020 14:52:55 +0000 (14:52 +0000)]
MFC r357040: virtio_scsi: use max target ID plus one as the initiator ID

This bus does not really have a concept of the initiator ID, so use
a guaranteed dummy one that won't conflict with any real target.

This change fixes a problem with virtio_scsi on GCE where disks get
sequential target IDs starting from one.  If there are seven or more
disks, then a disk with the target ID of seven would not be discovered
by FreeBSD as that ID was reserved as the initiator ID -- see
scsi_scan_bus().

Sponsored by: Panzura

4 years agoMFC r356730: storvsc: properly set residual data length on errors
Andriy Gapon [Thu, 27 Feb 2020 14:50:02 +0000 (14:50 +0000)]
MFC r356730: storvsc: properly set residual data length on errors

This change is based on Linux commit 40630f462824ee.  csio.resid should
account for transfer_len only for success and SRB_STATUS_DATA_OVERRUN
condition.

I am not sure how exactly this change works, but I have a report from a
user that they see lots of checksum errors when running a pool scrub
concurrently with iozone -l 1 -s 100G.  After applying this patch the
problem cannot be reproduced.

Sponsored by: CyberSecure

4 years agoMFC r355736: zfs boot: fix a crash in a rarely taken path in fzap_lookup
Andriy Gapon [Thu, 27 Feb 2020 14:48:12 +0000 (14:48 +0000)]
MFC r355736: zfs boot: fix a crash in a rarely taken path in fzap_lookup

Instead of passing NULL to fzap_name_equal and crashing, just return
ENOENT.  This happened when higher bits of a hash of the searched key
(its hash prefix) matched a hash prefix of some key in the ZAP, but the
full hash value of the searched key did not match any key in the ZAP.

I observerved this problem when loader tried to look up
"features_for_read" in a particular old pool that predates pool
features.

Sponsored by: Panzura

4 years agoMFC r358175:
Konstantin Belousov [Thu, 27 Feb 2020 00:55:31 +0000 (00:55 +0000)]
MFC r358175:
Print out some newly added PCIe extended capabilities and subclasses.

4 years agoMFC r358174:
Konstantin Belousov [Thu, 27 Feb 2020 00:51:30 +0000 (00:51 +0000)]
MFC r358174:
Add more values for PCI capabilities, PCIe extended capabilities, and subclasses.

4 years agoMFC r347515: Catch up with r347241 (if_tuntap rename).
Kyle Evans [Wed, 26 Feb 2020 13:23:52 +0000 (13:23 +0000)]
MFC r347515: Catch up with r347241 (if_tuntap rename).

4 years agoMFC r358064:
Cy Schubert [Tue, 25 Feb 2020 21:02:52 +0000 (21:02 +0000)]
MFC r358064:

As with ipf(8), give ippool(8) the ability to load IP pools from multiple
files. This allows for loading, during the same invocation of ippool, of
multiple sources of input using multiple tools to concurrently maintain the
files such as fail2ban, macro preprocessors, and manually.

4 years agoMFC r349381: Avoid extra taskq_dispatch() calls by DMU.
Alexander Motin [Tue, 25 Feb 2020 15:52:35 +0000 (15:52 +0000)]
MFC r349381: Avoid extra taskq_dispatch() calls by DMU.

DMU sync code calls taskq_dispatch() for each sublist of os_dirty_dnodes
and os_synced_dnodes.  Since the number of sublists by default is equal
to number of CPUs, it will dispatch equal, potentially large, number of
tasks, waking up many CPUs to handle them, even if only one or few of
sublists actually have any work to do.

This change adds check for empty sublists to avoid this.

4 years agoMFC r357750: Mount /dev while deinstalling pkg inside EC2 AMIs.
Colin Percival [Tue, 25 Feb 2020 00:37:13 +0000 (00:37 +0000)]
MFC r357750: Mount /dev while deinstalling pkg inside EC2 AMIs.

4 years agoMFC r357749: Remove /qemu from EC2 ARM AMIs.
Colin Percival [Tue, 25 Feb 2020 00:36:16 +0000 (00:36 +0000)]
MFC r357749: Remove /qemu from EC2 ARM AMIs.

4 years agoMFC r358226:
Konstantin Belousov [Mon, 24 Feb 2020 12:35:58 +0000 (12:35 +0000)]
MFC r358226:
x86/identcpu.c whitespace cleanup.

4 years agoMFC r358225:
Konstantin Belousov [Mon, 24 Feb 2020 12:34:42 +0000 (12:34 +0000)]
MFC r358225:
print_svm_info: decode a CPUID 0x8000000a.edx bit 20.