]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
7 years agoMFC r316739:
kib [Wed, 19 Apr 2017 10:54:08 +0000 (10:54 +0000)]
MFC r316739:
Fix reporting of _SC_SEM_NSEMS_MAX and _SC_SEM_VALUE_MAX.

7 years agoMFC 316813,316815
sephe [Wed, 19 Apr 2017 03:39:50 +0000 (03:39 +0000)]
MFC 316813,316815

316813
    hyperv/storvsc: Use ULL for 64bits value shift.

    Reported by:    PVS
    Sponsored by:   Microsoft

316815
    hyperv/kvp: Remove always false condition.

    Reported by:    PVS
    Sponsored by:   Microsoft

7 years agoMFC 316515,316812
sephe [Wed, 19 Apr 2017 03:30:37 +0000 (03:30 +0000)]
MFC 316515,316812

316515
    hyperv/kbd: Add support for synthetic keyboard.

    Synthetic keyboard is the only supported keyboard on GEN2 Hyper-V.

    Submitted by:   Hongjiang Zhang <honzhan microsoft com>
    Sponsored by:   Microsoft
    Differential Revision:  https://reviews.freebsd.org/D10196

316812
    hyperv/kbd: Remove unnecessary assignment.

    Reported by:    PVS
    Sponsored by:   Microsoft

7 years agoMFC r316747
davidcs [Wed, 19 Apr 2017 03:18:11 +0000 (03:18 +0000)]
MFC r316747
Fix rss_ind_table entry for num_funcs > 1

7 years agoMFC r316720
davidcs [Wed, 19 Apr 2017 03:13:58 +0000 (03:13 +0000)]
MFC r316720
Fix defects reported by Coverity
  1. Deadcode in ecore_init_cache_line_size(), qlnx_ioctl() and
   qlnx_clean_filters()
  2. ARRAY_VS_SINGLETON issue in qlnx_remove_all_mcast_mac() and
   qlnx_update_rx_prod()

7 years agoMFC r316485
davidcs [Wed, 19 Apr 2017 03:09:20 +0000 (03:09 +0000)]
MFC r316485
  Add 25/40/100Gigabit Ethernet Driver version v1.3.0 for Cavium Inc's.
  Qlogic 45000 Series Adapters

7 years agoMFC r316310
davidcs [Wed, 19 Apr 2017 02:54:59 +0000 (02:54 +0000)]
MFC r316310
Update man page for commit r316309 "Add support for optional Soft LRO".
The driver provides the ability to select either HW or Software LRO, when
LRO is enabled (default HW LRO).

7 years agoMFC r316309
davidcs [Wed, 19 Apr 2017 02:52:55 +0000 (02:52 +0000)]
MFC r316309
Add support for optional Soft LRO

7 years agoMFC 317107
sephe [Wed, 19 Apr 2017 02:48:38 +0000 (02:48 +0000)]
MFC 317107
    hyperv: Use kmem_malloc for hypercall memory due to NX bit change.

    Reported by:    dexuan@
    Sponsored by:   Microsoft

7 years agoMFC r316715:
ae [Tue, 18 Apr 2017 09:27:26 +0000 (09:27 +0000)]
MFC r316715:
  Make sysctl identifiers for direct netisr queue unique.
  Introduce IPCTL_INTRDQMAXLEN and IPCTL_INTRDQDROPS macros for this purpose.

  Reviewed by: gnn
  Differential Revision: https://reviews.freebsd.org/D10358

7 years agoMFC r316716:
ae [Tue, 18 Apr 2017 09:17:20 +0000 (09:17 +0000)]
MFC r316716:
  Inherit IPv6 checksum offloading flags to vlan interfaces.

  if_vlan(4) interfaces inherit IPv4 checksum offloading flags from the
  parent when VLAN_HWCSUM and VLAN_HWTAGGING flags are present on the
  parent interface. Do the same for IPv6 checksum offloading flags.

  Reported by: Harry Schmalzbauer
  Reviewed by: np, gnn
  Differential Revision: https://reviews.freebsd.org/D10356

7 years agoMFC r313025, r313395, r314113, r314442, r315458, r315656
asomers [Mon, 17 Apr 2017 20:13:20 +0000 (20:13 +0000)]
MFC r313025, r313395, r314113, r314442, r315458, r315656

r313025:
Add tests for multi-fib IPv6 routing

PR: 196361
Submitted by: jhujhiti@adjectivism.org
Reported by: Jason Healy <jhealy@logn.net>
MFC after: 4 weeks
Sponsored by: Spectra Logic Corp

r313395:
Add fibs_test:udp_dontroute6, another IPv6 multi-FIB test

PR: 196361
MFC after: 3 weeks
Sponsored by: Spectra Logic Corp

r314113:
Remove tests/sys/netinet/fibs_tests's dependency on net/socat

Instead of bridging two tap interfaces with socat, just use an epair pair.

MFC after: 3 weeks
Sponsored by: Spectra Logic Corp

r314442:
Add an ATF test for IPv6 SLAAC with multiple fibs

Tests that an interface can get a SLAAC address and that it inserts its
routes into the correct fib. Does not test anything to do with NDP.

