]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
7 years agoAdd a missing ')'.
gjb [Fri, 19 May 2017 20:20:17 +0000 (20:20 +0000)]
Add a missing ')'.

Spotted by: vangyzen
Sponsored by: The FreeBSD Foundation

7 years agoDocument r305476, OpenSSH blacklistd(8) support.
gjb [Fri, 19 May 2017 20:16:14 +0000 (20:16 +0000)]
Document r305476, OpenSSH blacklistd(8) support.
Wording fixes.
Expand what GARP means.

Submitted by: lidl
Sponsored by: The FreeBSD Foundation

7 years agoAdd a 'Userland Debugging' section.
gjb [Fri, 19 May 2017 20:11:35 +0000 (20:11 +0000)]
Add a 'Userland Debugging' section.
Document r306786, core dumps now include the process ID (PID) and
command line arguments.
Document r304499, ptrace(2) now supports events for vfork(2).

Submitted by: jhb
Sponsored by: The FreeBSD Foundation

7 years agoDocument r306520, PCI pass through with bhyve resets functions via
gjb [Fri, 19 May 2017 20:11:34 +0000 (20:11 +0000)]
Document r306520, PCI pass through with bhyve resets functions via
FLR.
Document r306471, PCI pass through with bhyve supports more dynamic
configurations.

Submitted by: jhb
Sponsored by: The FreeBSD Foundation

7 years agoDocument r306660, Virtual Function devices on T4 and T5 adapters.
gjb [Fri, 19 May 2017 20:11:33 +0000 (20:11 +0000)]
Document r306660, Virtual Function devices on T4 and T5 adapters.
Document r306661, TCP Offload Engine on Chelsio T4+ adapters.
Document r306664, cxgbev(4) addition.
Document r309560, several cxgbe(4) and cxgbev(4) updates.

Submitted by: jhb
Sponsored by: The FreeBSD Foundation

7 years agoDocument r312394, /dev/kmem no longer supports access via mmap().
gjb [Fri, 19 May 2017 20:11:32 +0000 (20:11 +0000)]
Document r312394, /dev/kmem no longer supports access via mmap().
Document r306533, devctl(8) now supports a "clear driver" command.

Submitted by: jhb
Sponsored by: The FreeBSD Foundation

7 years agoDocument r309258, max_align_t' is now defined for C11 compliance.
gjb [Fri, 19 May 2017 20:11:31 +0000 (20:11 +0000)]
Document r309258, max_align_t' is now defined for C11 compliance.

Submitted by: jhb
Sponsored by: The FreeBSD Foundation

7 years agoFurther clarify zfsbootcfg(8).
gjb [Fri, 19 May 2017 20:11:30 +0000 (20:11 +0000)]
Further clarify zfsbootcfg(8).
Move kvm_close(3) entry to 'Runtime Libraries and API'.
Move cloudabi(4) to the 'Kernel Modules' section.

Submitted by: jhb
Sponsored by: The FreeBSD Foundation

7 years agoUse literal tags around 'keep state'/'keep frags' to avoid (mis)placing
gjb [Fri, 19 May 2017 18:23:44 +0000 (18:23 +0000)]
Use literal tags around 'keep state'/'keep frags' to avoid (mis)placing
a comma.

In collaboration with: adamw
Sponsored by: The FreeBSD Foundation

7 years agoFix a few grammar and ambiguity nits.
gjb [Fri, 19 May 2017 18:07:28 +0000 (18:07 +0000)]
Fix a few grammar and ambiguity nits.

Submitted by: adamw
Sponsored by: The FreeBSD Foundation

7 years agoRemove an HREF from a section title.
gjb [Fri, 19 May 2017 16:22:26 +0000 (16:22 +0000)]
Remove an HREF from a section title.

Suggested by: asomers
Sponsored by: The FreeBSD Foundation

7 years agoDocument r317373, periodic(8) sleep consolidation.
gjb [Fri, 19 May 2017 16:15:00 +0000 (16:15 +0000)]
Document r317373, periodic(8) sleep consolidation.

Submitted by: asomers
Sponsored by: The FreeBSD Foundation

7 years agoCorrect a typo.
gjb [Fri, 19 May 2017 15:57:05 +0000 (15:57 +0000)]
Correct a typo.

Submitted by: vangyzen
Sponsored by: The FreeBSD Foundation

7 years agoMFC r317505:
hselasky [Fri, 19 May 2017 13:02:19 +0000 (13:02 +0000)]
MFC r317505:
Don't free uninitialized sysctl contexts in the mlx4en driver. This
can cause NULL pointer panics during failed device attach.

Differential Revision: https://reviews.freebsd.org/D8876
Sponsored by: Mellanox Technologies

7 years agoMFC r313555:
hselasky [Fri, 19 May 2017 12:51:13 +0000 (12:51 +0000)]
MFC r313555:
Flexible and asymmetric allocation of EQs and MSI-X vectors for PF/VFs.

Previously, the mlx4 driver queried the firmware in order to get the
number of supported EQs. Under SRIOV, since this was done before the
driver notified the firmware how many VFs it actually needs, the
firmware had to take into account a worst case scenario and always
allocated four EQs per VF, where one was used for events while the
others were used for completions. Now, when the firmware supports the
asymmetric allocation scheme, denoted by exposing num_sys_eqs > 0 (-->
MLX4_DEV_CAP_FLAG2_SYS_EQS), we use the QUERY_FUNC command to query
the firmware before enabling SRIOV. Thus we can get more EQs and MSI-X
vectors per function. Moreover, when running in the new
firmware/driver mode, the limitation that the number of EQs should be
a power of two is lifted.

