]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
9 years agoMFC r264617:
ghelmer [Mon, 5 May 2014 16:52:38 +0000 (16:52 +0000)]
MFC r264617:

Fix releasing the lock in the parent atrun process after the queue
directory has been processed. Otherwise, a long-running child process
caused other atrun invocations to stall unnecessarily.

Submitted by: J.R. Oldroyd  jr at opal.com

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

9 years agoMFC r265095, r265167;
pfg [Mon, 5 May 2014 14:50:53 +0000 (14:50 +0000)]
MFC r265095, r265167;

citrus: Avoid invalid code points.

The UTF-8 decoder should not accept byte sequences which decode to
unicode code positions U+D800 to U+DFFF (UTF-16 surrogates).[1]

Contrary to the original OpenBSD patch, we do pass U+FFFE and U+FFFF,
both values are valid "non-characters" [2] and must be mapped through
UTFs.

[1] http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8
[2] http://www.unicode.org/faq/private_use.html

Reported by: Stefan Sperling [1]
Thanks to: jilles [2]
Obtained from: OpenBSD

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

9 years agoMFC r262661:
markj [Mon, 5 May 2014 03:15:53 +0000 (03:15 +0000)]
MFC r262661:
Fix emulation of call and jmp instructions on i386 and for 32-bit processes
on amd64.

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

9 years agoMFC r264317, r264864:
kevlo [Mon, 5 May 2014 01:50:01 +0000 (01:50 +0000)]
MFC r264317, r264864:

- Add the Asus USB-N10 NANO [1]
- Fix panic by adding mtx_assert() to urtwn_init_locked() and
  urtwn_stop_locked() [2]

Tested by: Kuan-Chung Chiu <buganini@gmail.com> [1]
Anthony Jenkins <scoobi_doo at yahoo dot com> [2]

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

9 years agoMRC r265230:
gjb [Mon, 5 May 2014 01:29:20 +0000 (01:29 +0000)]
MRC r265230:
  Clarify that MAKEOBJDIRPREFIX and MAKEOBJDIR are not
  honored as make(1) arguments.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r265003:
kib [Sun, 4 May 2014 07:28:26 +0000 (07:28 +0000)]
MFC r265003:
Fix order of libthr and libc in the global dso list for sshd.

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

9 years agoMFC r265004:
kib [Sun, 4 May 2014 07:22:51 +0000 (07:22 +0000)]
MFC r265004:
Same as it was done in r263878 for invlrng_handler(), fix order of
checks for special pcid values in invlpg_pcid_handler().

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

9 years agoMFC r265002:
kib [Sun, 4 May 2014 07:19:37 +0000 (07:19 +0000)]
MFC r265002:
Fix vm_fault_copy_entry() operation on upgrade; allow it to find the
pages in the shadowed objects.

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

9 years agoMFC r264933:
gjb [Sun, 4 May 2014 00:13:07 +0000 (00:13 +0000)]
MFC r264933:
  Fix indentation in make-memstick.sh.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r264907, r264908, r264922:
gjb [Sun, 4 May 2014 00:09:07 +0000 (00:09 +0000)]
MFC r264907, r264908, r264922:
  Record mergeinfo for r264907 and r264908, reverted
  in r264922.

This commit is for merge tracking purposes only.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r261150, r261151, r261164, r261166, r261167, r261168, r261394, r261395:
bryanv [Sat, 3 May 2014 19:40:41 +0000 (19:40 +0000)]
MFC r261150, r261151, r261164, r261166, r261167, r261168, r261394, r261395:

 - Read and write the MAC address in the config space byte by byte
 - Also include the mbuf's csum_flags in an assert message
 - Remove stray space
 - Move duplicated transmit start code into a single function
 - Avoid queue unlock followed by relock when the enable interrupt race
   is lost
 - Check for a full virtqueue in the multiqueue transmit path
 - Do not place the sglist used for Rx/Tx on the stack
 - Use m_defrag() instead of m_collapse() to compact a long mbuf chain

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

9 years agoMFC r261147:
bryanv [Sat, 3 May 2014 17:33:30 +0000 (17:33 +0000)]
MFC r261147:
    Remove spaces before tabs in the function prototype list
MFC r261149:
    Read each field of the configuration individually

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

9 years agoMFC r262543:
markj [Sat, 3 May 2014 16:24:18 +0000 (16:24 +0000)]
MFC r262543:
Fix the struct reg mappings for i386 and amd64, which differ between illumos
and FreeBSD.

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

9 years agoMFC r262542:
markj [Sat, 3 May 2014 16:08:52 +0000 (16:08 +0000)]
MFC r262542:
Move some files that are identical on i386 and amd64 to an x86 subdirectory
rather than keeping duplicate copies.

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

9 years agodate(1): Add "-R" flag to use RFC 2822 date and time output format [MFC]
dumbbell [Sat, 3 May 2014 13:19:11 +0000 (13:19 +0000)]
date(1): Add "-R" flag to use RFC 2822 date and time output format [MFC]

