Commit Graph

196860 Commits

Author SHA1 Message Date
alc
3295e3612e MFC r270666
Back in the days when the kernel was single threaded, testing
  "vm_paging_target() > 0" was a reasonable way of determining if the
  inactive queue scan met its target.  However, now that other threads
  can be allocating pages while the inactive queue scan is running, it's
  an unreliable method.  The effect of it being unreliable is that we
  can start swapping out processes when we didn't intend to.

  This issue has existed since the kernel was multithreaded, but the
  changes to the inactive queue target in 10.0-RELEASE have made its
  effects visible.

  This change introduces a more direct method for determining if the
  inactive queue scan met its target that is not affected by the actions
  of other threads.
2014-09-03 06:47:05 +00:00
emaste
63a3fa9dd0 MFC automatic vt(4) selection for UEFI boot
r268158: Prefer vt(4) for UEFI boot

  The UEFI framebuffer driver vt_efifb requires vt(4), so add a
  mechanism for the startup routine to set the preferred console.
  This change is ugly because console init happens very early in the
  boot, making a cleaner interface difficult.  This change is intended
  only to facilitate the sc(4) / vt(4) transition, and can be reverted
  once vt(4) is the default.

r268160: Fix typos in VTY constant names from r268158

r268982: Don't pass null kmdp to preload_search_info

  On Xen PVH guests kmdp == NULL.

Sponsored by:	The FreeBSD Foundation
2014-09-02 22:01:14 +00:00
emaste
ad2653d85e MFC r269186 by ray@: Remove useless debug string.
Fix indent.

Sponsored by:	The FreeBSD Foundation
2014-09-02 21:50:14 +00:00
emaste
c40686364d MFC r269185 by ray@: Remove unused macro VT_CONSDEV_DECLARE.
Sponsored by:	The FreeBSD Foundation
2014-09-02 21:05:45 +00:00
emaste
2903976d7c 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
2014-09-02 19:57:33 +00:00
emaste
4dbb542d99 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
2014-09-02 19:56:37 +00:00
emaste
1063e140b6 MFC part of r267973: remove redundant "" assignment for string in BSS.
Sponsored by:	The FreeBSD Foundation
2014-09-02 19:48:37 +00:00
emaste
96728dccb2 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.
2014-09-02 19:36:18 +00:00
emaste
55d5c1c3ed 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
2014-09-02 19:14:33 +00:00
emaste
3a7cd99956 MFC r263826: Update EFI framebuffer handoff from loader
Sponsored by:	The FreeBSD Foundation
2014-09-02 18:54:40 +00:00
ngie
b13059ee32 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
2014-09-02 16:14:16 +00:00
emaste
1c035447bc 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
2014-09-02 15:49:33 +00:00
glebius
c13a1bd643 Fix ABI broken in r270576. This is direct commit to stable/10.
Reported by:	kib
2014-09-01 08:34:39 +00:00
ae
1f0f86c00b 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
2014-09-01 08:33:38 +00:00
trasz
e6da1c9cfc MFC r270135:
Remove vestiges of previous autofs.

Discussed with:	alfred@
Sponsored by:	The FreeBSD Foundation
2014-09-01 08:08:32 +00:00
kib
75ec0c51d0 MFC r270803:
Document the whole settings needed to build a debug version of rtld.
2014-09-01 08:02:23 +00:00
kib
798eea1614 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
2014-09-01 07:58:15 +00:00
jfv
14d8fe4506 MFC of 270755, 270772, 270773, 270775, 270799, 270806, 270807, 270820
Enable the build of the Intel XL710 drivers, and fixes for that build.
2014-09-01 07:54:30 +00:00
ae
bf7011b0f4 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.
2014-09-01 07:34:16 +00:00
ngie
68a94ff2b9 MFC r270433:
Garbage collect libl dependency

  The application links and runs without libl

  Approved by: rpaulo (mentor)
  Phabric: D673
  Submitted by: trociny
2014-09-01 03:22:47 +00:00
ngie
442c5e1bb5 MFC r270117:
Add -ll to LDADD to fix "make checkdpadd"

  Phabric: D622
  Approved by: rpaulo (mentor)
2014-09-01 03:20:10 +00:00
ngie
07418221f6 MFC r270146:
Add LIBCRYPTO and LIBSSL to DPADD

  This fixes "make checkdpadd"

  Phabric: D621
  PR: 192761
  Approved by: rpaulo (mentor)
