]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
10 years agoMFC r258036:
markj [Mon, 17 Feb 2014 22:40:05 +0000 (22:40 +0000)]
MFC r258036:
Add IDs for the ASIX 88179 and 88178A USB to GigE adapters.

MFC r258331:
Import the axge(4) driver for the ASIX AX88178A and AX88179 USB Ethernet
adapters. Both devices support Gigabit Ethernet and USB 2.0, and the AX88179
supports USB 3.0.

MFC r258617 (by lwhsu):
Also note to add xhci(4) to kernel configuration to utilize USB 3.0

MFC r258618 (by lwhsu):
Mention axge(4)

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

10 years agoMFC 260926:
jhb [Mon, 17 Feb 2014 22:19:49 +0000 (22:19 +0000)]
MFC 260926:
Add support for displaying VPD for PCI devices via pciconf.
- Store the length of each read-only VPD value since not all values are
  guaranteed to be ASCII values (though most are).
- Add a new pciio ioctl to fetch VPD for a single PCI device.  The values
  are returned as a list of variable length records, one for the device
  name and each keyword.
- Add a new -V flag to pciconf's list mode which displays VPD data for
  each device.

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

10 years agoMFC r261907:
dim [Mon, 17 Feb 2014 20:45:39 +0000 (20:45 +0000)]
MFC r261907:

In cxgbe, conditionalize the t4_pgprot_wc() function, since it is only
used when DOT5 is defined.

Reviewed by: np

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

10 years agoMFC r261903:
dim [Mon, 17 Feb 2014 20:37:15 +0000 (20:37 +0000)]
MFC r261903:

Disable warning about unused static const variables for sys/pci/ncr.c.

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

10 years agoMFC r261902:
dim [Mon, 17 Feb 2014 20:31:54 +0000 (20:31 +0000)]
MFC r261902:

In r260111, in sys/conf/files, I disabled warning about unused functions
for the wrong mcg.c, the one in ofed/drivers/infiniband/hw/mlx4.
Disable the warning for ofed/drivers/net/mlx4/mcg.c instead.

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

10 years agoMFC r261896:
dim [Mon, 17 Feb 2014 20:25:17 +0000 (20:25 +0000)]
MFC r261896:

After r251709, avoid a clang 3.4 warning about an unused static const
variable (uma_max_ipers), when asserts are disabled.

Reviewed by: glebius

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

10 years agoMFC r261899:
dim [Mon, 17 Feb 2014 20:19:34 +0000 (20:19 +0000)]
MFC r261899:

Similar to r260026, disable warning about unused functions for
ieee80211_adhoc.c, ieee80211_hostap.c and ieee80211_sta.c.

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

10 years agoMFC r260486:
mav [Mon, 17 Feb 2014 20:04:16 +0000 (20:04 +0000)]
MFC r260486:
Remove very low default limit of 4 nfsd threads.  nfsd's own default is
8 * hw.ncpu, that sounds more appropriate for these SMP/NCQ/... days.

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

10 years agoMFC r260185: MFV r260155: 4391 panic system rather than corrupting pool if we hit...
avg [Mon, 17 Feb 2014 18:25:41 +0000 (18:25 +0000)]
MFC r260185: MFV r260155: 4391 panic system rather than corrupting pool if we hit bug 4390

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

10 years agoMFC r260835: MFV r260834: Fix memory leak of compressed buffers in l2arc_write_done
avg [Mon, 17 Feb 2014 18:16:25 +0000 (18:16 +0000)]
MFC r260835: MFV r260834: Fix memory leak of compressed buffers in l2arc_write_done

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

10 years agoMFC r260704,260717: zfs: getnewvnode_reserve must be called outside of a
avg [Mon, 17 Feb 2014 18:00:24 +0000 (18:00 +0000)]
MFC r260704,260717: zfs: getnewvnode_reserve must be called outside of a
zfs transaction

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

10 years agoMFC r260812: traverse_visitbp: visit DMU_GROUPUSED_OBJECT before DMU_USERUSED_OBJECT
avg [Mon, 17 Feb 2014 17:51:50 +0000 (17:51 +0000)]
MFC r260812: traverse_visitbp: visit DMU_GROUPUSED_OBJECT before DMU_USERUSED_OBJECT

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

