]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
9 years agoMerge r268637 from head:
gavin [Wed, 13 Aug 2014 12:36:59 +0000 (12:36 +0000)]
Merge r268637 from head:

  fortune(8): Search fortune files installed by ports/packages as well as
  those supplied by the base system.

PR: 191800
Submitted by: Andy Kosela

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

9 years agoMerge r268488 from head:
gavin [Wed, 13 Aug 2014 12:35:11 +0000 (12:35 +0000)]
Merge r268488 from head:

  Reword an awkward option description

PR: 191726
Submitted by: yaneurabeya gmail.com

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

9 years agoMerge r267867 from head:
gavin [Wed, 13 Aug 2014 12:32:52 +0000 (12:32 +0000)]
Merge r267867 from head:

  Remove example cvsup config files.

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

9 years agoMFC r269197:
trasz [Wed, 13 Aug 2014 11:11:27 +0000 (11:11 +0000)]
MFC r269197:

Fix potential double free that could happen after connection error.

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

9 years agoMFC r269567:
hselasky [Wed, 13 Aug 2014 08:21:52 +0000 (08:21 +0000)]
MFC r269567:
Add new USB phone descriptor template for USB device side mode.

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

9 years agoMFC r266396 and r267183:
hselasky [Wed, 13 Aug 2014 08:18:49 +0000 (08:18 +0000)]
MFC r266396 and r267183:
Build fixes. Add support for fast interrupts.

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

9 years agoMFC r269565:
hselasky [Wed, 13 Aug 2014 07:13:42 +0000 (07:13 +0000)]
MFC r269565:
Rename driver name a bit to avoid unit number confusion in dmesg.

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

9 years agoMFC r269566:
hselasky [Wed, 13 Aug 2014 07:02:23 +0000 (07:02 +0000)]
MFC r269566:
Fix for deadlock in USB device side mode.

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

9 years agoMFC r269604:
hselasky [Wed, 13 Aug 2014 06:59:40 +0000 (06:59 +0000)]
MFC r269604:
- Implement fast interrupt handler to save CPU usage.
- Cleanup some register reads and writes to use existing register
  access macros.
- Ensure code which only applies to the control endpoint is not run
  for other endpoints in the data transfer path.

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

9 years agoMFC r269643:
kib [Wed, 13 Aug 2014 06:58:42 +0000 (06:58 +0000)]
MFC r269643:
Weaken the requirement for the vm object lock by only asserting locked
object in vm_pager_page_unswapped(), instead of locked exclusively.

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

9 years agoMFC r269642:
kib [Wed, 13 Aug 2014 06:55:30 +0000 (06:55 +0000)]
MFC r269642:
Add wrappers to assert that vm object is unlocked and for try upgrade.

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

9 years agoMFC r269744
rpaulo [Wed, 13 Aug 2014 06:45:02 +0000 (06:45 +0000)]
MFC r269744
 Run dtrace in 32-bit mode when compiling 32-bit libraries.

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

9 years agoMFC r269776
rpaulo [Wed, 13 Aug 2014 06:41:06 +0000 (06:41 +0000)]
MFC r269776
 Remove the BROKEN_LIBELF section.

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

9 years agoMFC 269745: Create a redundant grain directory and table.
marcel [Wed, 13 Aug 2014 01:43:38 +0000 (01:43 +0000)]
MFC 269745: Create a redundant grain directory and table.

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

9 years agoMFC r269750:
dim [Tue, 12 Aug 2014 17:56:48 +0000 (17:56 +0000)]
MFC r269750:

In r268463, I misplaced a return in demangle(), causing the function to
erroneously skip symbols that were not mangled at all.  Fix this by
moving the return into the preceding if block.

While here, simplify the code by letting __cxa_demangle() allocate the
needed space for the demangled symbol.  This also fixes a memory leak,
which would occur whenever __cxa_demangle() failed.

Reported by: pgj
PR: base/191981

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

9 years agoMFC cleanup of libusb20 example
emaste [Tue, 12 Aug 2014 14:53:02 +0000 (14:53 +0000)]
MFC cleanup of libusb20 example

r257779 by hselasky:

  - Use libusb20_strerror() function instead of custom usb_error() one.
  - Rename "aux.[ch]" to "util.[ch]" which is a more common name for
  utility functions and allows checkout on some non-FreeBSD systems
  where the "aux.*" namespace is reserved.
  - Fix some compile warnings while at it.

r257796 by glebius:

  Finish r257779.

PR: 183728

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

9 years agoMFC r257594:
hselasky [Tue, 12 Aug 2014 12:22:39 +0000 (12:22 +0000)]
MFC r257594:
Add description of two EHCI PCI IDs.

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

9 years agoMFC r268316:
hselasky [Tue, 12 Aug 2014 12:10:29 +0000 (12:10 +0000)]
MFC r268316:
Fix OFED startup order: All SYSINIT()'s and modules should be loaded
prior to starting "/sbin/init" which will run all the "/etc/rc.d/xxx"
scripts. Else there can be a race configuring the interfaces via
"/etc/rc.conf".

Sponsored by: Mellanox Technologies

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

9 years agoMFC r268315:
hselasky [Tue, 12 Aug 2014 12:07:57 +0000 (12:07 +0000)]
MFC r268315:
Fix compile warning.

Sponsored by: Mellanox Technologies

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

