MFC 262785 263183 264182 264999 265391 265392 265395 265397 265398 265402 265403
    265442 265546 265680 265681 265719 265862 265864 265867 265927 266010 266495
    266540 266835 266856 266861 266862 267007 267310.

265391
  Define a new method for probing vt(4) driver before attach it at early stage.
265392
  Create dataset for vt(4) drivers.
265395
  Set of updates to vt(4) core part.
  o Declare vt(4) drivers dataset.
  o Create single static structures for all early drivers.
  o Add vt(4) to be by default in the kernel consoles list.
  o Create one more sysinit point, to be able to initialize memory and lock
  	requirement of early drivers.
  o Implement early drivers select. (Only best available will be selected).
  o Fix one missed "return (0)" for VTYLOCK.
  o Improve locking for cases when one driver replace another.
  o Make driver replacement notification less debug-look-like.
  o Minor spell fixes.
265397
  Switch fb and efifb drivers to use names and new vt(4) driver probe method.
265398
  Add vt(4) driver name for ofwfb driver.
265402
  Revert r264997 and r265026. It is not required anymore.
265403
  Switch vga drivers to use names and new vt(4) driver probe method.
265442
  Implement KDMKTONE ioctl.
265546
  Fix possible divide by zero.
265680
  No need to assign fields required and checked on probe.
265681
  Fix scrollback.
265719
  Hide debug messages under VT_DEBUG.
265927
  Update terminal sizes in any case when new vt(4) driver arrive.
  (Plus remove one unused newline)
266010
  Remove extra newlines.
  No functional changes.
266495
  Fix tty locking.
  o Correct expected values for VT_LOCKSWITCH ioctl.
  o Check current window for locked state.
266540
  Proper fix of VT_LOCKSWITCH ioctl.
266835
  Remove driver as unused.
267007
  Fix case when vt(4) started w/o driver assigned.
  o Always init locks and cv ASAP.
  o Initialize driver-independent parts even if driver probing fail.
  o Allow to call vt_upgrade anytime, for later loaded drivers.
  o New window flag VWF_READY, to track if window already initialized.
  Other updates:
  o Pass vd as a cookie for kbd_allocate.
  o Do not blank window on driver replacement.

Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@267538 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Record merginfo for r267538.

Pointy hat to:	ray
Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@267539 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC: 266836, 266839
vt(4) support for vidcontrol(1).
  o Teach vidcontrol(1) how to load vt(4) font.
  o Teach vidcontrol(1) to distinct which virtual terminal system is running now.
  o Load vt(4) fonts from different location.
  o Add $FreeBSD$ tag for path.h.
vt(4) support for kbdcontrol(1).
  Enable kbdcontrol(1) to use maps from vt(4) keymaps dir /usr/share/vt/keymaps
  if vt(4) is present.

Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@267540 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC: 266838 266841 267194
  Add gallant vt(4) font as an example of font loading for vt(4).
  Add Ukranian vt(4) keymaps as an example.

Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@267541 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Revert MFC r266925 because it can lead to instant panic at fexecve():

To allow to run interpreter itself add a new ELF branding type.

Pointed out by:	kib, mjg


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@267561 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r267313:

  Always append new bios to the tail of the queue, instead of sorting them


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@267562 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r267029, r267038:
Replace gethrtime() with cpu_ticks(), as source of random for the taskqueue
selection.  gethrtime() in our port updated with HZ rate, so unusable for
this specific purpose, completely draining benefit of multiple taskqueues.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@267571 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC: r267478

MFp4: change 1191346

In print_header32_tok(), correct printing in the XML case.  This lead to
invalid XML files before.

PR:		176259
Submitted by:	zi


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@267573 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r266007:

Initialize loginclass mutex using MTX_SYSINIT instead of using SI_SUB_CPU.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@267579 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r265590, r265594, r265595, r265599 [1], r265601 [1],
r265602 [1], r265603 [1], r265605 [1], r265607 [1],
r267554 [1]:

r265590:
  Modify release.xsl to allow proper attribution for
  sponsored and/or contributed works.

r265594:
  Add two new entity files in followup to r265590,
  sponsor.ent and vendor.ent, which will be used for
  sponsor/vendor names and URLs.

r265595:
  Add references to sponsor.ent and vendor.ent in
  relnotes/article.xml and share/xml/catalog.xml.

r265599:
  Add DARPA, AFRL to sponsor.ent.

r265601:
  Add LSI and Spectra Logic to sponsor.ent.

r265602:
  Add Netgate to sponsor.ent.

r265603:
  Add a note to keep the entity lists sorted alphabetically.

r265605:
  Add Google to the sponsor.ent file.

r265607:
  Separate &darpa; entity and create &darpa_afrl to
  avoid confusion.

r267554:
  Add &citrix; and &citrix.rd; macros.

[1] - Partial, entity addition only.

Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@267592 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add sponsorship attributions for stable/10.
Add iX and Netflix to the sponsors.ent file.

This is a direct commit to stable/10.

Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@267593 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Correct the spelling of iXsystems.

Submitted by:	delphij
Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@267594 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Drop 'Inc.' for consistency.

Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@267596 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r266901
Allocate a zeroed LDT.
Failing to do this might result in the LDT appearing to run out of free
descriptors because of random junk in the descriptor's 'sd_type' field.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@267598 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r267062:
Disable existing uncore hwpmc code for Nehalem and Westmere EX.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@267602 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r267342:

  Use bitwise OR instead of logical OR when constructing value for
  SET_FEATURES/NUMBER_OF_QUEUES command.

Sponsored by:	Intel


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@267620 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r261270:

Fix the ordering of the arguments to printf in
uhub_child_location_string(). This produced bogus information in

        dev.<USB driver>.<id>.%location

output from sysctl.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@267621 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r267436-267439:

- Replace malloc+memset with calloc.
- iconv_open(3): initialise ci_ilseq_invalid field of _citrus_iconv_shared
  struct after allocation with malloc.
- iconvlist(3): reduce a memory leak by copying strings only once.
- iconv(1):
  - Make invalids variable local to do_conv such that it prints the number
    of invalid characters of the current file instead of an accumulated
    value.
  - Make do_conv return an error when invalid characters have been found.
    Return EXIT_FAILURE from main if any file contained invalid characters.
    This matches the behaviour of GNU iconv.
  - Mark usage with __dead2 attribute.
  - Make the long_options array const.

Tested by:	Pavel Timofeev <timp87@gmail.com>


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@267665 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r267441:

Don't install GSS-API headers when the GSSAPI option has been disabled.
Some ports assume GSS-API is supported when they find the headers.

PR:		189156
Submitted by:	Garrett Cooper <yanegomi@gmail.com>


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@267666 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC	r267513:

Merge from r258379 missed the tests.

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:	54a20ab41aadcb81c53e72fc65886e964e9add59


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