Commit Graph

196821 Commits

Author SHA1 Message Date
hselasky
ec8cd58eaa MFC r270710 and r270821:
- Update the OFED Linux Emulation layer as a preparation for a
hardware driver update from Mellanox Technologies.
- Remove empty files from the OFED Linux Emulation layer.
- Fix compile warnings related to printf() and the "%lld" and "%llx"
format specifiers.
- Add some missing 2-clause BSD copyrights.
- Add "Mellanox Technologies, Ltd." to list of copyright holders.
- Add some new compatibility files.
- Fix order of uninit in the mlx4ib module to avoid crash at unload
using the new module_exit_order() function.

Sponsored by:	Mellanox Technologies
2014-09-04 20:12:36 +00:00
ngie
0475b83655 MFC r270216:
Add ${LIBC} to DPADD to fix "make checkdpadd"

  Phabric: D632
  Approved by: jmmv (mentor)
2014-09-04 20:02:28 +00:00
emaste
c3376ddfe1 MFC r270299 (dumbbell): vt_vga: When clearing video memory, don't read from it
The goal is to clear the video memory, in case an application drew to
  it. So the content shouldn't be loaded in the latches, it can't be
  trusted anyway.

  This improves a bit the window switch speed.

Sponsored by:	The FreeBSD Foundation
2014-09-04 19:22:01 +00:00
emaste
f4cd1af86e MFC r269685 (nwhitehorn): Retire vd_maskbitbltchr.
The same functionality can be obtained by testing for mask != NULL in
  vd_bitbltchr, which all implementations of vd_bitbltchr() were doing
  anyway.

Sponsored by:	The FreeBSD Foundation
2014-09-04 19:13:07 +00:00
emaste
2b70382fb3 MFC r269636 by nwhitehorn:
Set fb_pbase properly on PowerPC in the case where we have to guess at
  the right register bank for the framebuffer. Disable the assigned-
  addresses path on SPARC since it is just a hack for IBM PPC systems
  and was neither relevant for nor worked on SPARC anyway.

Sponsored by:	The FreeBSD Foundation
2014-09-04 18:54:01 +00:00
emaste
d3502c5201 MFC fbd(4) and vt_fb disentanglement:
r268472 (ray):

  Should check fb_read method presence instead of double check for fb_write.

r269620 (nwhitehorn):

  Retire various intertwined bits of fbd(4) and vt_fb, in particular the
  pixel modification indirection. No actual drivers use it and those
  that might (e.g. creatorfb) use custom implementations of
  vd_bitbltchr().

Relnotes:	No
Sponsored by:	The FreeBSD Foundation
2014-09-04 18:43:40 +00:00
emaste
2a3f3e6567 MFC r269278 (nwhitehorn):
Make mmap() of the console device when using ofwfb work like other
  supported framebuffer drivers. This lets ofwfb work with
  xf86-video-scfb and makes the driver much more generic and less
  PCI-centric. This changes some user-visible behavior and will require
  updates to the xorg-server port on PowerPC when using ATI graphics
  cards.

Relnotes:	Yes
Sponsored by:	The FreeBSD Foundation
2014-09-04 18:34:22 +00:00
emaste
eae0f4b63a MFC r268350 (nwhitehorn):
Use common vt_fb parts in ofwfb as far as we are able without
  sacrificing performance.

Sponsored by:	The FreeBSD Foundation
2014-09-04 18:30:33 +00:00
nwhitehorn
d02b558c93 MFC r265883,268898:
Repair bitrot in PS3 memory and interrupt allocation.
2014-09-04 18:28:30 +00:00
nwhitehorn
ff75003b88 MFC r268880:
Allow mappings of memory not previously direct-mapped by the kernel when
calling mmap on /dev/mem and add a handler for the possible userland
machine checks that may result. Remove some pointless and wrong copy/paste
that has been in here for a decade as well.

This results in a /dev/mem with identical semantics to the x86 version.
2014-09-04 18:24:47 +00:00
emaste
fb8b6d3e04 MFC vt(4) driver for Sun creator(4) framebuffers
r269601 (nwhitehorn):

  Add a simple unaccelerated vt(4) framebuffer driver for Sun
  framebuffers handled by creator(4) (Sun Creator 3D, Elite 3D, etc.).
  This provides vt(4) consoles on all devices currently supported by
  syscons on sparc64.  The driver should also be easily adaptable to
  support newer Sun framebuffers such as the XVR-500 and higher.

  Many thanks to dumbbell@ (Jean-Sebastien Pedron) for testing this
  remotely during development.

r269783 (dumbbell):

  vt(4): Colors are indexed against a console palette, not a VGA palette

Sponsored by:	The FreeBSD Foundation
2014-09-04 18:18:29 +00:00
emaste
cc4c44cb58 MFC PS3 vt(4) console support
r265871 (nwhitehorn):

  Move the PS3 framebuffer console to use vt instead of syscons and
  adjust GENERIC64 for PowerPC to use vt with it.

  Much to my chagrin, PS3 support seems to have bitrotted somewhat since
  the last time I tried it. ehci panics on attach and interrupt handling
  seems to be faulty. This should be fixed soon...

