]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
9 years agoMFC r269575, r269576 and r269578:
hselasky [Fri, 31 Oct 2014 07:51:05 +0000 (07:51 +0000)]
MFC r269575, r269576 and r269578:
- Add a second Huawei SCSI eject command as USB mode switch config files
sometimes use one or the other. Maybe newer Huawei modems switched.
- Return USB_ERR_INVAL if the eject method is not known.

PR: 145319

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

9 years agoMFC r264923:
hselasky [Fri, 31 Oct 2014 07:41:28 +0000 (07:41 +0000)]
MFC r264923:
Remove device type from the uftdi_devs table, enhance the jtag-skip feature.

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

9 years agoMFC r269569:
hselasky [Fri, 31 Oct 2014 07:38:49 +0000 (07:38 +0000)]
MFC r269569:
Remove unused defines.
Fix some device_printf's that were missing '\n' at the end or had
spelling errors.

PR: 145319

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

9 years agoMFC r271159, r271168 and r271680:
hselasky [Fri, 31 Oct 2014 07:33:56 +0000 (07:33 +0000)]
MFC r271159, r271168 and r271680:
Add USB LED driver for the Dream Cheeky WebMail Notifier.

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

9 years agoMFC r273867:
hselasky [Fri, 31 Oct 2014 07:08:32 +0000 (07:08 +0000)]
MFC r273867:
Fix compile warning by removing unused variable.

Sponsored by: Mellanox Technologies

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

9 years agoMFC r273593:
hselasky [Fri, 31 Oct 2014 07:04:25 +0000 (07:04 +0000)]
MFC r273593:

Update the network interface baudrate integer according to the actual
line rate.

Sponsored by: Mellanox Technologies

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

9 years agoMFC r273159:
araujo [Fri, 31 Oct 2014 04:01:10 +0000 (04:01 +0000)]
MFC r273159:
Add two sysctl(8) to enable/disable NFSv4 server to check when setting
user nobody and/or setting group nogroup as owner of a file or directory.
Usually at the client side, if there is an username that is not in the
client's passwd database, some clients will send 'nobody@<your.dns.domain>'
in the wire and the NFSv4 server will treat it as an ERROR.
However, if you have a valid user nobody in your passwd database,
the NFSv4 server will treat it as a NFSERR_BADOWNER as its believes the
client doesn't has the username mapped.

Submitted by: Loic Blot <loic.blot@unix-experience.fr>
Reviewed by: rmacklem
Approved by: rmacklem
Sponsored by: QNAP Systems Inc.

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

9 years agoMFC r272770:
ae [Thu, 30 Oct 2014 13:53:57 +0000 (13:53 +0000)]
MFC r272770:
  When tunneling interface is going to insert mbuf into netisr queue after stripping
  outer header, consider it as new packet and clear the protocols flags.

  This fixes problems when IPSEC traffic goes through various tunnels and router
  doesn't send ICMP/ICMPv6 errors.

PR: 174602
Sponsored by: Yandex LLC

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

9 years agoMFC r273733, r273740 and r273773:
hselasky [Thu, 30 Oct 2014 08:04:48 +0000 (08:04 +0000)]
MFC r273733, r273740 and r273773:

The SYSCTL data pointers can come from userspace and must not be
directly accessed. Although this will work on some platforms, it can
throw an exception if the pointer is invalid and then panic the kernel.

Add a missing SYSCTL_IN() of "SCTP_BASE_STATS" structure.

Sponsored by: Mellanox Technologies

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

9 years agoMFC r266842: netinet/in.h: Expose htonl(), htons(), ntohl() and ntohs() in
jilles [Wed, 29 Oct 2014 23:10:48 +0000 (23:10 +0000)]
MFC r266842: netinet/in.h: Expose htonl(), htons(), ntohl() and ntohs() in
strict POSIX mode.

Put the htonl(), htons(), ntohl() and ntohs() declarations under
__POSIX_VISIBLE >= 200112. POSIX.1-2001 and newer require these to be
exposed from <netinet/in.h> (as well as <arpa/inet.h>).

Note that it may be unnecessary to check __POSIX_VISIBLE >= 200112 because
older versions of POSIX and the C standard do not define this header.
However, other places in the same file already perform the check.

PR: 188316
Submitted by: Christian Neukirchen

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

9 years agoMFC r264628: fcntl.h: Make visible various POSIX.1-2008 features.
jilles [Wed, 29 Oct 2014 22:55:16 +0000 (22:55 +0000)]
MFC r264628: fcntl.h: Make visible various POSIX.1-2008 features.

