MFC r241726:

 Move UMA socket zone initialization from uipc_domain.c to uipc_socket.c
 into one place next to its other related functions to avoid confusion.

MFC r241729:

 Move socket UMA zone initialization functionality together into
 one place.

MFC r241779:

 Tidy up somaxconn (accept queue limit) and related functions
 and move it together into one place.


git-svn-id: svn://svn.freebsd.org/base/stable/9@253035 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r249468:
Stop abusing xpt_periph in random plases that really have no periph related
to CCB, for example, bus scanning.  NULL value is fine in such cases and it
is correctly logged in debug messages as "noperiph".  If at some point we
need some real XPT periphs (alike to pmpX now), quite likely they will be
per-bus, and not a single global instance as xpt_periph now.


git-svn-id: svn://svn.freebsd.org/base/stable/9@253037 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r252569:
Fix NULL-deference kernel panic on attempt of destroying non-existing
ramdisk-backed CTL LUN.


git-svn-id: svn://svn.freebsd.org/base/stable/9@253038 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r252204, r252250:
Add bunch of names for Seagate and HGST vennor-specififc ASC/ASCQ codes.


git-svn-id: svn://svn.freebsd.org/base/stable/9@253039 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r252203:
Add test for SATA registers writability and skip using them if it failed.

There are some systems reported, where PCI BAR(5), used for SATA registers
access, is present, but not functional.  Attempt to use it brakes devices
detection logic.  Try to detect those cases on attach by setting and testing
some bits in SControl register.  If bits are unsettable, fallback to legacy
ATA without hot-plug detection, speed control/reporting, etc.


git-svn-id: svn://svn.freebsd.org/base/stable/9@253041 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Merge remote-tracking branch 'upstream/svn_stable_9' into svn_stable_9