r269783 (dumbbell):

  Fix two files forgotten in r269783 (vt_generate_cons_palette)

r268895 (nwhitehorn):

  Enable X11 via xf86-video-scfb on the Playstation 3. This commit made
  from an xterm running for the first time on said Playstation.

Approved by:	nwhitehorn
Relnotes:	yes
2014-09-04 18:15:36 +00:00
se
ec5503de3e Fix debug output that has erroneously been committed with the last update.
Obtained from:	Jan Beich
2014-09-04 17:21:54 +00:00
rodrigc
6f8ba46826 MFC r270512 r270513 r270754
- add comments which describe exit status codes of /usr/sbin/bhyve
   - move bhyvectl --destroy outside of the while loop
   - Use "file -s" so that we can run vmrun.sh against special devces such as
     /dev/md memory files systems or zvols
2014-09-04 16:55:01 +00:00
emaste
741bbf130d MFC r260047: Clean up license text
- Renumber Regents clauses
  - Remove clause 3 and 4 from TNF license, following upstream change

Sponsored by:	The FreeBSD Foundation
2014-09-04 16:51:45 +00:00
tijl
1e988094dc MFC r270757:
In r253839 the default behaviour of ld(1) was changed such that all
libraries that need to be linked into an executable or library have to be
listed on the command line explicitly.  This commit fixes a bug in ld(1)
where it would scan dependencies of the libraries on the command line and
link them if needed if they were also found in ld.so.cache.

The important bit of the patch is the initialisation of needed.by such that
libraries found by scanning dependencies are marked as such and not used in
the link.

The patch is a backport of binutils git commit
d5c8b1f8561426b41aa5330ed60f578178fe6be2

The author gave permission to use it under GPLv2 terms.

PR:		192062
2014-09-04 16:05:12 +00:00
se
3d900a4d5b MFC r270931: Fix typo ("by" -> "be"). 2014-09-04 13:47:55 +00:00
se
395db98c3c MFC r270647: Add references to vt(4) and the configuration files in /usr/sha
MFC r270653: Update man-pages to correctly refer to changed pathes and namin
MFC r270657: More man pages that need to know about vt in addition to syscon
MFC r270659: (by pluknet@) Missed comma.
MFC r270660: Back-out the references to vt(4) from this man-page. It appears
MFC r270933: Add references to vt(4) to further man-pages.
MFC r270934: Final patches to the tools used to convert syscons keymaps for
MFC r270935: Add vt(4) support to the console initialisation script, specifi

Second batch of MFCs to add support for Unicode keymaps for use with vt(4).

It contains the following changes:

- Add references to vt(4) to relevant man-pages.
- Update comment in defaults/rc.conf to mention vt
- Update rc.d/syscons to warn about syscons keymaps used under vt.
  An attempt is made to identify the vt keymap to load instead.
- Minor changes to the conversion tool based on mail comments on keymaps.

Relnotes:	yes
2014-09-04 13:45:16 +00:00
gjb
b97bfa455f Document r271069, Mac Mini 3,1 support added to asmc(4).
Sponsored by:	The FreeBSD Foundation
2014-09-04 11:15:38 +00:00
dumbbell
82aaaa84fb drm/radeon: Fix a memory leak when radeonkms is unloaded
This an MFC of r270750.
2014-09-04 09:42:36 +00:00
gjb
68b3b15c73 Document r262566, sshd(8) startup script creates ed25519 keys
if ENOENT on startup.

Sponsored by:	The FreeBSD Foundation
2014-09-04 02:14:57 +00:00
gjb
f9b0b57357 Document r264438, mdconfig(8) rc.conf(5) listing is no longer
required to be sequential.

Sponsored by:	The FreeBSD Foundation
2014-09-04 02:14:55 +00:00
gjb
d270d2b3cb Document r259141, jail(8) ipv6 allocation startup bug.
Sponsored by:	The FreeBSD Foundation
2014-09-04 02:14:53 +00:00
neel
e7f9a84216 MFC r270289:
Change file permissions for some setuid executables so they are "o+r".
The executable itself doesn't contain any privileged information.

An example of where this is useful is when makefs(8) is creating an image
that includes /sbin/shutdown. This can now be done without root privileges.
2014-09-04 01:38:31 +00:00
pfg
4480b8a63d MFC r270844:
Minor space/tab cleanups.

Most of them were ripped from the GSoC 2104
SMAP + kpatch project (but unrelated).
Only cosmetic changes.

Taken from:	Oliver Pinter (op@)
2014-09-04 00:40:41 +00:00
gavin
27085e5c8f Merge r268303 from head:
Add support to asmc(4) for Macmini 3,1.

PR:		190195
Submitted by:	fbsdbugs2 sentry.org
Relnotes:	yes
2014-09-03 23:29:06 +00:00
gavin
5f36460b01 Merge r270677 from head:
Fix xref, pam(8) -> pam(3)

PR:		193045
Submitted by:	rsimmons0 gmail com
2014-09-03 23:18:13 +00:00
gavin
05eec28993 Merge r270259 from head:
Add a missing brace to callout_init_rm() to fix syntax.
2014-09-03 23:15:54 +00:00
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