]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
9 years agoMFC r262626, r262626, r264979, r265154, r265162, r265163, r267319, r270863,
ian [Mon, 27 Oct 2014 00:47:55 +0000 (00:47 +0000)]
MFC r262626, r262626, r264979, r265154, r265162, r265163, r267319, r270863,
    r270991, r271045:

  Enhancements related to compiling FDT data...

 - Use proper include path for dtc as well as cpp.
 - Call cpp with -P to avoid printing line markings.
 - Allow FDT_DTS_FILE to be a list, either in the makedtb target, or in a
   kernel config file.
 - Add the dts include directory to the -I list when doing arm builds.
 - Invoke make_dtb with MACHINE defined for cross building friendliness.
 - Allow the make_dtb script to work outside of a "make buildkernel"
   context by setting MACHINE from uname -m if it's not set already.
 - Use sh -c '...' to launch the dtb build scripts with env prepended,
   otherwise it tries to treat the env var stuff as a script file name.

git-svn-id: svn://svn.freebsd.org/base/stable/10@273715 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271143, r271151: Reimport dts from vendor branch after proper trim.
ian [Sun, 26 Oct 2014 23:45:33 +0000 (23:45 +0000)]
MFC r271143, r271151:  Reimport dts from vendor branch after proper trim.

git-svn-id: svn://svn.freebsd.org/base/stable/10@273714 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 271140:
ian [Sun, 26 Oct 2014 23:39:15 +0000 (23:39 +0000)]
MFC 271140:

  Delete old arm dts tree. This was created by cherry picking from a
  full vendor tree. This worked great until it was time to update, but
  now it is time to update. Hit the rest button by removing this branch
  and re-adding it by a full copy of whatever is in the vendor tree.

git-svn-id: svn://svn.freebsd.org/base/stable/10@273713 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r262606, r262607, r262608, r262609, r262610, r269528, r269609, r271133:
ian [Sun, 26 Oct 2014 23:37:24 +0000 (23:37 +0000)]
MFC r262606, r262607, r262608, r262609, r262610, r269528, r269609, r271133:

 - Move imported dts source from sys/contrib/dts/ to sys/gnu/dts.
 - Fix some missing properties.
 - Import dts-related header files.
 - Update everything to latest vendor branch representing 3.17-rc2
   level of Linux DTS API.

git-svn-id: svn://svn.freebsd.org/base/stable/10@273712 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r272528: Make kevent(2) periodic timer events more reliably periodic.
ian [Sun, 26 Oct 2014 18:46:03 +0000 (18:46 +0000)]
MFC r272528:  Make kevent(2) periodic timer events more reliably periodic.

git-svn-id: svn://svn.freebsd.org/base/stable/10@273705 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r273653:
gjb [Sun, 26 Oct 2014 17:14:57 +0000 (17:14 +0000)]
MFC r273653:
  Fix a few issues with creating VOLUME_LABEL for the
  installation ISOs:

   - TYPE, BRANCH, and REVISION are only defined if
     OSRELEASE is not defined, so in situations where
     one might set OSRELEASE for an in-house ISO build,
     VOLUME_LABEL would be empty.

   - makefs(8) limits the volume label to 32 characters,
     which for the powerpc64 case, OSRELEASE expands to
     FreeBSD-11.0-CURRENT-powerpc-powerpc64.  Even with
     removing the prefixing 'FreeBSD-', the string is 30
     characters long, leaving zero room for suffixing the
     type of ISO media (BO for bootonly, CD for cdrom, and
     DVD for dvdrom).

  Resolve these by defining VOLUME_LABEL when defining
  OSRELEASE if unset.  If OSRELEASE is defined by the
  builder, use the OSRELEASE from that definition as the
  VOLUME_LABEL.

  In addition, for cases where both TARGET and TARGET_ARCH
  are used for the VOLUME_LABEL, use TARGET_ARCH if it
  differs from TARGET.

  There are probably a few sharp edges here yet, but these
  problems are going to affect the powerpc/powerpc64 builds
  for 10.1-RELEASE, so the immediate concern is fixing the
  underlying problem at hand quickly, and less so about the
  elegance of the fix.

Insta-MFC ok: re (kib)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@273698 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r273590: Accept documented compatible string for PL310 cache controller/
ian [Sun, 26 Oct 2014 16:09:59 +0000 (16:09 +0000)]
MFC r273590: Accept documented compatible string for PL310 cache controller/

git-svn-id: svn://svn.freebsd.org/base/stable/10@273695 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r273561:
ian [Sun, 26 Oct 2014 16:02:35 +0000 (16:02 +0000)]
MFC r273561:

  Install a temporary workaround to avoid problems in fdt data with linux's
  workaround for an imx6 chip erratum by using gpio1_6 as an interrupt.

git-svn-id: svn://svn.freebsd.org/base/stable/10@273694 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r273281:
rpaulo [Sun, 26 Oct 2014 07:07:54 +0000 (07:07 +0000)]
MFC r273281:
 Style changes as pointed out by stas@.

git-svn-id: svn://svn.freebsd.org/base/stable/10@273686 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r273353, r273514:
ian [Sun, 26 Oct 2014 04:17:20 +0000 (04:17 +0000)]
MFC r273353, r273514:

  Attach the imx6 CCM driver during BUS_PASS_CPU.

  Unconditionally enable the clocks for all imx6 devices that we have drivers
  for, or that are required to run the chip (such as busses).

