]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
9 years ago[SA-14:25] Fix kernel stack disclosure in setlogin(2) / getlogin(2).
des [Tue, 4 Nov 2014 23:29:57 +0000 (23:29 +0000)]
[SA-14:25] Fix kernel stack disclosure in setlogin(2) / getlogin(2).
[SA-14:26] Fix remote command execution in ftp(1).

Approved by: so (des)

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

9 years agoMFC r274095:
gjb [Tue, 4 Nov 2014 23:02:16 +0000 (23:02 +0000)]
MFC r274095:
  Fix VOLUME_LABEL when BRANCH contains '-' and '.'
  characters, in particular '-' and '.'.

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

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

9 years agoMFC r273796
brooks [Tue, 4 Nov 2014 22:47:51 +0000 (22:47 +0000)]
MFC r273796

Import in latest mtree from NetBSD to fix a bug in parsing group files
that jmg fixed upstream.

Sponsored by: DARPA, AFRL

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

9 years agoMFC: 272445,272578,273772,273779,273782,273786,273787,273791
bapt [Tue, 4 Nov 2014 07:50:48 +0000 (07:50 +0000)]
MFC: 272445,272578,273772,273779,273782,273786,273787,273791

Add a test for bug 191427 where pw(8) will go into an infinite loop
Add some tests for modifying groups
When a group is renamed then the group has been invalidated for sure.
In that case get the group information using the new name.

Fix a regression in pw usermod -G list

The user was perperly adding the to different groups from "list" but was not
removed from the other groups it could have belong to.

Do not delete the group wheel when bad argument is passed to pw groupdel -g

Check that the -g argument is actually a number, if not report an error.
This argument is converted without checking with atoi(3) later so without this
check it converts any alpha entries into 0 meaning it deletes the group wheel

Ensure pw userdel -u <invalid> do not try to remove root

Check the uid passed is actually a number as early as possible

Fix renaming a group via the gr_copy function

Add a regression test to pw(8) because the bug was discovered via using:
pw groupmod

PR: 193704 [1], 185666 [2], 90114 [3], 187189 [4]
Submitted by: Marc de la Gueronniere [4]
Reported by: az [1], sub.mesa@gmail.com [2], bkoenig@cs.tu-berlin.de [3],
mcdouga9@egr.msu.edu [4]

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

9 years agoMFC r271946 and r272595:
hselasky [Mon, 3 Nov 2014 12:38:29 +0000 (12:38 +0000)]
MFC r271946 and r272595:
Improve transmit sending offload, TSO, algorithm in general. This
change allows all HCAs from Mellanox Technologies to function properly
when TSO is enabled. See r271946 and r272595 for more details about
this commit.

Sponsored by: Mellanox Technologies

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

9 years agoMFC: r268474 and r268476 (by imp)
nyan [Mon, 3 Nov 2014 12:07:04 +0000 (12:07 +0000)]
MFC: r268474 and r268476 (by imp)
  - Merge the clang support from i386.
  - Compile boot2 with clang on pc98.

MFC: r272250 (by nyan)
  - Reduce diffs against i386.

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

9 years agoMFC: r268475 (by imp)
nyan [Mon, 3 Nov 2014 11:58:32 +0000 (11:58 +0000)]
MFC: r268475 (by imp)

  Make SERIAL support optional again. Enable it for i386 because a huge
  percentage of machines has a 16550. Disable it for pc98 since only a
  tiny fraction of them have one.

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

9 years agoMFC: r272258
nyan [Mon, 3 Nov 2014 11:21:43 +0000 (11:21 +0000)]
MFC: r272258
  - Cosmetic changes.
  - Reduce diffs against i386.

MFC: 272259
  MFi386: Enable QUOTA, PRINTF_BUFR_SIZE and puc.

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

9 years agoMFC: r272256
nyan [Mon, 3 Nov 2014 11:08:00 +0000 (11:08 +0000)]
MFC: r272256

  Switch from lib/libstand to sys/boot/libstand32.

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

9 years agoMFC: r272255
nyan [Mon, 3 Nov 2014 11:01:12 +0000 (11:01 +0000)]
MFC: r272255

  Supress clang warning for FreeBSD printf %b and %D formats.

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

9 years agoMFC: r272252
nyan [Mon, 3 Nov 2014 10:38:03 +0000 (10:38 +0000)]
MFC: r272252

  Drop the 3rd clause from all 3 clause BSD licenses.

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

9 years agoMFC r273728:
kib [Mon, 3 Nov 2014 10:33:01 +0000 (10:33 +0000)]
MFC r273728:
Add a method to iicbus to request IIC_M_NOSTOP behaviour for multibyte
transfers to be default.

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

9 years agoMFC r273727:
kib [Mon, 3 Nov 2014 10:30:44 +0000 (10:30 +0000)]
MFC r273727:
Original commit message was
Allow the vfs.nfsd knobs to be set from loader.conf (or using
kenv(8)).  This is useful when nfsd is loaded as module.

