Add new u3g device quirk.

Submitted by:	Lowell Gilbert
MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@245427 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add CLOCK_PROCESS_CPUTIME_ID to <time.h>, to synchronize the CLOCK_*
values with those in <sys/time.h>.  Otherwise, if a program includes
<time.h> before <sys/time.h>, the CLOCK_PROCESS_CPUTIME_ID macro never
gets defined.

Reviewed by:	davidxu
X-MFC-With:	239347


git-svn-id: svn://svn.freebsd.org/base/head@245428 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Keep value of orig_config_id metadata field.  Windows driver writes there
previous value of config_id when it is changed in some cases.  I guess it
may be used do avoid some split-brain conditions.


git-svn-id: svn://svn.freebsd.org/base/head@245433 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
cxgbe(4): Updates to the hardware L2 table management code.

- Add full support for IPv6 addresses.

- Read the size of the L2 table during attach.  Do not assume that PCIe
  physical function 4 of the card has all of the table to itself.

- Use FNV instead of Jenkins to hash L3 addresses and drop the private
  copy of jhash.h from the driver.

MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@245434 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remember the . in .\" in the WITH_NMTREE file and regenerate the output.

Reported by:	joeld


git-svn-id: svn://svn.freebsd.org/base/head@245435 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Don't use f_show_msg() unless printf(1) syntax is required (this reduces the
number of unnecessary forks).


git-svn-id: svn://svn.freebsd.org/base/head@245437 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add an option DB_FROM_SRC to use src/etc's user/group databases when
installing.  This allows things like running installworld for 10-CURRENT
on a 9.0-RELEASE system without adding extra users and groups to the
passwd and group files.

To prevent potentially risky uid/gid mismatches on systems with
non-standard local values, require that DESTDIR be set if DB_FROM_SRC is
set.

Sponsored by:	DARPA, AFRL
Reviewed by:	peter


git-svn-id: svn://svn.freebsd.org/base/head@245440 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
cxgbe/tom: Miscellaneous updates for TOE+IPv6 support (more to follow).

- Teach find_best_mtu_idx() to deal with IPv6 endpoints.

- Install correct protosw in offloaded TCP/IPv6 sockets when DDP is
  enabled.

- Move set_tcp_ddp_ulp_mode to t4_tom.c so that t4_tom.h can be included
  without having to drag in t4_msg.h too.  This was bothering the iWARP
  driver for some reason.

MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@245441 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Alike to r242314 for GRAID make GMIRROR more aggressive in marking volumes
as clean on shutdown and move that action from shutdown_pre_sync stage to
shutdown_post_sync to avoid extra flapping.

ZFS tends to not close devices on shutdown, that doesn't allow GEOM RAID
to shutdown gracefully.  To handle that, mark volume as clean just when
shutdown time comes and there are no active writes.

PR:		kern/113957
MFC after:	2 weeks


git-svn-id: svn://svn.freebsd.org/base/head@245443 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Alike to r242314 for GRAID make GRAID3 more aggressive in marking volumes
as clean on shutdown and move that action from shutdown_pre_sync stage to
shutdown_post_sync to avoid extra flapping.

ZFS tends to not close devices on shutdown, that doesn't allow GEOM RAID
to shutdown gracefully.  To handle that, mark volume as clean just when
shutdown time comes and there are no active writes.

MFC after:	2 weeks


git-svn-id: svn://svn.freebsd.org/base/head@245444 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
In case somebody still use it, fix legacy ataraid(4) to work on combined
PATA+AHCI controllers, such as JMicron JMB363.

PR:		kern/159271
MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@245446 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add myself as a port committer (with eadler@ and bdrewery@ as mentors).

While in the repository, add myself to calendar.freebsd.

Approved by:	eadler/bdrewery (mentor)


git-svn-id: svn://svn.freebsd.org/base/head@245447 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
cxgbe/tom: Basic CLIP table management.

This is the Compressed Local IPv6 table on the chip.  To save space, the
chip uses an index into this table instead of a full IPv6 address in
some of its hardware data structures.

For now the driver fills this table with all the local IPv6 addresses
that it sees at the time the table is initialized.  I'll improve this
later so that the table is updated whenever new IPv6 addresses are
configured or existing ones deleted.

MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@245448 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Initial support for Allwinner A10 SoC (Cubieboard)
	Add simple console driver
	Add interrupt handling and timer codes
	Add kernel config file
	Add dts file
Approved by: gonzo


git-svn-id: svn://svn.freebsd.org/base/head@245450 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix license to follow standard license template

Reviewed by: joel


git-svn-id: svn://svn.freebsd.org/base/head@245453 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix formatting of license according to share/examples/etc/bsd-style-copyright

Reviewed by: joel


git-svn-id: svn://svn.freebsd.org/base/head@245454 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add mistakenly removed third clause to license

Reviewed by: joel


git-svn-id: svn://svn.freebsd.org/base/head@245455 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Allow to insert new component to geom_raid3 without specifying number.

PR:		kern/160562
MFC after:	2 weeks


git-svn-id: svn://svn.freebsd.org/base/head@245456 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
- Detect when we are in KVM.

Silence on:	emulation
Approved by:	kib (mentor)
MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@245457 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
- Use standard RETURN VALUES section.

Approved by:	kib (mentor)
MFC after:	1 week


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