10 years agoMFC r260811: zdb -R: do not treat numeric parameters to a flag as more flags
avg [Mon, 17 Feb 2014 17:48:38 +0000 (17:48 +0000)]
MFC r260811: zdb -R: do not treat numeric parameters to a flag as more flags

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

10 years agoMFC r260703: zinject must use ioctl(2) compatibility wrapper
avg [Mon, 17 Feb 2014 17:46:15 +0000 (17:46 +0000)]
MFC r260703: zinject must use ioctl(2) compatibility wrapper

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

10 years agoMFC r260706: zfs_deleteextattr: name buffer from namei is needed by zfs_remove
avg [Mon, 17 Feb 2014 17:27:52 +0000 (17:27 +0000)]
MFC r260706: zfs_deleteextattr: name buffer from namei is needed by zfs_remove

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

10 years agoMFC r258717: MFV r258371,r258372: 4101 metaslab_debug should allow for
avg [Mon, 17 Feb 2014 17:11:38 +0000 (17:11 +0000)]
MFC r258717: MFV r258371,r258372: 4101 metaslab_debug should allow for
fine-grained control

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

10 years agoMFC r261401:
bdrewery [Mon, 17 Feb 2014 15:57:16 +0000 (15:57 +0000)]
MFC r261401:

  Fix newsyslog(8) to use the size of the file instead of the blocks it
  takes on disk, as advertised in newsyslog.conf(5).

Approved by: bapt (mentor, implicit)

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

10 years agoMFC r258715: opensolaris compat: add taskq_wait emulation
avg [Mon, 17 Feb 2014 15:38:10 +0000 (15:38 +0000)]
MFC r258715: opensolaris compat: add taskq_wait emulation

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

10 years agoMFC r261122: dtrace: remove unexplained 16MB limitation from dt_alloc/dt_zalloc
avg [Mon, 17 Feb 2014 15:35:11 +0000 (15:35 +0000)]
MFC r261122: dtrace: remove unexplained 16MB limitation from dt_alloc/dt_zalloc

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

10 years agoMFC r258713,262062: add taskqueue_drain_all
avg [Mon, 17 Feb 2014 15:32:08 +0000 (15:32 +0000)]
MFC r258713,262062: add taskqueue_drain_all

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

10 years agoMFC r260051:
markj [Mon, 17 Feb 2014 14:51:02 +0000 (14:51 +0000)]
MFC r260051:
When clearing relocations to __dtrace* symbols, handle both SHT_REL and
SHT_RELA sections properly instead of assuming that the relocation section
is of type SHT_REL.

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

10 years agoMFC r258625: sdt: add support for solaris/illumos style DTRACE_PROBE macros
avg [Mon, 17 Feb 2014 14:47:52 +0000 (14:47 +0000)]
MFC r258625: sdt: add support for solaris/illumos style DTRACE_PROBE macros

Note: in head KDTRACE_HOOKS is defined in opt_global.h and thus there is
no need to explicitly include any header to check that option.
In this branch we have to include opt_kdtrace.h and, so, this commit
carries additional changes to accomodate for that difference.

Sponsored by: HybridCluster

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

10 years agoMFC r260132: Allocate the probe ID unrhdr before the DTrace kld_* event
avg [Mon, 17 Feb 2014 13:36:35 +0000 (13:36 +0000)]
MFC r260132: Allocate the probe ID unrhdr before the DTrace kld_* event
handlers are registered

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

10 years agoMFC r257417: Remove references to an unused fasttrap probe hook
avg [Mon, 17 Feb 2014 13:19:27 +0000 (13:19 +0000)]
MFC r257417:  Remove references to an unused fasttrap probe hook

Only mergeinfo record for commit r262042

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

10 years agoMFC r258291: change the ioctl definition so that the fasttrap ioctl
avg [Mon, 17 Feb 2014 13:11:15 +0000 (13:11 +0000)]
MFC r258291: change the ioctl definition so that the fasttrap ioctl
handler is responsible for copying in userland data

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

10 years agoMFC r257679: Use suword32 and suword64 instead of copyout(9) in fasttrap
avg [Mon, 17 Feb 2014 13:08:20 +0000 (13:08 +0000)]
MFC r257679: Use suword32 and suword64 instead of copyout(9) in fasttrap

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

10 years agoMFC r257143: Fix a couple of bugs in the fasttrap emulation of a "push %rbp"
avg [Mon, 17 Feb 2014 13:05:26 +0000 (13:05 +0000)]
MFC r257143: Fix a couple of bugs in the fasttrap emulation of a "push %rbp"

