MFV r258665: 4347 ZPL can use dmu_tx_assign(TXG_WAIT)

illumos/illumos-gate@e722410c49fe67cbf0f639cbcc288bd6cbcf7dd1

MFC after:	9 days
X-MFC after:	r258632
Give some output about the CPU clock on IBMPOWER machines, currently read
from OF. Linux does it similar, means they also read the OF values and
display them.

Tested under qemu and real hardware:

	cpu0: IBM POWER5+ revision 2.0, 1898.10 MHz
Add an interface for the Wii IOS kernels.

Multiple IOS interfaces can exist at the same time.
Fix an issue where the leading `+' sign before a function name was not
displayed unless color was requested.
Fix an issue where additional lines of a function definition didn't line
up with the primary (leading) line of syntax.
gcc: Make use of TREE_OVERFLOW_P.

While it was brought in r258179 only to fix a build issue,
bringing the rest of the change has the advantage of fixing
GCC/19978.

Obtained from:	gcc 4.3 (rev. 120505; GPLv2)
MFC after:	1 week
On the RT2870, rf registers are now 64-bit, not 32-bit after r257955.
Committed over a Buffalo WLI-UC-AG300N (RT2870).
Change run_rt2870_rf_write() prototype (no functional change)
Move KDTRACE_FRAME to "options" since it's used by kern.pre.mk.
Fix typo in comment.
In keg_dtor(), print out the keg name in the "Freed UMA keg was not empty"
message printed to the console.  This makes it easier to track down
the source of certain memory leaks.

Suggested by: adrian
Also mention that drill(1) can be used, now that nslookup and dig are no
longer in the base system.

Suggested by: peter
zfs mappedread_sf: assert that a page is never partially valid

ZFS never partially validates or invalidates a page.
The higher level VM should not do that either.
mappedread_sf correct operation depends on a page being either fully
valid or invalid.

MFC after:	7 days
Look up a nand chip by id in the static table before trying to obtain
ONFI parameters.  This allows a static table entry to provide valid data
for chips known to provide invalid ONFI data.
Note that libstand is 32-bit on amd64 and powerpc64

Sponsored by:	The FreeBSD Foundation
Set the PGA_WRITEABLE flag when the protections indicate write access, not
just when the current access is a write.

Reviewed by:	zbb@
drop ZUT_OBJ, zfs unit testing driver never materialzied in freebsd

MFC after:	5 days
zfs: make zfs_map_page / zfs_unmap_page public

MFC after:	15 days
zfs: add dmu_write_pages variant for freebsd

The freebsd variant of dmu_write_pages is hidden under _KERNEL
to avoid needlessly pulling in vm_page_t declaration.
Besides, this function seems to be useless for ZFS userland counterpart.

MFC after:	15 days
zfs: add zfs_freebsd_putpages

this should be more optimal than writing pages one-by-one via zfs_write ->
update_pages in the case of multi-page putpages call

MFC after:	16 days