]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
10 years agoMFC: r261885
brueffer [Fri, 21 Feb 2014 09:19:16 +0000 (09:19 +0000)]
MFC: r261885

In sgetpwnam(), save and free pw_class like all other char members
of struct passwd.  This fixes spurious "login_getclass: unknown class"
errors.

PR: 186439
Submitted by: UEMURA Tetsuya <t_uemura at macome.co.jp>

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

10 years agoMFC r259330,r259331:
mjg [Thu, 20 Feb 2014 21:52:39 +0000 (21:52 +0000)]
MFC r259330,r259331:

rlimit: add and utilize lim_shared

rlimit: avoid unnecessary copying of rlimits

If refcount is 1 just modify rlimits in place.

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

10 years agoMFC r260233:
mjg [Thu, 20 Feb 2014 21:36:05 +0000 (21:36 +0000)]
MFC r260233:

Plug a memory leak in dup2 when both old and new fd have ioctl caps.

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

10 years agoMFC r261835:
ae [Thu, 20 Feb 2014 21:01:59 +0000 (21:01 +0000)]
MFC r261835:
  Drop packets to multicast address whose scop field contains the
  reserved value 0.

Sponsored by: Yandex LLC

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

10 years agoMFC r262253: hack to prevent concurrent runs of asn1_compile in the Heimdal
peter [Thu, 20 Feb 2014 20:51:27 +0000 (20:51 +0000)]
MFC r262253: hack to prevent concurrent runs of asn1_compile in the Heimdal
build with high -j concurrency.

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

10 years agoMFC r257129,257936,258084,258569,258602,262250,262251
peter [Thu, 20 Feb 2014 20:34:01 +0000 (20:34 +0000)]
MFC r257129,257936,258084,258569,258602,262250,262251
  svn-1.8.4, 1.8.5, 1.8.8 and self-contained private support libraries

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

10 years agoMFC: r261858
brueffer [Thu, 20 Feb 2014 08:55:59 +0000 (08:55 +0000)]
MFC: r261858

Fix a bug in be_uuid_dec(); it called le16dec() instead of be16dec(),
probably due to copy+pasting le_uuid_dec().

PR: 146588
Submitted by: Erwin Rol <erwin at erwinrol.com>
Reviewed by: marcel

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

10 years agoMFC r257883:
eadler [Wed, 19 Feb 2014 19:38:25 +0000 (19:38 +0000)]
MFC r257883:

Add support for SIIG x1 pci-e single parallel port card (JJ-E01211-S1)

PR: kern/182217

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

10 years agoMFC 261512,261514:
jhb [Wed, 19 Feb 2014 19:28:49 +0000 (19:28 +0000)]
MFC 261512,261514:
- Partially revert r52493 and change client side interval statistics to
  report the actual number of RPCs issued, not the theoretical number
  that would be issued if all caching was disabled.
- Use the DELTA() macro to tidy the server-side interval stats code a bit.

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

10 years agoMFC 261780:
jhb [Wed, 19 Feb 2014 19:11:14 +0000 (19:11 +0000)]
MFC 261780:
Expose OBJT_MGTDEVICE VM objects used for GEM/TTM with drm2 as an
explicit object type.

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

10 years agoMFC 261607:
jhb [Wed, 19 Feb 2014 18:36:53 +0000 (18:36 +0000)]
MFC 261607:
Mark the I/O ports used by the bhyve console and debug devices as system
resources.

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

10 years agoMFC 261524,261526,261527:
jhb [Wed, 19 Feb 2014 18:34:47 +0000 (18:34 +0000)]
MFC 261524,261526,261527:
- Properly set the alignment flags when allocating the initial range for a
  BAR.  This only really matters when pci_do_realloc_bars is enabled and
  the initial allocation of a specific range fails.
- Simplify pci_reserve_map() by calling resource_list_reserve() to allocate
  the resource after creating a resource list entry rather than reimplementing
  it by hand.
