Commit Graph

196793 Commits

Author SHA1 Message Date
gavin
a380783d19 Merge r270251 from head:
Fix return type of callout_init_rm() and add return type to
  callout_deactivate().

PR:		192520
Submitted by:	ngie
2014-09-03 23:14:26 +00:00
gavin
538845af85 Merge r269871 from head:
Clarify descriptions of pthread_cond_wait() and pthread_cond_timedwait()

Submitted by:	Malcolm Douglas via freebsd-doc
Reviewed by:	jhb
2014-09-03 23:11:39 +00:00
gavin
4f60c52cd1 Merge r269488 from head:
For reasons which are not clear, r254263 broke some PCMCIA and CardBus
  bridges in strange ways, either rendering them unable to detect
  insertion and removal events, or possibly unable to read from the
  device behind the bridge.

  This fixes at least one laptop, a Toshiba Tecra M5 with a Texas
  Instruments PCxx12 (d=0x8039 v=0c104c) bridge.  The very similar
  Tecra M9 has the same bridge, but worked fine without this change.

  The bridge chip has no I/O port BAR, and there is nothing in the spec
  to suggest I/O decoding should be enabled; however enabling it fixes
  the issue.  Add an XXX comment to this effect.

Discussed with:		jhb, imp
2014-09-03 23:08:21 +00:00
gavin
982eceeac0 Merge 270872 from head:
Fix character case in examples for "camcontrol security" - should be
  "-U user" not "-u user".

PR:		193179
Submitted by:	milios ccsys com
2014-09-03 23:04:23 +00:00
gjb
dff59f47ed Document libc updates from illumos and Apple.
Submitted by:	pfg
Sponsored by:	The FreeBSD Foundation
2014-09-03 20:53:11 +00:00
marius
e31bbc3dc1 MFC: r270885, r270948
- Nuke unused sdhci_softc.
- Static'ize sdhci_debug local to sdhci.c.
- Const'ify PCI device description strings.
- Nuke redundant resource ID members from sdhci_pci_softc.
- Nuke unused hw.sdhci_pci.debug tunable.
- Add support for using MSI instead of INTx, controllable via the tunable
  hw.sdhci.enable_msi (defaulting to on) and tested with a RICOH R5CE823 SD
  controller.
- Use NULL instead of 0 for pointers.
2014-09-03 20:07:26 +00:00
gjb
478f4fda1a Minor rewording to the r260387 entry.
Sponsored by:	The FreeBSD Foundation
2014-09-03 16:48:33 +00:00
gjb
788030ad60 Document r270890, pathchk(1): Ensure bytes >= 128 are considered
non-portable characters.

Sponsored by:	The FreeBSD Foundation
2014-09-03 16:46:45 +00:00
gjb
edcd7cfaa7 Document r270997, zdb(8) included in /rescue.
Sponsored by:	The FreeBSD Foundation
2014-09-03 16:46:43 +00:00
gjb
2f29c013bf Document r270810, hptnr(4) update to 1.0.1.
Sponsored by:	The FreeBSD Foundation
2014-09-03 16:46:41 +00:00
gjb
59f561a488 Document r270892, autofs(5)
Sponsored by:	The FreeBSD Foundation
2014-09-03 16:46:39 +00:00
gjb
f77dd08d74 Minor rewording to the r260385 entry.
Sponsored by:	The FreeBSD Foundation
2014-09-03 16:46:37 +00:00
gjb
8c9c43b55e Remove a generalized sentence regarding iSCSI updates that
should be covered by the past few commits.

Sponsored by:	The FreeBSD Foundation
2014-09-03 16:46:35 +00:00
gjb
c0977ad13c Expand r262855 to illustrate how to enable the test suite.
Submitted by:	jmmv
Sponsored by:	The FreeBSD Foundation
2014-09-03 16:46:33 +00:00
gjb
dc49e9fd5f Document r265524, iSCSI performance optimizations.
Submitted by:	trasz
Sponsored by:	The FreeBSD Foundation
2014-09-03 16:46:31 +00:00
gjb
f2a8669af3 Document r265524, iSCSI lock contention optimizations.
Submitted by:	trasz
Sponsored by:	The FreeBSD Foundation
2014-09-03 16:46:29 +00:00
gjb
3cfb12d1c4 Document r265523, kern.iscsi.fail_on_disconnection
Submitted by:	trasz
Sponsored by:	The FreeBSD Foundation
2014-09-03 16:46:27 +00:00
gjb
0fff2a660f Document r269065, iSCSI redirection handling
Submitted by:	trasz
Sponsored by:	The FreeBSD Foundation
2014-09-03 16:46:25 +00:00
emaste
17962ed655 MFC r270288 by dumbbell: vt(4): Constify vt_buf argument of vtbuf_iscursor()
Sponsored by:	The FreeBSD Foundation
2014-09-03 14:06:12 +00:00
emaste
41ee2454d8 MFC r270280 by dumbbell: vt(4): Pause the flush timer while swithing window
This fixes bad looking refresh when switching window: squares instead
  of text, flashing screen, and so on. In the worst case, vt_flush() came
  at a very inappropriate timing and the screen was not refreshed at all
  (leaving squares all over the place).

  This doesn't fix the flickering of the screen with vt_vga, because the
  sync signal is temporarily stopped and the video memory is cleared.