As stated in the man page, this is equivalent to use "%a, %d %b %Y %T %z"
as the output format while LC_TIME is set to the "C" locale.

This is compatible with date(1) from the GNU core utilities.

This is an MFC of r264968 and r264970.

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

9 years agoMFC r264494:
ae [Fri, 2 May 2014 21:30:59 +0000 (21:30 +0000)]
MFC r264494:
  Use SMB_QUERY_FS_SIZE_INFO request to populate statfs structure.
  When server doesn't support this request, try to use SMB_INFO_ALLOCATION.
  And use SMB_COM_QUERY_INFORMATION_DISK request as fallback.

MFC r264600:
  Remove redundant unlock.

  This code was removed from the opensolaris and darwin's
  netsmb implementations, in DfBSD it also has been disabled.

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

9 years agoMFC r264040:
pfg [Fri, 2 May 2014 20:12:31 +0000 (20:12 +0000)]
MFC r264040:

4248 dtrace(1M) should never create DOF with empty probes section
4249 Only probes from the first DTrace object file will be included

Illumos Revision: 4a20ab41aadcb81c53e72fc65886e964e9add59

Reference:
https://www.illumos.org/issues/4248
https://www.illumos.org/issues/4249

Obtained from: Illumos

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

9 years agoMFC r264963:
trociny [Fri, 2 May 2014 14:44:17 +0000 (14:44 +0000)]
MFC r264963:

Define startup order the same way as it is in dummynet.

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

9 years agoMFC: r265090
marius [Fri, 2 May 2014 10:29:54 +0000 (10:29 +0000)]
MFC: r265090

Merge r133175 from upstream:

2008-03-13  Dennis Czeremin  <dennis.czeremin@smiths-heimann.com>

PR libstdc++/35566
* include/bits/stl_multimap.h (multimap<>::multimap(_InputIterator,
_InputIterator)): Forward to _M_insert_equal, not _M_insert_unique.

This patch was GPL2 at the time and fixes a regression introduced with
the merge of GCC r129013 in FreeBSD r236829.

Sponsored by: Bally Wulff Games & Entertainment GmbH

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

10 years agoMFC r262733:
markj [Thu, 1 May 2014 03:18:11 +0000 (03:18 +0000)]
MFC r262733:
Use a full path to the target for make rules which create symlinks @,
machine and ${MACHINE_CPUARCH}. Otherwise the presence of a file named
"x86" or "x86.c" in the make path can cause problems.

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

10 years agoMFC: r258705,r258709,r263140,r263184,r263185,r263186,r263187,r263188,
imp [Thu, 1 May 2014 00:31:19 +0000 (00:31 +0000)]
MFC: r258705,r258709,r263140,r263184,r263185,r263186,r263187,r263188,
r263189,r263190,r263192,r263193,r263287,r263288,r263890,r264281,
r264655,r264656,r264856,r264857,r264858,r264859,r264860,r264861,
r264891,r264892,r264909

Catch up on all the referenced changes in -current, in brief:

r258705 | n_hibma | Use NANO_PMAKE for build, but not install
r258709 | mr | pkgng goo + bootstrap
r263140 | glebius | Axe IPX.
r263184 | imp | Fix build with spaces in names.
r263185 | imp | Make pcengines config files compile again.
r263186 | imp | Use UFS2 by default, but allow fallback to UFS1
r263187 | imp | Print an error message when we exit out early.
r263188 | imp | Sometimes only copy MBR when backing via swap
r263189 | imp | Update save_cfg
r263190 | imp | Be more explicit about setting SRCCONF to /dev/null
r263192 | imp | Rely on default UFS type
r263193 | imp | Remove TARGET_BIG_ENDIAN. It's no longer relevant.
r263287 | bdrewery | pkg(8) has no limits
r263288 | bdrewery | Remove comment meant for removal in r263287
r263890 | imp | Up default media size to 1GB.
r264281 | imp | Ignore .hg and .git files
r264655 | imp | rm -x for safety
r264656 | imp | new example: dhcpd derived from FreeNAS/BSDRP
r264856 | imp | Override the parallel make target to use all CPUs.
r264857 | imp | No need for true here, remove it.
r264858 | imp | NANO_PKG_META_BASE
r264859 | imp | stylize umount hack
r264860 | imp | switch dhcpd to pkg(8).
r264861 | imp | CR and CR0 added from dhcpd
r264891 | imp | Try to alwaays use () for functions
r264892 | imp | bash whines about r264857, revert
r264909 | imp | Move back to {} for functions that need global effects

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

10 years agoMFC r264581, r264744:
pfg [Wed, 30 Apr 2014 20:39:08 +0000 (20:39 +0000)]
MFC r264581, r264744:

Various style(9) fixes and typos in printf, grep, sort and patch.

#define should be followed by a tab.

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

10 years agoMFC r265046
smh [Wed, 30 Apr 2014 09:55:50 +0000 (09:55 +0000)]
MFC r265046

Fix ZIO reordering issue which could cause data loss / corruption.

Sponsored by: Multiplay

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