git-svn-id: svn://svn.freebsd.org/base/stable/10@273682 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r273352: Ask for the fastest available clock for the GTP timecounter.
ian [Sun, 26 Oct 2014 04:15:27 +0000 (04:15 +0000)]
MFC r273352:  Ask for the fastest available clock for the GTP timecounter.

git-svn-id: svn://svn.freebsd.org/base/stable/10@273681 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r273298:
ian [Sun, 26 Oct 2014 04:13:08 +0000 (04:13 +0000)]
MFC r273298:

  The U-Boot README says fdt_addr_r is the right env var for fdt data
  loaded into ram, but vendors also use fdtaddr and fdt_addr.  Check the
  recommended variable first and fall back to the others.

git-svn-id: svn://svn.freebsd.org/base/stable/10@273680 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r273283:
ian [Sun, 26 Oct 2014 04:11:32 +0000 (04:11 +0000)]
MFC r273283:

  Attach this driver during BUS_PASS_BUS and move the cpu init code to a
  bus_new_pass() handler so it doesn't happen until BUS_PASS_CPU.  This allows
  the anatop driver to outbid the generic simplebus driver (which the FDT
  data describes as compatible).

git-svn-id: svn://svn.freebsd.org/base/stable/10@273679 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r273282: Fail to probe on simplebus nodes that lack a "ranges" property.
ian [Sun, 26 Oct 2014 04:10:17 +0000 (04:10 +0000)]
MFC r273282:  Fail to probe on simplebus nodes that lack a "ranges" property.

git-svn-id: svn://svn.freebsd.org/base/stable/10@273678 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r272334, r273004:
ian [Sun, 26 Oct 2014 04:08:34 +0000 (04:08 +0000)]
MFC r272334, r273004:

  Return the actual baud rate programmed in the hardware rather than 115200.
  This allows the "3wire" entry in /etc/ttys (with no speed specified) to work.

  Use the FIFOs in the imx5/imx6 uart hardware instead of interrupting on
  each byte sent or received.

git-svn-id: svn://svn.freebsd.org/base/stable/10@273677 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r272333: Honor exclusion flags when building the memory lists.
ian [Sun, 26 Oct 2014 04:06:29 +0000 (04:06 +0000)]
MFC r272333:  Honor exclusion flags when building the memory lists.

git-svn-id: svn://svn.freebsd.org/base/stable/10@273676 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r272109, r272181:
ian [Sun, 26 Oct 2014 04:01:57 +0000 (04:01 +0000)]
MFC r272109, r272181:

  Replace multiple nearly-identical copies of code to walk through an FDT
  node's interrupts=<...> property creating resource list entries with a
  single common implementation.  This change makes ofw_bus_intr_to_rl() the
  one true copy of that code and removes the copies of it from other places.

  This also adds handling of the interrupts-extended property.

git-svn-id: svn://svn.freebsd.org/base/stable/10@273675 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271907: Add a man page for the cgem(4) driver.
ian [Sun, 26 Oct 2014 03:55:55 +0000 (03:55 +0000)]
MFC r271907:  Add a man page for the cgem(4) driver.

git-svn-id: svn://svn.freebsd.org/base/stable/10@273674 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271906:
ian [Sun, 26 Oct 2014 03:55:09 +0000 (03:55 +0000)]
MFC r271906:

  Make the ARM MPCore Timer driver work with published standard FDT bindings.

git-svn-id: svn://svn.freebsd.org/base/stable/10@273673 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271595, r271601, r271607, r271630:
ian [Sun, 26 Oct 2014 03:52:45 +0000 (03:52 +0000)]
MFC r271595, r271601, r271607, r271630:

  Add compat strings for all the flavors of GIC this driver should support.
  Also allow the driver to attach to ofwbus as well as simplebus, some FDT
  data puts the root interrupt controller on the root bus.

  Add a common routine for parsing FDT data describing an ARM GIC interrupt.

  Use gic_decode_fdt() rather than a local routine to parse fdt interrupt
  properties.  Move fdt_pic_table and fdt_fixup_table into imx6_machdep.c,
  which means imx6 doesn't need imx_common.c anymore.

  The private peripheral interrupts start at offset 16, not 0.  Also, use
  names rather than inline mystery constants for these offsets.

git-svn-id: svn://svn.freebsd.org/base/stable/10@273672 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271594:
ian [Sun, 26 Oct 2014 03:48:12 +0000 (03:48 +0000)]
MFC r271594:

 Fix an undefined variable that was accidentally not causing an error.

git-svn-id: svn://svn.freebsd.org/base/stable/10@273671 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271550, r271591:
ian [Sun, 26 Oct 2014 03:44:19 +0000 (03:44 +0000)]
MFC r271550, r271591:

  Replace the imx5 and imx6 iomux drivers with a single common driver that
  uses the new fdt_pinctrl interface.

git-svn-id: svn://svn.freebsd.org/base/stable/10@273670 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 271546:
ian [Sun, 26 Oct 2014 03:41:27 +0000 (03:41 +0000)]
MFC 271546:

  Create an interface and support routines for drivers that handle IO pin
  multiplexing and configuration based on FDT data.

