MFC r225941:
  Fix an unaligned access issue; tidy up OFDM/DS rate decoding from the PLCP.

  This fixes a panic on PPC.

  Submitted by:	novel
  Obtained from:	OpenBSD, sys/dev/ic/bwi.c r1.89

MFC r226181:
  Update from OpenBSD: Include 0x4402 in the bbp id mapping table used on older devices.

  http://bcm-specs.sipsolutions.net/BackPlane agrees.

  Obtained from:	OpenBSD, sys/dev/ic/bwi.c r1.88

MFC r226182:
  Fix an incorrect use of sizeof().

  Obtained from:	OpenBSD sys/dev/ic/bwi.c r1.87

MFC r228621:
  Fix some net80211 enum nits:
  - ic_vap_create() uses an ieee80211_opmode argument
  - ieee80211_rate2media() takes an ieee80211_phymode argument
  - ieee80211_plcp2rate() takes an ieee80211_phytype argument
  - cast to enum ieee80211_protmode and ieee80211_roamingmode to silence
    compiler warnings

  Submitted by:	arundel@


git-svn-id: svn://svn.freebsd.org/base/stable/9@234753 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r228572:

Fix format string Z --> z, since the former is a deprecated and (in FreeBSD)
unsupported form of the latter. This change has been reviewed and accepted
in the -hackers list.

Submitted by:	Alexander Best
Reviewed by:	David Schulz


git-svn-id: svn://svn.freebsd.org/base/stable/9@234754 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r234540:

Fix the following clang warning in dpt(4):

  sys/dev/dpt/dpt_scsi.c:612:18: error: implicit truncation from 'int' to bitfield changes value from -2 to 2 [-Werror,-Wconstant-conversion]
    dpt->cache_type = DPT_CACHE_WRITEBACK;
                    ^ ~~~~~~~~~~~~~~~~~~~

by defining DPT_CACHE_WRITEBACK as 2, since dpt_softc::cache_type is an
unsigned bitfield.  No binary change.

MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/stable/9@234755 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r232166
  Simplify vm_mmap()'s control flow.

  Add a comment describing what vm_mmap_to_errno() does.


git-svn-id: svn://svn.freebsd.org/base/stable/9@234763 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r234554
  Updates to the vm_page's flags no longer require the page queues lock.


git-svn-id: svn://svn.freebsd.org/base/stable/9@234764 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r233097
  With the changes over the past year to how accesses to the page's dirty
  field are synchronized, there is no need for pmap_protect() to acquire
  the page queues lock unless it is going to access the pv lists.


git-svn-id: svn://svn.freebsd.org/base/stable/9@234765 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r234039
  Fix mincore(2) so that it reports PG_CACHED pages as resident.


git-svn-id: svn://svn.freebsd.org/base/stable/9@234766 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r234556:
When MAP_STACK mapping is created, the map entry is created only to
cover the initial stack size. For MCL_WIREFUTURE maps, the subsequent
call to vm_map_wire() to wire the whole stack region fails due to
VM_MAP_WIRE_NOHOLES flag.

Use the VM_MAP_WIRE_HOLESOK to only wire mapped part of the stack.


git-svn-id: svn://svn.freebsd.org/base/stable/9@234767 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r234038
  If a page belonging a reservation is cached, then mark the reservation so
  that it will be freed to the cache pool rather than the default pool.
  Otherwise, the cached pages within the reservation may be recycled sooner
  than necessary.


git-svn-id: svn://svn.freebsd.org/base/stable/9@234771 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Merge remote-tracking branch 'upstream/svn_stable_9' into svn_stable_9