MFC r272349, r272422 and r272479:
- Fix XHCI driver for devices which have more than 15 physical root HUB
  ports. The current bitmap array was too small to hold more than 16
  bits and would at some point toggle the context size, which then would
  trigger an enumeration fault and cause a fallback to the EHCI
  companion controller, if any.
- Make sure we always set the maximum number of valid contexts.
- Set default cycle state in case of early interrupts.

Approved by:	re, marius


git-svn-id: svn+ssh://svn.freebsd.org/base/releng/10.1@272608 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC: r272398

Make sure to not skip any argument when converting from deprecated
+POS1, -POS2 to -kPOS1,POS2, so that sort +0n gets translated to sort -k1,1n
as it is expected

PR:		193994
Submitted by:	rodrigo
Approved by:	re (marius)


git-svn-id: svn+ssh://svn.freebsd.org/base/releng/10.1@272611 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r272480:
When we fail to get a USB reference we should just return, because
there are no more references held.

Approved by:	re, marius


git-svn-id: svn+ssh://svn.freebsd.org/base/releng/10.1@272612 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r272308: Fix old iSCSI initiator to work with new CAM locking.

This switches code to using xpt_rescan() routine, irrelevant to locking.
Using xpt_action() directly requires knowledge about higher level locks,
that SIM does not need to have.

This code is obsolete, but that is not a reason to crash.

Approved by:	re (marius)


git-svn-id: svn+ssh://svn.freebsd.org/base/releng/10.1@272669 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r272549:

Fix pkill unit test

Approved by: re (gjb)


git-svn-id: svn+ssh://svn.freebsd.org/base/releng/10.1@272682 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r272224:  Fix page length reported for Block Limits VPD page.

Approved by:	re (marius)


git-svn-id: svn+ssh://svn.freebsd.org/base/releng/10.1@272684 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r272270:

tty_rel_free() can be called more than once for the same tty so make sure
that the tty is dequeued from 'tty_list' only the first time.

Approved by:	re (glebius)


git-svn-id: svn+ssh://svn.freebsd.org/base/releng/10.1@272752 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MF10 r272773: Add QCOW v1 & v2 support

Requested by: gjb@
Approved by: re (marius)
Relnotes: yes


git-svn-id: svn+ssh://svn.freebsd.org/base/releng/10.1@272819 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Update releng/10.1 to -RC2 as part of the 10.1-RELEASE cycle.

Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/releng/10.1@272876 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFS r272922: Correct scale factor for T terabyte suffix

PR:		194250
Approved by:	re


git-svn-id: svn+ssh://svn.freebsd.org/base/releng/10.1@272975 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFS r272892 (r272713 in head):

 Since introducing the extra mapping in r250103 (head) for architectural performance
 events we have actually counted 'Branch Instruction Retired' when people
 asked for 'Unhalted core cycles' using the 'unhalted-core-cycles' event mask
 mnemonic.

 Reviewed by:		jimharris
 Discussed with:	gnn, rwatson
Sponsored by:		DARPA/AFRL
Approved by:		re (gjb)


git-svn-id: svn+ssh://svn.freebsd.org/base/releng/10.1@272981 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r272627:
Checksum coverage values larger than 65535 for UDPLite are invalid.
Check for this when the user calls setsockopt using UDPLITE_{SEND,RECV}CSCOV.

MFC r272628:
When plen != ulen, it should only be checked when this is UDP.

MFC r272645:
If the checksum coverage field in the UDPLITE header is the length
of the complete UDPLITE packet, the packet has full checksum coverage.
So fix the condition.

MFC r272660:
UDPLite requires a checksum. Therefore, discard a received packet if
the checksum is 0.

MFC r272661:
The default for UDPLITE_RECV_CSCOV is zero. RFC 3828 recommend
that this means full checksum coverage for received packets.
If an application is willing to accept packets with partial
coverage, it is expected to use the socket option and provide
the minimum coverage it accepts.

MFC r272662:
Fix the checksum computation for UDPLite/IPv6. This requires the
usage of a function computing the checksum only over a part of the function.
Therefore introduce in6_cksum_partial() and implement in6_cksum() based
on that.
While there, ensure that the UDPLite packet contains at least enough bytes
to contain the header.

MFC r272663:
Check for UDP/IPv6 packets that the length in the UDP header is at least
the minimum. Make the check similar to the one for UDPLite/IPv6.

MFC r272664:
UDP/IPv6 and UDPLite/IPv6 require a checksum. So check for it.

MFC r272754:
Fix a bug introduced in
https://svnweb.freebsd.org/base?view=revision&revision=272347

Approved by: re (gjb)


git-svn-id: svn+ssh://svn.freebsd.org/base/releng/10.1@272991 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFS: r272543 (r271351 on HEAD)
  Fix a boundary case error in vm_reserv_alloc_contig().

Approved by:	re (kib)


git-svn-id: svn+ssh://svn.freebsd.org/base/releng/10.1@273007 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f