git-svn-id: svn://svn.freebsd.org/base/stable/10@273669 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271535:
ian [Sun, 26 Oct 2014 03:29:06 +0000 (03:29 +0000)]
MFC r271535:

  Make inclusion of fdt clock support conditional on fdt_clock, not just fdt.

git-svn-id: svn://svn.freebsd.org/base/stable/10@273668 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271310:
ian [Sun, 26 Oct 2014 03:13:19 +0000 (03:13 +0000)]
MFC r271310:

  Rename new to newval in inline asm code, to avoid clashes with C++ new.

git-svn-id: svn://svn.freebsd.org/base/stable/10@273667 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271285:
ian [Sun, 26 Oct 2014 02:53:23 +0000 (02:53 +0000)]
MFC r271285:

  Add a 'ubenv import' command to import environment variables from the
  u-boot env into the loader(8) env (which also gets them into the kernel
  env).

git-svn-id: svn://svn.freebsd.org/base/stable/10@273665 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r266878, r266879: Add support for snprintf() to libstand.
ian [Sun, 26 Oct 2014 02:51:56 +0000 (02:51 +0000)]
MFC r266878, r266879: Add support for snprintf() to libstand.

git-svn-id: svn://svn.freebsd.org/base/stable/10@273664 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271097, r271100, r271101, r271102, r271124:
ian [Sun, 26 Oct 2014 02:44:41 +0000 (02:44 +0000)]
MFC r271097, r271100, r271101, r271102, r271124:

 - Add a basic iomux driver for imx6.
 - Implement the same public interface in imx51 and imx6 iomux
 - The iomux driver is no longer optional, remove it from kernel configs.
 - Implement the imx_iomux_get/set_gpr() interface for imx6.
 - Stop setting the iomux device status to disabled, now that we have a driver.

git-svn-id: svn://svn.freebsd.org/base/stable/10@273663 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r268973, r268977: Rename i.MX I2C driver file, enable it on imx6.
ian [Sun, 26 Oct 2014 02:40:34 +0000 (02:40 +0000)]
MFC r268973, r268977: Rename i.MX I2C driver file, enable it on imx6.

git-svn-id: svn://svn.freebsd.org/base/stable/10@273662 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r268834, r268835:
ian [Sun, 26 Oct 2014 02:37:42 +0000 (02:37 +0000)]
MFC r268834, r268835:

 o Enable GPIO device driver for i.MX6.
   It was originally written for i.MX5 and compatible with newer chip.
 o Extend device tree information
 o style(9) fixes
 o Rename gpio driver file.

git-svn-id: svn://svn.freebsd.org/base/stable/10@273661 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271057: Create a /boot/dtb directory to house DTB blobs.
ian [Sun, 26 Oct 2014 02:27:10 +0000 (02:27 +0000)]
MFC r271057: Create a /boot/dtb directory to house DTB blobs.

git-svn-id: svn://svn.freebsd.org/base/stable/10@273660 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271055, r271084, r271094:
ian [Sun, 26 Oct 2014 02:25:34 +0000 (02:25 +0000)]
MFC r271055, r271084, r271094:

  Add a function to get the frequency of the AHB bus.  Another stopgap
  function until we have full clock support for imx6.

  The imx5x and imx6 chips have an onboard IOMUX device which also contains a
  few "general purpose registers" whose values control chip behavior in ways
  that have nothing to do with IO pin mux control.  Define a simple API that
  other soc-specific code can use to read and write the registers, and provide
  the imx51 implementation of them.

  Fix a typo.

git-svn-id: svn://svn.freebsd.org/base/stable/10@273659 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271054:
ian [Sun, 26 Oct 2014 02:21:54 +0000 (02:21 +0000)]
MFC r271054:

 When built with FDT support, add /boot/dtb to the list of search directories.

git-svn-id: svn://svn.freebsd.org/base/stable/10@273658 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r270957, r270959:
ian [Sun, 26 Oct 2014 02:19:03 +0000 (02:19 +0000)]
MFC r270957, r270959:

  Create an interface for drivers to enable or disable their clocks as listed
  in the clocks=<...> properties of their FDT data.

git-svn-id: svn://svn.freebsd.org/base/stable/10@273657 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r270955,r270956: make the imx6 octop and anatop drivers early attachers.
ian [Sun, 26 Oct 2014 02:09:58 +0000 (02:09 +0000)]
MFC r270955,r270956: make the imx6 octop and anatop drivers early attachers.

git-svn-id: svn://svn.freebsd.org/base/stable/10@273656 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r270953, r270958, r270960, r271190, r271199, r271202:
ian [Sun, 26 Oct 2014 01:58:18 +0000 (01:58 +0000)]
MFC r270953, r270958, r270960, r271190, r271199, r271202:

  Create a mechanism for looking up a device_t associated with an ofw/fdt
  xref handle, and for registering that association.  Also use the same data
  for faster translations between node and xref handles.

  Add OF_xref_from_device() so that there's no need to have an intermediate
  call to ofw_bus_get_node() to lookup info that's already in the xreflist.

  When registering an association between a device and an xref phandle, create
  an entry in the xref list if one doesn't already exist for the given handle.