As I understand, automatic fetch from kenv does not work in stable/10.
Merge the change still, to reduce code difference.

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

9 years agoMFC: r272248
nyan [Mon, 3 Nov 2014 10:26:29 +0000 (10:26 +0000)]
MFC: r272248

  - Cleanups pc98 code.
  - Remove unworked formats.

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

9 years agoMFC r273737, 273739
bapt [Mon, 3 Nov 2014 08:48:48 +0000 (08:48 +0000)]
MFC r273737, 273739

Clarify the documentation of pmcstat:
the -d argument should be passed before -p, -s, -P or -S to be taken in account

Differential Revision: https://reviews.freebsd.org/D1011
Reviewed by: adrian, gnn

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

9 years agoMFC: r272245
nyan [Mon, 3 Nov 2014 06:33:52 +0000 (06:33 +0000)]
MFC: r272245

  Remove duplicate prog.

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

9 years agoMFC: r272243
nyan [Mon, 3 Nov 2014 05:35:45 +0000 (05:35 +0000)]
MFC: r272243

  Add missing library dependencies.

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

9 years agoMFC r273809:
mav [Mon, 3 Nov 2014 03:45:41 +0000 (03:45 +0000)]
MFC r273809:
Implement better handling for ENOSPC error for both CTL and CAM.

This makes VMWare VAAI Thin Provisioning Stun primitive activate, pausing
the virtual machine, when backing storage (ZFS pool) is getting overflowed.

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

9 years agoMFC r273730, r273731:
mav [Mon, 3 Nov 2014 03:44:59 +0000 (03:44 +0000)]
MFC r273730, r273731:
Reduce code duplication around Write Exclusive persistent reservation.

While there, allow some more commands to pass persistent reservation.

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

9 years agoMFC r273711:
mav [Mon, 3 Nov 2014 03:43:40 +0000 (03:43 +0000)]
MFC r273711:
Allocate buffer for READ BUFFER/WRITE BUFFER commands on demand.

These commands are rare, but consume additional 256KB RAM per LUN.

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

9 years agoMFC 273598 273602 273607 273613 273647:
rpaulo [Mon, 3 Nov 2014 03:17:58 +0000 (03:17 +0000)]
MFC 273598 273602 273607 273613 273647:

    Userland HPET support.

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

9 years agoMFC 273834:
jhb [Mon, 3 Nov 2014 00:13:20 +0000 (00:13 +0000)]
MFC 273834:
Rework the EXAMPLES section to be a bit clearer.
- Add an example of using etcupdate diff.
- Create a subsection on bootstrapping that is below the simple
  examples.  This should make it clearer that 'etcupdate extract' is
  a one-time operation and not part of the common workflow.  It also
  adds more suggestions on when bootstrapping is needed and additional
  steps to make future merges simpler.

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

9 years agoMFC 273644,273738:
jhb [Sun, 2 Nov 2014 23:22:22 +0000 (23:22 +0000)]
MFC 273644,273738:
Clarify that pthread_cleanup_push()/pop() are implemented as macros that
create a new code block and thus must be balanced at the same lexical
scope.  (This is also a requirement in POSIX.)

PR: 194280
Submitted by: dr2867.business@pacbell.net

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

9 years agoMFC r272974,272976:
hrs [Sun, 2 Nov 2014 22:41:55 +0000 (22:41 +0000)]
MFC r272974,272976:

Add ${name}_env and ${name}_prepend.  ${name}_env is an argument list which
will be passed to env(1).  ${name}_prepend is simply prepended to the command
line for $command.

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

9 years agoMFC r273026:
delphij [Sun, 2 Nov 2014 19:16:41 +0000 (19:16 +0000)]
MFC r273026:

Add a tunable for arc_shrink_shift (vfs.zfs.arc_shrink_shift) that
controls how much fraction, 1/2^arc_shrink_shift, should be reclaimed
when there is memory pressure.

Submitted by: Richard Kojedzinszky <krichy at tvnetwork.hu>

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

9 years agoMFC r273267:
delphij [Sun, 2 Nov 2014 19:09:34 +0000 (19:09 +0000)]
MFC r273267:

Add tunable vfs.zfs.space_map_blksz for space map's maximum block size.

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

9 years agoMFC r273708: Fix support for LUN flat space addressing.
mav [Sun, 2 Nov 2014 17:31:45 +0000 (17:31 +0000)]
MFC r273708: Fix support for LUN flat space addressing.

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

9 years agoMFC r273693: Fix printing non-terminated strings in devlist XML.
mav [Sun, 2 Nov 2014 17:31:10 +0000 (17:31 +0000)]
MFC r273693: Fix printing non-terminated strings in devlist XML.

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

