Add new USB ID.

MFC after:	1 week
Submitted by:	Bruce Simpson <bms@fastmail.net>


git-svn-id: svn+ssh://svn.freebsd.org/base/head@249039 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
drm and i915: Left-shift iic_msg.slave at creation time

This is required because, in the radeon driver, we can't left-shift in a
central place, like it was done in the i915 driver.

Reviewed by:	kib@, kan@, avg@
Tested by:	kib@, avg@


git-svn-id: svn+ssh://svn.freebsd.org/base/head@249041 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix possible pool hold leak in dmu_send_impl()

Problem reported to vendor:
  https://www.illumos.org/issues/3645

Reported by:	Andriy Gapon <avg@FreeBSD.org>
MFC after:	15 days


git-svn-id: svn+ssh://svn.freebsd.org/base/head@249042 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add missing ifdef's for reduced feature compilations.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@249043 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
spa_open_common: fix argument to zvol_create_minors

Prior to r248571 spa_open was always called with a bare pool name,
but now it is called with a dataset name instead (spa_lookup handles
that).
So, when a ZFS root is mounted spa_open is called with a name of a root
dataset, which can very well be different from the pool name.
But zvol_create_minors should be called with the pool name, because it
performs a recursive traversal of all datasets under the name to find
all those that are volumes.

MFC after:	7 days


git-svn-id: svn+ssh://svn.freebsd.org/base/head@249047 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add xpt_release_ccb()'s missed at r248872.  That made `shutdown -p` stuck
on controller with small number of queue slots and several disks connected.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@249048 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add some more ATA_CAM ifdefs.

Submitted by:	marius (partially)
MFC after:	1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@249052 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Tell bmake to use the FreeBSD preferred makefile preference list.

PR:		177593
Reviewed by:	obrien


git-svn-id: svn+ssh://svn.freebsd.org/base/head@249057 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Since ATA_CAM mode has no implemented support for serializing access to the
different ATA channels, required for acard and pc98 ATA controllers, block
access to second channels of both, hoping that one working channel is better
then none.  I have an idea how that support could be implemented, but I have
no hardware to work on that.

MFC after:	1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@249062 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
IFP4 change 222074.

Introduce an explicit close of the output descriptor so that work done
on close is accounted for in the summary output triggered at exit
(implicit close()s occur after atexit() hooks).

This is useful because some devices such as cfi(4) may perform
signficant work after a close occurs (e.g. erasing and rewriting a
block of flash).


git-svn-id: svn+ssh://svn.freebsd.org/base/head@249063 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
The code in clear_remove() and clear_inodedeps() skips one entry
in the pagedep and inodedep hash tables. An entry in the table is
skipped because 'pagedep_hash' and 'inodedep_hash' hold the size
of the hash tables - 1.

The chance that this would have any operational failure is extremely
unlikely. These funtions only need to find a single entry and are
only called when there are too many entries. The chance that they
would fail because all the entries are on the single skipped hash
chain are remote.

Submitted by: Pedro Martelletto
Reviewed by:  kib
MFC after:    2 weeks


git-svn-id: svn+ssh://svn.freebsd.org/base/head@249064 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix locking problem in ctl_maintenance_in() - one cannot use M_WAITOK or call
ctl_done() with mutex held.

Reviewed by:	ken
Sponsored by:	FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/head@249065 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Check for SS_NBIO in the socket state field rather than socket buffer
flags.

Submitted by:	Vijay Singh
MFC after:	1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@249066 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix typo (devicde -> device).


git-svn-id: svn+ssh://svn.freebsd.org/base/head@249067 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Trailing whitespace cleanup along with 80 column enforcemnt.

Submitted by:	hiren.panchasara@gmail.com
Reviewed by:	sbruno@freebsd.org
Obtained from:	Yahoo! Inc.
MFC after:	2 weeks


git-svn-id: svn+ssh://svn.freebsd.org/base/head@249069 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Update man page for igb(4) with a little bit of information about
hw.igb.num_queues for those so inclined.

PR:		kern/177384
Submitted by:	hiren.panchasara@gmail.com
Reviewed by:	sbruno@
Approved by:	jfv@
Obtained from:	Yahoo! Inc.
MFC after:	2 weeks


git-svn-id: svn+ssh://svn.freebsd.org/base/head@249070 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFP4 change 210763

Allow boothowto and bootverbose to be set via kernel options, which
is useful on architectures that are unable to rely on a boot loader
to pass configuration variables to the kernel.

Submitted by:	rwatson


git-svn-id: svn+ssh://svn.freebsd.org/base/head@249071 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFP4 change 217313 and part of 222068:

Add a simple nexus attachment for cfi(4).


git-svn-id: svn+ssh://svn.freebsd.org/base/head@249072 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Correct the multicast handling in the E1000 drivers as was
done in ixgbe, thanks to Mike Karels for this fix. When exiting
promiscuous mode MPE bit was being unconditionally cleared, this
should not be done if we are in MAX multicast groups.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@249074 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remove all legacy ATA code parts, not used since options ATA_CAM enabled in
most kernels before FreeBSD 9.0.  Remove such modules and respective kernel
options: atadisk, ataraid, atapicd, atapifd, atapist, atapicam.  Remove the
atacontrol utility and some man pages.  Remove useless now options ATA_CAM.

No objections:	current@, stable@
MFC after:	never


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