10 years agoFix devfs rules not applied by default for jails.
delphij [Wed, 30 Apr 2014 04:03:05 +0000 (04:03 +0000)]
Fix devfs rules not applied by default for jails.

Fix OpenSSL use-after-free vulnerability.

Fix TCP reassembly vulnerability.

Security: FreeBSD-SA-14:07.devfs
Security: CVE-2014-3001
Security: FreeBSD-SA-14:08.tcp
Security: CVE-2014-3000
Security: FreeBSD-SA-14:09.openssl
Security: CVE-2010-5298

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

10 years agoMFC r265015:
hselasky [Tue, 29 Apr 2014 05:45:17 +0000 (05:45 +0000)]
MFC r265015:
Setting the IMOD value below 0x3F8 can cause IRQ lockups in the Intel
LynxPoint USB 3.0 controllers found in MacBookPro 2013's.

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

10 years agoMFC r262775:
markj [Tue, 29 Apr 2014 03:49:40 +0000 (03:49 +0000)]
MFC r262775:
Log the name of the file that we failed to open rather than an
uninitialized buffer.

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

10 years agoMFC r264436:
markj [Tue, 29 Apr 2014 03:36:04 +0000 (03:36 +0000)]
MFC r264436:
Fix some off-by-one errors. The kve_end and rdl_eaddr fields contain the
first address after the end of the map entry and should therefore be
excluded.

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

10 years agoMFC r263052, r263124, r263265, r263267... Enhance loaderdev env var.
ian [Tue, 29 Apr 2014 00:45:42 +0000 (00:45 +0000)]
MFC r263052, r263124, r263265, r263267...  Enhance loaderdev env var.

Enhance the mechanism that lets you configure the ubldr boot device by
setting the u-boot environment variable loaderdev=.  It used to accept only
'disk' or 'net'.  Now it allows specification of unit, slice, and partition
as well.  In addition to the generic 'disk' it also accepts specific
storage device types such as 'mmc' or 'sata'.

If there isn't a loaderdev env var, the historical behavior is maintained.
It will use the first storage device it finds, or a network device if
no working storage device exists.

99% of the work on this was done by Patrick Kelsey, but I made some
changes, so if anything goes wrong, blame me.

(Indeed, the 3 followup commits fixed things I got wrong on the first.)

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

10 years agoMFC r262666: exit with code 0xbadab1 if the u-boot API support is missing.
ian [Tue, 29 Apr 2014 00:38:46 +0000 (00:38 +0000)]
MFC r262666: exit with code 0xbadab1 if the u-boot API support is missing.

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

10 years agoMFC r262664, r262694:
ian [Tue, 29 Apr 2014 00:36:51 +0000 (00:36 +0000)]
MFC r262664, r262694:

  Prevent fdt data loaded from a file from overwriting the kernel environment,
  by having uboot_autoload() do the fdt setup (which may load a file) rather
  than waiting until we're actually in the process of launching the kernel.

  As part of making this happen...
   - Define LOADER_FDT_SUPPORT on the uboot/lib compile command line when
     MK_FDT is set.
   - Make fdt_setup_fdtb() public.
   - Declare public fdt_whatever() functions in a header instead of using
     scattered extern decls in .c files.

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

10 years agoMFC r262340, r262345, r262347, find and load an appropriate dtb file.
ian [Tue, 29 Apr 2014 00:31:32 +0000 (00:31 +0000)]
MFC r262340, r262345, r262347, find and load an appropriate dtb file.

The search order for a usable dtb in fdt_setup_fdtp() is now

 - A dtb loaded with an explicit "load -t dtb" command.
 - A dtb already loaded into memory somehow[*] and pointed to by fdt_to_load.
 - A dtb in the memory pointed to by the u-boot env vars fdtaddr or fdt_addr.
 - A file named by the u-boot env vars fdtfile or fdt_file.
 - A static dtb compiled into the kernel.

 * Presumably by some arch-specific command or code.

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

10 years agoMFC r262337: Allow the boot device to be choosen by a u-boot env variable.
ian [Tue, 29 Apr 2014 00:17:30 +0000 (00:17 +0000)]
MFC r262337: Allow the boot device to be choosen by a u-boot env variable.

  If a "loaderdev=<device>" env variable is set and the named device
  exists, it is used.  If the device doesn't exist, fall back to the
  historic "probe" loop that prefers disk devices over network devices.

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

10 years agoMFC r262326 (white space) and r262327 (fdt_addr).
ian [Tue, 29 Apr 2014 00:13:25 +0000 (00:13 +0000)]
MFC r262326 (white space) and r262327 (fdt_addr).

This change was supposed to be whitespace only, but a functional change
snuck in, as follows:

  Look for both fdtaddr and fdt_addr env var names.  Grepping the u-boot
  source shows that board vendors seem to be about evenly split on this.
  The added lines were:

    /* Board vendors use both fdtaddr and fdt_addr names.  Grrrr. */

    if (s == NULL)
        s = ub_env_get("fdt_addr");

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