Obtained from: Linux (dual BSD/GPLv2 licensed)
Submitted by: Dexuan Cui @ microsoft . com
Differential Revision: https://reviews.freebsd.org/D8867
Sponsored by: Mellanox Technologies

7 years agoMFC r313556:
hselasky [Fri, 19 May 2017 12:35:23 +0000 (12:35 +0000)]
MFC r313556:
Change mlx4 QP allocation scheme.

When using Blue-Flame, BF, the QPN overrides the VLAN, CV, and SV
fields in the WQE. Thus, BF may only be used for QPNs with bits 6,7
unset.

The current ethernet driver code reserves a TX QP range with 256b
alignment.

This is wrong because if there are more than 64 TX QPs in use, QPNs >=
base + 65 will have bits 6/7 set.

This problem is not specific for the Ethernet driver, any entity that
tries to reserve more than 64 BF-enabled QPs should fail. Also, using
ranges is not necessary here and is wasteful.

The new mechanism introduced here will support reservation for "Eth
QPs eligible for BF" for all drivers: bare-metal, multi-PF, and VFs
(when hypervisors support WC in VMs). The flow we use is:

1. In mlx4_en, allocate Tx QPs one by one instead of a range allocation,
   and request "BF enabled QPs" if BF is supported for the function

2. In the ALLOC_RES FW command, change param1 to:
a. param1[23:0]  - number of QPs
b. param1[31-24] - flags controlling QPs reservation

Bit 31 refers to Eth blueflame supported QPs. Those QPs must have bits
6 and 7 unset in order to be used in Ethernet.

Bits 24-30 of the flags are currently reserved.

When a function tries to allocate a QP, it states the required
attributes for this QP. Those attributes are considered "best-effort".
If an attribute, such as Ethernet BF enabled QP, is a must-have
attribute, the function has to check that attribute is supported
before trying to do the allocation.

In a lower layer of the code, mlx4_qp_reserve_range masks out the bits
which are unsupported. If SRIOV is used, the PF validates those
attributes and masks out unsupported attributes as well. In order to
notify VFs which attributes are supported, the VF uses QUERY_FUNC_CAP
command. This command's mailbox is filled by the PF, which notifies
which QP allocation attributes it supports.

Obtained from: Linux (dual BSD/GPLv2 licensed)
Submitted by: Dexuan Cui @ microsoft . com
Differential Revision: https://reviews.freebsd.org/D8868
Sponsored by: Mellanox Technologies

7 years agoMFC r318243:
kib [Fri, 19 May 2017 09:04:18 +0000 (09:04 +0000)]
MFC r318243:
Do not wake up sleeping thread in reschedule_signals() if the signal
is blocked.  The spurious wakeup might result in spurious EINTR.

PR: 219228

7 years agoMFC r318150:
eugen [Fri, 19 May 2017 07:28:36 +0000 (07:28 +0000)]
MFC r318150:

Fix translation of transit PPtP/GRE connections for ipfw nat/natd "global" case.

PR: 218968
Approved by: ae, vsevolod (mentor)

7 years agoMFC r314693
rgrimes [Fri, 19 May 2017 02:12:10 +0000 (02:12 +0000)]
MFC r314693
  Change /etc/rmt symlink from absolute to relative path,
  correcting the mistake made in r6499

Approved by: grehan (mentor)

7 years agoMFC r317159: libstdc++: fix symbol version script for LLD
emaste [Fri, 19 May 2017 00:43:49 +0000 (00:43 +0000)]
MFC r317159: libstdc++: fix symbol version script for LLD

LLD is less tolerant of inconsistencies in the symbol version script.

- Add a ; on the last entry in a version block
- Remove duplicated symbols, retaining those in the earliest block

7 years agoMFC r318354 (by cem)
vangyzen [Fri, 19 May 2017 00:33:48 +0000 (00:33 +0000)]
MFC r318354 (by cem)

Correct page frame mask constant used in pmap_change_attr_locked

This was introduced in r290156.  It's present in 11.0, but not any 10.x
release unless someone decided to MFC it.

It affects ordinary pages right above the DMAP limit, which is effectively
system memory rounded up to a 1 GB (3rd level superpage) boundary (or up to
a minimum of 4 GB, on small systems).

Sponsored by: Dell EMC

7 years agoUpdate stable/11 from 11.0-STABLE to 11.1-PRERELEASE, marking the
gjb [Fri, 19 May 2017 00:00:38 +0000 (00:00 +0000)]
Update stable/11 from 11.0-STABLE to 11.1-PRERELEASE, marking the
official start of the code slush.

Set the default mdoc(7) version to 11.1, and update the clang(1)
TARGET_TRIPLE to reflect 11.1.  While here, add missing FreeBSD
major versions to mdoc(7).

Approved by:    re (implicit)
Sponsored by: The FreeBSD Foundation

7 years agoMFC: r317171, r317173, r317560, r317561, r318326
jkim [Thu, 18 May 2017 23:52:28 +0000 (23:52 +0000)]
MFC: r317171, r317173, r317560, r317561, r318326

Always clear borders when the terminal is flushed.

PR: 202288

7 years agoPersistently store NIC's hardware MAC address, and add a way to retrive it
rpokala [Thu, 18 May 2017 23:41:18 +0000 (23:41 +0000)]
Persistently store NIC's hardware MAC address, and add a way to retrive it

jhb pointed out that (struct ifnet) is part of the network driver KBI, and
thus the offsets of internal fields must not change. Therefore, move the new
"if_hw_addr" field to the end, and consume one of the "if_pspare"s; that's
what they're there for. The new field replaces the *last* element of that
array; that way, offsetof(if_pspare) and offsetof(if_ispare) are unchanged
compared to before r318397.

PR: 194386
Reviewed by: jhb
Pointyhat to: rpokala
Sponsored by: Panasas

