197752 Commits

Author SHA1 Message Date
trasz
4844d3d80c MFC r273465:
Fix ctld(8) to not show the "auth-group <name> not assigned to any target"
warning for auth-groups assigned to a portal-group.

Sponsored by:	The FreeBSD Foundation
2014-11-22 17:52:33 +00:00
trasz
38906efd97 MFC r273464:
Whitespace fixes.

Sponsored by:	The FreeBSD Foundation
2014-11-22 17:50:14 +00:00
trasz
e89f2b0aad MFC r271320:
Use keys_add_int() where appropriate.  No functional changes.

Sponsored by:	The FreeBSD Foundation
2014-11-22 17:48:09 +00:00
dumbbell
efacd3be3e vt(4): Support syscons' SC_HISTORY_SIZE to configure history size
Therefore, to set histry size to 2000 lines, add the following line to
your kernel configuration file:
    options SC_HISTORY_SIZE=2000

The default history remains at 500 lines.

MFC of:		r274117
2014-11-22 17:47:03 +00:00
trasz
071ca148ac MFC r273459:
Untangle iSCSI authentication code by splitting off the CHAP
implementation.

Sponsored by:	The FreeBSD Foundation
2014-11-22 17:39:39 +00:00
dumbbell
2b470c5d75 drm: Take vt(4) default mode from loader tunables
By default, vt(4) gets the "preferred mode" from DRM, when using a DRM
video driver as its backend. The preferred mode is usually the native
screen resolution.

Now, if this mode isn't appropriate, a user can use loader tunables to
select a mode. The tunables are read in the following order:
    1. kern.vt.fb.modes.$connector_name
    2. kern.vt.fb.default_mode

For example, to set a 1024x768 mode, no matter the connector:
    kern.vt.fb.default_mode="1024x768"

To set a 800x600 mode only on the laptop builtin screen:
    kern.vt.fb.modes.LVDS-1="800x600"

Beside r274031, this MFC includes:

r274049:
  drm: When reading connector mode tunables, list connectors

  ... and their associated tunables. This gives a way to know the list of
  available connectors, no matter the driver.

  The problem is that xrandr(1) can list connectors but it uses a
  different naming.

r274050:
  vt(4): Document kern.vt.fb.default_mode and kern.vt.fb.modes.*

  Those tunables are used to set a specific mode in vt(4) instead of using
  the default mode.

  Differential Revision:	https://reviews.freebsd.org/D1098
  Reviewed by:	ak@, emaste@, kwm@

r274051:
  vt(4): Improve the description of kern.vt.fb.modes.$connector

  Differential Revision:	https://reviews.freebsd.org/D1098
  Submitted by:	emaste@

r274053:
  vt(4): Start new sentences on their own lines

  Submitted by:	brueffer@

MFC of:		r274031, r274049, r274050, r274051, r274053
2014-11-22 17:37:51 +00:00
dumbbell
395d6697ce drm: Lower priority of three messages related to invalid EDID
Like in r259717, the prority goes from "error" to "debug" to avoid
spamming logs when the connectors are polled.

PR:		194770
Submitted by:	Larry Rosenman <ler@lerctr.org>
MFC of:		r273962, r274587
2014-11-22 17:19:39 +00:00
dumbbell
53ec9d6c8c vt(4): Fix keyboard allocation when kbdmux(4) isn't used
The problem was that only the kbdmux keyboard index was saved in
vd->vd_keyboard. This index is -1 when kbdmux isn't used. In this
case, the keyboard was correctly allocated, but the returned index was
discarded.

PR:		194718
MFC of:		r273973
2014-11-22 17:10:57 +00:00
dumbbell
67ea82037a vt(4): Adjust the cursor position after changing the window size
A new terminal_set_cursor() is added: it wraps the existing
teken_set_cursor() function.

In vtbuf_grow(), the cursor position is adjusted at the end of the
function. In vt_change_font(), we call terminal_set_cursor() just after
terminal_set_winsize_blank(), while the terminal is mute.

This fixes a bug where, after loading a kernel video driver which
increases the terminal window size, the cursor remains at its old
position, in other words, in the middle of the display content.

PR:		194421
MFC of:		r273932
2014-11-22 16:55:55 +00:00
kib
93517beb67 MFC r274555:
Fix END()s for fueword and fueword64, match the name in END() with
entry.
2014-11-22 09:38:18 +00:00
scottl
7dd73de9ac MFC r274489:
Add frame pointers to ASM functions in support.S