10 years agoMFC r261819 & r262242: Actually validate the header of a loaded dtb file.
ian [Tue, 29 Apr 2014 00:09:48 +0000 (00:09 +0000)]
MFC r261819 & r262242: Actually validate the header of a loaded dtb file.

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

10 years agoMFC r257210, r258527: No hardfloat in ubldr, save/restore r9 for api calls.
ian [Mon, 28 Apr 2014 23:46:04 +0000 (23:46 +0000)]
MFC r257210, r258527: No hardfloat in ubldr, save/restore r9 for api calls.

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

10 years agoMFC r264018: update list of supported FTDI chips.
ian [Mon, 28 Apr 2014 13:18:30 +0000 (13:18 +0000)]
MFC r264018: update list of supported FTDI chips.

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

10 years agoMFC r264800: fixes for problems found by Coverity scan...
ian [Mon, 28 Apr 2014 13:12:19 +0000 (13:12 +0000)]
MFC r264800: fixes for problems found by Coverity scan...
  - Get transmit loop more in line with the other serial drivers.
  - Add a comment about FTDI and ZLPs.
  - Correctly check odditiy of baud rate divisor.
  - Correct IOCTL handling for "error" and "event" char.

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

10 years agoMFC uftdi(4) driver changes...
ian [Mon, 28 Apr 2014 12:46:23 +0000 (12:46 +0000)]
MFC uftdi(4) driver changes...
  r264010: Support speeds up to 12mbaud on newer chips.
  r264031: Use 2K IO buffers for improved throughput.
  r264149: Add ioctl(2) calls to access bitbang, MPSSE, CPU_FIFO,
           and other modes.

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

10 years agoMFC r264467:
delphij [Mon, 28 Apr 2014 06:11:03 +0000 (06:11 +0000)]
MFC r264467:

Take into account when zpool history block grows exceeding 128KB in zpool(8)
and zdb(8) by growing the buffer on demand with a cap of 1GB (specified in
spa_history_create_obj()).

PR: bin/186574
Submitted by: Andrew Childs <lorne cons org nz> (with changes)

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

10 years agoMFC r264741: Add placeholder Kyuafiles for various top-level hierarchies.
jmmv [Mon, 28 Apr 2014 04:20:14 +0000 (04:20 +0000)]
MFC r264741: Add placeholder Kyuafiles for various top-level hierarchies.

This is "make tinderbox" clean.

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

10 years agoMFC r264689:
mm [Sun, 27 Apr 2014 09:05:34 +0000 (09:05 +0000)]
MFC r264689:
De-virtualize UMA zone pf_mtag_z and move to global initialization part.

The m_tag struct does not know about vnet context and the pf_mtag_free()
callback is called unaware of current vnet. This causes a panic.

PR: kern/182964

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

10 years agoMFC various moves of tools/regressions/ tests to the new infrastructure.
jmmv [Sun, 27 Apr 2014 01:15:10 +0000 (01:15 +0000)]
MFC various moves of tools/regressions/ tests to the new infrastructure.

- r263220 Migrate tools/regression/sbin/ to the new tests layout.
- r263222 Add Makefile missed in r263220.
- r263226 Migrate tools/regression/{usr.bin/lastcomm,usr.sbin}/ to the new tests layout.
- r263227 Migrate most of tools/regression/usr.bin/ to the new tests layout.
- r263345 Expand tabs that sneaked in into spaces.
- r263346 Migrate tools/regression/usr.bin/make/ to the new tests layout.
- r263348 Add Makefiles missed in r263346.
- r263351 Migrate tools/regression/usr.bin/pkill/ to the new tests layout.
- r263388 Mark multi_test as requiring /usr/share/dict/words.
- r263814 Fix path to the run.pl script to let these tests run.
- r264742 Prevent building tests when bootstrapping make.

This is 'make tinderbox' clean.

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

10 years agoMFC: r264832
marius [Sat, 26 Apr 2014 01:00:28 +0000 (01:00 +0000)]
MFC: r264832

- Sprinkle const and static as appropriate.
- Convert the remainder of snd_hda(4) to take advantage of nitems().
- Use DEVMETHOD_END.
- Use NULL instead of 0 for pointers.

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

10 years agoMFC r264794:
gjb [Sat, 26 Apr 2014 00:51:07 +0000 (00:51 +0000)]
MFC r264794:
  Move xdev knobs from release/arm/release.sh and into an
  XDEV_FLAGS variable in ${KERNCONF}.conf file.

Local changes:
  Fix XDEV_FLAGS for stable/10 branch, in particular, remove
  WITH_GCC_BOOTSTRAP=1 and add WITH_GNUCXX=1.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC: r264831
marius [Sat, 26 Apr 2014 00:40:16 +0000 (00:40 +0000)]
MFC: r264831

Add quirk to configure headphones redirection on Intel DH87RL boards.

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

10 years agoMFC: r260064
marius [Fri, 25 Apr 2014 22:23:38 +0000 (22:23 +0000)]
MFC: r260064

- Probe with BUS_PROBE_DEFAULT instead of 0.
- Nuke code setting PCI_POWERSTATE_D0; pci(4) already does that for type 0
  devices.