PR: 196361
Reviewed by: Erick Turnquist <jhujhiti@adjectivism.org>
MFC after: 3 weeks
Sponsored by: Spectra Logic Corp
Differential Revision: https://reviews.freebsd.org/D9776

r315458:
Constrain IPv6 routes to single FIBs when net.add_addr_allfibs=0

sys/netinet6/icmp6.c
Use the interface's FIB for source address selection in ICMPv6 error
responses.

sys/netinet6/in6.c
In in6_newaddrmsg, announce arrival of local addresses on the
interface's FIB only.  In in6_lltable_rtcheck, use a per-fib ND6
cache instead of a single cache.

sys/netinet6/in6_src.c
In in6_selectsrc, use the caller's fib instead of the default fib.
In in6_selectsrc_socket, remove a superfluous check.

sys/netinet6/nd6.c
In nd6_lle_event, use the interface's fib for routing socket
messages.  In nd6_is_new_addr_neighbor, check all FIBs when trying
to determine whether an address is a neighbor.  Also, simplify the
code for point to point interfaces.

sys/netinet6/nd6.h
sys/netinet6/nd6.c
sys/netinet6/nd6_rtr.c
Make defrouter_select fib-aware, and make all of its callers pass in
the interface fib.

sys/netinet6/nd6_nbr.c
When inputting a Neighbor Solicitation packet, consider the
interface fib instead of the default fib for DAD.  Output NS and
Neighbor Advertisement packets on the correct fib.

sys/netinet6/nd6_rtr.c
Allow installing the same host route on different interfaces in
different FIBs.  If rt_add_addr_allfibs=0, only install or delete
the prefix route on the interface fib.

tests/sys/netinet/fibs_test.sh
Clear some expected failures, but add a skip for the newly revealed
BUG217871.

PR: 196361
Submitted by: Erick Turnquist <jhujhiti@adjectivism.org>
Reported by: Jason Healy <jhealy@logn.net>
Reviewed by: asomers
MFC after: 3 weeks
Sponsored by: Spectra Logic Corp
Differential Revision: https://reviews.freebsd.org/D9451

r315656:
Fix back-to-back runs of sys/netinet/fibs_test;slaac_on_nondefault_fib6

This test was failing if run twice because rtadvd takes too long to die.
The rtadvd process from the first run was still running when the
second run created its interfaces.  The solution is to use SIGKILL during
the cleanup instead of SIGTERM so rtadvd will die faster.

While I'm here, randomize the addresses used for the test, which makes bugs
like this easier to spot, and fix the cleanup order to be the opposite of
the setup order

PR: 217871
MFC after: 18 days
X-MFC-With: 315458
Sponsored by: Spectra Logic Corp

7 years agoMFC r316956:
bapt [Mon, 17 Apr 2017 19:08:49 +0000 (19:08 +0000)]
MFC r316956:

Update pci_vendors to 2017.04.03

7 years agoMFC r314987-r314989, r314993-r314994, r315046-r315049, r315102
araujo [Mon, 17 Apr 2017 18:55:54 +0000 (18:55 +0000)]
MFC r314987-r314989, r314993-r314994, r315046-r315049, r315102

r314987:
Use nitems() from sys/param.h.

Reviewed by: asomers
MFC after: 3 weeks.
Differential Revision: https://reviews.freebsd.org/D9944

r314988:
Use nitems() from sys/param.h.

Reviewed by: ume
MFC after: 3 weeks.
Differential Revision: https://reviews.freebsd.org/D9938

r314989:
Use nitems() from sys/param.h and also remove the cast.

Reviewed by: markj
MFC after: 3 weeks.
Differential Revision: https://reviews.freebsd.org/D9937

r314993:
Use nitems() from sys/param.h.

Reviewed by: ngie
MFC after: 3 weeks.
Differential Revision: https://reviews.freebsd.org/D9936

r314994:
Use nitems() from sys/param.h.

Reviewed by: ngie
MFC after: 3 weeks.
Differential Revision: https://reviews.freebsd.org/D9940

r315046:
Use nitems() from sys/param.h

Reviewed by: jhb
MFC after: 3 weeks.
Differential Revision: https://reviews.freebsd.org/D9941

r315047:
Use nitems() from sys/param.h.

Reviewed by: np
MFC after: 3 weeks.
Differential Revision: https://reviews.freebsd.org/D9945

r315048:
Use nitems() from sys/param.h.

MFC after: 3 weeks.

r315049:
Bring back the cast removed in my previous commit to allow us build vmstat
with WARNS 2. This cast was first introduced at r87690.

Reported by: bde, pfg and ngie
MFC after: 3 weeks.

r315102:
Use nitems() from sys/param.h.

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

7 years agoMFC r316686, r316687, r316689
markj [Mon, 17 Apr 2017 16:59:18 +0000 (16:59 +0000)]
MFC r316686, r316687, r316689
Fix a race between vm_map_wire() and vm_map_protect().

7 years agoMFC r316592:
garga [Mon, 17 Apr 2017 13:01:42 +0000 (13:01 +0000)]
MFC r316592:

Introduce libxo support to arp(8)