git-svn-id: svn://svn.freebsd.org/base/stable/10@273655 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r270945:
ian [Sun, 26 Oct 2014 01:30:46 +0000 (01:30 +0000)]
MFC r270945:

Rename OF_xref_phandle() to OF_node_from_xref() and add a new function
that provides the inverse translation, OF_xref_from_node().

git-svn-id: svn://svn.freebsd.org/base/stable/10@273652 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r270025:
ian [Sun, 26 Oct 2014 01:26:53 +0000 (01:26 +0000)]
MFC r270025:

Implement the FDT static pinctl/pinmux spec for Atmel.

git-svn-id: svn://svn.freebsd.org/base/stable/10@273651 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r257200, r259121, r261410, r265853:
ian [Sun, 26 Oct 2014 01:15:16 +0000 (01:15 +0000)]
MFC r257200, r259121, r261410, r265853:

 - Remove #include <machine/frame.h>.
 - Add gpio parse routines according to sys/boot/fdt/dts/bindings-gpio.txt.
 - Follow r261352 by updating all drivers which are children of simplebus
   to check the status property in their probe routines.
 - Rename platform_gpio_init to be SoC specific, and make it static as it's
   only called from this file.

This is mostly catching up on some old MFCs that were done before this file
existed in the 10 branch.

git-svn-id: svn://svn.freebsd.org/base/stable/10@273650 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r268633, r271046:
ian [Sat, 25 Oct 2014 20:34:10 +0000 (20:34 +0000)]
MFC r268633, r271046:

  Fixes and enhancements for the if_cgem driver...

  - miibus fixes as suggested by Yonghyeon Pyun.
  - enable VLAN MTU support.
  - fix a few WITNESS complaints in cgem_attach().
  - have cgem_attach() properly init the ifnet struct before calling
    mii_attach() to fix panic when using e1000phy.
  - fix ethernet address changing.
  - fix transmit queue overflow handling.
  - tweak receive queue handling to reduce receive overflows.
  - bring out MAC statistic counters to sysctls.
  - add e1000phy to config file.
  - implement receive hang work-around described in reference guide.
  - change device name from if_cgem to cgem to be consistent with other
    interfaces.

  Fix the Zedboard/Zynq ethernet driver to handle media speed changes so
  that it can connect to switches at speeds other than 1gb.

git-svn-id: svn://svn.freebsd.org/base/stable/10@273645 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r273448:
kevlo [Sat, 25 Oct 2014 15:06:09 +0000 (15:06 +0000)]
MFC r273448:
Fix the kernel panic in hostap mode.
rvp->beacon_mbuf was NULL in run_update_beacon().

PR: 189405
Submitted by: Gabor Simon <gabor.simon75 at gmail.com>

git-svn-id: svn://svn.freebsd.org/base/stable/10@273636 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r273261:
rpaulo [Sat, 25 Oct 2014 02:08:02 +0000 (02:08 +0000)]
MFC r273261:
 Remove an unused mutex.

git-svn-id: svn://svn.freebsd.org/base/stable/10@273626 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r273258:
rpaulo [Sat, 25 Oct 2014 02:06:40 +0000 (02:06 +0000)]
MFC r273258:
 Make the ti_mbox and ti_pruss drivers optional.

git-svn-id: svn://svn.freebsd.org/base/stable/10@273625 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r273257:
rpaulo [Sat, 25 Oct 2014 02:05:21 +0000 (02:05 +0000)]
MFC r273257:
 Add a driver for the TI watchdog.

 The TI watchdog timer is present on BeagleBone's.  Since 2014, U-Boot
 has been booting the BeagleBone with the watchdog enabled.  We need
 to
 disable it on boot to avoid a spurious reset.
 The timer isn't exactly precise, but it will do as a watchdog.  This
 is also a reflection of the watchdog(9) API.

 In the future, we could handle interrupts, but the watchdog(9) API
 needs to be a bit smarter before that can happen.

git-svn-id: svn://svn.freebsd.org/base/stable/10@273624 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r273256:
rpaulo [Sat, 25 Oct 2014 02:02:20 +0000 (02:02 +0000)]
MFC r273256:
 AM335X FDT: use the omap3-wdt string for compatibility with Linux.

git-svn-id: svn://svn.freebsd.org/base/stable/10@273623 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r273248:
rpaulo [Sat, 25 Oct 2014 02:00:32 +0000 (02:00 +0000)]
MFC r273248:
 AM335x FDT: add an entry for the watchdog.

git-svn-id: svn://svn.freebsd.org/base/stable/10@273622 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r273247:
rpaulo [Sat, 25 Oct 2014 01:59:01 +0000 (01:59 +0000)]
MFC r273247:
 Fix the watchdog/watchdog man pages.

 The default timeout is 128 seconds.

git-svn-id: svn://svn.freebsd.org/base/stable/10@273621 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r258902:
markj [Fri, 24 Oct 2014 17:24:29 +0000 (17:24 +0000)]
MFC r258902:
The uaddr, ufunc, umod and usym functions all seem to work as expected on
FreeBSD, so stop hiding them behind a "#if defined(sun)".