2014-09-01 03:04:59 +00:00
ngie
5706da73b7 MFC r270145:
Replace DPADD with DPSRCS to fix "make checkdpadd"

  Phabric: D625
  Approved by: jmmv (mentor)
  Reviewed by: dim
  PR: 192734
2014-09-01 02:53:32 +00:00
ngie
b02a11f4a7 MFC r270432:
Fix "make checkdpadd" in usr.bin/iscsictl by removing -lfl dependency

  Approved by: rpaulo (mentor)
  MFC after: 1 week
2014-09-01 01:39:20 +00:00
ngie
b7b1b100cc MFC r266650, r267172 (both by jmmv):
r266650:

  Change libatf-c and libatf-c++ to be private libraries.

  We should not be leaking these interfaces to the outside world given
  that it's much easier for third-party components to use the devel/atf
  package from ports.

  As a side-effect, we can also drop the ATF pkgconfig and aclocal files
  from the base system.  Nothing in the base system needs these, and it
  was quite ugly to have to get them installed only so that a few ports
  could build.  The offending ports have been fixed to depend on
  devel/atf explicitly.

  Reviewed by:  bapt

r267172:

  Homogenize libatf-* version numbers with upstream.

  The libatf-* major version numbers in FreeBSD were one version ahead of
  upstream because, when atf was first imported into FreeBSD, the upstream
  numbers were not respected.  This is just confusing and bound to cause
  problems down the road.

  Fix this by taking advantage of the fact that libatf-* are now private
  and that atf is not yet built by default.  However, and unfortunately, a
  clean build is needed for tests to continue working once "make
  delete-old-libs" has been run; hence the note in UPDATING.

Phabric: D701
Approved by: jmmv (maintainer, mentor)
2014-08-31 23:09:23 +00:00
trasz
0e88a7f8bf MFC r270507:
Fix bug that, assuming a/ is a root of NFS filesystem mounted on autofs,
prevented "mv a/from a/to" from working, while "cd a && mv from to" was ok.

PR:		192948
Sponsored by:	The FreeBSD Foundation
2014-08-31 21:58:07 +00:00
trasz
c9c191f6b0 MFC r270454:
Fix handling of keys in executable maps.  Previously it was broken for keys
containing whitespace.

PR:		192947
Sponsored by:	The FreeBSD Foundation
2014-08-31 21:56:42 +00:00
trasz
7b5c207075 MFC r270406:
Add "nobrowse" option.  Previously automountd(8) always behaved as if
it was set, now it's conditional.

PR:		192862
Sponsored by:	The FreeBSD Foundation
2014-08-31 21:55:08 +00:00
trasz
ea9facf035 MFC r270405:
Don't fail on executable maps that return no entries.  This turns useless
error message into useful one.

Sponsored by:	The FreeBSD Foundation
2014-08-31 21:53:42 +00:00
trasz
d1036ec04d MFC r270402:
Autofs softc needs to be global anyway, so don't pass it as a local
variable, and don't store in autofs_mount.  Also rename it from 'sc'
to 'autofs_softc', since it's global and extern.

Sponsored by:	The FreeBSD Foundation
2014-08-31 21:52:26 +00:00
trasz
2ded039a6d MFC r270399:
Add comment explaining one of the quirks in autofs.

Sponsored by:	The FreeBSD Foundation
2014-08-31 21:51:01 +00:00
trasz
87f90af6e4 MFC r270281:
Fix includes.

Suggested by:	pluknet@
Sponsored by:	The FreeBSD Foundation
2014-08-31 21:49:45 +00:00
trasz
ab3fae8a9e MFC r270276:
Use __FBSDID() properly.

Suggested by:	pluknet@
Sponsored by:	The FreeBSD Foundation
2014-08-31 21:48:12 +00:00
trasz
ee274d2353 MFC r270210:
Remove useless - and buggy, it resulted in spurious warnings in logs - code.

Sponsored by:	The FreeBSD Foundation
2014-08-31 21:46:32 +00:00
trasz
2f448226ce MFC r270209:
Add description for the "automounted" mount flag.

Reviewed by:	emaste@
Sponsored by:	The FreeBSD Foundation
2014-08-31 21:45:07 +00:00
trasz
35b1298891 MFC r270207:
Rework ".." lookup; previous one failed to properly busy the mountpoint.