- Add two tunables to ignore certain firmware-assigned resources.  These
  are mostly useful for debugging.
  - hw.pci.clear_bars ignores all firmware-assigned ranges for BARs when
    set.
  - hw.pci.clear_pcib ignores all firmware-assigned ranges for PCI-PCI
    bridge I/O windows when set.

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

10 years agoallow building without INET
luigi [Wed, 19 Feb 2014 08:15:09 +0000 (08:15 +0000)]
allow building without INET

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

10 years agoMFC r261977:
dim [Wed, 19 Feb 2014 08:05:42 +0000 (08:05 +0000)]
MFC r261977:

In sys/dev/usb/controller/musb_otg.c, fix a warning about musbotg_odevd
being unused, by adding it to the part that handles getting descriptors.

Reviewed by: hselasky

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

10 years agoMFC r261916:
dim [Wed, 19 Feb 2014 07:59:50 +0000 (07:59 +0000)]
MFC r261916:

In sys/dev/xen/console/console.c, #if 0 an unused static function.

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

10 years agoMFC r261914:
dim [Wed, 19 Feb 2014 07:55:28 +0000 (07:55 +0000)]
MFC r261914:

In sys/fs/nandfs/nandfs_vfsops.c, #if 0 an unused static function.

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

10 years agoMFC r261915:
dim [Wed, 19 Feb 2014 07:51:58 +0000 (07:51 +0000)]
MFC r261915:

Under sys/netpfil/ipfw, surround two IPv6-specific static functions with
#ifdef INET6, since they are unused when INET6 is disabled.

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

10 years agoMFC 261517,261520:
jhb [Tue, 18 Feb 2014 20:27:17 +0000 (20:27 +0000)]
MFC 261517,261520:
Convert the license on files where I am the sole copyright holder to
2 clause BSD licenses.

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

10 years agoMFC 261518:
jhb [Tue, 18 Feb 2014 20:16:32 +0000 (20:16 +0000)]
MFC 261518:
- Update a few places to account for va_copy().
- Create a separate 'return values' section and move some statements about
  return values to that section.
- Note that each invocation of va_start() and va_copy() must be paired with
  va_end() in the same function.

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

10 years agoMFC r259052: Expose spa_asize_inflation
avg [Tue, 18 Feb 2014 15:39:59 +0000 (15:39 +0000)]
MFC r259052: Expose spa_asize_inflation

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

10 years agoMFC r260236:
mav [Tue, 18 Feb 2014 14:56:44 +0000 (14:56 +0000)]
MFC r260236:
In dmu_zfetch_stream_reclaim() replace division with multiplication and
move it out of the loop and lock.

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

10 years agomissing files from previous commit...
luigi [Tue, 18 Feb 2014 05:46:19 +0000 (05:46 +0000)]
missing files from previous commit...

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

10 years agoMFH: sync the netmap code with the one in HEAD
luigi [Tue, 18 Feb 2014 05:01:04 +0000 (05:01 +0000)]
MFH: sync the netmap code with the one in HEAD
(enhanced VALE switch, netmap pipes, emulated netmap mode).
See details in the log for svn 261909.

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

10 years agoMFC r261895:
wblock [Tue, 18 Feb 2014 03:39:20 +0000 (03:39 +0000)]
MFC r261895:

Remove mention of minimum password length and upper/lower case checking,
patch supplied by Allan Jude <freebsd@allanjude.com>.  Add xref to
pam_passwdqc(8), where that testing is now done.

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

10 years agoMFC r261800:
wblock [Tue, 18 Feb 2014 03:33:51 +0000 (03:33 +0000)]
MFC r261800:

Remove obsolete vnode(9) man page references.

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

10 years agoMFC 259140:
jhb [Tue, 18 Feb 2014 01:15:32 +0000 (01:15 +0000)]
MFC 259140:
Move constants for indices in the local APIC's local vector table from
apicvar.h to apicreg.h.

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

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