- There's no need to keep track of resource IDs.
- Quiesce the interrupt before actually detaching.
- Use DEVMETHOD_END.
- Use NULL instead of 0 for pointers.

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

10 years agoMFC: r260063
marius [Fri, 25 Apr 2014 22:19:18 +0000 (22:19 +0000)]
MFC: r260063

- Probe with BUS_PROBE_DEFAULT instead of 0.
- Nuke code setting PCI_POWERSTATE_D0; pci(4) already does that for type 0
  devices.
- Use PCIR_BAR instead of a homegrown macro.
- There's no need to keep track of resource IDs.
- Quiesce the interrupt before actually detaching.
- Use DEVMETHOD_END.
- Use NULL instead of 0 for pointers.

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

10 years agoMFC: r260061
marius [Fri, 25 Apr 2014 22:04:40 +0000 (22:04 +0000)]
MFC: r260061

- Add support for using MSI instead of INTx, controllable via the tunable
  hw.ral.msi_disable (defaulting to using MSI).
- Probe with BUS_PROBE_DEFAULT instead of 0.
- Nuke code setting PCI_POWERSTATE_D0; pci(4) already does that for type 0
  devices.
- Use PCIR_BAR instead of a homegrown macro.
- There's no need to keep track of resource IDs.
- Release resources again in case attaching fails.
- Quiesce the interrupt before detaching.
- Sprinkle const.
- Use DEVMETHOD_END.
- Use NULL instead of 0 for pointers.
- Trim headers.
- Nuke dupe $FreeBSD$.

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

10 years agoMFC: r260058
marius [Fri, 25 Apr 2014 22:01:02 +0000 (22:01 +0000)]
MFC: r260058

- Remove a redundant variable in mpt_pci_attach().
- #if 0 the currently unused paired port linking and unlinking of dual
  adapters.
- Simplify MSI/MSI-X allocation and release. For a single one, we don't need
  to fiddle with the MSI/MSI-X count and pci_release_msi(9) is smart enough
  to just do nothing in case of INTx.
- Canonicalize actions taken on attach failure and detach.
- Remove the remainder of incomplete support for older FreeBSD versions.

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

10 years agoMFC: r260086
marius [Fri, 25 Apr 2014 21:58:28 +0000 (21:58 +0000)]
MFC: r260086

- Probe with BUS_PROBE_DEFAULT instead of 0.
- Remove clearing PCIM_CMD_INTxDIS; pci(4) will do that as appropriate since
  r189367.

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

10 years agoMFC: r260053
marius [Fri, 25 Apr 2014 21:42:52 +0000 (21:42 +0000)]
MFC: r260053

- There's no need to keep track of resource IDs.
- Simplify MSI allocation and release. For a single one, we don't need to
  fiddle with the MSI count and pci_release_msi(9) is smart enough to just
  do nothing in case of INTx.
- Don't allocate MSI as RF_SHAREABLE.
- Use DEVMETHOD_END.
- Use NULL instead of 0 for pointers.

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

10 years agoMFC: r260050, r261528
marius [Fri, 25 Apr 2014 21:32:34 +0000 (21:32 +0000)]
MFC: r260050, r261528

- Switch to using the common MII bitbang'ing code instead of duplicating it.
- Based on lessons learnt with dc(4) (see r185750), add bus space barriers to
  the MII bitbang read and write functions as well as to instances of page
  switching.
- Add missing locking to ed_ifmedia_{upd,sts}().
- Canonicalize some messages.
- Based on actual functionality, ED_TC5299J_MII_DIROUT should be rather named
  ED_TC5299J_MII_DIRIN.
- Remove unused headers.
- Use DEVMETHOD_END.
- Use NULL instead of 0 for pointers.

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

10 years agoMFC: r260045
marius [Fri, 25 Apr 2014 21:28:39 +0000 (21:28 +0000)]
MFC: r260045

- Simplify MSI allocation and release. For a single one, we don't need to
  fiddle with the MSI count and pci_release_msi(9) is smart enough to just
  do nothing in case of INTx.
- Don't allocate MSI as RF_SHAREABLE.

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

10 years agoMFC: r260044
marius [Fri, 25 Apr 2014 21:24:33 +0000 (21:24 +0000)]
MFC: r260044

Free the MSI again on detach if allocated. Arguably, this code would be
better off living in aac_pci.c, but it doesn't seem worth creating a
aac_pci_detach() and it's also not the first PCI-specific bit in aac.c

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

10 years agoMFC: r260041
marius [Fri, 25 Apr 2014 21:20:22 +0000 (21:20 +0000)]
MFC: r260041

Record the IEEE P1282 Rock Ridge version 1.12 POSIX File Serial Number,
i. e. the POSIX:5.6.1 st_ino field, which can be used to detect hard links
in the file system. This is also the default in mkisofs(8) and according to
its man page, no system only being able to cope with Rock Ridge version 1.10
is known to exist.

PR: 185138
Submitted by: Kurt Lidl

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