Reviewed by: wblock, gnn, allanjude, phil
Approved by: allanjude
Sponsored by: Rubicon Communications (Netgate)
Differential Revision: https://reviews.freebsd.org/D9563

7 years agoMFC r316435:
ae [Mon, 17 Apr 2017 09:42:05 +0000 (09:42 +0000)]
MFC r316435:
  Add ipfw_pmod kernel module.

  The module is designed for modification of a packets of any protocols.
  For now it implements only TCP MSS modification. It adds the external
  action handler for "tcp-setmss" action.

  A rule with tcp-setmss action does additional check for protocol and
  TCP flags. If SYN flag is present, it parses TCP options and modifies
  MSS option if its value is greater than configured value in the rule.
  Then it adjustes TCP checksum if needed. After handling the search
  continues with the next rule.

  Obtained from: Yandex LLC
  Relnotes: yes
  Sponsored by: Yandex LLC
  Differential Revision: https://reviews.freebsd.org/D10150

7 years agoMFC r316433:
ae [Mon, 17 Apr 2017 09:38:15 +0000 (09:38 +0000)]
MFC r316433:
  Add the log formatting for an external action opcode.

  Obtained from: Yandex LLC
  Sponsored by: Yandex LLC

7 years agoMFC r316434:
ae [Mon, 17 Apr 2017 09:36:35 +0000 (09:36 +0000)]
MFC r316434:
  Add O_EXTERNAL_DATA opcode support.

  This opcode can be used to attach some data to external action opcode.
  And unlike to O_EXTERNAL_INSTANCE opcode, this opcode does not require
  creating of named instance to pass configuration arguments to external
  action handler. The data is coming just next to O_EXTERNAL_ACTION opcode.

  The userlevel part currenly supports formatting for opcode with ipfw_insn
  size, by default it expects u16 numeric value in the arg1.

  Obtained from: Yandex LLC
  Sponsored by: Yandex LLC

7 years agoMFC r316461:
ae [Mon, 17 Apr 2017 09:34:09 +0000 (09:34 +0000)]
MFC r316461:
  Remove "IPFW static rules" rmlock.

  Make PFIL's lock global and use it for this purpose.
  This reduces the number of locks needed to acquire for each packet.

  Obtained from: Yandex LLC
  Sponsored by: Yandex LLC
  Differential Revision: https://reviews.freebsd.org/D10154

7 years agoMFC r307686:
mmel [Sun, 16 Apr 2017 09:00:10 +0000 (09:00 +0000)]
MFC r307686:

  Use MACHINE_ARCH rather than TARGET_ARCH which has no meaning outside of
  Makefile.inc1

7 years agoMFC r309538:
mmel [Sun, 16 Apr 2017 08:21:14 +0000 (08:21 +0000)]
MFC r309538:

  Fixes for NVIDIA Tegra124 clocks:
   - EMC clock have standard peripheral clock block. Use it.  - Implement full
   frequency set method for PLLD2. This PLL
     is used as HDMI pixel clock so we must be able to set it to wide range of
     frequencies, within 5% tolerance allowed by HDMI specification. Due to
     this, full state space search (over m, n, p fields) is necessary.

7 years agoMFC r308286,r308287:
mmel [Sun, 16 Apr 2017 08:18:37 +0000 (08:18 +0000)]
MFC r308286,r308287:

  r308286:
    TEGRA: Add basic driver for memory controller.  For now, it only reports
    memory and SMMU access errors.
  r308287:
    TEGRA: Fix numerous issues in clock code.  Define and export clocks related
    to XUSB driver.

7 years agoMFC r310593,r310599:
mmel [Sun, 16 Apr 2017 08:07:38 +0000 (08:07 +0000)]
MFC r310593,r310599:

  r310593:
    Fix late monitor hotplug event.  If system starts without attached monitor,
    DRM create framebuffer for VT console. Later, when monitor is attached, the
    hotplug event must issue full modeset procedure to setup CRTC.  In original
    code, this was done in drm_fb_helper_set_par(), but we don't have this
    function implemented yet. Use unrolled version of drm_fb_helper_set_par()
    to ensure same functionality.
  r310599:
    Import drm_patform.c, an implementation of non-PCI based attachment for
    graphics drivers.  It will be used in upcoming driver for Nvidia Tegra
    boards.

7 years agoMFC r309532,r310674:
mmel [Sun, 16 Apr 2017 08:04:01 +0000 (08:04 +0000)]
MFC r309532,r310674:

  r309532:
    Add IDs for HDA codecs found on Nvidia Tegra SoCs.
  r310674:
    Limit number of stripes supported by HDA codec to maximum number announced
    by HDA controller.  Incorrectly implermented HDA codec may report support
    for more stripes that HDA controller already have. Due to this, always
    limit number of enabled stripes by global controller maximum.

7 years agoMFC r309537:
mmel [Sun, 16 Apr 2017 08:01:57 +0000 (08:01 +0000)]
MFC r309537:

  Clock framework fixes:
   - The clk_test_freq() (aka CLK_SET_DRYRUN) doesn't change frequency,
     don't cache it result.
   - Fix busy condition for clk_set_freq().