Sponsored by:	The FreeBSD Foundation
2014-09-03 14:00:37 +00:00
emaste
a8ec7c36a3 MFC vt(4) mouse cursor improvements from dumbbell:
r270269:

  vt(4): Handle global and per-window mouse cursor toggle in one place

  Before the global flag was set/unset using the CONS_MOUSECTL ioctl,
  and the per-window flag through the MOUSE_SETLEVEL or MOUSE_SETMODE
  ioctls.

  Also, if the cursor is already enabled/disabled, return immediatly.
  This avoids to reset the cursor's position to the center of the
  screen.

  This matches syscons' behavior.

  While here, remove a trailing space and a redundant variable
  declaration.

r270271:

  vt(4): Mark cursor old position as dirty before reading the dirty area

  Otherwise, the redraw is done during the next vt_flush run.

r270272:

  vt(4): If the cursor is globally disabled, don't mark its position as dirty

  This avoids unnecessary redraw. In particular, during boot, where the
  cursor is disabled and its fake position is [0;0], this triggered a
  refresh of the whole screen each time vt_flush() is called.

r270273:

  vt(4): If the cursor didn't move, don't mark its position as dirty

  Currently, this has no effect, because the cursor is always redrawn
  anyway. But this will be useful after improvements to the
  vd_bitbltchr_t callback API.

  The vt_device structure members used to store the position of the
  cursor as of the last redraw are renamed from vd_mdirty{x,y} to
  vd_mold{x,y}.  The associated comment is fixed too. Also, their value
  is now expressed in pixels, not in character columns/row.

r270275:

  vt(4): Mark the current cursor position as dirty

  Like r270273, this has no effect for now, because the cursor is always
  drawn. This is in preparation of future changes to vd_bitbltchr_t API.

r270278:

  vt(4): Mark cursor position as dirty when we enable/disable it

Sponsored by:	The FreeBSD Foundation
2014-09-03 13:40:02 +00:00
emaste
97f9055278 MFC r270265 by dumbbell:
vt(4): Fix an inconsistency between the mouse cursor bitmap and its mask
2014-09-03 13:31:08 +00:00
emaste
efb15fd1c2 MFC r269437 by nwhitehorn:
Don't assume that the framebuffer driver is using vt_fb_blank() when
  blanking the screen during init.
2014-09-03 13:22:50 +00:00
emaste
0f27004de6 MFC vt(4) work from ray@:
r269188: [Rework vb_buffer and vb_rows assignment]

r269192: Remove special handling of console window size.

  It's done in vt_upgrade() for all windows.

r269193: Update comments.

r269194: Revise font initialization handling.

Sponsored by:	The FreeBSD Foundation
2014-09-03 13:17:44 +00:00
kib
580aa2cf11 Regen. 2014-09-03 09:05:37 +00:00
kib
15564950f5 MFC r270691:
Fix handling of the third argument for fcntl(2).  The native syscall
uses long for arg, which needs translation.
2014-09-03 09:05:16 +00:00
ae
36aab21b56 MFC r270661:
Remove leading '/' from hardlink name when removing them from the
  regular file name. This fixes the problem, when bsdtar can not create
  hardlinks to extracted files.
2014-09-03 08:27:05 +00:00
delphij
4910deb0fc MFC r270260:
Provide compatibility shim for atomic_dec_64_nv.
2014-09-03 08:24:11 +00:00
delphij
0afc26f706 MFC r270248: MFV r270196:
Illumos issue:
    5047 don't use atomic_*_nv if you discard the return value
2014-09-03 08:21:21 +00:00
delphij
ed7e55776a MFC r270247: MFV r270195:
Illumos issue:
    5045 use atomic_{inc,dec}_* instead of atomic_add_*
2014-09-03 08:18:09 +00:00
delphij
65d8a13349 MFC r270239: MFV r270193:
Illumos issues:
    5042 stop using deprecated atomic functions
2014-09-03 08:13:46 +00:00
delphij
ce5601b1da MFC r270189:
Add zdb into rescue environment.

On amd64, this would increase the binary size by 1.1MiB and
make it possible to examine zpool status offline, useful for
recovery and diagnostic purposes.

Submitted by:	sef
Obtained from:	FreeNAS
2014-09-03 08:03:26 +00:00
alc
f97e8c2642 This is a direct commit to account for the renaming of 'cnt' to 'vm_cnt'
in HEAD but not stable/10.
2014-09-03 07:20:09 +00:00
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