10 years agoMFC r264653:
hselasky [Fri, 25 Apr 2014 09:53:15 +0000 (09:53 +0000)]
MFC r264653:
Add new USB quirk.

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

10 years agoMFC r258195+r264361:
delphij [Fri, 25 Apr 2014 04:49:27 +0000 (04:49 +0000)]
MFC r258195+r264361:

nc from OpenBSD 5.5.

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

10 years agoMFC r264582:
ae [Thu, 24 Apr 2014 11:12:53 +0000 (11:12 +0000)]
MFC r264582:
  Remove unused variable.

PR: 173521

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

10 years agoMFC: r264585
brueffer [Thu, 24 Apr 2014 10:23:35 +0000 (10:23 +0000)]
MFC: r264585

Add a missing break in the TCP case.

Reviewed by: bms

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

10 years agoMFC r264318:
mav [Thu, 24 Apr 2014 10:22:00 +0000 (10:22 +0000)]
MFC r264318:
Fix wrong sizes used to access PD_Type and PD_State DDF metadata fields.

This caused incorrect behavior of arrays with big-endian DDF metadata.
Little-endian (like used by Adaptec controllers) should not be harmed.
Add workaround should be enough to manage compatibility.

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

10 years agoMFC r263259
bryanv [Thu, 24 Apr 2014 04:43:50 +0000 (04:43 +0000)]
MFC r263259
    Add Tx/Rx multiqueue support to vmx(4)

    As a prerequisite for multiple queues, the guest must have MSIX enabled.
    Unfortunately, to work around device passthrough bugs, FreeBSD disables
    MSIX when running as a VMWare guest due to the hw.pci.honor_msi_blacklist
    tunable; this tunable must be disabled for multiple queues.

    Also included is various minor changes from the projects/vmxnet branch.

MFC r264865
    Update the date that was missed in r263259

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

10 years agoMFC r264731:
gjb [Thu, 24 Apr 2014 00:29:02 +0000 (00:29 +0000)]
MFC r264731:
  urndis(4) will first appear in 9.3-RELEASE.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r264550:
mav [Wed, 23 Apr 2014 12:46:27 +0000 (12:46 +0000)]
MFC r264550:
Fix VIRTUAL and PROF interval timers for short intervals, broken at r247903.

Due to the way those timers are implemented, we can't handle very short
intervals.  In addition to that mentioned patch caused math overflows
for short intervals.  To avoid that round those intervals to 1 tick.

PR: kern/187668

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

10 years agoMFC: r264422, r264471
brueffer [Wed, 23 Apr 2014 12:15:14 +0000 (12:15 +0000)]
MFC: r264422, r264471

Set buf to NULL only when we don't allocate memory,
and free buf unconditionally.

Found with: Coverity Prevent(tm)
Requested by: kib (r264471)

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

10 years agoMFC: r264507
brueffer [Wed, 23 Apr 2014 12:11:14 +0000 (12:11 +0000)]
MFC: r264507

Mention Capsicum.

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

10 years agoMFC: r264482
brueffer [Wed, 23 Apr 2014 12:08:20 +0000 (12:08 +0000)]
MFC: r264482

Re-indent break statement.

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

10 years agoMFC r264124:
ae [Wed, 23 Apr 2014 11:22:54 +0000 (11:22 +0000)]
MFC r264124:
  Remove dead code.

MFC r264125:
  Remove unused variable.

MFC r264126:
  The check for local address spoofing lacks ifaddr locking.
  Remove these loops and use in_localip() and in6_localip()
  functions instead.

MFC r264520:
  Remove _IP_VHL* macros and related ifdefs.

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

10 years agoMFC r264540:
ae [Wed, 23 Apr 2014 09:56:17 +0000 (09:56 +0000)]
MFC r264540:
  Set oif only for outgoing packets.

  PR: 188543

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

10 years agoMFC: r264460
brueffer [Wed, 23 Apr 2014 09:27:11 +0000 (09:27 +0000)]
MFC: r264460

Document the xdev* targets.

PR: 188519
Submitted by: Idwer Vollering <vidwer at gmail.com>
Reviewed by: bapt

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

10 years agoMFC: r264489
brueffer [Wed, 23 Apr 2014 09:22:24 +0000 (09:22 +0000)]
MFC: r264489

Add a missing break in option parsing.

CID: 1011452
Found with: Coverity Prevent(tm)

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

10 years agoMFC: r264479
brueffer [Wed, 23 Apr 2014 07:33:51 +0000 (07:33 +0000)]
MFC: r264479

Fix double fclose() in an error case.

CID: 1006120
Found with: Coverity Prevent(tm)

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

10 years agoMFC: r264421
brueffer [Wed, 23 Apr 2014 07:22:40 +0000 (07:22 +0000)]
MFC: r264421

Free resources in error cases; re-indent a curly brace while here.

CID: 1199366
Found with: Coverity Prevent(tm)

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

10 years agoMFC r262596:
markj [Wed, 23 Apr 2014 03:26:29 +0000 (03:26 +0000)]
MFC r262596:
4478 dtrace_dof_maxsize is far too small