Reviewed by:	kib@
Sponsored by:	The FreeBSD Foundation
2014-08-31 21:43:28 +00:00
trasz
e8d76f86d2 MFC r270096:
Bring in the new automounter, similar to what's provided in most other
UNIX systems, eg. MacOS X and Solaris.  It uses Sun-compatible map format,
has proper kernel support, and LDAP integration.

There are still a few outstanding problems; they will be fixed shortly.

Reviewed by:	allanjude@, emaste@, kib@, wblock@ (earlier versions)
Phabric:	D523
Relnotes:	yes
Sponsored by:	The FreeBSD Foundation
2014-08-31 21:18:23 +00:00
trasz
0ca40bff6c MFC r270282:
Use proper include paths in kernel iSCSI code.

Sponsored by:	The FreeBSD Foundation
2014-08-31 20:47:10 +00:00
jilles
1c7ffe4762 MFC r256800: pathchk: Ensure bytes >= 128 are considered non-portable
characters.

This was not broken on architectures such as ARM where char is unsigned.

Also, remove the first non-portable character from the output. POSIX does
not require this, and printing the first byte may yield an invalid byte
sequence with UTF-8.

PR:		165988
Reported by:	Nicolas Rachinsky
Relnotes:	yes
2014-08-31 20:34:06 +00:00
trasz
bd6edcc077 MFC r270279:
Make the iSCSI stack use __FBSDID() properly.

Sponsored by:	The FreeBSD Foundation
2014-08-31 20:21:08 +00:00
akiyama
bf3d63ee28 MFC r263859:
Change default logic to CONFORM because this routine is shared
  with SCI polarity setting.

  Reviewed by: jhb

MFC r269184:
  Add missing newline to output dmesg properly.
2014-08-31 10:42:52 +00:00
kevlo
541ca9866f MFC r270643:
Fix typo: s/mac_rev/mac_ver/

Submitted by:	Stefan Sperling <stsp at openbsd dot org>
2014-08-30 14:24:20 +00:00
ume
8b5c391a35 MFC r270215: Add missing break. 2014-08-30 10:29:47 +00:00
ume
82bd2f3628 MFC r269873:
Fix broken pointer overflow check ns_name_unpack()

Many compilers may optimize away the overflow check `msg + l < msg',
where `msg' is a pointer and `l' is an integer, because pointer
overflow is undefined behavior in C.

Use a safe precondition test `l >= eom - msg' instead.

Reference:
https://android-review.googlesource.com/#/c/50570/

Requested by:	pfg
Obtained from:	NetBSD (CVS rev. 1.10)
2014-08-30 10:25:41 +00:00
ume
7642dd9269 MFC r269867:
Update our stub resolver to final version of libbind
(libbind-6.0).

Obtained from:  ISC
2014-08-30 10:16:25 +00:00
ume
80004c0874 MFC r269865:
Bring the md5 functions into libc for internal use only.
It is required to support ID randomization for our stub
resolver.
2014-08-30 09:55:38 +00:00
alc
30905aaa33 Update an assertion to reflect the changes made in r270439. This is a
direct commit to stable/10 because ia64 is no longer supported by HEAD.

Reported by:	marcel
Sponsored by:	EMC / Isilon Storage Division
2014-08-30 03:41:47 +00:00
ngie
f4fd8ca123 MFC r270027:
tmconfig compilation when MK_ATM == yes and MK_BSNMP == no

 Makefile.inc1:
 Always compile gensnmptree with bootstrap-tools when MK_BSNMP != no
 instead of depending on a potentially stale tool installed on the build host

 sbin/atm/atmconfig/Makefile:
 - Always remove oid.h to avoid cluttering up the build/src tree.
 - Consolidate all of the RESCUE/MK_BSNMP != no logic under one
 conditional to improve readability
 - Remove unnecessary ${.OBJDIR} prefixing for oid.h and use ${.TARGET} instead
   of spelling out oid.h
 - Add a missing DPADD for ${LIBCRYPTO} when compiled MK_BSNMP == yes and
   MK_OPENSSL == yes and not compiling for /rescue/rescue

 sbin/atm/atmconfig/main.c:
 Change #ifndef RESCUE to #ifdef WITH_BSNMP in main.c to make it
 clear that we're compiling bsnmp support into atmconfig
2014-08-29 18:26:55 +00:00
gjb
29ecd8ce13 Bump revision ID after r270817
Sponsored by:	The FreeBSD Foundation
2014-08-29 13:56:10 +00:00
pluknet
17992407d1 Document r270817, tzdata2014f. 2014-08-29 13:46:30 +00:00