]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
10 years agoMFC: r262135
brueffer [Mon, 24 Feb 2014 08:18:11 +0000 (08:18 +0000)]
MFC: r262135

Add $FreeBSD$.

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

10 years agoMFC: r261531
marius [Sun, 23 Feb 2014 21:08:41 +0000 (21:08 +0000)]
MFC: r261531

- Implement the RX EARLYOFF and RXDV GATED bits as done by RealTek's Linux
  driver as iof version 8.037.00 for RTL8168{E-VL,EP,F,G,GU} and RTL8411B.
  This makes reception of packets work with the RTL8168G (HW rev. 0x4c000000)
  in my Shuttle DS47.
- Consistently use RL_MSI_MESSAGES.
In joint forces with: yongari

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

10 years agoMFC: r261529
marius [Sun, 23 Feb 2014 21:03:30 +0000 (21:03 +0000)]
MFC: r261529

Try to make the style used here consistent.

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

10 years agoMFC: r261549
brueffer [Sun, 23 Feb 2014 20:13:01 +0000 (20:13 +0000)]
MFC: r261549

Add a manpage for the urndis driver.

Obtained from: OpenBSD

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

10 years agoMFC r261934:
bdrewery [Sun, 23 Feb 2014 20:07:30 +0000 (20:07 +0000)]
MFC r261934:

  Rework rctl(8) manpage

Approved by: bapt (mentor, implicit)

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

10 years agoMFC r261931,r261932:
bdrewery [Sun, 23 Feb 2014 20:04:29 +0000 (20:04 +0000)]
MFC r261931,r261932:

  Allow overriding rctl.conf(5) file location for /etc/rc.d/rctl

Approved by: bapt (mentor, implicit)

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

10 years agoMFC r261872:
hselasky [Sun, 23 Feb 2014 13:36:21 +0000 (13:36 +0000)]
MFC r261872:
Fix minor logical error in the XHCI driver. Set correct SETUP packet
direction value.

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

10 years agoMFC r261827:
hselasky [Sun, 23 Feb 2014 13:33:21 +0000 (13:33 +0000)]
MFC r261827:
- Remove not needed definitions from driver.
- Get USB input report length from HID descriptor.
- Use 1 finger TAP for devices which has no integrated button.
- Move data buffer to softc instead of allocating it.

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

10 years agoMFC r261981:
hselasky [Sun, 23 Feb 2014 13:25:43 +0000 (13:25 +0000)]
MFC r261981:
Add new PCI ID for hardware which needs port routing for USB 3.0.

PR: usb/186811

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

10 years agoMFC r261541, r261543 and r261544:
hselasky [Sun, 23 Feb 2014 13:22:04 +0000 (13:22 +0000)]
MFC r261541, r261543 and r261544:
Import USB RNDIS driver to FreeBSD from OpenBSD.
Useful for so-called USB tethering.
- Imported code from OpenBSD
- Adapted code to FreeBSD
- Removed some unused functions
- Fixed some buffer encoding and decoding issues
- Optimised data transport path a bit, by sending multiple packets at a time
- Increased receive buffer to 16K

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

10 years agoMFC r261795:
hselasky [Sun, 23 Feb 2014 13:11:33 +0000 (13:11 +0000)]
MFC r261795:
Issue doorbell twice before finally freeing the DMA descriptors. This
should fix DMA descriptor caching issues seen with the EHCI controller
found in Google Chromebook C720 during removal and insertion of USB
devices.

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

10 years agoMFC: r262243
brueffer [Sun, 23 Feb 2014 09:44:30 +0000 (09:44 +0000)]
MFC: r262243

Fix a cross-reference.

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

10 years agoMFC 259542:
jhb [Sun, 23 Feb 2014 01:34:40 +0000 (01:34 +0000)]
MFC 259542:
Use vmcs_read() and vmcs_write() in preference to vmread() and vmwrite()
respectively. The vmcs_xxx() functions provide inline error checking of
all accesses to the VMCS.

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

10 years agoMFC 258859,259081,259085,259205,259213,259275,259482,259537,259702,259779:
jhb [Sun, 23 Feb 2014 00:46:05 +0000 (00:46 +0000)]
MFC 258859,259081,259085,259205,259213,259275,259482,259537,259702,259779:
Several changes to the local APIC support in bhyve:
- Rename 'vm_interrupt_hostcpu()' to 'vcpu_notify_event()'.
- If a vcpu disables its local apic and then executes a 'HLT' then spin
  down the vcpu and destroy its thread context. Also modify the 'HLT'
  processing to ignore pending interrupts in the IRR if interrupts have
  been disabled by the guest.  The interrupt cannot be injected into the
  guest in any case so resuming it is futile.