7 years agoMFC r308612,r308614:
mmel [Sun, 16 Apr 2017 07:58:41 +0000 (07:58 +0000)]
MFC r308612,r308614:

  r308612:
    Allow DRM2 code to be built on platforms without AGP.  This patch is taken
    from original drm-3.8 code.
  r308614:
    Allow embeding DRM2 code into kernel.  It's usefull for development (for
    netboot) and it also helps to boot FreeBSD on some embeded platforms (where
    we must boot kernel directly, without standard boot loader).

7 years agoMFC r306703:
mmel [Sun, 16 Apr 2017 07:43:29 +0000 (07:43 +0000)]
MFC r306703:

  ARM: Disconnect elf_trampoline.c from ARMv6 build.  The trampoline code never
  functioned properly for Cortex CPUs, and its functionality is already
  provided by ubldr.

7 years agoMFC r306442,r306444,r306445,r306550:
mmel [Sun, 16 Apr 2017 07:41:30 +0000 (07:41 +0000)]
MFC r306442,r306444,r306445,r306550:

  r306442:
    TEGRA: Add support for MULTIDELAY option.
  r306444:
    TEGRA: Don't include files already included by system or arch configs.
  r306445:
    TEGRA: Return back kern_clocksource.c into tegra config file. It was
    removed in r306444 by mistake.
  r306550:
    TEGRA: Extend timeout for PLLs lock to 5 ms. Real lock time for PLLA has
    been very near to old limit.

7 years agoMFC r315900,r315973,r315974:
mmel [Sun, 16 Apr 2017 07:33:47 +0000 (07:33 +0000)]
MFC r315900,r315973,r315974:

  r315900:
    Cleanup structures related to VFP and/or mcontext_t.  - in mcontext_t,
    rename newer used 'union __vfp' to equaly sized 'mc_spare'.
      Space allocated by 'union __vfp' is too small and cannot hold full VFP
      context.
    - move structures defined in fp.h to more appropriate headers.  - remove
    all unused VFP structures.
  r315973:
    Save VFP state on fork().  Update the copy of VFP state in PCB before it is
    cloned for new process.
  r315974:
    Preserve VFP state across signal delivery.

7 years agoMFC r303261,r315059:
mmel [Sun, 16 Apr 2017 07:21:20 +0000 (07:21 +0000)]
MFC r303261,r315059:

  r303261:
    Add more UEFI/e820 memory types from latest specifications.
  r315059:
    Split overbloated machep.c to multiple files and do basic cleanup of these
    fragments.

7 years agoMFC r306704,r308406:
mmel [Sun, 16 Apr 2017 06:51:06 +0000 (06:51 +0000)]
MFC r306704,r308406:

  r306704:
    ARM: Remove next bunch of unused cpu_functions from ARMv6.
  r308406:
    Only include sys/boot.h if LINUX_BOOT_ABI is defined

7 years agoMFC r306631,r306640,r306641,r306650,r306656:
mmel [Sun, 16 Apr 2017 06:35:09 +0000 (06:35 +0000)]
MFC r306631,r306640,r306641,r306650,r306656:

  r306631:
    Use C99 designated initializers to create the armv6 cpu_functions structs.
    This will help with a later cleanup of what functions we implement.
  r306640:
    Only define the CF_* macros on ARMv4/v5. They are unused on armv6.
  r306641:
    Remove the parts of cpu_functions from armv6 that are unused on that
    architecture.
  r306650:
    Add the Cortex-A{53,57,72} ID register values. These can all run 32-bit
    code so could run a 32-bit kernel.
  r306656:
    Use the cortex functions when booting on one of the Cortex-A ARMv8 CPUs.
    This list is incomplete, however we don't have the ID values for the
    missing Cortex-A32 or A35.

7 years agoMFC r316427, r316428: Add Log directory and SATA NCQ Send and Receive Log.
mav [Sun, 16 Apr 2017 05:59:29 +0000 (05:59 +0000)]
MFC r316427, r316428: Add Log directory and SATA NCQ Send and Receive Log.

Those are used at least by Linux guests to detect queued TRIM support.

7 years agoMFC r313873:
mmel [Sun, 16 Apr 2017 05:17:48 +0000 (05:17 +0000)]
MFC r313873:

  Publish fp[get][set]sticky() for ARMv6.

7 years agoMFC r313823,r313866:
mmel [Sun, 16 Apr 2017 05:14:42 +0000 (05:14 +0000)]
MFC r313823,r313866:

  r313823:
    Pull in r285478 from upstream compiler-rt trunk (by Saleem Abdulrasool):
  r313866:
    Publish __aeabi_uidiv and __aeabi_idiv as compatible symbols from libc.

7 years agoMFC r315501:
dchagin [Sat, 15 Apr 2017 15:38:15 +0000 (15:38 +0000)]
MFC r315501:

To reduce code duplication move socket defines to the MI path.

7 years agoMFC r316395:
dchagin [Sat, 15 Apr 2017 15:32:22 +0000 (15:32 +0000)]
MFC r316395:

Remove excess tv_nsec test as this is done by linux_to_native_timespec().

7 years agoMFC r316394:
dchagin [Sat, 15 Apr 2017 15:31:28 +0000 (15:31 +0000)]
MFC r316394:

The value in the tv_nsec field should be in the range 0 to 999999999.

7 years agoMFC r316393:
dchagin [Sat, 15 Apr 2017 15:30:28 +0000 (15:30 +0000)]
MFC r316393:

As noted by bde@ negative tv_sec values are not checked for overflow,
so overflow can still occur. Fix that. Also remove the extra check for
tv_sec size as under COMPAT_LINUX32 it is always true.

7 years agoMFC r315498:
dchagin [Sat, 15 Apr 2017 15:29:16 +0000 (15:29 +0000)]
MFC r315498:

Check for negative nanoseconds.
Linux do that in timespec_valid().

7 years agoMFC r316599:
dchagin [Sat, 15 Apr 2017 15:15:42 +0000 (15:15 +0000)]
MFC r316599:

Prevent ushort values overflow when convert new Linux 64-bit ipc
struct to the old Linux ipc struct.

7 years agoMFC r314868:
dchagin [Sat, 15 Apr 2017 15:13:54 +0000 (15:13 +0000)]
MFC r314868:

Linux semop system call return EINVAL in case when the invalid nsops
or semid values specified.

7 years agoMFC r314867:
dchagin [Sat, 15 Apr 2017 15:12:25 +0000 (15:12 +0000)]
MFC r314867:

Linux kernel does not export to the user space ipc_perm.mode values
other than S_IRWXUGO (0777).

7 years agoMFC r314866:
dchagin [Sat, 15 Apr 2017 15:11:23 +0000 (15:11 +0000)]
MFC r314866:

Reduce code duplication between MD Linux code by moving SYSV IPC 64-bit
related struct definitions out into the MI path.

Invert the native ipc structs to the Linux ipc structs convesion logic.
Since 64-bit variant of ipc structs has more precision convert native ipc
structs to the 64-bit Linux ipc structs and then truncate 64-bit values
into the non 64-bit if needed. Unlike Linux, return EOVERFLOW if the
values do not fit.

Fix SYSV IPC for 64-bit Linuxulator which never sets IPC_64 bit.

7 years agoMFC r314648:
dchagin [Sat, 15 Apr 2017 15:09:23 +0000 (15:09 +0000)]
MFC r314648:

Style(9).

7 years agoMFC r314647:
dchagin [Sat, 15 Apr 2017 15:08:23 +0000 (15:08 +0000)]
MFC r314647:

Remove attribute __packed from some IPC struct definition since
Linuxulator is x86 only.
The only notable differences in algnment for an LP64 64-bit system
when compared to a 32-bit system is an eight or large byte types
alignment.

7 years agoMFC r315948:
dchagin [Sat, 15 Apr 2017 11:13:11 +0000 (11:13 +0000)]
MFC r315948:

Update tcsh to 6.20.00

MFC r315952:

Update tcsh to vendor git b605cb561d

Vendor changes:

1. PR/471: Daiki Ueno: Delay interpreting arginp until we've processed
our startup files (which can change the NLS environment).

2. Fix type of read in prompt confirmation (eg. rmstar) (David Kaspar).

3. Fix out of bounds read (Brooks Davis)
(reproduce by starting tcsh and hitting tab at the prompt).

4. Don't play pointer tricks that are undefined in modern c
(Brooks Davis).

7 years agoMFC 316644:
avatar [Sat, 15 Apr 2017 09:33:42 +0000 (09:33 +0000)]
MFC 316644:

Trying to be more compatible with Linux if.h definitions:
- renaming l_ifreq::ifru_metric to l_ifreq::ifru_ivalue;
- adding a definition for ifr_ifindex which points to l_ifreq::ifru_ivalue.

A quick search indicates that Linux already got the above changes since 2.1.14.

Reviewed by: kib, marcel, dchagin

7 years agoMFC r316313, r316328:
smh [Fri, 14 Apr 2017 22:02:08 +0000 (22:02 +0000)]
MFC r316313, r316328:

Allow explicitly assigned IPv4 & IPv6 loopback addresses to be used in
jails.

Relnotes: Yes
Sponsored by: Multiplay

7 years agoMFC r303863:
smh [Fri, 14 Apr 2017 21:49:20 +0000 (21:49 +0000)]
MFC r303863:

Move IPv4 & IPv6 specific jail functions to netinet and netinet6 files.

Sponsored by: Multiplay

7 years agoMFC r315852: zfs: add zio_buf_alloc_nowait and use it in vdev_queue_aggregate
avg [Fri, 14 Apr 2017 15:09:23 +0000 (15:09 +0000)]
MFC r315852: zfs: add zio_buf_alloc_nowait and use it in vdev_queue_aggregate

7 years agoMFC r315853: zfs_putpages: use TXG_WAIT
avg [Fri, 14 Apr 2017 15:07:50 +0000 (15:07 +0000)]
MFC r315853: zfs_putpages: use TXG_WAIT

7 years agoMFC r315858: aacraid: rework r315083 for a clean build with and without AACRAID_DEBUG
avg [Fri, 14 Apr 2017 15:06:16 +0000 (15:06 +0000)]
MFC r315858: aacraid: rework r315083 for a clean build with and without AACRAID_DEBUG

