Fix non-invariant compilation.


git-svn-id: svn://svn.freebsd.org/base/head@248089 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Print out the queue flags during a TX DMA shutdown.


git-svn-id: svn://svn.freebsd.org/base/head@248090 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Disable the hw TID != buffer TID check.

I can 100% reliably trigger this on TID 1 traffic by using iperf -S 32
<client fields> to create traffic that maps to TID 1.

The reference driver doesn't do this check.


git-svn-id: svn://svn.freebsd.org/base/head@248091 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Rework overflow checks of r247898 to not let too "intelligent" compiler to
optimize it out.

Submitted by:	bde


git-svn-id: svn://svn.freebsd.org/base/head@248092 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Correct the lock class for the vm object lock.

Reported and tested by:	joel


git-svn-id: svn://svn.freebsd.org/base/head@248093 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Garbage collect NWFS and NCP bits which are now completely disconnected
from the tree since few months.

This patch is not targeted for MFC.


git-svn-id: svn://svn.freebsd.org/base/head@248097 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
- Initialize variable in smbfs_rename() to silent compiler warning
- Fix smbfs_mkdir() return value (in case of error).

Reported by:	pho


git-svn-id: svn://svn.freebsd.org/base/head@248099 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
smbfs_lookup() in the DOTDOT case operates on dvp->n_parent without
proper locking. This doesn't prevent in any case reclaim of the vnode.
Avoid this not going over-the-wire in this case and relying on subsequent
smbfs_getattr() call to restore consistency.
While I'm here, change a couple of SMBVDEBUG() in MPASS().
sbmfs_smb_lookup() doesn't and shouldn't know about '.' and '..'

Reported by:	pho's stress2 suite


git-svn-id: svn://svn.freebsd.org/base/head@248101 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
commit correct tested fix for gr_util.c

Approved by:	theraven


git-svn-id: svn://svn.freebsd.org/base/head@248102 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Don't log a message when the watchdog is reloaded. It's not useful to do so
and these messages flood the log when bootverbose is enabled.

Approved by:	rstone (co-mentor)


git-svn-id: svn://svn.freebsd.org/base/head@248104 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Improve UMTX_PROFILING:
- Use u_int values for length and max_length values
- Add a way to reset the max_length heuristic in order to have the
  possibility to reuse the mechanism consecutively without rebooting
  the machine
- Add a way to quick display top5 contented buckets in the system for
  the max_length value.
  This should give a quick overview on the quality of the hash table
  distribution.

Sponsored by:	EMC / Isilon storage division
Reviewed by:	jeff, davide


git-svn-id: svn://svn.freebsd.org/base/head@248105 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix another compiler warning issue when invariants are disabled.


git-svn-id: svn://svn.freebsd.org/base/head@248106 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Call make_dev_credf() rather than using the couple make_dev()/dev_ref().
This closes a race with clone_cleanup().


git-svn-id: svn://svn.freebsd.org/base/head@248109 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Document netstat -Q flags meaning.

MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@248112 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fixup r248032:
Change size requested to malloc(9) now that callwheel buckets are
callout_list and not callout_tailq anymore. This change was already
there but it seems it got lost after code churn in r248032.

Reported by:	alc, kib


git-svn-id: svn://svn.freebsd.org/base/head@248113 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add forgotten .El

MFC with:	r248112


git-svn-id: svn://svn.freebsd.org/base/head@248114 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Update a comment: The object lock is no longer a mutex.


git-svn-id: svn://svn.freebsd.org/base/head@248117 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Since ubldr doesn't necessarily load a kernel at the physical address in the
elf headers, mask out the high nibble of that address.  This effectly makes
the entry point the offset from the load address, and it gets adjusted for
the actual load address before jumping to it.

Masking the high nibble makes assumptions about memory layout that are true
for all the arm platforms we support right now, but it makes me uneasy.
This needs to be revisited.


git-svn-id: svn://svn.freebsd.org/base/head@248118 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
__FreeBSD_ARCH_armv6__ is undefined on clang. We can use __ARM_ARCH in
it's place. This makes 'uname -p' correctly output 'armv6' on a kernel
built with clang.


git-svn-id: svn://svn.freebsd.org/base/head@248119 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Attach the elf section headers to the loaded kernel as metadata, so
they can easily be used by later post-processing.  When searching for
a compiled-in fdt blob, use the section headers to get the size and
location of the .dynsym section to do a symbol search.

This fixes a problem where the search could overshoot the symbol
table and wander into the string table.  Sometimes that was harmless
and sometimes it lead to spurious panic messages about an offset
bigger than the module size.


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