illumos/illumos-gate@d339a29bb4765c4b6883a935cf69b669cd05bca0

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

10 years agoMFC r264518, r264697, r264698, r264703:
gjb [Wed, 23 Apr 2014 01:27:53 +0000 (01:27 +0000)]
MFC r264518, r264697, r264698, r264703:

r264518:
  Fix armv6 build failure: "armv6-freebsd-gcc: not found"

r264697:
  When building the 'xdev' target when WITH_GCC=1 and
  WITHOUT_CLANG_IS_CC=1, it appears WITHOUT_CLANG=1 must
  also be set.

  While here, reorder the lines to put the WITH_* and
  WITHOUT_* entries on the same line.

r264698:
  Fix EOL escape.

r264703:
  Apply a slightly different color hammer to arm/release.sh:

   - gcc(1) fails to build usr.bin/dtc
   - lack of WITH_GNUCXX=1 causes cc1plus(1) calls to fail
   - u-boot fails to build with clang (hard-coded gcc(1) calls)

  Implement the proper incantation of WITH_/WITHOUT_ knobs
  to get arm snapshot builds working again.

  Since the cc(1) binary no longer needs to be cc(1) instead of
  clang(1), remove the chroot(8) post-install cc(1) overwrite.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC: r264419
brueffer [Tue, 22 Apr 2014 21:25:03 +0000 (21:25 +0000)]
MFC: r264419

Avoid double close() of a file descriptor.

CID: 1006089
Found with: Coverity Prevent(tm)

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

10 years agoMFC: r264418
brueffer [Tue, 22 Apr 2014 21:13:25 +0000 (21:13 +0000)]
MFC: r264418

Avoid double free in f_acl().

CID: 1018508
Found with: Coverity Prevent(tm)

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

10 years agoMFC: r264416
brueffer [Tue, 22 Apr 2014 21:02:02 +0000 (21:02 +0000)]
MFC: r264416

Add a missing comma between error message definitions.

CID: 1199266
Found with: Coverity Prevent(tm)
MFC after: 1 week

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

10 years agoMFC: r264386
brueffer [Tue, 22 Apr 2014 20:55:46 +0000 (20:55 +0000)]
MFC: r264386

Improve markup and remove contractions.

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

10 years agoMFC: r264384, r264415
brueffer [Tue, 22 Apr 2014 20:51:07 +0000 (20:51 +0000)]
MFC: r264384, r264415

mdoc and language improvements.

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

10 years agoMFC: r264257, r264327, r264514
marius [Tue, 22 Apr 2014 13:02:03 +0000 (13:02 +0000)]
MFC: r264257, r264327, r264514

Distinguish between the different variants and configurations of Sunix
{MIO,SER}5xxxx chips instead of treating all of them as PUC_PORT_2S.
Among others, this fixes the hang seen when trying to probe the none-
existent second UART on an actually 1-port chip.

Obtained from: NetBSD (BAR layouts)
Sponsored by: Bally Wulff Games & Entertainment GmbH

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

10 years agoMFC r264293:
yongari [Tue, 22 Apr 2014 04:35:07 +0000 (04:35 +0000)]
MFC r264293:
  Add workaround for MCP61 Ethernet controller found on MSI K9
  motherboard.  PHY hardware used for the controller responded at
  all possible addresses which in turn resulted in having 32 PHYs
  for the controller.  If driver detects "MSI K9N6PGM2-V2 (MS-7309)"
  motherboard, tell miibus(4) PHY is located at 0.

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

10 years agoMFC r264062:
yongari [Tue, 22 Apr 2014 04:30:24 +0000 (04:30 +0000)]
MFC r264062:
  Correct endianness handling in getting station address from EEPROM.
  While I'm here, remove aue_eeprom_getword() as its only usage is to
  read station address and make it more readable.  This change is
  inspired by NetBSD.
  With this change, aue(4) should work on big endian architectures.

  PR: 188177

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

10 years agoMFC r264621
emax [Mon, 21 Apr 2014 17:17:23 +0000 (17:17 +0000)]
MFC r264621

use correct (integer) type for the temperature sysctl

Reviewed by: np, scottl
Obtained from: Netflix

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

10 years agoMFC r264127
sbruno [Mon, 21 Apr 2014 16:54:38 +0000 (16:54 +0000)]
MFC r264127

Add PCI-IDs for TBD Gen9 RAID controller HBAs from HP to ciss(4)

Submitted by: Benesh, Scott <scott.benesh@hp.com>
Sponsored by: Yahoo! Inc.

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

10 years agoMFC r264193:
mav [Mon, 21 Apr 2014 16:46:44 +0000 (16:46 +0000)]
MFC r264193:
In addition to r264077, tell GEOM that we do support BIO_DELETE now.

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

10 years agoMFC r264077:
mav [Mon, 21 Apr 2014 16:42:15 +0000 (16:42 +0000)]
MFC r264077:
Add BIO_DELETE support to ZVOL.

It is an adapted merge from the vendor branch of:
    701 UNMAP support for COMSTAR  (in part related to ZFS)
    2130 zvol DKIOCFREE uses nested DMU transactions

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