git-svn-id: svn://svn.freebsd.org/base/stable/10@273595 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r273577:
delphij [Fri, 24 Oct 2014 07:06:01 +0000 (07:06 +0000)]
MFC r273577:

Return BUS_PROBE_DEFAULT instead of BUS_PROBE_VENDOR or 0 for in-tree
driver.  This change was verified by Microsoft.

Instant MFC approved by: re (kib)

git-svn-id: svn://svn.freebsd.org/base/stable/10@273580 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r273356:
neel [Fri, 24 Oct 2014 03:48:54 +0000 (03:48 +0000)]
MFC r273356:
Fix a race in pmap_emulate_accessed_dirty() that could trigger a EPT
misconfiguration VM-exit.

git-svn-id: svn://svn.freebsd.org/base/stable/10@273573 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r272763:
markj [Thu, 23 Oct 2014 18:50:44 +0000 (18:50 +0000)]
MFC r272763:
If we fail to send a signal after rotation, print the pidfile from which
the corresponding PID was obtained.

PR:           194143

git-svn-id: svn://svn.freebsd.org/base/stable/10@273554 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agovt(4): Refuse to load a font if hw.vga.textmode is selected
dumbbell [Thu, 23 Oct 2014 13:32:01 +0000 (13:32 +0000)]
vt(4): Refuse to load a font if hw.vga.textmode is selected

Before, the font was loaded and the window size recalculated, giving an
unusable terminal, even if the actual font didn't change.

Reported by: beeessdee@ruggedinbox.com
MFC of: r273330

git-svn-id: svn://svn.freebsd.org/base/stable/10@273545 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r273259:
mav [Thu, 23 Oct 2014 07:37:48 +0000 (07:37 +0000)]
MFC r273259:
Make VPD 80h (Serial Number) transfer length match serial number length.

git-svn-id: svn://svn.freebsd.org/base/stable/10@273532 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r273163: Implement more functional CTL debug logging.
mav [Thu, 23 Oct 2014 07:36:33 +0000 (07:36 +0000)]
MFC r273163:  Implement more functional CTL debug logging.

Setting bits in kern.cam.ctl.debug allows to log errors, commands and some
commands data respectively.

git-svn-id: svn://svn.freebsd.org/base/stable/10@273531 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271789:
pfg [Thu, 23 Oct 2014 02:53:57 +0000 (02:53 +0000)]
MFC r271789:

lpr: replace setpgrp(2) with setpgid(2).

setpgid(2) is more portable than setpgrp(2).
The BSD variant of setpgrp is a wrapper for
setpgid(2) anyways.

git-svn-id: svn://svn.freebsd.org/base/stable/10@273513 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271787:
pfg [Thu, 23 Oct 2014 02:50:18 +0000 (02:50 +0000)]
MFC r271787:

simple_httpd: cosmetic cleanups.

Many tab vs space cleanups.
Use setpgid() instead of setpgrp() which is more portable.

git-svn-id: svn://svn.freebsd.org/base/stable/10@273512 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoAdd vtfontcvt(8) cross-reference to vt(4) man page
emaste [Thu, 23 Oct 2014 02:18:23 +0000 (02:18 +0000)]
Add vtfontcvt(8) cross-reference to vt(4) man page

MFC of r273332

git-svn-id: svn://svn.freebsd.org/base/stable/10@273511 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r272810: FV r272804:
delphij [Thu, 23 Oct 2014 01:47:09 +0000 (01:47 +0000)]
MFC r272810: FV r272804:

Refactor the code and stop restore_object from creating two transactions.

Illumos issue:
    3693 restore_object uses at least two transactions to restore an object

git-svn-id: svn://svn.freebsd.org/base/stable/10@273510 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r272809: MFV r272803:
delphij [Thu, 23 Oct 2014 01:40:31 +0000 (01:40 +0000)]
MFC r272809: MFV r272803:

Illumos issue:
    5175 implement dmu_read_uio_dbuf() to improve cached read performance

git-svn-id: svn://svn.freebsd.org/base/stable/10@273509 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r272806: MFV r272802:
delphij [Thu, 23 Oct 2014 01:36:43 +0000 (01:36 +0000)]
MFC r272806: MFV r272802:

 - Limit ARC for zdb at 256MB.  zdb do not typically revisit data
   in the ARC.
 - Increase default max_inflight from 200 to 1000 (can be overriden
   by -I) so we can queue more I/Os when doing scrubbing.
 - Print status while loading meataslabs for leak detection.

Illumos issues:

    5169 zdb should limit its ARC size
    5170 zdb -c should create more scrub i/os by default
    5171 zdb should print status while loading metaslabs for leak detection

git-svn-id: svn://svn.freebsd.org/base/stable/10@273508 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r272778:
ngie [Thu, 23 Oct 2014 01:09:01 +0000 (01:09 +0000)]
MFC r272778:

  Set the autoindent to 4 spaces with vim in BSD.tests.dist

  This will prevent vim users from accidentally checking in buggy mtree files
  (mixed tabs/spaces).

  Sponsored by: EMC / Isilon Storage Division

git-svn-id: svn://svn.freebsd.org/base/stable/10@273506 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r272917:
ngie [Thu, 23 Oct 2014 01:08:31 +0000 (01:08 +0000)]
MFC r272917:

  Add LDFLAGS to PROG_VARS so it can be overridden on a per-PROG basis

  Sponsored by: EMC / Isilon Storage Division

