vt fontcvt: Make the bold font optional

Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/head@267012 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix incorrect error handling in PAM policy parser. [SA-14:13]


git-svn-id: svn+ssh://svn.freebsd.org/base/head@267013 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
FreeBSD, historically, has always used 8-bit addresses for i2c devices
(7-bit device address << 1), always leaving the room for the read/write bit.

This commit convert ti_i2c and revert r259127 on bcm2835_bsc to make them
compatible with 8-bit addresses.  Previous to this commit an i2c device
would have different addresses depending on the controller it was attached
to (by example, when compared to any iicbb(4) based i2c controller), which
was a pretty annoying behavior.

Also, update the PMIC i2c address on beaglebone* DTS files to match the new
address scheme.

Now the userland utilities need to do the correct slave address shifting
(but it is going to work with any i2c controller on the system).

Discussed with:	ian
MFC after:	2 weeks


git-svn-id: svn+ssh://svn.freebsd.org/base/head@267021 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
- style, remove (void) in front of printf and the like

CR:		D161
Approved by:	cognet, bapt


git-svn-id: svn+ssh://svn.freebsd.org/base/head@267026 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
- Avoid calling a wrapper function around strcmp
- Use sizeof(*array) instead of sizeof(element) everywhere

CR:		D161
Approved by:	cognet, bapt


git-svn-id: svn+ssh://svn.freebsd.org/base/head@267027 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Replace gethrtime() with cpu_ticks(), as source of random for the taskqueue
selection.  gethrtime() in our port updated with HZ rate, so unusable for
this specific purpose, completely draining benefit of multiple taskqueues.

MFC after:	2 weeks


git-svn-id: svn+ssh://svn.freebsd.org/base/head@267029 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Don't leak Giant.

Noticed by:	Sascha Wildner (DragonFlyBSD) via IRC
Reviewed by:	mav
MFC after:	3 days


git-svn-id: svn+ssh://svn.freebsd.org/base/head@267030 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
don't check fs_flags for _FLAGS_UPDATED as it is stored in fs_old_flags..
If you had a UFS2 FS that didn't have it's super block at SBLOCK_UFS2,
you'll end up corrupting your FS as the superblock is updated and written
to a different location...

makefs used to put the superblock at SBLOCK_UFS1 for UFS 2 FS's causing
this issue...

Reviewed by:	silience from mckusick
MFC after:	1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@267031 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Merge (unused) documentation of WITHOUT_TESTS into WITH_TESTS.

The description of WITH/WITHOUT tweaks should only document the non-default
option.  TESTS still defaults to no, so the option to be documented is
WITH_TESTS.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@267033 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
vt fontcvt: Use a hash to speed up glyph deduplication

Walking a linked list of all glyphs to look for a duplicate is very slow
for large fonts (e.g., for CJK character sets).  In my test the runtime
for a sample 40000 character font went from just over 80 seconds on
average to just over 2 seconds.

Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/head@267035 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Further updates to the netstat(1) man page and usage message

- Reformat the entire man page
- Create a proper synopsis section
- Use itemized-lists to describe each flag, rather than paragraphs
- Cross-reference common flags to a 'general flags' sub-section with short
inline description of the flag
- Label 'general flags' sub-section
- Apply additional fixes suggested by wblock, brueffer, and bdrewery
- Update .Dd that got undone previously
- Change the order of the .Op Fl to be alphabetical
- Add the -i | -I interface flags to the description of 'interface
display mode'
- Fix missing parameters in man page
- Fix missing parameters in usage()
- Sync man page and usage()

MFC Note: stable/9 and stable/10 do not have -R, will need to be removed
when merged

CR:		D58
Reviewed by:	brueffer, bcr
Approved by:	wblock (mentor)
MFC after:	7 days
Sponsored by:	ScaleEngine Inc.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@267037 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
- Naively fix build by partially reverting r267029 to still use
  gethrtime() when building libzpool.

X-MFC-With:	267029


git-svn-id: svn+ssh://svn.freebsd.org/base/head@267038 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fixes for the RSU driver:
- The R92S_TCR register is an 8-bit register. Don't access it like a
16-bit register.
- Disable parsing the delete station event, due to many false events.
- Ensure that there is only one transfer queue for each endpoint, so
that packets transmitted don't get out of order.

MFC after:	1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@267041 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
The external USB HUB in the RPI-B rejects control endpoint traffic
using the BULK endpoint type, while other USB HUBs do not. Disable
endpoint type workaround for TT traffic.

MFC after:	3 days


git-svn-id: svn+ssh://svn.freebsd.org/base/head@267044 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
- Add support for SG_GET_SG_TABLESIZE IOCTL to report that we don't support
scatter/gather lists.
- Return error for still unsupported SG 3.x API read/write calls.

MFC after:	1 month


git-svn-id: svn+ssh://svn.freebsd.org/base/head@267051 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Allow shared locking for the tmpfs vnodes.

Tested by:	pho
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@267060 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
For Xeon 7500 and 48XX (Nehalem EX and Westmere EX) variants of the
Core i7 and Westmere processors, the uncore PMC subsystem is
completely different from the uncore PMC on smaller versions of CPUs.
Disable existing uncore hwpmc code for EX, otherwise non-existing MSRs
are accessed.

The cores PMCs seems to be identical for non-EX and EX, according to
the SDM.

Reviewed by:	davide, fabient
Sponsored by:	The FreeBSD Foundation
MFC after:	2 weeks


git-svn-id: svn+ssh://svn.freebsd.org/base/head@267062 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Bulk document the kern.geom.label.*.enable sysctls and tunables.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@267063 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Sadly, we do not actually live in the future.

Approved by:	wblock (mentor)


git-svn-id: svn+ssh://svn.freebsd.org/base/head@267064 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
make sure ifp->if_transmit returns 0 if a buffer is enqueued.
A similar fix should be applied to vmxnet, ixgbe, igb, i40e.
(some of them previously reported by Michael Tuexen)

Drivers using if_transmit are correct, and so are most of the
other drivers that reassing if_transmit.

Among other things, this bug causes panics when using netmap emulation
on top of generic drivers.

Approved by:	bryanv
MFC after:	3 days


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