7 years agoMFC r316017,r316020: add SMT detection for newer AMD processors
avg [Fri, 14 Apr 2017 14:48:55 +0000 (14:48 +0000)]
MFC r316017,r316020: add SMT detection for newer AMD processors

7 years agoMFC r315960: dtrace sched:::preempt should fire only when there is preemption
avg [Fri, 14 Apr 2017 14:45:39 +0000 (14:45 +0000)]
MFC r315960: dtrace sched:::preempt should fire only when there is preemption

7 years agoMFC r315851: move thread switch tracing from mi_switch to sched_switch
avg [Fri, 14 Apr 2017 14:44:00 +0000 (14:44 +0000)]
MFC r315851: move thread switch tracing from mi_switch to sched_switch

7 years agoMFC r315078: uma: fix pages <-> items conversions at several places
avg [Fri, 14 Apr 2017 14:34:48 +0000 (14:34 +0000)]
MFC r315078: uma: fix pages <-> items conversions at several places

7 years agoMFC r315077: uma: eliminate uk_slabsize field
avg [Fri, 14 Apr 2017 14:11:49 +0000 (14:11 +0000)]
MFC r315077: uma: eliminate uk_slabsize field

7 years agoMFC r314638: add a module that provides support for DRAM ECC error injection
avg [Fri, 14 Apr 2017 14:05:40 +0000 (14:05 +0000)]
MFC r314638: add a module that provides support for DRAM ECC error injection
on AMD CPUs

7 years agoMFC r314636,r314700: MCA: add AMD Error Thresholding support
avg [Fri, 14 Apr 2017 14:03:50 +0000 (14:03 +0000)]
MFC r314636,r314700: MCA: add AMD Error Thresholding support

7 years agoMFC r314398: Local APIC: add support for extended LVT entries found in AMD processors
avg [Fri, 14 Apr 2017 14:01:35 +0000 (14:01 +0000)]
MFC r314398: Local APIC: add support for extended LVT entries found in AMD processors

7 years agoMFC r316593:
brooks [Fri, 14 Apr 2017 00:13:33 +0000 (00:13 +0000)]
MFC r316593:

Point out that -F probably does not do what the user expects.

Users attempting to create images from mtree METALOG files created by
installworld often use -F when they should be passing the METALOG file
in place of a directory. This is often produces difficult to debug
error reports.

Reviewed by: emaste
Sponsored by: DARPA, AFRL

7 years agoMFC r316066:
bdrewery [Thu, 13 Apr 2017 20:36:22 +0000 (20:36 +0000)]
MFC r316066:

  Release ccb if mode_buffer allocation fails.

7 years agoMFC r315459:
bdrewery [Thu, 13 Apr 2017 20:35:33 +0000 (20:35 +0000)]
MFC r315459:

  kmod: Fix depending on ILINKS for tracked DEPENDOBJS.

7 years agoMFC r315461:
bdrewery [Thu, 13 Apr 2017 20:34:52 +0000 (20:34 +0000)]
MFC r315461:

  META_MODE: Fix not using .depend files when no OBJDIR is present.

7 years agoMFC r315691:
bdrewery [Thu, 13 Apr 2017 20:33:10 +0000 (20:33 +0000)]
MFC r315691:

  Rename _cc to _gcc to be more clear.

7 years agoMFC r315211:
bdrewery [Thu, 13 Apr 2017 20:32:18 +0000 (20:32 +0000)]
MFC r315211:

  hier(7): Fix entry location for /usr/share/vt.

7 years agoMFC r315460:
bdrewery [Thu, 13 Apr 2017 20:31:23 +0000 (20:31 +0000)]
MFC r315460:

  kmod: Fix building assym.o not building missing dependencies.

7 years agoTemporarily revert r315602.
pfg [Thu, 13 Apr 2017 18:28:40 +0000 (18:28 +0000)]
Temporarily revert r315602.
Bring back the definition for the GCC __nonnull() attribute.

Old versions of GCC, including the version installed the latest 11-stable
snapshot with pkg(8), still carry the old attributes.

The issue is easily fixed by rebuilding GCC but there is no need to cause
havoc in our user base. The definition by itself is harmless but it should
be removed again in the near future.

7 years agoMFC r314671 (by cem):
dim [Thu, 13 Apr 2017 17:11:50 +0000 (17:11 +0000)]
MFC r314671 (by cem):

newfs_nandfs: Fix unaligned pointer warning

PR: 217532
Submitted by: Trond Endrestol <Trond.Endrestol at ximalas.info>

7 years agoMFC r316695, MFV r316693:
pfg [Thu, 13 Apr 2017 15:39:42 +0000 (15:39 +0000)]
MFC r316695, MFV r316693:
8046 Let calloc() do the multiplication in libzfs_fru_refresh

https://github.com/illumos/illumos-gate/commit/5697e03e6e3e2697f56ae341c7c8ce79680d6a2e

https://www.illumos.org/issues/8046

Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Paul Dagnelie <pcd@delphix.com>
Approved by: Robert Mustacchi <rm@joyent.com>
Author: Pedro Giffuni <pfg@freebsd.org>