Only mergeinfo for the previous commit.

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

10 years agoMFC r257143: Fix a couple of bugs in the fasttrap emulation of a "push %rbp"
avg [Mon, 17 Feb 2014 13:02:09 +0000 (13:02 +0000)]
MFC r257143: Fix a couple of bugs in the fasttrap emulation of a "push %rbp"

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

10 years agoMFC r257417: Remove references to an unused fasttrap probe hook
avg [Mon, 17 Feb 2014 12:57:13 +0000 (12:57 +0000)]
MFC r257417:  Remove references to an unused fasttrap probe hook

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

10 years agoMFC r257152: Do some cleanup of the SDT code
avg [Mon, 17 Feb 2014 12:48:05 +0000 (12:48 +0000)]
MFC r257152: Do some cleanup of the SDT code

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

10 years agoMFC r259587: Invoke the kld_* event handlers from linker_load_file() ...
avg [Mon, 17 Feb 2014 12:45:35 +0000 (12:45 +0000)]
MFC r259587: Invoke the kld_* event handlers from linker_load_file() ...

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

10 years agoMFC r261719:
mav [Mon, 17 Feb 2014 09:35:30 +0000 (09:35 +0000)]
MFC r261719:
Fix wrong device name in example.

PR: docs/185602
Submitted by: koitsu

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

10 years agoMFC r260043:
markj [Mon, 17 Feb 2014 05:07:43 +0000 (05:07 +0000)]
MFC r260043:
The arguments to sched:::off-cpu are the thread and associated process of
the thread selected to run, not the currently running thread.

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

10 years agoMFC r261506:
kevlo [Mon, 17 Feb 2014 01:40:33 +0000 (01:40 +0000)]
MFC r261506:

Correct setting R92C_TXAGC_MCS11_MCS08 register.

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

10 years agoMFC r260463:
kevlo [Mon, 17 Feb 2014 01:39:03 +0000 (01:39 +0000)]
MFC r260463:

Replace deprecated M_DONTWAIT with M_NOWAIT.

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

10 years agoMFC r260444:
kevlo [Mon, 17 Feb 2014 01:36:53 +0000 (01:36 +0000)]
MFC r260444:

Rename definition of IEEE80211_FC1_WEP to IEEE80211_FC1_PROTECTED.

The origin of WEP comes from IEEE Std 802.11-1997 where it defines
whether the frame body of MAC frame has been encrypted using WEP
algorithm or not.
IEEE Std. 802.11-2007 changes WEP to Protected Frame, indicates
whether the frame is protected by a cryptographic encapsulation
algorithm.

Reviewed by: adrian, rpaulo

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

10 years agoMFC r260175:
marcel [Sun, 16 Feb 2014 23:08:21 +0000 (23:08 +0000)]
MFC r260175:
Implement atomic_swap_<type>.

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

10 years agoMFC r260914:
marcel [Sun, 16 Feb 2014 22:12:13 +0000 (22:12 +0000)]
MFC r260914:
In pmap_set_pte(), make sure to enforce ordering by inserting a memory fence.

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

10 years agoMFC r260666:
marcel [Sun, 16 Feb 2014 22:01:44 +0000 (22:01 +0000)]
MFC r260666:
In the nested TLB fault handler, for a direct-mapped address, make
sure to clear the lower 12 bits.

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

10 years agoMFC r259908:
marcel [Sun, 16 Feb 2014 20:54:26 +0000 (20:54 +0000)]
MFC r259908:
For ia64, use pmap_remove_pages() and not pmap_remove().

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

10 years agoMFC r259838:
marcel [Sun, 16 Feb 2014 20:45:12 +0000 (20:45 +0000)]
MFC r259838:
Add another HP iLO serial (console) port, found on Itanium servers.

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

10 years agoMFC r259441:
marcel [Sun, 16 Feb 2014 20:37:39 +0000 (20:37 +0000)]
MFC r259441:
Properly drain the TTY when both revoke(2) and close(2) end up closing
the TTY.

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

10 years agoMFC r259244:
marcel [Sun, 16 Feb 2014 20:26:22 +0000 (20:26 +0000)]
MFC r259244:
Allow pmap_remove_pages() to be called for physical maps not
associated with the current thread.

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