git-svn-id: svn://svn.freebsd.org/base/stable/10@273505 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r272053:
ngie [Thu, 23 Oct 2014 01:06:00 +0000 (01:06 +0000)]
MFC r272053:

  Have distrib-dirs, distribution, hier, hierarchy, redistribute, and reinstall
  depend on the .MAKE special target

  This will allow users to do something like the following to print out the
  results of the running the simulated make target with bmake, like some of the
  other top-level make targets in Makefile.inc1:

    % make -f Makefile.inc1 -n distribution TARGET=i386 TARGET_ARCH=i386

  Sponsored by: EMC / Isilon Storage Division

git-svn-id: svn://svn.freebsd.org/base/stable/10@273504 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271349:
ngie [Thu, 23 Oct 2014 01:02:37 +0000 (01:02 +0000)]
MFC r271349:

  Add diagnostic printfs and disable test # 4 on i386

  Reviewed by: jmmv, rpaulo
  Phabric: D749
  PR: 191676
  Sponsored by: EMC / Isilon Storage Division

git-svn-id: svn://svn.freebsd.org/base/stable/10@273503 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271336:
ngie [Thu, 23 Oct 2014 01:01:58 +0000 (01:01 +0000)]
MFC r271336:

  Expand the tests structure in test_small(..) to workaround the
  "initializer not constant" warning with gcc

  Approved by: jmmv (mentor)
  Phabric: D744
  Sponsored by: EMC / Isilon Storage Division

git-svn-id: svn://svn.freebsd.org/base/stable/10@273502 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r272055:
ngie [Thu, 23 Oct 2014 00:54:52 +0000 (00:54 +0000)]
MFC r272055:

  Improve bsd.progs.mk compatibility with bsd.prog.mk

  1. Do not install FILES/SCRIPTS multiple times if PROGS is specified; this is
     already handled via bsd.prog.mk when it's called recursively (PR: 191055,
     191955).
  2. Some variables, like BINDIR and PROGNAME, default to a value if unset
     whereas others get appended to, like CFLAGS. Add support for the former case
     (PR: 191056)
  3. Make "checkdpadd" and "clean" available targets for recursive execution.

  Reviewed by: marcel, sjg
  Phabric: D822
  PR: 191055, 191056, 191955
  Sponsored by: EMC / Isilon Storage Division

git-svn-id: svn://svn.freebsd.org/base/stable/10@273501 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271365:
ngie [Thu, 23 Oct 2014 00:51:52 +0000 (00:51 +0000)]
MFC r271365:

  Remove many false positives with make checkdpadd

  - Reduce DPADD and LDADD in checkdpadd to -l<foo>
  - Skip over -Wl,[es]*-group because -Wl,--end-group and
    -Wl,--start-group might be required to properly link objects (see
    usr.bin/clang/lldb as an example)

  This caveat has been present for a while with some components of
  the build. However, these false positives were made more more apparent
  after r269648.

  Phabric: D635
  Reviewed by: jmmv (an earlier version)
  PR: 192730

git-svn-id: svn://svn.freebsd.org/base/stable/10@273500 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r270650 (this is what should have been committed in r273497):
ngie [Thu, 23 Oct 2014 00:43:08 +0000 (00:43 +0000)]
MFC r270650 (this is what should have been committed in r273497):

  Convert LIBCURSES to LIBNCURSES to fix "make checkdpadd"

  Also, add a missing LIBPANEL dependency for lldb

  Approved by: rpaulo (mentor)
  Suggested by: brooks
  Phabric: D675 (as part of a larger diff)
  PR: 192762

git-svn-id: svn://svn.freebsd.org/base/stable/10@273499 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r270650:
ngie [Thu, 23 Oct 2014 00:40:40 +0000 (00:40 +0000)]
MFC r270650:

  Convert LIBCURSES to LIBNCURSES to fix "make checkdpadd"

  Also, add a missing LIBPANEL dependency for lldb

  Approved by: rpaulo (mentor)
  Suggested by: brooks
  Phabric: D675 (as part of a larger diff)
  PR: 192762

git-svn-id: svn://svn.freebsd.org/base/stable/10@273497 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r263264 (by glebius):
ngie [Thu, 23 Oct 2014 00:39:19 +0000 (00:39 +0000)]
MFC r263264 (by glebius):

  Make talk(1) capable of displaying UTF-8 characters.

  Sponsored by: Nginx, Inc.

git-svn-id: svn://svn.freebsd.org/base/stable/10@273496 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271692:
markj [Wed, 22 Oct 2014 23:55:08 +0000 (23:55 +0000)]
MFC r271692:
Fix a typo.

git-svn-id: svn://svn.freebsd.org/base/stable/10@273491 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r273088:
andrew [Wed, 22 Oct 2014 13:50:38 +0000 (13:50 +0000)]
MFC r273088:

Add support for the __aeabi_c*cmp* functions. These are similar to the
existing functions with the exception they use the condition flags to
store the result.