Also, remove #if __BSD_VISIBLE where it is redundant. When __BSD_VISIBLE is
defined to 1, __POSIX_VISIBLE, __XSI_VISIBLE and __ISO_C_VISIBLE are also
defined to the newest supported version.

PR: 188173

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

9 years agoMFC r272720, 273061, 273062, 273063, 273064
sbruno [Wed, 29 Oct 2014 22:17:45 +0000 (22:17 +0000)]
MFC r272720, 273061, 273062, 273063, 273064

Implement PLPMTUD blackhole detection (RFC 4821), inspired by code
from xnu sources.  If we encounter a network where ICMP is blocked
the Needs Frag indicator may not propagate back to us.  Attempt to
downshift the mss once to a preconfigured value.

Note, this is turned off by default.

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

9 years agoMFC r271539,273003,273005:
nwhitehorn [Wed, 29 Oct 2014 16:48:18 +0000 (16:48 +0000)]
MFC r271539,273003,273005:

Add ZFS support to the bsdinstall partition editor and sade

Submitted by: Kurt Lidl (original version)

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

9 years agoMFC r273288:
andrew [Wed, 29 Oct 2014 16:41:20 +0000 (16:41 +0000)]
MFC r273288:

 Allow the armv6 kernel to be build with PHYSADDR undefined. The kernel
 will now find the virtual to physical mapping for libkvm to use at
 runtime. This makes PHYSADDR redundant, however keep it around to give
 everyone a chance to update their libkvm.

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

9 years agoMFC r273287:
andrew [Wed, 29 Oct 2014 16:38:13 +0000 (16:38 +0000)]
MFC r273287:

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

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

9 years agoMFC r273284:
andrew [Wed, 29 Oct 2014 16:36:08 +0000 (16:36 +0000)]
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://svn.freebsd.org/base/stable/10@273828 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r269956:
andrew [Wed, 29 Oct 2014 16:24:02 +0000 (16:24 +0000)]
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://svn.freebsd.org/base/stable/10@273827 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r272746:
ae [Wed, 29 Oct 2014 11:07:40 +0000 (11:07 +0000)]
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://svn.freebsd.org/base/stable/10@273817 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r261271:
pluknet [Wed, 29 Oct 2014 09:32:36 +0000 (09:32 +0000)]
MFC r261271:

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

PR: docs/186250

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

9 years agoMFC: r273704
smh [Wed, 29 Oct 2014 09:27:24 +0000 (09:27 +0000)]
MFC: r273704

Fix CF ERASE breakage caused by 268205.

Sponsored by: Multiplay

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

9 years agoMFC r273666.
neel [Wed, 29 Oct 2014 01:54:37 +0000 (01:54 +0000)]
MFC r273666.
Don't pass the 'error' return from an I/O port handler directly to vm_run().

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

9 years agoMFC r273457: Document sort_io_queue sysctls/tunables.
mav [Wed, 29 Oct 2014 00:27:02 +0000 (00:27 +0000)]
MFC r273457: Document sort_io_queue sysctls/tunables.

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

9 years agoMFC r273638:
mav [Tue, 28 Oct 2014 08:00:28 +0000 (08:00 +0000)]
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://svn.freebsd.org/base/stable/10@273767 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r273370:
markj [Tue, 28 Oct 2014 06:17:25 +0000 (06:17 +0000)]
MFC r273370:
Correct the calculation of tcps_rto in the struct tcpcb -> tcpsinfo_t
translator.

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

9 years agoMFC r273359:
yongari [Tue, 28 Oct 2014 00:43:00 +0000 (00:43 +0000)]
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://svn.freebsd.org/base/stable/10@273757 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r263710, r273377, r273378, r273423 and r273455:
hselasky [Mon, 27 Oct 2014 14:38:00 +0000 (14:38 +0000)]
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://svn.freebsd.org/base/stable/10@273736 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC: r266336, r270230 and r273263
loos [Mon, 27 Oct 2014 12:18:07 +0000 (12:18 +0000)]
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://svn.freebsd.org/base/stable/10@273735 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r272733, r272807 and r272822:
hselasky [Mon, 27 Oct 2014 09:07:30 +0000 (09:07 +0000)]
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://svn.freebsd.org/base/stable/10@273729 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r273328: Add another PCI ID for JMB368 PATA controller.
mav [Mon, 27 Oct 2014 07:20:39 +0000 (07:20 +0000)]
MFC r273328: Add another PCI ID for JMB368 PATA controller.

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

9 years agoMFC of 273718, tzdata2014i
edwin [Mon, 27 Oct 2014 06:05:40 +0000 (06:05 +0000)]
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://svn.freebsd.org/base/stable/10@273719 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

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