9 years agoMFC r268314:
hselasky [Tue, 12 Aug 2014 12:06:21 +0000 (12:06 +0000)]
MFC r268314:
Fix some compile warnings.

Sponsored by: Mellanox Technologies

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

9 years agoMFC r266728,266731,266735,266736,268135,268960,269833
peter [Tue, 12 Aug 2014 01:40:11 +0000 (01:40 +0000)]
MFC r266728,266731,266735,266736,268135,268960,269833
 Update apr 1.4.8 -> 1.5.1
 Update apr-util 1.5.2 -> 1.5.3
 Update serf 1.3.4 -> 1.3.7
 Update svnlite 1.8.8 -> 1.8.10
 Deal with svnlite.1 manpage.

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

9 years agoMFC r269230: MFV r269224:
delphij [Tue, 12 Aug 2014 00:59:19 +0000 (00:59 +0000)]
MFC r269230: MFV r269224:

Increase default ARC buf_hash_table size.  When typical block size is small,
the hash table could be too small, which would lead to long hash chains and
limit performance for cached reads.

A new loader tunable, vfs.zfs.arc_average_blocksize, have been added which
allows users to override the default assumption of average (typical) block
size.  Old default was 65536 (64 KiB) and new default is 8192 (8 KiB).

Illumos issue:
    5034 ARC's buf_hash_table is too small

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

9 years agoMFC r269229,269404,269466: MFV r269223:
delphij [Tue, 12 Aug 2014 00:53:03 +0000 (00:53 +0000)]
MFC r269229,269404,269466: MFV r269223:

Change dn->dn_dbufs from linked list to AVL tree.

Illumos issues:
  4873 zvol unmap calls can take a very long time for larger datasets

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

9 years agoMFC r269302:
jlh [Mon, 11 Aug 2014 20:38:52 +0000 (20:38 +0000)]
MFC r269302:

  Fix relative numerical addressing (addr,+N).

  As a bonus the patch untangles a bit the logic and makes the code
  easier to grasp.

  PR:           192108

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

9 years agoMFC r269740:
dim [Mon, 11 Aug 2014 20:37:03 +0000 (20:37 +0000)]
MFC r269740:

Pull in r214736 from upstream libc++ trunk (by Marshall Clow):

  Fix PR#20520 - predicate called too many times in list::remove_if.
  Add tests for list, forward_list, and the std::remove_if algorithm

This fixes an issue where std::list<>::remove_if() and remove() could
erroneously visit elements twice.

Reported by: Dominic Fandrey <kamikaze@bsdforen.de>
PR: 192303

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

9 years agoMFC: Merge in the changes in -current:
imp [Mon, 11 Aug 2014 18:42:20 +0000 (18:42 +0000)]
MFC: Merge in the changes in -current:

Support ! operator in "files" files.
Improve error detection and reporting
Cleanup code to make it easier to maintain.
Remove mandatory keyword: it has been used for 17 years.
Bump version number (we should have bumped for -I too, but didn't)

r261501 | imp | 2014-02-04 17:26:11 -0700 (Tue, 04 Feb 2014) | 5 lines
Fix ! by not clearing not at the bottom of the loop.
Add a blank line
Submitted by:   bde (blank line)

r261493 | imp | 2014-02-04 11:28:58 -0700 (Tue, 04 Feb 2014) | 5 lines
Implement the '!' operator for files* files. It means 'include this
only if the specified option is NOT specified.' Bump version because
old config won't be able to cope with files* files that have this
construct in them.

r261446 | imp | 2014-02-03 12:14:36 -0700 (Mon, 03 Feb 2014) | 5 lines
Convert the loop by gotos into a for loop to improve readability. I
did this only with the inner loop for the token parsing, and not the
outer loop which was understandable enough when the extra layers of
looping went away...

r261445 | imp | 2014-02-03 12:10:33 -0700 (Mon, 03 Feb 2014) | 4 lines
Fix a bug introduced in r261437 that failed to honor "optional
profiling-routine" to work, since profiling-routine is not really an
option or a device, but a special case elsewhere in the code.

r261444 | imp | 2014-02-03 11:56:41 -0700 (Mon, 03 Feb 2014) | 2 lines
Slight cleanup to the error messaging to compress code vertically...

r261442 | imp | 2014-02-03 11:31:51 -0700 (Mon, 03 Feb 2014) | 2 lines
Better error messages when EOF is hit in the middle of a phrase.

r261438 | imp | 2014-02-03 09:54:53 -0700 (Mon, 03 Feb 2014) | 5 lines
Move the check for standard keyword + optional inclusion specifier to
its proper location. Otherwise you could have 'file.c standard pci'
without an error. This construct isn't in our tree, and has no well
defined meaning.

r261437 | imp | 2014-02-03 09:47:10 -0700 (Mon, 03 Feb 2014) | 4 lines
Don't believe we have a requirement until after we've checked all the
known key words. This will make error messages slightly better in
weird corner cases, but should otherwise be a nop.

r261436 | imp | 2014-02-03 09:46:01 -0700 (Mon, 03 Feb 2014) | 3 lines
In the 17 years since r30796, the mandatory keyword has never been used
in any files as far as I can tell, and is currently unused. Retire it.

r261435 | imp | 2014-02-03 08:10:44 -0700 (Mon, 03 Feb 2014) | 6 lines
Slightly deobfuscate read_file() and likely pessimize the runtime
performance by epsilon.
(Translation: elminate bogus macros that hid 'returns' making it hard
 to read and moved a block of code inline rather than at the end of the
 fuction where it was effectively a 'gosub' kind of goto).

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

9 years agoMFC r269522
smh [Mon, 11 Aug 2014 08:58:35 +0000 (08:58 +0000)]
MFC r269522

Added support for extra ifconfig args to jail ip4.addr & ip6.addr params

This allows for CARP interfaces to be  used in jails e.g.
ip4.addr = "em0|10.10.1.20/32 vhid 1 pass MyPass advskew 100"

r269340 will not be MFC'ed as mentioned due to the slim window and the
amount of additional commits required to support it.

Sponsored by: Multiplay

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

9 years agoMFC r269180:
delphij [Mon, 11 Aug 2014 06:54:07 +0000 (06:54 +0000)]
MFC r269180:

When interval is set to very small value with limited amount of packets,
ping6(8) would quit before the remote side gets a chance to respond.

Solve this by resetting the itimer when we have reached the maximum packet
number have reached, but let the other handling to continue.

PR: bin/151023
Submitted by: tjmao at tjmao.net

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

9 years agoMFC r269403, r269405, r269410, r269414:
ian [Mon, 11 Aug 2014 02:20:24 +0000 (02:20 +0000)]
MFC r269403, r269405, r269410, r269414:

  Add 64-bit atomic ops for armv6, and also for armv4 only in kernel code.
  Use the new ops in the cddl code (and avoid defining functions with the
  same names locally).

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

9 years agoMFC r269393, r269394, r269395:
ian [Mon, 11 Aug 2014 01:48:00 +0000 (01:48 +0000)]
MFC r269393, r269394, r269395:

  Fix parsing of arch extensions in binutils/gas.
  Use ".arch_extension sec" when compiling ARM TI code that uses the
  security extensions.

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

9 years agoMFC r269390: Fix unwind info in hand-written asm (avoid nested functions).
ian [Mon, 11 Aug 2014 01:29:28 +0000 (01:29 +0000)]
MFC r269390: Fix unwind info in hand-written asm (avoid nested functions).

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

9 years agoMFC r269341: Populate disk->d_ident with the sd or mmc card's serial number.
ian [Mon, 11 Aug 2014 01:22:10 +0000 (01:22 +0000)]
MFC r269341: Populate disk->d_ident with the sd or mmc card's serial number.

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

9 years agoMFC r269206, r269207, r269208, r269209, r269210, r269211, r269212, r269213,
ian [Mon, 11 Aug 2014 01:10:15 +0000 (01:10 +0000)]
MFC r269206, r269207, r269208, r269209, r269210, r269211, r269212, r269213,
    r269214, r269215, r269216, r269217, r269221:

  busdma-v6 improvements, primarily:
  - Allocate the temporary segments array per-map rather than per-tag.
  - Avoid needlessly bouncing IO for mbufs and buffers allocated by
    bus_dmamem_alloc() (in both situations we known they're allocated
    on cacheline boundaries and don't need bouncing).
  - Various minor reformatting and cleanups.

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

9 years agoMFC r268993, r268893, r268994, plus partial r264070, r264082
ian [Sun, 10 Aug 2014 22:26:29 +0000 (22:26 +0000)]
MFC r268993, r268893, r268994, plus partial r264070, r264082

 Fix C++ exception handling for ARM EABI.

 Just the part of r264070 that creates the FBSD_1.4 namespace in libc
 is hand-applied, and then r264082 which creates the Versions.def entry
 is MFC'd.

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

9 years agoMFC r268954
sbruno [Sun, 10 Aug 2014 21:45:58 +0000 (21:45 +0000)]
MFC r268954

Merge change from upstream linux kernel submitted by OpenBSD:

drm/radeon: fix-up some float to fixed conversion thinkos

Remove #ifdef DUMBBELL_WIP in favor of upstream fix.

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

9 years agoMFC r269138:
delphij [Sun, 10 Aug 2014 06:10:21 +0000 (06:10 +0000)]
MFC r269138:

Add two sysctls for newly added tunables.

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

9 years agoMFC r269118: MFV r269010:
delphij [Sun, 10 Aug 2014 05:58:41 +0000 (05:58 +0000)]
MFC r269118: MFV r269010:

Import Illumos changes to address the following Illumos issues:
  4976 zfs should only avoid writing to a failing non-redundant
       top-level vdev
  4978 ztest fails in get_metaslab_refcount()
  4979 extend free space histogram to device and pool
  4980 metaslabs should have a fragmentation metric
  4981 remove fragmented ops vector from block allocator
  4982 space_map object should proactively upgrade when feature
       is enabled
  4984 device selection should use fragmentation metric

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

9 years agoMFC r259211:
markj [Sat, 9 Aug 2014 15:03:47 +0000 (15:03 +0000)]
MFC r259211:
Correct the check for errors from proc_rwmem().

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

9 years agoMFC r265308:
markj [Sat, 9 Aug 2014 15:00:03 +0000 (15:00 +0000)]
MFC r265308:
If the traced process stops because it received a signal, libproc needs
to ensure that the signal is forwarded when proc_continue() is called.

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

9 years agoMFC r266826, r266827
markj [Sat, 9 Aug 2014 14:05:01 +0000 (14:05 +0000)]
MFC r266826, r266827
Move some duplicated hook definitions from machine-dependent files to
kern_dtrace.c.

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

9 years agoMFC r269408, r269409:
rpaulo [Fri, 8 Aug 2014 22:08:51 +0000 (22:08 +0000)]
MFC r269408, r269409:

shm_open()/shm_unlink() ktrace support.

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

9 years agoMFC r269098:
delphij [Fri, 8 Aug 2014 19:39:40 +0000 (19:39 +0000)]
MFC r269098:

Use the right lengths.

Submitted by: Sascha Wildner

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

9 years agoMFC r269097:
delphij [Fri, 8 Aug 2014 19:36:40 +0000 (19:36 +0000)]
MFC r269097:

Use the right length.

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

9 years agoMFC r269100:
delphij [Fri, 8 Aug 2014 19:14:49 +0000 (19:14 +0000)]
MFC r269100:

Diff reduction against Illumos.

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

9 years agoMFC r268621 (smh) + r268625:
delphij [Fri, 8 Aug 2014 19:11:23 +0000 (19:11 +0000)]
MFC r268621 (smh) + r268625:

Don't report non-native block-size pools under zpool status -x

zpool status -x is used to identify pools that are exhibiting
errors or are otherwise unavailable, therefore non-native
block-size pools shouldn't be reported.

Also update man page to clarify other additional conditions
which won't cause a pool to be displayed under zpool status -x.

Sponsored by:   Multiplay

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

9 years agoMFC the cddl/contrib/opensolaris/cmd/zpool portion of r267803 (joel):
delphij [Fri, 8 Aug 2014 19:06:24 +0000 (19:06 +0000)]
MFC the cddl/contrib/opensolaris/cmd/zpool portion of r267803 (joel):

mdoc: remove superfluous paragraph macros.

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

9 years agoMFC r269093:
delphij [Fri, 8 Aug 2014 18:57:43 +0000 (18:57 +0000)]
MFC r269093:

Transform the I/O when vdev_physical_ashift is greater than
SPA_MINBLOCKSHIFT.

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

9 years agoMFC r269086:
delphij [Fri, 8 Aug 2014 18:54:52 +0000 (18:54 +0000)]
MFC r269086:

As of r268075, the responsibility of rounding up buffer to optimal size have
been transferred from zio_compress_data to its caller.  Therefore, passing
the 'minblocksize' down will be a no-op.

Eliminate the parameter to reduce diff against upstream.

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

9 years agoMFC r265631:
markj [Fri, 8 Aug 2014 15:21:43 +0000 (15:21 +0000)]
MFC r265631:
Re-apply r248644. This fixes an annoying problem which caused dtrace -c to
fail to attach to stripped binaries. With the _r_debug_postinit symbol,
dtrace(1) can now set a breakpoint in the victim process after it has
registered its DOF table(s) with the kernel. r_debug_state cannot be used
for this purpose since it is called before DOF is made available, in which
case dtrace(1) cannot create USDT probes before the program begins
execution.

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

9 years agoMFC r265629, r265630
markj [Fri, 8 Aug 2014 14:53:01 +0000 (14:53 +0000)]
MFC r265629, r265630

MFC r265629:
Handle the different event types properly in rd_event_addr(). In particular,
with r265456 _r_debug_postinit can be used for RD_POSTINIT events. rtld(1)
uses r_debug_state for dl state transitions, so we use its address for
RD_DLACTIVITY events.

MFC r265630:
Fix the rd_event_addr prototype and slightly clarify the use of the "event"
parameter.

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

9 years agoMerge r269470:
joerg [Fri, 8 Aug 2014 14:48:26 +0000 (14:48 +0000)]
Merge r269470:

Avoid a divide-by-zero panic when setting the baudrate to 0.

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

9 years agoMerge r269353:
joerg [Fri, 8 Aug 2014 14:42:03 +0000 (14:42 +0000)]
Merge r269353:

Fix breakage introduced by r256843: removing the SA_CCB_WAITING bit
left some of the decisions based on its counterpart, SA_CCB_BUFFER_IO
being random.  As a result, propagation of the residual information
for the SPACE command was broken, so the number of filemarks
encountered during a SPACE operation was miscalculated.  Consequently,
systems relying on properly tracked filemark counters (like Bacula)
fell apart.

The change also removes a switch/case in sadone() which r256843
degraded to a single remaining case label.

PR: 192285

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

9 years agoMFC r269585 - Honour WITH and WITHOUT_INET6_SUPPORT.
cy [Fri, 8 Aug 2014 00:58:24 +0000 (00:58 +0000)]
MFC r269585 - Honour WITH and WITHOUT_INET6_SUPPORT.

Approved by: glebius (mentor - implicit)

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

9 years agoMFC: r269682
jkim [Thu, 7 Aug 2014 21:04:42 +0000 (21:04 +0000)]
MFC: r269682

Merge OpenSSL 1.0.1i.

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

9 years agoMFC r265456, r265578:
markj [Thu, 7 Aug 2014 18:36:47 +0000 (18:36 +0000)]
MFC r265456, r265578:
Add a postinit debugger hook to rtld. This will be used by dtrace(1) to halt
the victim process before its entry point is called, at which point probes
and DOF data are registered with the kernel. The r_debug_state hook cannot
be used for this purpose, as it is called before the program's init routines
are invoked and in particular before DOF data is registered (via drti.o).

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

9 years agoMFC r256691, r256748: casuword fixes
ian [Thu, 7 Aug 2014 17:49:42 +0000 (17:49 +0000)]
MFC r256691, r256748: casuword fixes

  Use unsigned compare against KERNBASE addr.
  Use atomic ops on armv6.

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

9 years agoMFC r269347:
kib [Thu, 7 Aug 2014 03:50:30 +0000 (03:50 +0000)]
MFC r269347:
Do not generate 1000 unique lock names for nfsrc hash chain locks.
Shorten the names of some nfs mutexes.

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

9 years agoMFC r269318:
gjb [Thu, 7 Aug 2014 02:26:45 +0000 (02:26 +0000)]
MFC r269318:
  Replace 'GNATS' with 'Bugzilla' in the base subversion commit
  template.

Approved by: peter (implicit, original approver)
Sponsored by: The FreeBSD Foundation

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

9 years agoMFC of r269303:
mckusick [Wed, 6 Aug 2014 23:33:16 +0000 (23:33 +0000)]
MFC of r269303:

When restoring a UFS dump onto a ZFS filesystem, an assertion in
restore was failing because ZFS was reporting a blocksize that was
not a multiple of 1024.  Replace restore's failed assertion with
code that writes restored files in a blocksize that works for
restore (a multiple of 1024) despite being non-optimal for ZFS.

Submitted by: Dmitry Morozovsky
Tested by:    Dmitry Morozovsky

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

9 years agoMFC r269091:
wblock [Wed, 6 Aug 2014 17:38:35 +0000 (17:38 +0000)]
MFC r269091:

Fix spelling of Camellia algorithm.  While here, replace blank lines
between examples with actual .Pp breaks.

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

9 years agoMFC: r269116
ache [Wed, 6 Aug 2014 10:38:06 +0000 (10:38 +0000)]
MFC: r269116

In the "Too many open files" edge cases don't try to preserve old
number for non-std* descriptors, but close old file and retry.

Obtained from:  inspired by Apple's change from pfg@

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

9 years agoMFC: r268997
ache [Wed, 6 Aug 2014 10:33:43 +0000 (10:33 +0000)]
MFC: r268997

For "a"-mode files and rewind/fseek + fwrite combination return meaningful
value now, like Apple does, but avoid their __sflush physical write
performance degradation as much as possible.

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

9 years agoMFC r269282: Correct typo in comment
emaste [Wed, 6 Aug 2014 00:35:32 +0000 (00:35 +0000)]
MFC r269282: Correct typo in comment

PR: 192231

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

9 years agoMFC: r260457
marius [Tue, 5 Aug 2014 16:04:22 +0000 (16:04 +0000)]
MFC: r260457

The changes in r233781 attempted to make logging during a machine check
exception more readable.  In practice they prevented all logging during
a machine check exception on at least some systems.  Specifically, when
an uncorrected ECC error is detected in a DIMM on a Nehalem/Westmere
class machine, all CPUs receive a machine check exception, but only
CPUs on the same package as the memory controller for the erroring DIMM
log an error.  The CPUs on the other package would complete the scan of
their machine check banks and panic before the first set of CPUs could
log an error.  The end result was a clearer display during the panic
(no interleaved messages), but a crashdump without any useful info about
the error that occurred.

To handle this case, make all CPUs spin in the machine check handler
once they have completed their scan of their machine check banks until
at least one machine check error is logged.  I tried using a DELAY()
instead so that the CPUs would not potentially hang forever, but that
was not reliable in testing.

While here, don't clear MCIP from MSR_MCG_STATUS before invoking panic.
Only clear it if the machine check handler does not panic and returns
to the interrupted thread.

MFC: r263113

Correct type for malloc().

Submitted by: "Conrad Meyer" <conrad.meyer@isilon.com>

MFC: r269052, r269239, r269242

Intel desktop Haswell CPUs may report benign corrected parity errors (see
HSD131 erratum in [1]) at a considerable rate. So filter these (default),
unless logging is enabled. Unfortunately, there really is no better way to
reasonably implement suppressing these errors than to just skipping them
in mca_log(). Given that they are reported for bank 0, they'd need to be
masked in MSR_MC0_CTL. However, P6 family processors require that register
to be set to either all 0s or all 1s, disabling way more than the one error
in question when using all 0s there. Alternatively, it could be masked for
the corresponding CMCI, but that still wouldn't keep the periodic scanner
from detecting these spurious errors. Apart from that, register contents of
MSR_MC0_CTL{,2} don't seem to be publicly documented, neither in the Intel
Architectures Developer's Manual nor in the Haswell datasheets.

Note that while HSD131 actually is only about C0-stepping as of revision
014 of the Intel desktop 4th generation processor family specification
update, these corrected errors also have been observed with D0-stepping
aka "Haswell Refresh".

1: http://www.intel.de/content/dam/www/public/us/en/documents/specification-updates/4th-gen-core-family-desktop-specification-update.pdf

Reviewed by: jhb
Sponsored by: Bally Wulff Games & Entertainment GmbH

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

9 years agoMFC r269444, r269450:
mav [Tue, 5 Aug 2014 08:30:38 +0000 (08:30 +0000)]
MFC r269444, r269450:
Plug EXTENDED COPY request data memory leak.

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

9 years agoMFC r269442:
mav [Tue, 5 Aug 2014 08:29:24 +0000 (08:29 +0000)]
MFC r269442:
Fix some bugs in RECEIVE COPY STATUS data.

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

9 years agoMFC r269441:
mav [Tue, 5 Aug 2014 08:28:29 +0000 (08:28 +0000)]
MFC r269441:
Add missing comparisons to make list IDs in EXTENDED COPY per-initiator,
as they should be.  Wrap it into a function to not duplicate the code.

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

9 years agoMFC r269244:
kib [Tue, 5 Aug 2014 05:00:22 +0000 (05:00 +0000)]
MFC r269244:
Remove one-time use macros which check for the vnode lifecycle.

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

9 years agoMFC r267759, r267761
markj [Tue, 5 Aug 2014 01:53:15 +0000 (01:53 +0000)]
MFC r267759, r267761

r267759:
Fix a couple of bugs on amd64 when fetching probe arguments beyond the
first five for probes entered through a UD fault (i.e. FBT probes).

Specifically, handle the fact that dtrace_invop_callsite must be
16 byte-aligned and thus may not immediately follow the call to
dtrace_invop() in dtrace_invop_start(). Also fetch register arguments and
the stack pointer through a struct trapframe instead of a struct reg.

r267761:
Fix some bugs when fetching probe arguments in i386. Firstly ensure that
the 4 byte-aligned dtrace_invop_callsite can be found and that it
immediately follows the call to dtrace_invop(). Secondly, fix some pointer
arithmetic to account for differences between struct i386_frame and illumos'
struct frame. Finally, ensure that dtrace_getarg() isn't inlined. It works
by following a fixed number of frame pointers to the probe site, so inlining
breaks it.

PR: 191260

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

9 years agoMFC r268584:
markj [Tue, 5 Aug 2014 01:03:10 +0000 (01:03 +0000)]
MFC r268584:
Add a headphone redirection quirk for the Lenovo G580.

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

9 years agoMFC r267706:
markj [Tue, 5 Aug 2014 00:25:46 +0000 (00:25 +0000)]
MFC r267706:
Allow creation of SDT probes from a module in which no providers are
defined. This ensures that the sdt:zfs:: probes appear despite the fact
the sdt provider is defined in the kernel rather than in zfs.ko.

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

9 years agoMFC r256822:
markj [Mon, 4 Aug 2014 21:41:00 +0000 (21:41 +0000)]
MFC r256822:
When fetching function arguments out of a frame on amd64, explicitly select
the register based on the argument index rather than relying on the fields
in struct reg to be in the right order. This assumption is incorrect on
FreeBSD and generally led to bogus argument values for the sixth argument
of PID and USDT probes; the first five are passed directly to dtrace_probe()
via the fasttrap trap handler and so were correctly handled.

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

9 years agoMFC r256571:
markj [Mon, 4 Aug 2014 15:36:22 +0000 (15:36 +0000)]
MFC r256571:
Add a function, memstr, which can be used to convert a buffer of
null-separated strings to a single string. This can be used to print the
full arguments of a process using execsnoop (from the DTrace toolkit) or
with the following one-liner:

dtrace -n 'syscall::execve:return {trace(curpsinfo->pr_psargs);}'

Note that this relies on the process arguments being cached via the struct
proc, which means that it will not work for argvs longer than
kern.ps_arg_cache_limit. However, the following rather non-portable
script can be used to extract any argv at exec time:

fbt::kern_execve:entry
{
    printf("%s", memstr(args[1]->begin_argv, ' ',
        args[1]->begin_envv - args[1]->begin_argv));
}

The debug.dtrace.memstr_max sysctl limits the maximum argument size to
memstr().

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

9 years agoMFC r269125:
dim [Mon, 4 Aug 2014 14:56:49 +0000 (14:56 +0000)]
MFC r269125:

In r232153, libarchive 3.0.3 was imported, replacing the archive_hash.h
header with archive_crypto_private.h, and its ARCHIVE_HASH_xxx macros
were renamed to ARCHIVE_CRYPTO_xxx.

Rename these macros in lib/libarchive/config_freebsd.h, to re-enable the
hashes for libarchive again.  This affects the mtree format writer, and
the xar format reader and writer modules.

This also requires changes in the library order for statically linking
rescue, otherwise ld would complain about redefined symbols.  Thanks to
jkim for pointing out the solution.

Reviewed by: kientzle

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

9 years agoMFC r269289, r269290, r269291, r269292, r269293:
gjb [Mon, 4 Aug 2014 03:59:48 +0000 (03:59 +0000)]
MFC r269289, r269290, r269291, r269292, r269293:

r269289:
  sort(1): Remove trailing '.' from See Also section.

r269290:
  acpi_wmi(4): Remove trailing comma from standalone Xref.

r269291:
  hptiop(4): Remove trailing comma from ending Xref.

r269292:
  pf.conf(5): Remove trailing comma from ending Xref.

r269293:
  kernel_mount(9): Remove trailing comma from ending Xref.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r269190:
kib [Mon, 4 Aug 2014 01:14:27 +0000 (01:14 +0000)]
MFC r269190:
For md(4), posix shm(3) and tmpfs(5), free swap space used by paged in
dirty page, which is written by the process.

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

9 years agoMFC r269189:
kib [Mon, 4 Aug 2014 01:12:49 +0000 (01:12 +0000)]
MFC r269189:
Initialize zfs vnode v_hash when the vnode is allocated.

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

9 years agoMFC r269187:
kib [Mon, 4 Aug 2014 01:10:47 +0000 (01:10 +0000)]
MFC r269187:
Assert that nullfs vnode has VV_ROOT set whenever lower vnode has.
Assert that dotdot lookup on the root vnode is not performed.

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

9 years agoMFC r268945:
pfg [Mon, 4 Aug 2014 00:51:57 +0000 (00:51 +0000)]
MFC r268945:
Fix hdestroy() compliance issue.

The hcreate(3) implementation and related functions we inherited
from NetBSD used to free() the key value, something that is not
supported by the standard implementation.

This would cause a segmentation fault when attempting to run
the examples from the opengroup and linux manpages.

There is no need to bump the __FreeBSD_version as we have
always claimed XPG4.2 compliance but if some reference is
required, the bump for r269484 can be used.

Reference:
http://bugs.dragonflybsd.org/issues/1398

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

9 years agoInsta-MFC r269489: partial revert of r262867 which was MFC'ed as r263820.
peter [Sun, 3 Aug 2014 22:59:47 +0000 (22:59 +0000)]
Insta-MFC r269489: partial revert of r262867 which was MFC'ed as r263820.
Don't ignore sndbuf/rcvbuf limits for SOCK_DGRAM sockets.  This appears
to be an edit error or patch fuzz mismatch.

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

9 years agoMFC r268066:
pfg [Sun, 3 Aug 2014 18:39:11 +0000 (18:39 +0000)]
MFC r268066:
regex(3): Add support for \< and \> word delimiters

Solaris and other OSs have support for \< and \> as word
delimiters in utilities like sed(1). These are useful to
have for general compatiblity with Solaris but should be
avoided for portability with other systems, including the
traditional BSDs.

Bump __FreeBSD_version as this is likely to affect some
userland utilities.

Reference:
https://www.illumos.org/issues/516

PR: bin/153257
Obtained from: Illumos

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

9 years agoMFC r269124:
pfg [Sun, 3 Aug 2014 18:31:52 +0000 (18:31 +0000)]
MFC r269124:
strftime() xlocale cleanups.

Replace fprintf_l with fputs when output is unformatted.
Use locale_t in _conv() since it was using sprintf (now sprintf_l)
Use locale_t on _yconv() since it calls _conv()

Obtained from: Apple Inc. (Libc 997.90.3)
CR: D482
Reviewed by: theraven

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

9 years agoMFC r268926, r268930, r268983:
pfg [Sun, 3 Aug 2014 18:28:10 +0000 (18:28 +0000)]
MFC r268926, r268930, r268983:

Use a correct errno in freopen.
Use EBADF instead of EINVAL when working around incorrect O_ACCMODE.

Adjust errno on failed prepwrite.

rewind: always clear error indicator as required by POSIX.

Obtained from: Apple Inc. (Libc 997.90.3)
Phabric: D442

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

9 years agoMFC r268867, r268878:
pfg [Sun, 3 Aug 2014 18:03:00 +0000 (18:03 +0000)]
MFC r268867,  r268878:

Use more consistent type for optlen in getsourcefilter()

Proposed by: bde

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

9 years agoMFC 268986; fix file system corruption by creating as many BIOs as needed
marcel [Sun, 3 Aug 2014 03:06:00 +0000 (03:06 +0000)]
MFC 268986; fix file system corruption by creating as many BIOs as needed
to satisfy the original request -- in other words: no short reads.

Obtained from: Juniper Networks, Inc.

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

9 years agoMFC 264164: Convert while copying in control messages.
marcel [Sun, 3 Aug 2014 02:37:33 +0000 (02:37 +0000)]
MFC 264164: Convert while copying in control messages.

Obtained from: Juniper Networks, Inc.

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

9 years agoMFC 264162: Accept RFC 2292 option values so that RFC 2292 compliant
marcel [Sun, 3 Aug 2014 02:24:52 +0000 (02:24 +0000)]
MFC 264162: Accept RFC 2292 option values so that RFC 2292 compliant
programs that are unaware of RFC 3542 can construct control messages.

Obtained from: Juniper Networks, Inc.

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

9 years agoMFC 264161: Handle the fact that the getlogin_basic() function can return
marcel [Sun, 3 Aug 2014 01:51:48 +0000 (01:51 +0000)]
MFC 264161: Handle the fact that the getlogin_basic() function can return
a 0 status with a NULL pointer for the login name (result).

Obtained from: Juniper Networks, Inc.

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

9 years agoMFC: r268273
rmacklem [Sun, 3 Aug 2014 00:35:10 +0000 (00:35 +0000)]
MFC: r268273
The new NFSv3 server did not generate directory postop attributes for
the reply to ReaddirPlus when the server failed within the loop
that calls VFS_VGET(). This failure is most likely an error
return from VFS_VGET() caused by a bogus d_fileno that was
truncated to 32bits.
This patch fixes the server so that it will return directory postop
attributes for the failure. It does not fix the underlying issue caused
by d_fileno being uint32_t when a file system like ZFS generates
a fileno that is greater than 32bits.

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

9 years agoMFC 259910, 260023, 260028, 260600 & 260701:
marcel [Sat, 2 Aug 2014 22:25:24 +0000 (22:25 +0000)]
MFC 259910, 260023, 260028, 260600 & 260701:
o   Fix "kptdir is itself virtual" error, caused by having the kptdir in PBVM.
o   Allow building a cross libkvm for ia64.
o   Add support for virtual cores (aka minidumps).
o   We don't have to worry about page sizes when working on virtual cores.
o   Handle truncation of the size returned by _kvm_kvatop().

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

9 years agoMFC r269139:
hselasky [Sat, 2 Aug 2014 21:01:58 +0000 (21:01 +0000)]
MFC r269139:
Split the XHCI TRB allocations into smaller parts, so that we don't
end up allocating contiguous busdma buffers above PAGE_SIZE bytes.

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

9 years agoPartial MFC of r267961, r267973, r267985, r267992, r267993 and r268005:
hselasky [Sat, 2 Aug 2014 20:58:46 +0000 (20:58 +0000)]
Partial MFC of r267961, r267973, r267985, r267992, r267993 and r268005:
Backport some macro definitions to make backporting code from FreeBSD
current easier.

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

9 years agoMFC: r268866
rmacklem [Sat, 2 Aug 2014 20:06:36 +0000 (20:06 +0000)]
MFC: r268866
r243637 changed the default number of nfsd threads created,
but the man page did not reflect this.
This is a content change.

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

9 years agoDefine both ttyu0 and ttyu1 as onifconsole. This is ideal for ia64
marcel [Sat, 2 Aug 2014 15:05:23 +0000 (15:05 +0000)]
Define both ttyu0 and ttyu1 as onifconsole. This is ideal for ia64
where the console can be on either, depending on the platform.

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

9 years agoMFC r269123:
mav [Sat, 2 Aug 2014 06:56:00 +0000 (06:56 +0000)]
MFC r269123:
Implement separate I/O dispatch method for ZVOLs in "dev" mode.

Unlike disk devices ZVOLs process all requests synchronously.  That makes
impossible sending multiple requests to them from single thread.  From the
other side ZVOLs have real d_read/d_write methods, which unlike d_strategy
can handle uio scatter/gather and have no strict I/O size limitations.

So, if ZVOL in "dev" mode is detected, use of d_read/d_write methods instead
of d_strategy allows to avoid pointless splitting of large requests into
MAXPHYS (128K) sized chunks.

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

9 years agoMFC r268865: MFV r268852:
delphij [Sat, 2 Aug 2014 04:06:35 +0000 (04:06 +0000)]
MFC r268865: MFV r268852:

Reduce lock contention on the z_teardown_lock under heavily cached
read workload by splitting the single teardown rrw lock into
RRM_NUM_LOCKS (17) of them.

Read acquisitions are randomly distributed among these locks based
on curthread pointer.  Write acquisitions are going to all the
locks, which for the usage of this type of lock should be rare.

Illumos issue:
    5008 lock contention (rrw_exit) while running a read only load

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

9 years agoMFC r268859: MFV r268851:
delphij [Sat, 2 Aug 2014 04:01:44 +0000 (04:01 +0000)]
MFC r268859: MFV r268851:

When a sync task is waiting for a txg to complete, we should hurry it along
by increasing the number of outstanding async writes (i.e. make
vdev_queue_max_async_writes() return a larger number).

Illumos issue:
    4753 increase number of outstanding async writes when sync task is waiting

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

9 years agoMFC r268858: MFV r268850:
delphij [Sat, 2 Aug 2014 03:59:35 +0000 (03:59 +0000)]
MFC r268858: MFV r268850:

Change the interaction between the DMU and ARC so that when the DMU is
shutting down an objset, we do not evict the data from the ARC.  Instead
we simply coordinate the destruction of the DMU's data with the ARC.

The only case where we actually need to explicitly evict from the ARC is
when dbuf_rele_and_unlock() determines that the administrator has requested
that it not be kept in memory, via the primarycache/secondarycache properties.
In this case, we evict the data from the ARC by its blkptr_t, the same way
as when a block is freed we explicitly evict it from the ARC.

Illumos issue:
    4631 zvol_get_stats triggering too many reads

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

9 years agoMFC r268855: MFV r268848:
delphij [Sat, 2 Aug 2014 03:56:06 +0000 (03:56 +0000)]
MFC r268855: MFV r268848:

Instead of asserting all zio's be properly aligned, only assert
on the logical ones.

Cap uberblocks at 8k, otherwise with ashift=17, there would be
only one uberblock.

This fixes a problem that zdb would trip assert on pools with
ashift >= 0xe (8k).

While there, also change the code so it only attempt to condense
space map unless the uncondensed size consumes greater than
zfs_metaslab_condense_block_threshold blocks.

Illumos issue:
  4958 zdb trips assert on pools with ashift >= 0xe

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

9 years agoMFC r258436: Refactor amd64 startup SMAP parsing
emaste [Fri, 1 Aug 2014 21:40:42 +0000 (21:40 +0000)]
MFC r258436: Refactor amd64 startup SMAP parsing

  Extracted from the projects/uefi branch, this change is a reasonable
  cleanup and will reduce the diffs to review when bringing in the
  UEFI work.

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