git-svn-id: svn://svn.freebsd.org/base/stable/10@273471 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r273132:
kib [Wed, 22 Oct 2014 09:12:20 +0000 (09:12 +0000)]
MFC r273132:
Style changes for deadfs.

git-svn-id: svn://svn.freebsd.org/base/stable/10@273463 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r273131:
kib [Wed, 22 Oct 2014 09:09:41 +0000 (09:09 +0000)]
MFC r273131:
When vnode bypass cannot be performed on the cdev file descriptor for
read/write/poll/ioctl, call standard vnode filedescriptor fop.

git-svn-id: svn://svn.freebsd.org/base/stable/10@273462 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r273130:
kib [Wed, 22 Oct 2014 09:06:36 +0000 (09:06 +0000)]
MFC r273130:
Change the deadfs poll VOP to return POLLIN|POLLRDNORM if the caller
is interested in i/o state.  Return POLLNVAL for invalid bits, similar
to poll_no_poll().

git-svn-id: svn://svn.freebsd.org/base/stable/10@273461 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r273129:
kib [Wed, 22 Oct 2014 09:04:56 +0000 (09:04 +0000)]
MFC r273129:
Implement FIODTYPE for master ptys.

git-svn-id: svn://svn.freebsd.org/base/stable/10@273460 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r272573:
bryanv [Wed, 22 Oct 2014 04:09:47 +0000 (04:09 +0000)]
MFC r272573:

  Change the UMA mutex into a rwlock

  Acquire the lock in read mode when just needed to ensure the stability
  of the keg list. The UMA lock may be held for a long time (relatively
  speaking) in uma_reclaim() on machines with lots of zones/kegs. If the
  uma_timeout() would fire during that period, subsequent callouts on that
  CPU may be significantly delayed.

git-svn-id: svn://svn.freebsd.org/base/stable/10@273451 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r272796:
bryanv [Wed, 22 Oct 2014 04:01:27 +0000 (04:01 +0000)]
MFC r272796:

Add M_FLOWID to M_COPYFLAGS

The M_FLOWID flag should be propagated to the new mbuf pkthdr in
m_move_pkthdr() and m_dup_pkthdr(). The new mbuf already got the
existing flowid value, but would be ignored since the flag was
not set.

git-svn-id: svn://svn.freebsd.org/base/stable/10@273450 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoBump __FreeBSD_version to track SA-14:20, SA-14:21, SA-14:22,
gjb [Tue, 21 Oct 2014 21:37:53 +0000 (21:37 +0000)]
Bump __FreeBSD_version to track SA-14:20, SA-14:21, SA-14:22,
SA-14:23

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

git-svn-id: svn://svn.freebsd.org/base/stable/10@273432 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r273402:
gjb [Tue, 21 Oct 2014 21:27:13 +0000 (21:27 +0000)]
MFC r273402:
  Fix an issue where a FreeBSD virtual machine provisioned in
  the Microsoft Azure service does not recognize the second
  attached disk on the system.

PR: 194376
Insta-MFC OK: re (rodrigc)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@273429 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoFix rtsold(8) remote buffer overflow vulnerability. [SA-14:20]
delphij [Tue, 21 Oct 2014 20:20:07 +0000 (20:20 +0000)]
Fix rtsold(8) remote buffer overflow vulnerability. [SA-14:20]

Fix memory leak in sandboxed namei lookup. [SA-14:22]

git-svn-id: svn://svn.freebsd.org/base/stable/10@273411 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoAdd basic UEFI boot procedure manpage
emaste [Tue, 21 Oct 2014 14:47:26 +0000 (14:47 +0000)]
Add basic UEFI boot procedure manpage

MFC of r273218 and r273235.

git-svn-id: svn://svn.freebsd.org/base/stable/10@273385 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC: r273034
brueffer [Tue, 21 Oct 2014 13:07:36 +0000 (13:07 +0000)]
MFC: r273034

Add one more AMD Kaveri APU device ID.

Submitted by: Remy Nonnenmacher <remy.nonnenmacher@activnetworks.com>

git-svn-id: svn://svn.freebsd.org/base/stable/10@273383 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r272683:
hselasky [Tue, 21 Oct 2014 08:24:12 +0000 (08:24 +0000)]
MFC r272683:
- Fix compile warning when compiling with GCC.
- Add missed chunk in previous driver code MFC.

Sponsored by: Mellanox Technologies

git-svn-id: svn://svn.freebsd.org/base/stable/10@273379 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271926: Mention read_ahead tunables/sysctls.
mav [Tue, 21 Oct 2014 06:25:41 +0000 (06:25 +0000)]
MFC r271926:  Mention read_ahead tunables/sysctls.

git-svn-id: svn://svn.freebsd.org/base/stable/10@273374 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r262332 (by ivoras): Grammar fix
mav [Tue, 21 Oct 2014 06:24:15 +0000 (06:24 +0000)]
MFC r262332 (by ivoras): Grammar fix

git-svn-id: svn://svn.freebsd.org/base/stable/10@273373 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r262294 (by ivoras):
mav [Tue, 21 Oct 2014 06:23:14 +0000 (06:23 +0000)]
MFC r262294 (by ivoras):
Explain how and where kern.cam.ada.write_cache can be set in practical
situations.