10 years agoMFC r259057:
marcel [Sun, 16 Feb 2014 20:13:18 +0000 (20:13 +0000)]
MFC r259057:
Remove "Warning: file \"%s\" unreadable". It was introduced with revision
44599 and turned less than useful ever since fortunes-o.dat got removed.

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

10 years agoMFC r259056:
marcel [Sun, 16 Feb 2014 20:02:29 +0000 (20:02 +0000)]
MFC r259056:
Fix r203922 for "fortune -o".

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

10 years agoMFC r258448:
marcel [Sun, 16 Feb 2014 19:46:20 +0000 (19:46 +0000)]
MFC r258448:
Have the GPT probe return a lower priority when the MBR is not a PMBR.

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

10 years agoDirect commit to stable/10 to note that the nve(4) driver has been
brueffer [Sun, 16 Feb 2014 19:38:17 +0000 (19:38 +0000)]
Direct commit to stable/10 to note that the nve(4) driver has been
deprecated.

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

10 years agoMFC r257910:
marcel [Sun, 16 Feb 2014 19:20:13 +0000 (19:20 +0000)]
MFC r257910:
Don't enable interrupts before we call sched_throw().

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

10 years agoMFC r257487:
marcel [Sun, 16 Feb 2014 19:12:50 +0000 (19:12 +0000)]
MFC r257487:
Use LOG2_ID_PAGE_SIZE again for the identity mapping in regions 6 & 7.

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

10 years agoMFC: r261838
brueffer [Sun, 16 Feb 2014 11:13:14 +0000 (11:13 +0000)]
MFC: r261838

Add a deprecation notice to nve.4 and Xref nfe.4.

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

10 years agoMFC: r261702
brueffer [Sun, 16 Feb 2014 11:11:41 +0000 (11:11 +0000)]
MFC: r261702

Update and sort the list of iwn(4) firmware.

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

10 years agoMFC: r261701
brueffer [Sun, 16 Feb 2014 10:39:29 +0000 (10:39 +0000)]
MFC: r261701

Allow iwn2000 and iwn2030 firmware to be linked into the kernel.

PR: 184631
Submitted by: Oliver Pinter

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

10 years agoRefer newfs and growfs users to fsck_ffs instead of
brueffer [Sun, 16 Feb 2014 10:16:07 +0000 (10:16 +0000)]
Refer newfs and growfs users to fsck_ffs instead of
fsck, the latter does not accept the referred to "-b" flag.

PR: 82720
Submitted by: David D.W. Downey

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

10 years agoMFC r261863
rpaulo [Sun, 16 Feb 2014 08:35:33 +0000 (08:35 +0000)]
MFC r261863
  Add urtwn_start_locked() to avoid unlocking during TX.

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

10 years agoMFC r261824:
eadler [Sun, 16 Feb 2014 02:33:59 +0000 (02:33 +0000)]
MFC r261824:
libutil/pw_util.3: Fix two prototypes.

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

10 years agoMFC: r261611
brueffer [Fri, 14 Feb 2014 08:29:00 +0000 (08:29 +0000)]
MFC: r261611

Add some context for the "kldload sem" command; minor other improvements.

PR: 183650
Submitted by: Bjorn Heidotting

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

10 years agoMFC: r261584
brueffer [Fri, 14 Feb 2014 08:20:32 +0000 (08:20 +0000)]
MFC: r261584

In IPv6 code examples, use the correct v6 socket.

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

10 years agoMFC r261597, r261598 and r261599:
hselasky [Fri, 14 Feb 2014 07:30:59 +0000 (07:30 +0000)]
MFC r261597, r261598 and r261599:

Apple touchpad manual page fixes:
- Add manual page for wsp driver
- Update atp driver manual page
- Install atp manual page for all platforms

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

10 years agoMFC r259544, r259545, r259546, r259547, r259812, r259939, r260219, r260542,
kevlo [Fri, 14 Feb 2014 03:45:49 +0000 (03:45 +0000)]
MFC r259544, r259545, r259546, r259547, r259812, r259939, r260219, r260542,
    r261118, r261124, r261330:

- Add support for the MediaTek/Ralink RT3593 chipset.
- Various minor USB WLAN fixes and improvements.

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