Obtained from:	Netflix
2014-11-22 00:01:14 +00:00
smh
95f3efce79 MFC r274619:
Disable TRIM on file backed ZFS vdevs and fix TRIM on init

Sponsored by:	Multiplay
2014-11-21 17:08:28 +00:00
ae
8273e80777 MFC r274230:
Pass mbuf to pfil processing before stripping outer IP header as it
  is described in if_enc(4).
2014-11-21 15:21:39 +00:00
kib
76e2f9a8d7 MFC r274501:
In vfs_write_suspend_umnt(), if suspension cannot be established, do
not forget to restore write ops count when returning the error.
2014-11-21 10:22:54 +00:00
mav
e86b237c8d MFC r274532: Remove mostly obsolete hint to disable LAPIC timers.
It is partially covered by new code and partially by new CPUs.

PR:		195016
Submitted by:	tobias.rehbein@web.de
2014-11-21 00:58:58 +00:00
emaste
3df6bbce99 bsdgrep: Work-around for segmentation fault.
Fix by David Carlier.

MFC of r272127
Obtained from:	HardenedBSD
PR:		167921
2014-11-20 19:35:29 +00:00
ae
b634635a73 MFC r274434:
Fix ips_out_nosa errors accounting.

MFC r274454:
  ipsec6_process_packet is called before ip6_output fixes ip6_plen.
  Update ip6_plen before bpf processing to be able see correct value.

MFC r274455:
  We don't return sp pointer, thus NULL assignment isn't needed.
  And reference to sp will be freed at the end.

MFC r274465:
  Remove redundant ip6_plen initialization.

MFC r274466:
  Strip IP header only when we act in tunnel mode.

MFC r274467:
  Count statistics for the specific address family.

Sponsored by:	Yandex LLC
2014-11-20 18:49:11 +00:00
kib
84d8d047ba MFC r274478:
Fix assertion, &uc->uc_busy is never zero, the intent is to test the
uc_busy value, and not its address.
2014-11-20 11:33:38 +00:00
kib
0682b47671 MFC r274474:
Do not try to dereference thread pointer when the value is not a pointer.
2014-11-20 11:29:43 +00:00
kib
941dc2c823 MFC r274473:
Remove fossil.
2014-11-20 11:26:06 +00:00
mav
6414b04c27 MFC r274154, r274163:
Add to CTL support for logical block provisioning threshold notifications.

For ZVOL-backed LUNs this allows to inform initiators if storage's used or
available spaces get above/below the configured thresholds.

Sponsored by:	iXsystems, Inc.
2014-11-20 01:55:12 +00:00
mav
3f382b8a2d MFC r274477: Fix check for vendor-specific peripheral qualifier.
Submitted by:	anton.rang@isilon.com
2014-11-20 01:50:46 +00:00
kib
4e3006c33e MFC r274438:
For posix_fallocate(2) and posix_fadvise(2), return ESPIPE
when underlying file does not have DFLAG_SEEKABLE set. For
posix_fallocate(2), simplify error handling logic.
2014-11-19 10:25:08 +00:00
hselasky
9fcf944d2a MFC r274376:
Fix some minor TSO issues:
- Improve description of TSO limits.
- Remove a not needed KASSERT()
- Remove some not needed variable casts.

Sponsored by:	Mellanox Technologies
2014-11-19 09:03:12 +00:00
hselasky
9f12066dfb MFC r274435:
Decode more fields when dumping USB descriptors.
- Some minor style changes while at it.
2014-11-19 08:56:38 +00:00
hselasky
7a8284851c MFC r274227:
Add new USB IDs.
2014-11-19 08:48:59 +00:00
dim
a243faf2d2 MFC r274442:
Pull in r221709 from upstream llvm trunk (by Frédéric Riss):

  Totally forget deallocated SDNodes in SDDbgInfo.

  What would happen before that commit is that the SDDbgValues associated with
  a deallocated SDNode would be marked Invalidated, but SDDbgInfo would keep
  a map entry keyed by the SDNode pointer pointing to this list of invalidated
  SDDbgNodes. As the memory gets reused, the list might get wrongly associated
  with another new SDNode. As the SDDbgValues are cloned when they are transfered,
  this can lead to an exponential number of SDDbgValues being produced during
  DAGCombine like in http://llvm.org/bugs/show_bug.cgi?id=20893

  Note that the previous behavior wasn't really buggy as the invalidation made
  sure that the SDDbgValues won't be used. This commit can be considered a
  memory optimization and as such is really hard to validate in a unit-test.