7 years agoMFC r316566:
kib [Thu, 13 Apr 2017 08:21:29 +0000 (08:21 +0000)]
MFC r316566:
Remove spl*() calls from the nfsclient code.

7 years agoMFC r316284: elfcopy: remove temporary ELF file when converting from binary
emaste [Thu, 13 Apr 2017 01:36:51 +0000 (01:36 +0000)]
MFC r316284: elfcopy: remove temporary ELF file when converting from binary

Previously a command like

  objcopy --input-target binary --output-target elf64-x86-64-freebsd \
    binary_file object.o

would leave a temporary file behind.

ELF Tool Chain ticket #543

7 years agoMFC r316528:
kib [Wed, 12 Apr 2017 09:22:02 +0000 (09:22 +0000)]
MFC r316528:
Add V_VMIO flag for vinvalbuf(9).

7 years agoMFC r316526:
kib [Wed, 12 Apr 2017 09:20:02 +0000 (09:20 +0000)]
MFC r316526:
Extract calculation of ioflags from the vm_pager_putpages flags into a
helper.

7 years agoMFC r316525:
kib [Wed, 12 Apr 2017 09:13:38 +0000 (09:13 +0000)]
MFC r316525:
Some style fixes for vnode_pager_generic_putpages(), in the local
declaration block.

7 years agoMFC r316524:
kib [Wed, 12 Apr 2017 09:11:16 +0000 (09:11 +0000)]
MFC r316524:
Use int instead of boolean_t for flags argument type in
vnode_pager_generic_putpages() prototype; change the argument name to
reflect that it is flags.

7 years agoMFC r306829, r310286, r311695:
markj [Tue, 11 Apr 2017 18:48:17 +0000 (18:48 +0000)]
MFC r306829, r310286, r311695:
Lock the ND prefix list and add refcounting for prefixes.

7 years agoMFC r309591:
markj [Tue, 11 Apr 2017 17:36:19 +0000 (17:36 +0000)]
MFC r309591:
Fix style bugs and remove trailing whitespace in libproc and librtld_db.

7 years agoMFC r315208:
markj [Tue, 11 Apr 2017 17:28:23 +0000 (17:28 +0000)]
MFC r315208:
Fix a backwards comparison in the code to dump a DTrace debug buffer.

7 years agoMFC r316032:
markj [Tue, 11 Apr 2017 17:17:05 +0000 (17:17 +0000)]
MFC r316032:
Refine r301173 a bit.

7 years agoMFC r316036:
markj [Tue, 11 Apr 2017 17:16:15 +0000 (17:16 +0000)]
MFC r316036:
Typo.

7 years agoMFC r316175:
markj [Tue, 11 Apr 2017 17:15:39 +0000 (17:15 +0000)]
MFC r316175:
Avoid sleeping when the mirror I/O queue is non-empty.

7 years agoMFC r315289:
markj [Tue, 11 Apr 2017 17:13:56 +0000 (17:13 +0000)]
MFC r315289:
When draining a callout, don't clear CALLOUT_ACTIVE while it is running.

7 years agoMFC r316637-r316638
bapt [Tue, 11 Apr 2017 16:32:46 +0000 (16:32 +0000)]
MFC r316637-r316638

r316637:
When passingthrough from sdiff to diff the -H/--speed-large-files
options rename it to the long version as GNU diff only support the long
version of the option not the short version

r316638:
Remove a useless loop over the long options before passing through some
options to diff(1)

7 years agoMFC 314783:
mmokhi [Tue, 11 Apr 2017 13:42:26 +0000 (13:42 +0000)]
MFC 314783:

Regenerated Linuxulator syscall tables for r314782

Approved by: trasz

7 years agoMFC r314782:
mmokhi [Tue, 11 Apr 2017 12:49:25 +0000 (12:49 +0000)]
MFC r314782:

Add UNIMPLEMENTED() placeholder macro for
the syscalls that are not implemented in Linux kernel itself.
Cleanup DUMMY() macros.

Approved by: trasz

7 years agoMFC r316490:
ae [Tue, 11 Apr 2017 07:40:43 +0000 (07:40 +0000)]
MFC r316490:
  When we are doing SA lookup for TCP-MD5, check both source and
  destination addresses. Previous code has used only destination address
  for lookup. But for inbound packets the source address was used as SA
  destination address. Thus only outbound SA were used for both directions.
  Now we use addresses from a packet as is, thus SAs for both directions are
  needed.

  Reported by: Mike Tancsa

MFC r316507,316508:
  In the example section show that TCP-MD5 connection needs SA for both
  directions.
  Use unique SPI.

7 years agoMFC r316617:
gjb [Mon, 10 Apr 2017 16:09:19 +0000 (16:09 +0000)]
MFC r316617:
 - Increase the image size for RPI2 and IMX6-based boards from 1G
   to 1.5G.
 - Use the 'conv=sync' dd(1) option to fix writing the u-boot.imx
   file to the md(4) device for IMX6-based boards.

Sponsored by: The FreeBSD Foundation