7 years agoMFC r317811:
wulf [Thu, 18 May 2017 21:23:39 +0000 (21:23 +0000)]
MFC r317811:

Fix triple-finger taps reported as double-finger for Elan hw v.4 touchpads

Wait for all advertised head packets after status packet have been received.
This fixes rare but quite annoying issue in Elan hw v.4 touchpads support
when triple-finger taps are reported as double-finger taps under several
circumstances.

MFC r317812:

Reduce default tap_min_queue size for Elan touchpads

Elan hw v.4 touchpads often sends touchpad release packet right after
touchpad touch one. Most probably this happens due to PS/2 limited bandwith.
Reducing of tap_min_queue size to 1 makes multifinger tap detection
more reliable in this case.

MFC r317813:

Adjust Elantech palm width threshold to nearly match synaptics defaults

MFC r317814:

psm(4): reduce cursor jumping on palm detection

This is done with discarding pointer movements rather then mouse packets

MFC r317815:

Enable palm detection on two finger touches for multitouch trackpads.

MFC r317816:

Report 3-rd and 4-th fingers as first finger for Elan hw v.2 and v.3 as
Linux does. It should not affect gesture processing in current state as it
ignores finger coords on 3-finger tap detection but it should make evdev
reports looking more Linux-alike.

MFC r317817:

Set predefined logical touchpad sizes for several ancient Elan hw v.2
models. This change is based on Linux driver.
Determine logical trace size. It used for calculation of touch sizes
in surface units for MT-protocol type B evdev reports.

MFC r317818:

psm(4): Remove sys/libkern.h header inclusion

It is already included via sys/systm.h

MFC r317819:

Reduce synaptics touch sensitivity

Increase hw.psm.synaptics.min_pressure default value from 16 to 32
to nearly match Linux driver (30-35 hysteresis loop).
This makes libinput tap detection more reliable.

7 years agoMFC: r314345, r318276
marius [Thu, 18 May 2017 21:09:24 +0000 (21:09 +0000)]
MFC: r314345, r318276

- Add ID for NEC uPD720202 xHCI controller.
- Describe Intel Apollo Lake and Braswell USB 3.0 controllers.

7 years agoMFC: r318282
marius [Thu, 18 May 2017 21:00:50 +0000 (21:00 +0000)]
MFC: r318282

- Unlike as in the PCI case, when attached to ACPI, Intel Bay Trail
  and Braswell eMMC and SDXC controllers share the same IDs. Like in
  the PCI case, Braswell eMMC needs the SDHCI_QUIRK_DATA_TIMEOUT_1MHZ
  quirk (see r311794 for the corresponding change to the sdhci(4) PCI
  PCI front-end), though. However, due to the shared ACPI IDs, this
  is trickier to do.