10 years agoMFC 261861
davidcs [Fri, 14 Feb 2014 02:48:14 +0000 (02:48 +0000)]
MFC 261861
check for defrag only when bus_dmamap_load_mbuf_sg() returns EFBIG. Comment in
qla_hw_send is moot.

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

10 years agoMFC 260207
gnn [Fri, 14 Feb 2014 00:26:30 +0000 (00:26 +0000)]
MFC 260207

Convert #defines to enums so that the values are visible in the debugger.

Requested by: gibbs

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

10 years agoMFC r261081, r261133, and r261615
asomers [Thu, 13 Feb 2014 22:19:24 +0000 (22:19 +0000)]
MFC r261081, r261133, and r261615

r261081
Replace the old unix_seqpacket and unix_seqpacket_exercise
tests, which were a little broken and not automatable, with
unix_seqpacket_test.  It's coverage is a superset of the old
tests and it uses ATF.  It includes test cases for bugs
kern/185813 and kern/185812.

r261133
Fix the Makefiles so that the tests I submitted in r261081 will
actually get built.

r261615
tests/sys/Makefile
use TESTS_SUBDIRS for kern instead of SUBDIRS.  I don't
think it makes a difference in this case, but
TESTS_SUBDIRS is generally correct for subdirectories
that contain tests.

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

10 years agoMFC r261132
asomers [Thu, 13 Feb 2014 19:46:48 +0000 (19:46 +0000)]
MFC r261132

Fix the build so -DNO_TESTS is passed in various phases that don't require
tests in order to build or install.  Crucially, don't try to install tests
during the lib32 install phase.  This commit supersedes r261081, which fixed
the lib32 install phase problem, but didn't fix other phases.

Submitted by: Garrett Cooper
Reviewed by: sjg

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

10 years agoMFC: r261566
brueffer [Thu, 13 Feb 2014 09:24:46 +0000 (09:24 +0000)]
MFC: r261566

Use CAP_EVENT instead of the deprecated CAP_POLL_EVENT.

PR: 185382 (based on)
Submitted by: Loganaden Velvindron
Reviewed by: pjd

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

10 years agoMFC r257600:
markj [Thu, 13 Feb 2014 04:54:47 +0000 (04:54 +0000)]
MFC r257600:
Initialize the struct tm before handing it to strptime(3).

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

10 years agoMFC r261497:
rmh [Wed, 12 Feb 2014 13:55:30 +0000 (13:55 +0000)]
MFC r261497:

Abort when firmware isn't present in R600+ models.

More details at:
http://anonscm.debian.org/viewvc/kernel/dists/trunk/linux/debian/patches/bugfix/all/radeon-firmware-is-required-for-drm-and-kms-on-r600-onward.patch?revision=20909&view=co

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

10 years agoMFC r261680:
dim [Wed, 12 Feb 2014 07:51:14 +0000 (07:51 +0000)]
MFC r261680:

Pull in r200899 from upstream clang trunk:

  Allow transformation of VariableArray to ConstantArray.

  In the following code:

     struct A { static const int sz; };
     template<class T> void f() { T arr[A::sz]; }

  the array 'arr' is represented as a variable size array in the template.
  If 'A::sz' gets value below in the translation unit, the array in
  instantiation can turn into constant size array.

  This change fixes PR18633.

  Differential Revision: http://llvm-reviews.chandlerc.com/D2688

This fixes "Assertion failed: (T::isKind(*this)), function castAs"
errors, which can occur when building the security/quantis port.

Reported by: ale

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

10 years agoMFC r261507:
hselasky [Wed, 12 Feb 2014 07:18:01 +0000 (07:18 +0000)]
MFC r261507:
Add more quirks for making builtin audio speakers work with more
MacBookPro's. Only tested with MacBookPro 9,2.

Obtained from: Linux

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

10 years agoDocuemnt mount_udf(8) issue.
hrs [Tue, 11 Feb 2014 23:11:11 +0000 (23:11 +0000)]
Docuemnt mount_udf(8) issue.

Submitted by: brueffer

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

10 years agoMFC: r261500
brueffer [Tue, 11 Feb 2014 13:33:03 +0000 (13:33 +0000)]
MFC: r261500

Add a license (1) and do some cleanup.

Approved by: Stefan Bethke (original author, by private mail) (1)

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

10 years agoMFC r260389:
trasz [Tue, 11 Feb 2014 12:01:11 +0000 (12:01 +0000)]
MFC r260389:

Fix a rare "truncated checksums" problem, which manifested like this:

WARNING: icl_pdu_check_data_digest: data digest check failed; got 0xf23b,
should be 0xdb7f23b

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r260083:
trasz [Tue, 11 Feb 2014 11:58:54 +0000 (11:58 +0000)]
MFC r260083:

Fix extremely slow operation with data digests enabled.  This was caused
by receive code waiting for data digest even when the data segment was
empty.  It didn't actually read it, but it waited until those four bytes
become available in the socket buffer, i.e. until any other PDU (e.g. NOP)
came in.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r260255:
trasz [Tue, 11 Feb 2014 11:56:50 +0000 (11:56 +0000)]
MFC r260255:

Properly document -u and -s.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC: r261496
brueffer [Tue, 11 Feb 2014 08:20:45 +0000 (08:20 +0000)]
MFC: r261496

Unbreak mount_udf by passing the correct iovec length into
nmount().  This has been broken since r247861.

PR: bin/186193
Submitted by: Arnot Belohlavek

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

10 years agoMFC: r261487
brueffer [Tue, 11 Feb 2014 08:11:34 +0000 (08:11 +0000)]
MFC: r261487

Add qlxgbe(4) and qlxge(4) to the hardware notes.

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

10 years agoMFC: r261494
brueffer [Tue, 11 Feb 2014 08:08:53 +0000 (08:08 +0000)]
MFC: r261494

Actually install acpi_rapidstart.4.

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

10 years agoMFC: r261339
brueffer [Mon, 10 Feb 2014 22:24:49 +0000 (22:24 +0000)]
MFC: r261339

MLINK ixgbe.4 to {if_ix.4, ix.4}.  An update for ixgbe.4
which deals with the "ix prefix being shared by two drivers"
situation is forthcoming.

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

10 years agoMFC: r261447
brueffer [Mon, 10 Feb 2014 22:16:22 +0000 (22:16 +0000)]
MFC: r261447

Fix a typo.

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

10 years agoMFC r261609:
dim [Mon, 10 Feb 2014 20:25:40 +0000 (20:25 +0000)]
MFC r261609:

Pull in upstream libcxxrt commit 8006101, which makes its cxxabi.h file
compilable just by itself.

PR: kern/184019

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

10 years agoMFC r261522:
wblock [Mon, 10 Feb 2014 17:37:34 +0000 (17:37 +0000)]
MFC r261522:

Describe the use of a freebsd-boot GPT partition, brought up by Scot
Hetzel <swhetzel@gmail.com> on the -doc mailing list.

Also modify the Author section to be clear that I wrote the man page,
not gptboot.

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

10 years agoMFC r261515:
mav [Mon, 10 Feb 2014 16:29:50 +0000 (16:29 +0000)]
MFC r261515:
Fix I/O freezes in some cases, caused by r257916.

Delaying isp_reqodx update, we should be ready to update it every time
we read it.  Otherwise requests using several indexes may be requeued
ndefinitely without ever updating the variable.

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

10 years agoMFC r261400:
ae [Mon, 10 Feb 2014 15:23:40 +0000 (15:23 +0000)]
MFC r261400:
  Take exclusive lock only when lle isn't NULL. We don't need write access
  to lle in most cases.

MFC r261583:
  Unlock entry before retry.

Sponsored by: Yandex LLC

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

10 years agoRun ldconfig(8) rc script before building ports so
gjb [Mon, 10 Feb 2014 07:16:46 +0000 (07:16 +0000)]
Run ldconfig(8) rc script before building ports so
ld-elf.so.hints exists for pkg(8).

This is a direct commit to stable/10 as generate-release.sh
does not exist in head/.

