MFC r270432:

  Fix "make checkdpadd" in usr.bin/iscsictl by removing -lfl dependency

  Approved by: rpaulo (mentor)
  MFC after: 1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@270907 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r270145:

  Replace DPADD with DPSRCS to fix "make checkdpadd"

  Phabric: D625
  Approved by: jmmv (mentor)
  Reviewed by: dim
  PR: 192734


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@270908 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r270146:

  Add LIBCRYPTO and LIBSSL to DPADD

  This fixes "make checkdpadd"

  Phabric: D621
  PR: 192761
  Approved by: rpaulo (mentor)


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@270909 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r270117:

  Add -ll to LDADD to fix "make checkdpadd"

  Phabric: D622
  Approved by: rpaulo (mentor)


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@270910 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r270433:

  Garbage collect libl dependency

  The application links and runs without libl

  Approved by: rpaulo (mentor)
  Phabric: D673
  Submitted by: trociny


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@270911 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r270445:
  The size of the GPT table can not be less than one sector.

MFC r270521:
  Since the size of GPT entry may differ from the sizeof(struct gpt_ent),
  use the size from GPT header to iterate entries.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@270917 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC of 270755, 270772, 270773, 270775, 270799, 270806, 270807, 270820
Enable the build of the Intel XL710 drivers, and fixes for that build.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@270919 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix a leak of the wired pages when unwiring of the PROT_NONE-mapped
wired region.  Rework the handling of unwire to do the it in batch,
both at pmap and object level.

All commits below are by alc.

MFC r268327:
Introduce pmap_unwire().

MFC r268591:
Implement pmap_unwire() for powerpc.

MFC r268776:
Implement pmap_unwire() for arm.

MFC r268806:
pmap_unwire(9) man page.

MFC r269134:
When unwiring a region of an address space, do not assume that the
underlying physical pages are mapped by the pmap.  This fixes a leak
of the wired pages on the unwiring of the region mapped with no access
allowed.

MFC r269339:
In the implementation of the new function pmap_unwire(), the call to
MOEA64_PVO_TO_PTE() must be performed before any changes are made to the
PVO. Otherwise, MOEA64_PVO_TO_PTE() will panic.

MFC r269365:
Correct a long-standing problem in moea{,64}_pvo_enter() that was revealed
by the combination of r268591 and r269134: When we attempt to add the
wired attribute to an existing mapping, moea{,64}_pvo_enter() do nothing.
(They only set the wired attribute on newly created mappings.)

MFC r269433:
Handle wiring failures in vm_map_wire() with the new functions
pmap_unwire() and vm_object_unwire().
Retire vm_fault_{un,}wire(), since they are no longer used.

MFC r269438:
Rewrite a loop in vm_map_wire() so that gcc doesn't think that the variable
"rv" is uninitialized.

MFC r269485:
Retire pmap_change_wiring().

Reviewed by:	alc


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@270920 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r270803:
Document the whole settings needed to build a debug version of rtld.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@270921 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r270135:

Remove vestiges of previous autofs.

Discussed with:	alfred@
Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@270922 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r257985:
  Fix panic with RADIX_MPATH, when RTFREE_LOCKED() called for already
  unlocked route. Use in6_rtalloc() instead of in6_rtalloc1. This helps
  simplify the code and remove several now unused variables.

  PR:		156283


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@270923 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix ABI broken in r270576. This is direct commit to stable/10.

Reported by:	kib


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@270925 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC elfdump improvements

r269092: Improve section type reporting

  The SHT range 0x70000000-0x7fffffff is processor-specific.  Pass the
  ELF machine type header to sh_types so the section header type name can
  be reported correctly for the given processor.

  For all ranges report the actual value for unknown types.

  Add MIPS-specific type SHT_MIPS_OPTIONS.

r269143 (andreast): Further improvements on elfdump, to follow up r269092:

  - Add ARM specific section header types.
  - Add SHT_GNU_HASH section header type.
  - Improve reporting of undefined tags in d_tags.
  - Add DT_GNU_HASH tag.

  Reviewed by:	emaste

r269337: add EM_AARCH64 64-bit ARM machine architecture

r269338: use existing ELF constants where available

r270303: Rename DT_FEATURE_1 to DT_FEATURE

  This provides a minor cleanup in elfdump; there are otherwise no
  consumers in the tree.  Old SUN documentation can be found for either
  variant, but GNU binutils switched to DT_FEATURE around 2000.

r270304: Remove extraneous _SUNW_ in reported DT_ names

Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@270969 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r270179:

  Add missing libraries to DPADD; sort DPADD so DPADD and LDADD match up

  This fixes "make checkdpadd"

  Approved by: jmmv (mentor)
  Phabric: D630
  PR: 192765


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@270970 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r263826: Update EFI framebuffer handoff from loader

Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@270974 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Revert r268372 - enable vt_efifb vt(4) driver again.

It was disabled as some parts of UEFI support had not yet been merged to
stable/10.

Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@270977 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r268624 by nwhitehorn:

  On my Lenovo laptop, the firmware maps the EFI framebuffer with MTRRs
  set to uncacheable. This leads to execrable console performance. Once
  PMAP is up, remap the framebuffer as write-combining. This reduces
  boot time on my laptop by 60% when booting with EFI.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@270978 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC part of r267973: remove redundant "" assignment for string in BSS.

Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@270979 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r268771, r268796 by nwhitehorn:

r268771:
  Allow console drivers active from early boot to be used with
  xf86-video-scfb, rather than only drivers attached later on. This
  involves a small amount of code duplication with dev/fb/fbd.c, which
  will fixed later on.

  Also improve performance of vt_blank() by making it not read from the
  framebuffer unnecessarily.

r268796:
  Fix embarassing typos I made.

Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@270980 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r268772 by nwhitehorn:

  Allow efifb to be used with xf86-video-scfb. This is important for EFI
  systems without either a CSM or real graphics drivers, such as my
  Lenovo Haswell laptop.

  This provides working X with the small complication of a console
  cursor permanently overlaid on the upper-left corner of the screen
  that will be dealt with later.

  Also remove some redundant screen clearing.

Sponsored by:	The FreeBSD Foundation


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