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+ssh://svn.freebsd.org/base/stable/10@273712 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
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+ssh://svn.freebsd.org/base/stable/10@273713 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r271143, r271151:  Reimport dts from vendor branch after proper trim.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@273714 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
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+ssh://svn.freebsd.org/base/stable/10@273715 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC of 273718, tzdata2014i

Upgrade to 2014i

Lots of historical data

Pacific/Fiji will go into DST from 2014-11-02 to 2015-01-18
Pacific/Bougainville will go from UTC+10 to UTC+11.
Europe/Minsk will go from FET to MSK.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@273719 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r273328: Add another PCI ID for JMB368 PATA controller.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@273725 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r272733, r272807 and r272822:
Add support for disabling USB enumeration or USB port power
in general or on selected USB HUBs.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@273729 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC: r266336, r270230 and r273263

r266336:
Allow us to compile the Ti iic driver for both OMAP4 and AM335x.

r270230:
Rewrite of ti_i2c based on gonzo's patch, fix the following bugs/problems:

  . interrupt storm detected on "intr70:"; throttling interrupt source;

  . Added access serialization on iicbus_transfer(), previously there was
    no such protection and a new transfer could easily confuse the
    controller;

  . Add error checkings (i.e. stop the transfer when a error is detected
    and do _not_ overwrite the previous error);

  . On command done interrupt do not assume that the transfer was finished
    sucessfully as we will receive the command done interrupt even after
    errors;

  . Simplify the FIFO handling;

  . Reset the FIFO between the transfers as the FIFO may contain data from
    the last (failed) transfer;

  . Fix the iicbus speed for AM335x, which in turn will make better use of
    the I2C noise filter (set to one internal clock cycle);

  . Move the read and write handler to ithread instead of notifying the
    requesting thread with wakeup(9);

  . Fix the comments based on OMAP4 TRM.

The above changes allows me to read the EDID from my HDMI monitor on BBB
with gonzo's patches to support TDA19988 (which does 128 bytes reads) and
repeatedly scan the iicbus (with a modified i2c(8)) without lock up the bus.

r273263:
Fix the chan address for mtx_sleep() on bus wait.  Without this fix the
threads waiting for the bus would never wake.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@273735 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r263710, r273377, r273378, r273423 and r273455:

- De-vnet hash sizes and hash masks.
- Fix multiple issues related to arguments passed to SYSCTL macros.

Sponsored by:	Mellanox Technologies


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@273736 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r273359:
  It seems multicast filtering of RTL8168F does not work.  Workaround
  the silicon bug by accepting any multicast packets.

  PR:	193488


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@273757 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r273370:
Correct the calculation of tcps_rto in the struct tcpcb -> tcpsinfo_t
translator.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@273765 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r273638:
Revert somewhat hackish geom_disk optimization, committed as part of r256880,
and the following r273143 commit, supposed to workaround introduced issue by
quite innocent-looking change.

While there is no clear understanding why, but r273143 is accused in data
corruption in some environments with high I/O load.  I personally don't see
any problem in that commit, and possibly it is just a trigger to some other
bug somewhere, but better safe then sorry for now.

Requested by:	scottl@


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@273767 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r273457: Document sort_io_queue sysctls/tunables.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@273805 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r273666.
Don't pass the 'error' return from an I/O port handler directly to vm_run().


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@273807 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC: r273704

Fix CF ERASE breakage caused by 268205.

Sponsored by:	Multiplay


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@273814 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r261271:

  Ressurect the local change documenting
  authpf's requirement for a mounted fdescfs(5).

PR:		docs/186250


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@273815 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r272746:
  Add an ability to set dumpdev via loader(8) tunable.

MFC r272747:
  Revert r156046. We support setting dumpdev via loader tunable again.
  Also change default disk name to ada.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@273817 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r269956:

 From https://sourceware.org/ml/newlib/2014/msg00113.html
 By Richard Earnshaw at ARM
 >
 >GCC has for a number of years provides a set of pre-defined macros for
 >use with determining the ISA and features of the target during
 >pre-processing.  However, the design was always somewhat cumbersome in
 >that each new architecture revision created a new define and then
 >removed the previous one.  This meant that it was necessary to keep
 >updating the support code simply to recognise a new architecture being
 >added.
 >
 >The ACLE specification (ARM C Language Extentions)
 >(http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.set.swdev/index.html)
 >provides a much more suitable interface and GCC has supported this
 >since gcc-4.8.
 >
 >This patch makes use of the ACLE pre-defines to map to the internal
 >feature definitions.  To support older versions of GCC a compatibility
 >header is provided that maps the traditional pre-defines onto the new
 >ACLE ones.

 Stop using __FreeBSD_ARCH_armv6__ and switch to __ARM_ARCH >= 6 in the
 couple of places in tree. clang already implements ACLE. Add a define
 that says we implement version 1.1, even though the implementation
 isn't quite complete.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@273827 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r273284:

 Allow libkvm to get the kernel va to pa delta without the need for
 physaddr. This should allow for a kernel where PHYSADDR and KERNPHYSADDR
 are both undefined.

 For now libkvm will use the old method of reading physaddr and kernaddr
 to allow it to work with old kernels. This could be removed in the future
 when enough time has passed.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@273828 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r273287:

 Only build the ARM tranpoline when KERNPHYSADDR is defined as it is
 otherwise unneeded in armv6 kernels.


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