MFC r250849:
Add ddb command 'show pginfo'.


git-svn-id: svn://svn.freebsd.org/base/stable/9@251048 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r250850:
Add amd64-specific ddb command 'show phys2dmap'.


git-svn-id: svn://svn.freebsd.org/base/stable/9@251049 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r250851:
Fix the hardware watchpoints on SMP amd64.


git-svn-id: svn://svn.freebsd.org/base/stable/9@251050 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r250853:
Fix the wait6(2) on 32bit architectures and for the compat32, by using
the right type for the argument in syscalls.master.  Also fix the
posix_fallocate(2) and posix_fadvise(2) compat32 syscalls on the
architectures which require padding of the 64bit argument.


git-svn-id: svn://svn.freebsd.org/base/stable/9@251051 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Regenerate.


git-svn-id: svn://svn.freebsd.org/base/stable/9@251052 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC 247332:
Add a quirk to disable this driver for certain older laptops with an ICH2
southbridge and an Intel 82815_MC host bridge where the host bridge's
revision is less than 5


git-svn-id: svn://svn.freebsd.org/base/stable/9@251063 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC: r245926, r245931

- Improve some comments.
- Make bge_lookup_{rev,vendor}() static.
- Factor out chip identification rather than duplicating the code.
- Sanitize bge_probe() a bit (don't hardcode buffer sizes, allow
  bge_lookup_vendor() to return NULL so the excessive panic() can
  be removed there, etc.) and return BUS_PROBE_DEFAULT rather than
  hardcoding 0.
- According to the Linux tg3 driver, BCM57791 and BCM57795 aren't
  capable of Gigabit Ethernet.
- Check the return value of taskqueue_start_threads().
- Mention NetLink controllers in the fallback description, too.


git-svn-id: svn://svn.freebsd.org/base/stable/9@251068 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC: r247570, r247591

- Make tables, device ID strings etc const. This includes #ifdef'ing 0
  aac_command_status_table, which is actually unused since r111532.
  While at it, make aac_if a pointer to the now const interface tables
  instead of copying them over to the softc (this alone already reduces the
  size of aac.ko on amd64 by ~1 KiB).
- Remove redundant softc members.
- Use DEVMETHOD_END.
- Use NULL instead of 0 for pointers.
- Remove redundant bzero(9)'ing of the softc.
- Use pci_enable_busmaster(9) instead of duplicating it.
- Remove redundant checking for PCIM_CMD_MEMEN (resource allocation will
  just fail).
- Canonicalize the error messages in case of resource allocation failures.
- Add support for using MSI instead of INTx, controllable via the tunable
  hw.aac.enable_msi (defaulting to on).


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

Unbreak ATA_NO_48BIT_DMA with ATA_CAM by treating 48-bit DMA as an
optional property with PATA transport.

Reviewed by:	mav


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

Add some missing newlines and static declarations.


git-svn-id: svn://svn.freebsd.org/base/stable/9@251083 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFH r250595:
  The HPN patch added a new BUG bit for SSH_BUG_LARGEWINDOW
  and the update to 6.1 added SSH_BUG_DYNAMIC_RPORT with the
  same value.

  Fix the HPN SSH_BUG_LARGEWINDOW bit so it is unique.


git-svn-id: svn://svn.freebsd.org/base/stable/9@251087 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r250900:
Fix NULL-dereference kernel panic in case of mps_attach() failure.


git-svn-id: svn://svn.freebsd.org/base/stable/9@251092 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r250819:
Fix vdc->Secondary_Element_Count metadata field access from 16 to 8 bit.
In some cases it could cause kernel panic during failed drive replacement.


git-svn-id: svn://svn.freebsd.org/base/stable/9@251094 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r250508:
Disable sending Early R_OK on SiI3726/SiI3826 port multipliers.
With "cached read" HDD testing and multiple ports busy on a SATA
host controller, 3726/3826 PMP will very rarely drop a deferred
R_OK that was intended for the host. Symptom will be all 5 drives
under test will timeout, get reset, and recover.


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