7 years agoMFC 316520
sephe [Mon, 10 Apr 2017 05:17:18 +0000 (05:17 +0000)]
MFC 316520

    hyperv/hn: Fixat RNDIS rxfilter after the successful RNDIS init.

    Under certain conditions on certain versions of Hyper-V, the RNDIS
    rxfilter is _not_ zero on the hypervisor side after the successful
    RNDIS initialization, which breaks the assumption of any following
    code (well, it breaks the RNDIS API contract actually).  Clear the
    RNDIS rxfilter explicitly, drain packets sneaking through, and drain
    the interrupt taskqueues scheduled due to the stealth packets.

    Reported by:    dexuan@
    Sponsored by:   Microsoft
    Differential Revision:  https://reviews.freebsd.org/D10230

7 years agoMFC 316519
sephe [Mon, 10 Apr 2017 04:59:44 +0000 (04:59 +0000)]
MFC 316519

    hyperv/storvsc: Fixup SRB status.

    This unbreaks GEN2 Hyper-V cd support.

    Submitted by:   Hongjiang Zhang <honzhan microsoft com>
    Reviewed by:    dexuan@
    Sponsored by:   Microsoft
    Differential Revision:  https://reviews.freebsd.org/D10212

7 years agoFix reference count leak with L2 caching.
karels [Mon, 10 Apr 2017 01:26:12 +0000 (01:26 +0000)]
Fix reference count leak with L2 caching.

MFC r315956

ip_forward, TCP/IPv6, and probably SCTP leaked references to L2 cache
entry because they used their own routes on the stack, not in_pcb routes.
The original model for route caching was callers that provided a route
structure to ip{,6}input() would keep the route, and this model was used
for L2 caching as well. Instead, change L2 caching to be done by default
only when using a route structure in the in_pcb; the pcb deallocation
code frees L2 as well as L3 cacches. A separate change will add route
caching to TCP/IPv6.

Another suggestion was to have the transport protocols indicate willingness
to use L2 caching, but this approach keeps the changes in the network
level

Reviewed by:    ae gnn
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D10059

7 years agoMFC r313959:
trasz [Sun, 9 Apr 2017 19:30:49 +0000 (19:30 +0000)]
MFC r313959:

Add USB Mass Storage CTL frontend.  This makes it possible
for USB OTG-capable hardware to implement device side of USB
Mass Storage, ie pretend it's a flash drive.  It's configured
in the same way as other CTL frontends, using ctladm(8)
or ctld(8).  Differently from usfs(4), all the configuration
can be done without rebuilding the kernel.

Testing and review is welcome.  Right now I'm still moving,
and I don't have access to my test environment, so I'm somewhat
reluctant to making larger changes to this code; on the other
hand I don't want to let it sit on Phab until my testing setup
is back, because I want to get it into 11.1-RELEASE.

Relnotes: yes
Sponsored by: The FreeBSD Foundation

7 years agoMFC r316412: Add IDs for Intel Cougar Point USB 2.0 controller.
mav [Sun, 9 Apr 2017 06:44:01 +0000 (06:44 +0000)]
MFC r316412: Add IDs for Intel Cougar Point USB 2.0 controller.

7 years agoMFC r316355
kp [Sat, 8 Apr 2017 09:48:21 +0000 (09:48 +0000)]
MFC r316355

pf: Fix leak of pf_state_keys

If we hit the state limit we returned from pf_create_state() without cleaning
up.

PR: 217997
Submitted by: Max <maximos@als.nnov.ru>

7 years agoMFC r314561:
gjb [Fri, 7 Apr 2017 16:08:54 +0000 (16:08 +0000)]
MFC r314561:
 Increase the EC2 image size.  The recent snapshot builds of EC2
 images for 12-CURRENT (and now 11-STABLE) failed due to a full
 filesystem on the md(4) device during creation.

Sponsored by: The FreeBSD Foundation

7 years agoMFC r315162:
pfg [Fri, 7 Apr 2017 16:08:04 +0000 (16:08 +0000)]
MFC r315162:
libc: provide some bounds-checking through reallocarray(3).

reallocarray(3) is a non portable extension that originated in OpenBSD.
Given that it is already in FreeBSD's libc it is useful for the cases
where reallocation involves a multiplication.

7 years agoMFC r316329:
ae [Fri, 7 Apr 2017 10:45:28 +0000 (10:45 +0000)]
MFC r316329:
  Reset the cached state of last lookup in the dynamic states when an
  external action is completed, but the rule search is continued.

  External action handler can change the content of @args argument,
  that is used for dynamic state lookup. Enforce the new lookup to be able
  install new state, when the search is continued.

  Obtained from: Yandex LLC
  Sponsored by: Yandex LLC

7 years agoMFC 316283:
n_hibma [Fri, 7 Apr 2017 09:13:26 +0000 (09:13 +0000)]
MFC 316283:

Allow superseding the lease renewal and rebind times.

Also make sure that the renewal is never more than 1/2 * expiry and
rebind never more than 7/4 * renewal (the default values in the spec).
This should allow adjusting high values from the server as well as
making sure the values from the server make sense.

Renewal and rebind times will be adjusted down if the expiry time is set
very high in a server, not the other way around. This change just makes
sure the values keep making sense.

and 316285:

Make dhcp-lease-time option supersedable as well.

Note: It is not recommended to set this value to above the value that
the server provided, unless that value is bogus.