- Intel Apollo Lake eMMC and SDXC controllers are affected by the
  APL18 ("Using 32-bit Addressing Mode With SD/eMMC Controller May
  Lead to Unpredictable System Behavior") silicon bug. When this
  erratum hits, typically both SDHCI and XHCI controllers wedge.
  According to Intel, using ADMA2 with 64-bit addressing and 96-bit
  descriptors serves as a workaround. Until such times when sdhci(4)
  has ADMA2 support, flag DMA as broken for affected interfaces.
  This turns out to work around the problem, too, at the cost of
  performance.
- In the sdhci(4) ACPI front-end, probe the Intel Apollo Lake eMMC
  and SDXC controllers, too.

7 years agoMFC: r315598
marius [Thu, 18 May 2017 20:46:20 +0000 (20:46 +0000)]
MFC: r315598

o Add support for eMMC DDR bus speed mode up to 52 MHz to sdhci(4)
  and mmc(4). Given that support for DDR52 is not denoted by SDHCI
  capability registers, availability of that timing is indicated by
  a new quirk SDHCI_QUIRK_MMC_DDR52 and only enabled for Intel SDHCI
  controllers so far.

  Compared to 50 MHz at SDR high speed typically yielding ~45 MB/s
  read throughput with the eMMC chips tested, read performance goes
  up to ~80 MB/s at DDR52.

  As a side-effect, this change also fixes communication with some
  eMMC devices at SDR high speed mode due to the signaling voltage
  and UHS bits in the SDHCI controller no longer being left in an
  inappropriate state.

o In sdhci(4), add two tunables hw.sdhci.quirk_clear as well as
  hw.sdhci.quirk_set, which (when hooked up in the front-end)
  allow to set/clear sdhci(4) quirks for debugging and testing
  purposes. However, especially for SDHCI controllers on the
  PCI bus which have no specific support code so far and, thus,
  are picked up as generic SDHCI controllers, hw.sdhci.quirk_set
  allows for setting the necessary quirks (if required).

o In mmc(4), check and handle the return values of some more
  function calls instead of assuming that everything went right.
  In case failures actually are not problematic, indicate that
  by casting the return value to void.

7 years agoMFC r317463:
trasz [Thu, 18 May 2017 20:45:09 +0000 (20:45 +0000)]
MFC r317463:

Add information about device nodes to man pages for USB serial drivers.

MFC r318016:

Fix mistake introduced to uart(4) man page in r317463.

MFC r318017:

Fix device paths for USB serial adapters: the formatting strings
contain "%u", differently from eg uart(4) which uses "%r".

7 years agoMFC r317460:
trasz [Thu, 18 May 2017 20:41:55 +0000 (20:41 +0000)]
MFC r317460:

Add some .Xrs to USB serial driver man pages.

7 years agoMFC r317517:
trasz [Thu, 18 May 2017 20:40:49 +0000 (20:40 +0000)]
MFC r317517:

Advertise kldxref(8) a little better.

7 years agoMFC r317803:
trasz [Thu, 18 May 2017 20:37:47 +0000 (20:37 +0000)]
MFC r317803:

Enable automounting of exFAT media.

With fstyp(8) being updated to detect exfat in base r312003, it seems
like a good time to add support for auto-mounting SDXC cards -- which
use exfat by default.

The user will need to locally compile and install sysutils/fusefs-exfat
for this to succeed; logs a message to that effect when not installed.

PR: 218743
Submitted by: eborisch+FreeBSD@gmail.com

7 years agoMFC r317459:
trasz [Thu, 18 May 2017 20:36:07 +0000 (20:36 +0000)]
MFC r317459:

Make fstyp(8) recognize exFAT even without the -u option.

While it's not directly mountable with mount(8), it's something that's
mountable - differently from GELI or zpools.

7 years agoMFC r317348:
trasz [Thu, 18 May 2017 20:34:25 +0000 (20:34 +0000)]
MFC r317348:

Make it possible to terminate "show lockedbufs" by pressing "q".

7 years agoMFC r317280:
trasz [Thu, 18 May 2017 20:32:12 +0000 (20:32 +0000)]
MFC r317280:

Add basic example to the cu(1) man page.  Srsly, folks, you don't
need to install minicom for this...

7 years agoMFC r317212:
trasz [Thu, 18 May 2017 20:31:09 +0000 (20:31 +0000)]
MFC r317212:

Mention GEOM_MOUNTVER.

7 years agoMFC r316941:
trasz [Thu, 18 May 2017 20:29:47 +0000 (20:29 +0000)]
MFC r316941:

Don't try to write out bufs that have already failed with ENXIO.
This fixes some panics after disconnecting mounted disks.

7 years agoMFC r317782,318181:
mm [Thu, 18 May 2017 19:47:43 +0000 (19:47 +0000)]
MFC r317782,318181:

MFC r317782 (mm):
  Sync libarchive with vendor

  Vendor changes (FreeBSD-related):
    PR 897: add test for ZIP archives with invalid EOCD headers
    PR 901: fix invalid renaming of sparse files
    OSS-Fuzz issue 497: remove fallback tree in LZX decoder
    OSS-Fuzz issue 527: rewrite expressions in lz4 filter
    OSS-Fuzz issue 577: fix integer overflow in cpio reader
    OSS-Fuzz issue 862: fix numerc parsing in mtree reader
    OSS-Fuzz issue 1097: fix undefined shift in rar reader
    cpio: various optimizations and memory leak fixes

MFC r318181 (ngie) (2):
  cpio/tests/test_option_lz4: fix a use after free in the failure case

Reported by: Coverity (2)
Sponsored by: Dell EMC Isilon (2)

7 years agoMFC r318193:
markj [Thu, 18 May 2017 18:39:23 +0000 (18:39 +0000)]
MFC r318193:
Set the right variable when overriding the default console speed.

7 years agoAdd the installation/article.xml for installation.html.
gjb [Thu, 18 May 2017 18:18:39 +0000 (18:18 +0000)]
Add the installation/article.xml for installation.html.
This is not yet connected to the build.

Sponsored by: The FreeBSD Foundation

7 years agoregen src.conf(5) after r318472
emaste [Thu, 18 May 2017 17:44:45 +0000 (17:44 +0000)]
regen src.conf(5) after r318472

7 years agoMFC LLD changes and enable LLD as /usr/bin/ld on arm64 by default
emaste [Thu, 18 May 2017 17:40:30 +0000 (17:40 +0000)]
MFC LLD changes and enable LLD as /usr/bin/ld on arm64 by default

MFC r316629: do not require binutils port when using lld as ld

r279908 added logic to Makefile.inc1 to automatically set
CROSS_BINUTILS_PREFIX for architectures not supported by the in-tree
binutils: arm64 when first introduced, and later riscv64 as well.

LLVM's LLD linker is now included in the base system, and is enabled by
default for arm64 and capable of linking world and kernel. Thus, avoid
automatically setting CROSS_BINUTILS_PREFIX and requiring the binutils
port if WITH_LLD_IS_LD is true.

--

MFC r317608: revert r313473 (Disable LLD_IS_LD option combinations that fail)

r316647 corrected the build of tblgen and libllvm as dependencies for
LLD so undo the temporary seat-belt.

We still want to extend the build infrastructure to automatically detect
the case where the host LLD can be used instead of building a bootstrap
LLD, and likely extend libllvmminimal to meet LLD's needs for cases
where the build includes LLD but not Clang.

--

MFC r316684: Make WITHOUT_TOOLCHAIN imply WITHOUT_LLD.

LLD is a toolchain component.

--

MFC r316647: Introduce LLD_BOOTSTRAP to control lld as bootstrap linker

Add WITH_LLD_BOOTSTRAP and WITHOUT_LLD_BOOTSTRAP knobs, similar to the
Clang bootstrap knobs.

Reviewed by: andrew
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D10793

7 years agoFurther refine grammar.
gjb [Thu, 18 May 2017 17:01:26 +0000 (17:01 +0000)]
Further refine grammar.

Submitted by: adamw
Sponsored by: The FreeBSD Foundation

7 years agoPrefer https://download.FreeBSD.org as the official release site.
gjb [Thu, 18 May 2017 16:32:41 +0000 (16:32 +0000)]
Prefer https://download.FreeBSD.org as the official release site.

Sponsored by: The FreeBSD Foundation

7 years agoFix grammar nits.
gjb [Thu, 18 May 2017 16:24:11 +0000 (16:24 +0000)]
Fix grammar nits.

Sponsored by: The FreeBSD Foundation

7 years agoFix FDP style nits reported by igor(1).
gjb [Thu, 18 May 2017 16:24:10 +0000 (16:24 +0000)]
Fix FDP style nits reported by igor(1).
Bump copyright year in readme/article.xml.

Sponsored by: The FreeBSD Foundation

7 years agoFix FDP style nits found by igor(1).
gjb [Thu, 18 May 2017 15:41:59 +0000 (15:41 +0000)]
Fix FDP style nits found by igor(1).

Sponsored by: The FreeBSD Foundation

7 years agoDocument r311686, bsdinstall(8) hidden wifi network support.
gjb [Thu, 18 May 2017 15:41:58 +0000 (15:41 +0000)]
Document r311686, bsdinstall(8) hidden wifi network support.

Sponsored by: The FreeBSD Foundation

7 years agoMove the ixl(4) entry to the network driver section.
gjb [Thu, 18 May 2017 15:41:57 +0000 (15:41 +0000)]
Move the ixl(4) entry to the network driver section.

Sponsored by: The FreeBSD Foundation

7 years agoDocument r310852, miibus(4) Microchip/Micrel KSZ9031 support.
gjb [Thu, 18 May 2017 15:41:56 +0000 (15:41 +0000)]
Document r310852, miibus(4) Microchip/Micrel KSZ9031 support.

Sponsored by: The FreeBSD Foundation

7 years agoDocument r315330, etherswitch(4) support for RTL8366RB and RTL8366SR.
gjb [Thu, 18 May 2017 15:41:56 +0000 (15:41 +0000)]
Document r315330, etherswitch(4) support for RTL8366RB and RTL8366SR.
Correct the Netgate sponsor entity while here.

Sponsored by: The FreeBSD Foundation

7 years agoClarify the cxgbe(4) firmware update is for T4, T5, and T6 cards.
gjb [Thu, 18 May 2017 15:41:55 +0000 (15:41 +0000)]
Clarify the cxgbe(4) firmware update is for T4, T5, and T6 cards.

Sponsored by: The FreeBSD Foundation

7 years agoDocument r307576, Elantech support added to atkbdc(4).
gjb [Thu, 18 May 2017 15:41:54 +0000 (15:41 +0000)]
Document r307576, Elantech support added to atkbdc(4).

Sponsored by: The FreeBSD Foundation

7 years agoAdd missing revision for cloudabi 32-bit support.
gjb [Thu, 18 May 2017 15:41:53 +0000 (15:41 +0000)]
Add missing revision for cloudabi 32-bit support.

Sponsored by: The FreeBSD Foundation

7 years agoDocument r314005, alc(4) Killer E2500 support.
gjb [Thu, 18 May 2017 15:41:52 +0000 (15:41 +0000)]
Document r314005, alc(4) Killer E2500 support.

Sponsored by: The FreeBSD Foundation

7 years agoDocument r312358, alc(4) Killer E2400 support.
gjb [Thu, 18 May 2017 15:41:51 +0000 (15:41 +0000)]
Document r312358, alc(4) Killer E2400 support.

Sponsored by: The FreeBSD Foundation

7 years agoDocument r311506, cxgbe(4) firmware version 1.16.26.0.
gjb [Thu, 18 May 2017 15:41:50 +0000 (15:41 +0000)]
Document r311506, cxgbe(4) firmware version 1.16.26.0.

Sponsored by: The FreeBSD Foundation

7 years agoAdd qlnxe(4)
gjb [Thu, 18 May 2017 15:41:49 +0000 (15:41 +0000)]
Add qlnxe(4)

Sponsored by: The FreeBSD Foundation

7 years agoDocument r318357, ixl(4) updated to version 1.7.12-k.
gjb [Thu, 18 May 2017 15:41:49 +0000 (15:41 +0000)]
Document r318357, ixl(4) updated to version 1.7.12-k.

Sponsored by: The FreeBSD Foundation

7 years agoDocument r307144, cloudabi 32-bit support on 64-bit envionments.
gjb [Thu, 18 May 2017 15:41:48 +0000 (15:41 +0000)]
Document r307144, cloudabi 32-bit support on 64-bit envionments.

Sponsored by: The FreeBSD Foundation

7 years agoMFC r315435:
allanjude [Thu, 18 May 2017 13:19:07 +0000 (13:19 +0000)]
MFC r315435:
Add ZFS compressed ARC stats to top(1)

MFC r316314:
top(1) read the wrong amount of data from sysctl

MFC r318448:
Explain the new fields in top(1) related to ZFS compressed ARC

Remove the laundry field during the merge, does not exist in stable/11

7 years agoMFC r318294:
gjb [Thu, 18 May 2017 12:27:41 +0000 (12:27 +0000)]
MFC r318294:
 Correct the URL to instructions for updating system sources.

PR: 219303
Sponsored by: The FreeBSD Foundation

7 years agoMFC 317783
sephe [Thu, 18 May 2017 01:32:50 +0000 (01:32 +0000)]
MFC 317783
    hyperv/kvp: Fix pool direcrory and file permission

    PR: 209385
    Sponsored by: Microsoft

7 years agoDocument r318402, blacklistd refinement for OpenSSH.
gjb [Wed, 17 May 2017 14:35:21 +0000 (14:35 +0000)]
Document r318402, blacklistd refinement for OpenSSH.

Sponsored by: The FreeBSD Foundation

7 years agoMFC r318242: Refine and update blacklist support in sshd
lidl [Wed, 17 May 2017 14:28:01 +0000 (14:28 +0000)]
MFC r318242: Refine and update blacklist support in sshd

Adjust notification points slightly to catch all auth failures, rather
than just the ones caused by bad usernames.  Modify notification point
for bad usernames to send new type of BLACKLIST_BAD_USER.  (Support in
libblacklist will be forthcoming soon.)  Add guards to allow library
headers to expose the enum of action values.

Reviewed by: des
Relnotes: yes
Sponsored by: The FreeBSD Foundation

7 years agoMFC r318160, 318176: Persistently store NIC's hardware MAC address, and add
rpokala [Wed, 17 May 2017 05:53:25 +0000 (05:53 +0000)]
MFC r318160, 318176: Persistently store NIC's hardware MAC address, and add
a way to retrive it

The MAC address reported by `ifconfig ${nic} ether' does not always match
the address in the hardware, as reported by the driver during attach. In
particular, NICs which are components of a lagg(4) interface all report the
same MAC.

When attaching, the NIC driver passes the MAC address it read from the
hardware as an argument to ether_ifattach(). Keep a second copy of it, and
create ioctl(SIOCGHWADDR) to return it. Teach `ifconfig' to report it along
with the active MAC address.

PR: 194386

7 years agoMFC r317743:
araujo [Wed, 17 May 2017 05:47:31 +0000 (05:47 +0000)]
MFC r317743:

Use nitems() from sys/param.h.

Reviewed by: ngie
Differential Revision: https://reviews.freebsd.org/D9942

7 years agoMFC r317742:
araujo [Wed, 17 May 2017 05:28:16 +0000 (05:28 +0000)]
MFC r317742:

Free the memory allocated to trackbuf before exiting, it might fix a potential
memory leak.

Submitted by: trix@juniper.net
Differential Revision: https://reviews.freebsd.org/D9856

7 years agoMFC r315112, r315196
araujo [Wed, 17 May 2017 05:21:03 +0000 (05:21 +0000)]
MFC r315112, r315196

r315112:
Add the capability to refresh the gpart(8) label without need a reboot.

gpart(8) has functionality to change the label of an GPT partition.
This functionality works like it should, however, after a label change
the /dev/gpt/ entries remain unchanged. glabel(8) status output remains
unchanged. The change only takes effect after a reboot.

PR: 162690
Submitted by: sub.mesa@gmail, Ben RUBSON <ben.rubson@gmail.com>, ae
Reviewed by: allanjude, bapt, bcr
Differential Revision: https://reviews.freebsd.org/D9935

r315196:
After r315112 I broke the tests with eli, instead to pass 0, I should pass
M_NOWAIT to g_media_changed() that will call g_post_event() with this flag.

Reported by: lwhsu, ngie and ae

7 years agoMFC 318136
sephe [Wed, 17 May 2017 01:48:44 +0000 (01:48 +0000)]
MFC 318136

    hyperv/vmbus: Reorganize vmbus device tree

    For GEN1 Hyper-V, vmbus is attached to pcib0, which contains the
    resources for PCI passthrough and SR-IOV.  There is no
    acpi_syscontainer0 on GEN1 Hyper-V.

    For GEN2 Hyper-V, vmbus is attached to acpi_syscontainer0, which
    contains the resources for PCI passthrough and SR-IOV.  There is
    no pcib0 on GEN2 Hyper-V.

    The ACPI VMBUS device now only holds its _CRS, which is empty as
    of this commit; its existence is mainly for upward compatibility.

    Device tree structure is suggested by jhb@.

    Tested-by: dexuan@
    Collabrated-wth: dexuan@
    Sponsored by: Microsoft
    Differential Revision: https://reviews.freebsd.org/D10565

7 years agoMFC r318283:
cy [Wed, 17 May 2017 01:45:26 +0000 (01:45 +0000)]
MFC r318283:

As of r318281 in HEAD (r318390 [in stable/10 & stable/11]), there is no
need to put a colon (:) in the message string.

7 years agoMFC r318281:
cy [Wed, 17 May 2017 01:38:32 +0000 (01:38 +0000)]
MFC r318281:

Separate the ipfilter function/static string from the error with a
colon (:) in error messages to assist the user in parsing out the error
from where or which object the error message refers to.

7 years agoMFC r317784:
mjg [Tue, 16 May 2017 19:35:25 +0000 (19:35 +0000)]
MFC r317784:

cache: stop holding the ncneg_hot lock across purging

Only non-hot entries are purged so the lock is not needed in the first place.
This saves one lock/unlock pair.

7 years agoMFC r318259:
dim [Tue, 16 May 2017 18:54:25 +0000 (18:54 +0000)]
MFC r318259:

Silence a -Wunused warning about the junk variable being used to raise
an inexact floating point exception.  The variable cannot be eliminated,
unfortunately, otherwise the desired addition triggering the exception
will be emitted neither by clang, nor by gcc.

Reviewed by: Steve Kargl, bde

7 years agoMFC r318147: Add several new media types to if_media.h
erj [Tue, 16 May 2017 17:51:30 +0000 (17:51 +0000)]
MFC r318147: Add several new media types to if_media.h

These include several 25G types (for active direct attach cables and LR modules),
and a missing type for 10G active direct attach.

Sponsored by: Intel Corporation

7 years agoMFC r313497: ixl(4): Update to 1.7.12-k.
erj [Tue, 16 May 2017 17:49:15 +0000 (17:49 +0000)]
MFC r313497: ixl(4): Update to 1.7.12-k.

Refresh upstream driver before impending conversion to iflib.

Major new features:

- Support for Fortville-based 25G adapters
- Support for I2C reads/writes

(To prevent getting or sending corrupt data, you should set
dev.ixl.0.debug.disable_fw_link_management=1 when using I2C
[this will disable link!], then set it to 0 when done. The driver implements
the SIOCGI2C ioctl, so ifconfig -v works for reading I2C data,
but there are read_i2c and write_i2c sysctls under the .debug sysctl tree
[the latter being useful for upper page support in QSFP+]).

- Addition of an iWARP client interface (so the future iWARP driver for
  X722 devices can communicate with the base driver).
    - Add "options IXL_IW" to kernel config to enable this option.

Sponsored by: Intel Corporation

7 years agoMCF r310418: xen: fix IPI setup with EARLY_AP_STARTUP
royger [Tue, 16 May 2017 09:39:20 +0000 (09:39 +0000)]
MCF r310418: xen: fix IPI setup with EARLY_AP_STARTUP

Sponsored by: Citrix Systems R&D

7 years agoMFC r318092:
bdrewery [Tue, 16 May 2017 02:23:54 +0000 (02:23 +0000)]
MFC r318092:

  PROGS+META_MODE: Avoid rebuilding common sources when recursing.

7 years agoMFC r317585: Propagate IFCAP_LRO from trunk to vlan interface.
mav [Tue, 16 May 2017 00:34:53 +0000 (00:34 +0000)]
MFC r317585: Propagate IFCAP_LRO from trunk to vlan interface.

False positive here cost nothing, while false negative may lead to some
confusions.

7 years agoMFC r317547: Allow some control over enabled capabilities for if_vlan.
mav [Tue, 16 May 2017 00:33:46 +0000 (00:33 +0000)]
MFC r317547: Allow some control over enabled capabilities for if_vlan.

It improves interoperability with if_bridge, which may need to disable
some capabilities not supported by other members.  IMHO there is still
open question about LRO capability, which may need to be disabled on
physical interface.

7 years agoMFC r317696, r317723, r317836: Introduce sleepable locks into if_lagg.
mav [Tue, 16 May 2017 00:30:40 +0000 (00:30 +0000)]
MFC r317696, r317723, r317836:  Introduce sleepable locks into if_lagg.

Before this change if_lagg was using nonsleepable rmlocks to protect its
internal state.  This patch introduces another sx lock to protect code
paths that require sleeping, while still uses old rmlock to protect hot
nonsleepable data paths.

This change allows to remove taskqueue decoupling used before to change
interface addresses without holding the lock.  Instead it uses sx lock to
protect direct if_ioctl() calls.

As another bonus, the new code synchronizes enabled capabilities of member
interfaces, and allows to control them with ifconfig laggX, that was
impossible before.  This part should fix interoperation with if_bridge,
that may need to disable some capabilities, such as TXCSUM or LRO, to allow
bridging with noncapable interfaces.

7 years agoMFC r317659, r317752:
mav [Tue, 16 May 2017 00:21:03 +0000 (00:21 +0000)]
MFC r317659, r317752:
Make some UART consoles to not spin wait for data to be sent.

At least with Tx FIFO enabled it shows me ~10% reduction of verbose boot
time with serial console at 115200 baud.

7 years agoMFC 316658:
avatar [Mon, 15 May 2017 22:51:22 +0000 (22:51 +0000)]
MFC 316658:

Adding SIOCGIFNAME support in Linuxulator.  This should silence the console warning associated
with linux-opera:
linux: pid 23492 (opera): ioctl fd=5, cmd=0x8910 ('\M^I',16) is not implemented
linux: pid 23492 (opera): ioctl fd=28, cmd=0x8910 ('\M^I',16) is not implemented
...

Reviewed by: kib, marcel, dchagin
Tested with: linux-opera-12.16_3

7 years agoMFC r317660, r317710
brooks [Mon, 15 May 2017 22:41:01 +0000 (22:41 +0000)]
MFC r317660, r317710

r317660:
Support clnt_raw's use of FD_SETSIZE as a fake file descriptor.

Accomplish this by allocating space for it in __svc_xports and allowing
it to be registered.  The failure to allocate space was causing an
out-of-bounds read in svc_getreq_common().  The failure to register
caused PR 211804.

The bug was found with CHERI bounds checking.

PR: 211804
Obtained from: CheriBSD
Sponsored by: DARPA, AFRL
Reviewed by: ngie
Differential Revision: https://reviews.freebsd.org/D10528

r317710:
Remove expected failure now that it was fixed in r317660.

PR: 211804
Reviewed by: ngie
Obtained from: CheriBSD
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D10576

7 years agoMFC r317658:
bdrewery [Mon, 15 May 2017 18:38:01 +0000 (18:38 +0000)]
MFC r317658:

  Redo r288270: Hookup mkcsmapper_static and mkesdb_static for 'make clean'

7 years agoMFC r317996
davidcs [Mon, 15 May 2017 18:07:57 +0000 (18:07 +0000)]
MFC r317996
  Fix bug where MTX_DEF lock was held while taskqueue_drain() was invoked.
  Check IFF_DRV_RUNNING flag is set prior to calling ql_hw_set_multi()

7 years agoMFC r318126
davidcs [Mon, 15 May 2017 17:45:05 +0000 (17:45 +0000)]
MFC r318126
  llh_func_filter needs to be configured for 100G

7 years agoMFC r318185:
ken [Mon, 15 May 2017 15:28:01 +0000 (15:28 +0000)]
MFC r318185:

  Add LTO-8 density codes.

  lib/libmt/mtlib.c:
   Add the LTO-8 density code to the density table in libmt.

  usr.bin/mt/mt.1:
   Add the LTO-8 density code, tracks, bpmm, and bpi to the density
   table in the mt(1) man page.

Sponsored by: Spectra Logic

7 years agoMFC r315685: tighten buffer bounds in imgact_binmisc_populate_interp
emaste [Mon, 15 May 2017 14:41:47 +0000 (14:41 +0000)]
MFC r315685: tighten buffer bounds in imgact_binmisc_populate_interp

We must ensure there's space for the terminating null in the temporary
buffer in imgact_binmisc_populate_interp().

Note that there's no buffer overflow here because xbe->xbe_interpreter's
length and null termination is checked in imgact_binmisc_add_entry()
before imgact_binmisc_populate_interp() is called. However, the latter
should correctly enforce its own bounds.

Sponsored by: The FreeBSD Foundation

7 years agoMFC r314054: Exclude -flto when building *genassym.o
emaste [Mon, 15 May 2017 14:23:53 +0000 (14:23 +0000)]
MFC r314054: Exclude -flto when building *genassym.o

The build process generates *assym.h using nm from *genassym.o (which is
in turn created from *genassym.c).

When compiling with link-time optimization (LTO) using -flto, .o files
are LLVM bitcode, not ELF objects. This is not usable by genassym.sh,
so remove -flto from those ${CC} invocations.

Sponsored by: The FreeBSD Foundation

7 years agoMFC r317376: Add sysutils/tmux to the DVD package set
emaste [Mon, 15 May 2017 14:22:03 +0000 (14:22 +0000)]
MFC r317376: Add sysutils/tmux to the DVD package set

The zsh + tmux combination is commonly wanted.

Sponsored by: The FreeBSD Foundation

7 years agoRegenerate src.conf.5 after r318286
emaste [Mon, 15 May 2017 14:11:18 +0000 (14:11 +0000)]
Regenerate src.conf.5 after r318286

r318286 removed the $FreeBSD$ tags copied from the source WITH_/WITHOUT_
description snippets.  Regenerate src.conf.5 now so that only relevant
changes appear in it when it is next regenerated after an MFC.

Sponsored by: The FreeBSD Foundation

7 years agoMFC r310271 (gjb): Comment the RCSID (in WITH_REPRODUCIBLE_BUILD)
emaste [Mon, 15 May 2017 13:50:21 +0000 (13:50 +0000)]
MFC r310271 (gjb): Comment the RCSID (in WITH_REPRODUCIBLE_BUILD)

Sponsored by: The FreeBSD Foundation

7 years agoMFC r317156: makeman: add a comment describing purpose and invocation
emaste [Mon, 15 May 2017 13:41:38 +0000 (13:41 +0000)]
MFC r317156: makeman: add a comment describing purpose and invocation

Sponsored by: The FreeBSD Foundation

7 years agoMFC r316706: makeman: don't copy $FreeBSD$ tags from source files into output
emaste [Mon, 15 May 2017 13:05:02 +0000 (13:05 +0000)]
MFC r316706: makeman: don't copy $FreeBSD$ tags from source files into output

Copying the source VCS ID from WITH_/WITHOUT_* into the generated
src.conf.5 is not necessary, as it is generally possible to determine
the same information using the VCS to examine commit metadata. The
individual source files also match the name of the option recorded in
the generated file, so it is clear from where the content originated.

The copied IDs generate extraneous, non-content noise in the generated
src.conf.5 in some cases, including the first time the file is generated
on a stable branch. In addition, the source file $FreeBSD$ tags are not
expanded by git or other non-Subversion VCSs, which means that makeman
previously could not be used in a non-Subversion working tree.

I accept that there's some desire to keep these, but on balance believe
there is more benefit in removing them.

Sponsored by: The FreeBSD Foundation

7 years agoMFC r317912: sh: Fix INTOFF leak after a builtin with different locale
jilles [Sun, 14 May 2017 20:17:50 +0000 (20:17 +0000)]
MFC r317912: sh: Fix INTOFF leak after a builtin with different locale
settings.

After executing a builtin with different locale settings such as
  LC_ALL=C true
SIGINT handling was left disabled indefinitely.

7 years agoMFC r318254:
jasone [Sun, 14 May 2017 17:10:55 +0000 (17:10 +0000)]
MFC r318254:

Fix __pthread_mutex_trylock() to call THR_CRITICAL_LEAVE() on failure rather
than on success.  This regression was introduced by r300043 (Add implementation
of robust mutexes...).

7 years agoMFC: r317982
marius [Sun, 14 May 2017 14:21:09 +0000 (14:21 +0000)]
MFC: r317982

- Also outside of the KOBJOPLOOKUP macro - which in turn is used by
  the code auto-generated for *.m - kobj_lookup_method(9) is useful;
  for example in back-ends or base class device drivers in order to
  determine whether a default method has been overridden. Thus, allow
  for the kobj_method_t pointer argument - used by KOBJOPLOOKUP in
  order to update the cache entry - of kobj_lookup_method(9), to be
  NULL. Actually, that pointer is redundant as it's just set to the
  same kobj_method_t that the kobj_lookup_method(9) function returns
  in the first place, but probably it serves to reduce the number of
  instructions generated for KOBJOPLOOKUP.
- For the same reason, move updating kobj_lookup_{hits,misses} (if
  KOBJ_STATS is defined) from kobj_lookup_method(9) to KOBJOPLOOKUP.
  As a side-effect, this gets rid of the convoluted approach of always
  incrementing kobj_lookup_hits in KOBJOPLOOKUP and then in case of
  a cache miss, decrementing it in kobj_lookup_method(9) again.

7 years agoMFC: r317578
marius [Sun, 14 May 2017 14:04:25 +0000 (14:04 +0000)]
MFC: r317578

Fix a bug introduced as part of r287726; use the right device_t for
determining the softc of the bridge in psycho_route_interrupt(). [1]
While at it, update the corresponding comment that the code in
question is also necessary for U30s in addition to E450s (a fact
that has been known for ages).

PR: 218478 [1]
Submitted by: Yoshihiko Iwama [1]

7 years agoMFC: r317343
marius [Sun, 14 May 2017 13:59:36 +0000 (13:59 +0000)]
MFC: r317343

In fill_ip6(), the value of the pointer av changes before it is
free(3)ed. Thus, introduce a new variable to track the original
value.