This should fix abnormally large memory usage and resulting OOM crashes
when compiling certain ports with debug information.

Reported by:	Dmitry Marakasov <amdmi3@amdmi3.ru>
Upstream PRs:	http://llvm.org/PR19031 http://llvm.org/PR20893

MFC r274483:

The fix imported into llvm in r274442 contains some C++11 constructs,
which gcc in base cannot handle.  Replace these with C++98 equivalents.

While here, add the patch for the adapted fix.

Reported by:	bz, kib
Pointy hat to:	dim
2014-11-19 07:24:43 +00:00
kib
df514ceb8d MFC r274379:
Initial attachment of the agp(4) to Haswell IGP.
2014-11-18 13:05:24 +00:00
kib
1367a6b528 MFC r274378:
Attach agp_i810 to non-VGA display class.
2014-11-18 13:03:18 +00:00
kib
1ce4957ffd MFC r274377:
On 965 and higher, map GTT as write-combining.
2014-11-18 13:01:41 +00:00
kib
e4b2ee7e2b Merge the fueword(9) and casueword(9). In particular,
MFC r273783:
Add fueword(9) and casueword(9) functions.
MFC note: ia64 is handled like arm, with NO_FUEWORD define.

MFC r273784:
Replace some calls to fuword() by fueword() with proper error checking.

MFC r273785:
Convert kern_umtx.c to use fueword() and casueword().
MFC note: the sys__umtx_lock and sys__umtx_unlock syscalls are not
converted, they are removed from HEAD, and not used.  The do_sem2*()
family is not yet merged to stable/10, corresponding chunk will be
merged after do_sem2* are committed.

MFC r273788 (by jkim):
Actually install casuword(9) to fix build.

MFC r273911:
Add type qualifier volatile to the base (userspace) address argument
of fuword(9) and suword(9).
2014-11-18 12:53:32 +00:00
jpaetzel
96205db8c0 MFC 273866
Plug memory ordering holes in buf_ring_enqueue. For at least some
users this patch eliminates the races previously discussed on the
mailing list.

Submitted by:   oleg
Reviewed by:    kmacy
MFC after:      2 weeks
Tested by:      kmacy,rpaulo
2014-11-18 07:16:03 +00:00
marcel
a6b76a0b4d MFC r274410: Fix for behaviour of SEEK_DATA on ZFS. 2014-11-17 17:17:10 +00:00
avg
7b042e6763 MFC r272708: l2arc_write_buffers: reduce headroom value 2014-11-17 13:30:18 +00:00
avg
cd85a50ea7 MFC r272701: make userland __assfail from opensolaris compat honor 'aok' variable 2014-11-17 13:26:50 +00:00
np
f47eb9ae9f MFC r273360:
One of MAP_ANON, MAP_PRIVATE, MAP_SHARED, or MAP_STACK must be specified.
2014-11-17 07:37:41 +00:00
np
70603ae477 MFC r274351:
cxgbe(4): adjust PMRX and PMTX parameters.
2014-11-17 07:20:03 +00:00
kib
42659248bf MFC r274343:
When sleeping waiting for the profiling stop, always set P_STOPPROF
before dropping process lock.  Clear P_STOPPROF when doing wakeup.
2014-11-17 01:01:45 +00:00
kib
942f0f69dc MFC r274023:
When other end of the pipe closed during the write, but some bytes
were written, return short write instead of EPIPE.
2014-11-17 00:59:45 +00:00
kib
caa11c2b5a MFC r274040 and r274084. The result is removal of agp_intel.c from
the static amd64 kernel when agp is configured.
2014-11-17 00:57:33 +00:00
kib
e01547e9e7 MFC r273966:
Fix two issues with lockmgr(9) LK_CAN_SHARE() test, related
to the exclusive locker starvation.