10 years agoMFC r264341:
mav [Mon, 21 Apr 2014 16:33:49 +0000 (16:33 +0000)]
MFC r264341:
Create zvol devices on zfs clone.

While big and shiny patch is not ready, it is better to have something.

PR: kern/178999

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

10 years agoMFC r264191:
mav [Mon, 21 Apr 2014 16:26:24 +0000 (16:26 +0000)]
MFC r264191:
Report stripe size and offset of the backing device in READ CAPACITY (16)
as physical sector size and offset.

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

10 years agoMFC r264364:
ae [Mon, 21 Apr 2014 11:17:29 +0000 (11:17 +0000)]
MFC r264364:
  Properly release the in6_multi lock.

Sponsored by: Yandex LLC

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

10 years agoMFC r264481:
kib [Mon, 21 Apr 2014 02:55:27 +0000 (02:55 +0000)]
MFC r264481:
Add dwarf annotations to the amd64 _rtld_bind_start to allow debuggers
to unwind around the calls from PLT to binder.

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

10 years agoMFC r264142:
bdrewery [Mon, 21 Apr 2014 02:49:41 +0000 (02:49 +0000)]
MFC r264142:

  Show error code when failing to destroy a mirror on delay

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

10 years agoMFC r264320:
bdrewery [Mon, 21 Apr 2014 02:48:04 +0000 (02:48 +0000)]
MFC r264320:

  Fix spelling error in g_trace() call.

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

10 years agoMFC r260689 (partial):
gjb [Sun, 20 Apr 2014 22:57:15 +0000 (22:57 +0000)]
MFC r260689 (partial):
  Remove 'of course' statement from upgrading note.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFH (r264691): merge upstream patch for EC calculation bug
des [Sun, 20 Apr 2014 12:46:18 +0000 (12:46 +0000)]
MFH (r264691): merge upstream patch for EC calculation bug

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

10 years agoMFC: 264174
gnn [Sun, 20 Apr 2014 06:46:04 +0000 (06:46 +0000)]
MFC: 264174

Speed up the lookup of interfaces when there are a large number
of them, such in a system with a large number of VLANs.

Submitted by: Nick Rogers

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

10 years agoMFC r264620:
kib [Sun, 20 Apr 2014 01:37:30 +0000 (01:37 +0000)]
MFC r264620:
Fix typo.

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

10 years agoMFC r264344:
hselasky [Fri, 18 Apr 2014 07:50:25 +0000 (07:50 +0000)]
MFC r264344:
Tune buffer sizes for SuperSpeed USB when using LibUSB v0.1 and v1.0
APIs to increase the maximum bandwidth limit.

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

10 years agoMFC r264340:
hselasky [Fri, 18 Apr 2014 07:48:29 +0000 (07:48 +0000)]
MFC r264340:
Correct IMOD default value according to comment.

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

10 years agoMFC r264488:
dteske [Fri, 18 Apr 2014 00:48:26 +0000 (00:48 +0000)]
MFC r264488:

When merging docsinstall and zfsboot updates to stable/9 it was discovered
that the slightly older dialog(1) requires --separate-output when using the
--checklist widget to force response to produce unquoted values (whereas in
stable/10 --checklist widget without --separate-output will only quote the
checklist labels in the response if the label is multi-word (contains any
whitespace).

Since these enhancements (see revisions 263956 and 264437) were developed
originally on 10, the --separate-output option was omitted. When merged to
stable/9, we (Allan Jude) and I found during testing that the "always-
quoting" of the response was causing things like struct interpolation to
fail (`f_struct device_$dev' would produce `f_struct device_\"da0\"' for
example -- literal quotes inherited from dialog(1) --checklist response).

To see the behavior, execute the following on stable/9 versus stable/10:

        dialog --checklist disks: 0 0 0 da0 "" off da1 "" off

Check both items and hit enter. On stable/10, the response is:

        da0 da1

On stable/9 the response is:

        "da0" "da1"

If you use the --separate-output option, the response is the same for both:

        da0
        da1

So applying --separate-output on every platform until either one of two
things occurs 1) dialog(1,3) gets synchronized between stable/9, higher or
2) we drop support for stable/9.

Reviewed by:    Allan Jude

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

10 years agoMFC 258860,260167,260238,260397:
jhb [Thu, 17 Apr 2014 18:00:07 +0000 (18:00 +0000)]
MFC 258860,260167,260238,260397:
- Restructure the VMX code to enter and exit the guest. In large part this
  change hides the setjmp/longjmp semantics of VM enter/exit.
  vmx_enter_guest() is used to enter guest context and vmx_exit_guest() is
  used to transition back into host context.

  Fix a longstanding race where a vcpu interrupt notification might be
  ignored if it happens after vmx_inject_interrupts() but before host
  interrupts are disabled in vmx_resume/vmx_launch. We now call
  vmx_inject_interrupts() with host interrupts disabled to prevent this.
- The 'protection' field in the VM exit collateral for the PAGING exit is
  not used - get rid of it.

Reviewed by: grehan

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