git-svn-id: svn://svn.freebsd.org/base/stable/10@273372 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r272731:
yongari [Tue, 21 Oct 2014 04:54:37 +0000 (04:54 +0000)]
MFC r272731:
  Document newly added controller AR816x/AR817x.

git-svn-id: svn://svn.freebsd.org/base/stable/10@273368 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r272730,273018:
yongari [Tue, 21 Oct 2014 04:48:49 +0000 (04:48 +0000)]
MFC r272730,273018:
  Add support for QAC AR816x/AR817x Gigabit/Fast Ethernet controllers.
  These controllers seem to have the same feature of AR813x/AR815x and
  improved RSS support(4 TX queues and 8 RX queues).  alc(4) supports
  all hardware features except RSS.  I didn't implement RX checksum
  offloading for AR816x/AR817x just because I couldn't get
  confirmation from the Vendor whether AR816x/AR817x corrected its
  predecessor's RX checksum offloading bug on fragmented packets.
  This change adds supports for the following controllers.
   o AR8161 PCIe Gigabit Ethernet controller
   o AR8162 PCIe Fast Ethernet controller
   o AR8171 PCIe Gigabit Ethernet controller
   o AR8172 PCIe Fast Ethernet controller
   o Killer E2200 Gigabit Ethernet controller

  Relnotes: yes

git-svn-id: svn://svn.freebsd.org/base/stable/10@273366 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r272729,272732:
yongari [Tue, 21 Oct 2014 01:48:19 +0000 (01:48 +0000)]
MFC r272729,272732:
  Add new quirk PCI_QUIRK_MSI_INTX_BUG to pci(4).
  QAC AR816x/E2200 controller has a silicon bug that MSI interrupt
  does not assert if PCIM_CMD_INTxDIS bit of command register is set.

git-svn-id: svn://svn.freebsd.org/base/stable/10@273361 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r272721:
yongari [Tue, 21 Oct 2014 01:14:56 +0000 (01:14 +0000)]
MFC r272721:
  Fix a long standing bug in MAC statistics register access.  One
  additional register was erroneously added in the MAC register set
  such that 7 TX statistics counters were wrong.

git-svn-id: svn://svn.freebsd.org/base/stable/10@273357 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoFix label for the UEFI bootonly cd.
gjb [Tue, 21 Oct 2014 00:07:37 +0000 (00:07 +0000)]
Fix label for the UEFI bootonly cd.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@273355 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r273204:
gjb [Tue, 21 Oct 2014 00:06:03 +0000 (00:06 +0000)]
MFC r273204:
  Add more descriptive metadata to the ISO images.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@273354 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r272601: MFV r272591:
delphij [Mon, 20 Oct 2014 22:22:39 +0000 (22:22 +0000)]
MFC r272601: MFV r272591:

Use loaned ARC buffer for zfs receive to avoid copy.

Illumos issue:
    5162 zfs recv should use loaned arc buffer to avoid copy

git-svn-id: svn://svn.freebsd.org/base/stable/10@273350 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r272599: MFV r272588:
delphij [Mon, 20 Oct 2014 22:18:21 +0000 (22:18 +0000)]
MFC r272599: MFV r272588:

Handle old format deadlist.

Illumos issue:
    5178 zdb -vvvvv on old-format pool fails in dump_deadlist()

git-svn-id: svn://svn.freebsd.org/base/stable/10@273349 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r272598: MFV r272585:
delphij [Mon, 20 Oct 2014 22:13:50 +0000 (22:13 +0000)]
MFC r272598: MFV r272585:

Split the godfather zio into CPU number's to reduce lock
contention.

Illumos issue:
    5176 lock contention on godfather zio

git-svn-id: svn://svn.freebsd.org/base/stable/10@273348 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r272584: MFV r272501:
delphij [Mon, 20 Oct 2014 22:09:30 +0000 (22:09 +0000)]
MFC r272584: MFV r272501:

Illumos issue:
    5177 remove dead code from dsl_scan.c

git-svn-id: svn://svn.freebsd.org/base/stable/10@273347 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r272511: MFV r272499:
delphij [Mon, 20 Oct 2014 22:04:49 +0000 (22:04 +0000)]
MFC r272511: MFV r272499:

Illumos issue:
    5174 add sdt probe for blocked read in dbuf_read()

git-svn-id: svn://svn.freebsd.org/base/stable/10@273346 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r272510: MFV r272498:
delphij [Mon, 20 Oct 2014 21:59:11 +0000 (21:59 +0000)]
MFC r272510: MFV r272498:

Add a new sysctl, vfs.zfs.vol.unmap_enabled, which allows the system
administrator to toggle whether ZFS should ignore UNMAP requests.

Illumos issue:
    5149 zvols need a way to ignore DKIOCFREE

git-svn-id: svn://svn.freebsd.org/base/stable/10@273345 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r272507: MFV r272496:
delphij [Mon, 20 Oct 2014 21:53:51 +0000 (21:53 +0000)]
MFC r272507: MFV r272496:

Add tunable for number of metaslabs per vdev
(vfs.zfs.vdev.metaslabs_per_vdev).  The default remains
at 200.

Illumos issue:
    5161 add tunable for number of metaslabs per vdev

git-svn-id: svn://svn.freebsd.org/base/stable/10@273343 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f