MFC r273986:
Fix the build with ADAPTIVE_LOCKMGRS kernel option.
2014-11-16 23:02:32 +00:00
edwin
7fb42ed981 MFC of 274559,tzdata2014j
Release 2014j - 2014-11-10 17:37:11 -0800

  Changes affecting current and future time stamps

    Turks & Caicos' switch from US eastern time to UTC-4 year-round
    did not occur on 2014-11-02 at 02:00.  It's currently scheduled
    for 2015-11-01 at 02:00.  (Thanks to Chris Walton.)

  Changes affecting past time stamps

    Many pre-1989 time stamps have been corrected for Asia/Seoul and
    Asia/Pyongyang, based on sources for the Korean-language Wikipedia
    entry for time in Korea.  (Thanks to Sanghyuk Jung.)  Also, no
    longer guess that Pyongyang mimicked Seoul time after World War II,
    as this is politically implausible.

    Some more zones have been turned into links, when they differed
    from existing zones only for older time stamps.  As usual,
    these changes affect UTC offsets in pre-1970 time stamps only.
    Their old contents have been moved to the 'backzone' file.
    The affected zones are: Africa/Addis_Ababa, Africa/Asmara,
    Africa/Dar_es_Salaam, Africa/Djibouti, Africa/Kampala,
    Africa/Mogadishu, Indian/Antananarivo, Indian/Comoro, and
    Indian/Mayotte.

  Changes affecting commentary

    The commentary is less enthusiastic about Shanks as a source,
    and is more careful to distinguish UT from UTC.
2014-11-16 04:02:50 +00:00
mav
5966236aa7 MFC r274333: Handle PREEMPT AND ABORT service action equal to PREEMPT.
With command serialization used in CTL, there are no other commands to abort
when PREEMPT AND ABORT gets to run, so it is practically equal to PREEMPT.
2014-11-16 01:47:43 +00:00
imp
b24fe3677d MFC from the last few months:
Note: didn't merge r274331 removing gif/faith on purpose.

r268246 | mr | use mkimg and build into separate directories
r269355 | imp | Fix typo in example script
r269362 | imp | use rm -x on 10 and newer
r269363 | imp | NANO_OBJ shouldn't end with '/'
r269423 | imp | -K to suppress installkernel
r269424 | imp | sort usage
r269425 | imp | sort switch
r269983 | imp | only install bootloader if it exists
r269984 | imp | create_diskimage since it never was $ARCH dependent
r270162 | imp | Add support for -X which instales cross native tools
2014-11-16 01:29:18 +00:00
trasz
131ee6d96e MFC r273160:
Fix automountd(8) not to leave zombies.

Sponsored by:	The FreeBSD Foundation
2014-11-15 05:53:45 +00:00
trasz
93accf3999 MFC r273164:
When removing an iSCSI session, check whether all conditions match,
not if any of them matches.  This fixes "iscsictl -Rn" removing
unrelated sessions.

PR:		194034
Sponsored by:	The FreeBSD Foundation
2014-11-15 05:50:14 +00:00
ngie
c1b4b35c7e MFC r273627,r273628:
r273627:

  - Print out "Bail out!" in die(..) so prove terminates immediately
  - Handle the output from newer versions of openssl md5, similar to what
    pjd@ did in r248304

  Sponsored by: EMC / Isilon Storage Division

r273628:

  Move the redirection to stderr out of the cmd variable assignment

  Putting 2>/dev/null in cmd= escapes the redirection operation, which causes
  mdconfig to think it's a filename

  Sponsored by: EMC / Isilon Storage Division
2014-11-15 05:16:16 +00:00
ngie
20a08c7aa6 MFC r274021:
Remove explicit KYUAFILE=yes from tests/sys/Makefile

  This causes the directory traversing Kyuafile to be installed, which in turn
  causes tests/sys/pjdfstest to always be run from /usr/tests/sys

  Let KYUAFILE default to auto, so the file generated by suite.test.mk gets
  installed instead
2014-11-15 05:05:32 +00:00
ngie
0933b11ea6 MFC r274052:
Remove unused tests/lib directory
2014-11-15 05:03:44 +00:00
ngie
94236d8fbc MFC r274267:
Use PROGS instead of PROG and remove unnecessary SRCS?= assignment

  Using PROG instead of PROGS will in cases of high -j with -DNO_ROOT cause
  the PROG to show up more than once as it's handling the SCRIPTS install case
  in a recursive manner, separate from the non-recursive case

  After the recent batch of commits to bsd.progs.mk to fix behavior with how
  variables are defaulted to, explicitly setting SRCS for a PROG is no longer
  required

  Reviewed by: asomers
  Phabric: D1130
  Sponsored by: EMC / Isilon Storage Division
2014-11-15 05:02:06 +00:00