9 years agoMFC r273687:
mav [Sun, 2 Nov 2014 17:30:30 +0000 (17:30 +0000)]
MFC r273687:
Add "rpm" and "formfactor" LUN options to match istgt functionality.

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

9 years agoMFC r273640: Add support for 12/16-byte EUI and 16-byte NAA IDs.
mav [Sun, 2 Nov 2014 17:29:48 +0000 (17:29 +0000)]
MFC r273640: Add support for 12/16-byte EUI and 16-byte NAA IDs.

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

9 years agoMFC r273075: Remove couple Copan's vendor-specific mode pages.
mav [Sun, 2 Nov 2014 17:28:44 +0000 (17:28 +0000)]
MFC r273075: Remove couple Copan's vendor-specific mode pages.

Those pages are highly system-/hardware-specific, the code is incomplete,
and so they hardly can be useful for anybody else.

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

9 years agoMFC r273073: Some groundwork for later Informational Exceptions support.
mav [Sun, 2 Nov 2014 17:28:08 +0000 (17:28 +0000)]
MFC r273073: Some groundwork for later Informational Exceptions support.

This includes support for:
 - Read-Write Error Recovery mode page;
 - Informational Exceptions Control mode page;
 - Logical Block Provisioning mode page;
 - LOG SENSE command.

No real Informational Exceptions features yet. This is only a placeholder.

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

9 years agoMFC r272409:
mav [Sun, 2 Nov 2014 17:26:13 +0000 (17:26 +0000)]
MFC r272409:
Use REPORT LUNS command for SPC-2 devices with LUN 0 disconnected.

SPC-2 tells REPORT LUNS shall be supported by devices supporting LUNs other
then LUN 0.  If we see LUN 0 disconnected, guess there may be others, and
so REPORT LUNS shall be supported.

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

9 years agoMFC r272406:
mav [Sun, 2 Nov 2014 17:25:03 +0000 (17:25 +0000)]
MFC r272406:
Make disconnected LUN 0 don't remain in half-configured state if there are
no LUNs on SPC-3 target after we tried REPORT LUNS.

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

9 years agoMFC r272401, r272402: Rework the logic of sequential SCSI LUN scanner.
mav [Sun, 2 Nov 2014 17:23:44 +0000 (17:23 +0000)]
MFC r272401, r272402: Rework the logic of sequential SCSI LUN scanner.

Previous logic was not differentiating disconnected LUNs and absent targets.
That made it to stop scan if LUN 0 was not found for any reason.  That made
problematic, for example, using iSCSI targets declaring SPC-2 compliance and
having no LUN 0 configured.

The new logic continues sequential LUN scan if:
 -- we have more configured LUNs that need recheck;
 -- this LUN is connected and its SCSI version allows more LUNs;
 -- this LUN is disconnected, its SCSI version allows more LUNs and we
    guess they may be connected (we haven't scanned first 8 LUNs yet or
    kern.cam.cam_srch_hi sysctl is set to scan more).

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

9 years agoMFC r273837:
dim [Sat, 1 Nov 2014 13:45:01 +0000 (13:45 +0000)]
MFC r273837:

Fix a clang 3.5 warning about abs(3) being given an argument of type
quad_t in setusercontext().  While here, sanitize the clamping of the
priority value, and use the correct type for the return value of
login_getcapnum().

Reviewed by: kib

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

9 years agoMFC r273551:
rpaulo [Sat, 1 Nov 2014 05:45:05 +0000 (05:45 +0000)]
MFC r273551:

  puc(4): add an entry for the Oxford Semiconductor OXPCIe952 1S1P
  card.

  Submitted by: Alex Burlyga <alex.burlyga.ietf at gmail.com>

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

9 years agovt(4): Add PIO_VFONT_DEFAULT ioctl to restore the default builtin font
dumbbell [Fri, 31 Oct 2014 23:10:58 +0000 (23:10 +0000)]
vt(4): Add PIO_VFONT_DEFAULT ioctl to restore the default builtin font

To restore the default font using vidcontrol(1), use the "-f" flag
without an argument:
    vidcontrol -f < /dev/ttyv0

PR: 193910
Differential Revision: https://reviews.freebsd.org/D971
Submitted by: Marcin Cieslak <saper@saper.info>
Reviewed by: ray@, emaste@
Approved by: ray@
MFC of: r273544

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

9 years agoMFC 258028:
hselasky [Fri, 31 Oct 2014 10:07:56 +0000 (10:07 +0000)]
MFC 258028:
Unbreak build of RSU module.
Use the real product name for Edimax rsu(4) id.

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

9 years agoMFC r264801, r264802, r264934, r273181, r273216 and r273252:
hselasky [Fri, 31 Oct 2014 07:55:42 +0000 (07:55 +0000)]
MFC r264801, r264802, r264934, r273181, r273216 and r273252:
Add more USB IDs.

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

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