- Use callout(9) to drive the vlapic timer instead of clocking it on each
  VM exit.
- When the guest is bringing up the APs in the x2APIC mode a write to the
  ICR register will now trigger a return to userspace with an exitcode of
  VM_EXITCODE_SPINUP_AP.
- Change the vlapic timer lock to be a spinlock because the vlapic can be
  accessed from within a critical section (vm run loop) when guest is using
  x2apic mode.
- Fix the vlapic version register.
- Add a command to bhyvectl to inject an NMI on a specific vcpu.
- Add an API to deliver message signalled interrupts to vcpus. This allows
  callers to treat the MSI 'addr' and 'data' fields as opaque and also lets
  bhyve implement multiple destination modes: physical, flat and clustered.
- Rename the ambiguously named 'vm_setup_msi()' and 'vm_setup_msix()' to
  'vm_setup_pptdev_msi()' and 'vm_setup_pptdev_msix()' respectively.
- Consolidate the virtual apic initialization in a single function:
  vlapic_reset()
- Add a generic routine to trigger an LVT interrupt that supports both
  fixed and NMI delivery modes.
- Add an ioctl and bhyvectl command to trigger local interrupts inside a
  guest.  In particular, a global NMI similar to that raised by SERR# or
  PERR# can be simulated by asserting LINT1 on all vCPUs.
- Extend the LVT table in the vCPU local APIC to support CMCI.
- Flesh out the local APIC error reporting a bit to cache errors and
  report them via ESR when ESR is written to.  Add support for asserting
  the error LVT when an error occurs.  Raise illegal vector errors when
  attempting to signal an invalid vector for an interrupt or when sending
  an IPI.
- Export table entries in the MADT and MP Table advertising the stock x86
  config of LINT0 set to ExtInt and LINT1 wired to NMI.

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

10 years agoMFC 257297:
jhb [Sat, 22 Feb 2014 23:34:39 +0000 (23:34 +0000)]
MFC 257297:
Remove unnecessary includes of <machine/pmap.h>

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

10 years agoRecord earlier merge of 257018.
jhb [Sat, 22 Feb 2014 20:12:10 +0000 (20:12 +0000)]
Record earlier merge of 257018.

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

10 years agoMFC r262324: serf 1.3.4 - improve SSL handling with svn-1.8.8 and other
peter [Sat, 22 Feb 2014 18:55:49 +0000 (18:55 +0000)]
MFC r262324: serf 1.3.4 - improve SSL handling with svn-1.8.8 and other
speedups and quality of life fixes.

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

10 years agoMFC r261620: MFV r261619:
delphij [Sat, 22 Feb 2014 00:57:55 +0000 (00:57 +0000)]
MFC r261620: MFV r261619:

4574 get_clones_stat does not call zap_count in non-debug kernel

zap_count(...) is never called in non-DEBUG kernel.
As result "count" variable is always 0, and "goto fail" is always
reached.  This means get_clones_stat function never makes up list
of clones for "clones" properties.

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

10 years agoMFC r261618:
delphij [Sat, 22 Feb 2014 00:30:33 +0000 (00:30 +0000)]
MFC r261618:

In g_eli_crypto_hmac_init(), zero out after using the ipad buffer,
k_ipad.

Note that the two consumers in geli(4) are not affected by this
issue because the way the code is constructed and as such, we
believe there is no security impact with or without this change
with geli(4)'s usage.

Reported by: Serge van den Boom <serge vdboom.org>
Reviewed by: pjd

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

10 years agoMFC r261538:
mav [Fri, 21 Feb 2014 18:32:45 +0000 (18:32 +0000)]
MFC r261538:
Make CTL block backend return proper error code for operations unsupposed
by the underlying device.

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

10 years agoMFC r261867:
attilio [Fri, 21 Feb 2014 09:43:34 +0000 (09:43 +0000)]
MFC r261867:
Use the right index to free swapspace after vm_page_rename().

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

10 years agoMFC: r261900
brueffer [Fri, 21 Feb 2014 09:25:52 +0000 (09:25 +0000)]
MFC: r261900

In chat_UpdateSet(), initialize the input buffer to prevent stale data
from previous timed out commands.

PR: 186530
Submitted by: Alexander Zagrebin <alexz at visp.ru>
Reviewed by: brian

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

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