PR: 186554
Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r260871:
adrian [Mon, 10 Feb 2014 06:29:05 +0000 (06:29 +0000)]
MFC r260871:

  If the flowid is available for the mbuf that finalised the creation
  of a syncache connection, copy it into the inp_flowid field.

  Without this, an incoming TCP connection won't have an inp_flowid marked
  until some data comes in, and this means that things like the per-CPU
  TCP timer option will choose a different CPU for the timer work.
  (It also means that if one grabbed the flowid via an ioctl from userland,
  it won't be available until some data has been received.)

Sponsored by: Netflix, Inc.

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

10 years agoMFC r260553 (by theraven):
dim [Sun, 9 Feb 2014 00:34:21 +0000 (00:34 +0000)]
MFC r260553 (by theraven):

Add missing C++11 typeinfos to the libcxxrt version script.

PR: 185663

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

10 years agoMFC r261354:
kib [Sat, 8 Feb 2014 15:51:24 +0000 (15:51 +0000)]
MFC r261354:
In _pthread_kill(), if passed pthread is current thread, do not send
the signal second time, by adding the missed else before if statement.

PR: threads/186309

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

10 years agoMFC r261505:
hselasky [Fri, 7 Feb 2014 07:18:52 +0000 (07:18 +0000)]
MFC r261505:
Fix a regression issue. Contiguous single segment allocations above
PAGE_SIZE bytes should only use one USB page structure. Fixes a
problem with some external drivers.

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

10 years agoMFC: 261291
gnn [Fri, 7 Feb 2014 04:34:04 +0000 (04:34 +0000)]
MFC: 261291

The timestamp bit is number 17, and not number 9, in the stat error
field of the receive descriptor.

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

10 years agoMFC r260949:
mav [Fri, 7 Feb 2014 04:09:15 +0000 (04:09 +0000)]
MFC r260949:
Make comconsole options set before its activation to be remembered.

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

10 years agoMFC r261449:
mav [Fri, 7 Feb 2014 04:02:14 +0000 (04:02 +0000)]
MFC r261449:
Fix lock acquisition in case no request space available, missed in r260097.

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

10 years agoMFC r261080:
kib [Thu, 6 Feb 2014 19:47:17 +0000 (19:47 +0000)]
MFC r261080:
The posix_fallocate(2) syscall should return error number on error,
without modifying errno.

MFC r261290:
The posix_madvise(3) and posix_fadvise(2) should return error on
failure, same as posix_fallocate(2).

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

10 years agoMFC r260702 (by melifaro):
ae [Thu, 6 Feb 2014 10:48:55 +0000 (10:48 +0000)]
MFC r260702 (by melifaro):
  Fix ipfw fwd for IPv4 traffic broken by r249894.

  Problem case:
  Original lookup returns route with GW set, so gw points to
  rte->rt_gateway.
  After that we're changing dst and performing lookup another time.
  Since fwd host is most probably directly reachable, resulting
  rte does not contain rt_gateway, so gw is not set. Finally, we
  end with packet transmitted to proper interface but wrong
  link-layer address.

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

10 years agoMFC r261432
rpaulo [Thu, 6 Feb 2014 02:12:39 +0000 (02:12 +0000)]
MFC r261432
 Fix the definition of hg_cmd.

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

10 years agoMFC r261260, r261262, r261315 and r261343:
hselasky [Wed, 5 Feb 2014 08:40:02 +0000 (08:40 +0000)]
MFC r261260, r261262, r261315 and r261343:
Add support for trackpads found in Apple MacBook products. While at it
add some missing devd entries.

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

10 years agoMFC r258787:
eadler [Tue, 4 Feb 2014 16:29:30 +0000 (16:29 +0000)]
MFC r258787:
r258780 should not have applied to .S files.

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

10 years agoMFC r260903:
hselasky [Tue, 4 Feb 2014 10:29:23 +0000 (10:29 +0000)]
MFC r260903:
Add support for GPS ports to UHSO driver.

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

10 years agoMFC r260315:
hselasky [Tue, 4 Feb 2014 10:18:29 +0000 (10:18 +0000)]
MFC r260315:
Implement two new libusb API functions.

PR: usb/185454

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

10 years agoMFC r261228:
hselasky [Tue, 4 Feb 2014 09:06:28 +0000 (09:06 +0000)]
MFC r261228:
When detaching a [USB] keyboard, keys might still be pressed. Ensure
that all pressed keys are released before completing the USB keyboard
detach. This will prevent so-called "ghost-keys" from appearing after
that the USB device generating the key event(s) has been detached.

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

10 years agoMFC r261224:
hselasky [Tue, 4 Feb 2014 08:59:42 +0000 (08:59 +0000)]
MFC r261224:
Comply to the official LibUSB v1.0 API:
"It is legal to attempt to claim an already-claimed interface."

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

10 years agoMFC r261134:
hselasky [Tue, 4 Feb 2014 08:54:59 +0000 (08:54 +0000)]
MFC r261134:
Add more USB quirks.

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