Commit Graph

197734 Commits

Author SHA1 Message Date
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
gjb
a568265b4e Switch stable/10 back to -STABLE now that 10.1-RELEASE
is out.

Reminded by:	rpaulo
Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2014-11-14 23:52:06 +00:00
emaste
b81b7af08d Always return pathname in dl_iterate_phdr's dlpi_name, as Linux does
Linux LD_ITERATE_PHDR(3):
    The dlpi_name field is a null-terminated string giving the
    pathname from which the shared object was loaded.

That functionality is much more useful than returning just the short
name.

Update dl_iterate_phdr(3) to follow r272842

MFC of r272842 and r272848
2014-11-14 21:52:31 +00:00
gjb
cc923c43ad Update the FreeBSD versions in the stable/10 errata file.
Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2014-11-14 21:12:28 +00:00
delphij
0f3a386fcd MFC r274383:
Test errno against EEXIST as well.
2014-11-14 18:30:20 +00:00
trasz
58ce7ca4f3 MFC r272717:
Remove call to access(2) which didn't serve any purpose, and make it more
tolerant to errors.

Sponsored by:	The FreeBSD Foundation
2014-11-14 10:56:33 +00:00
trasz
fd82234ffe MFC r273107:
Make automount(8)/automountd(8) treat percent sign as a valid part
of path.  It's useful for spaces encoded as %20 as msdosfs labels.

Submitted by:	glebius@
2014-11-14 10:53:55 +00:00
trasz
b4e4ada2c9 MFC r273123:
Silence down a warning that doesn't provide any useful information unless
debug is enabled.

Sponsored by:	The FreeBSD Foundation
2014-11-14 10:05:53 +00:00
kib
7d419d1926 MFC r274251:
Add DEV_MODULE_ORDERED().
2014-11-14 09:51:21 +00:00
mav
862a9d976c MFC r274206:
Synchronize medium rotation rate in legacy Rigid Disk Drive Geometry mode
page with modern Block Device Characteristics VPD page.
2014-11-14 00:25:10 +00:00
gnn
c5ebff0eaa MFC: 272906
Change the PF hash from Jenkins to Murmur3.  In forwarding tests
this showed a conservative 3% incrase in PPS.

Original Differential Revision:	https://reviews.freebsd.org/D461
Submitted by:	des
Reviewed by:	emaste
2014-11-13 21:58:42 +00:00
smh
009b631caf MFC r264852
Silence compiler warning

Sponsored by:	Multiplay
2014-11-13 16:45:25 +00:00
smh
f6482d9897 MFC r260800:
Fix a regression introduced in r237618

MFC r260801:
Re-work r260800 to include other signals which start with 'I'
such as ILL, INFO etc.

Sponsored by:	Multiplay
2014-11-13 16:40:15 +00:00
ae
8b16f1c857 MFC r274193:
When mode isn't explicitly specified (wildcard) and inner protocol isn't
  IPv4 or IPv6, assume it is the transport mode.

Sponsored by:	Yandex LLC
2014-11-13 13:08:46 +00:00
ae
189aa5130f MFC r273904:
Use in_localip() instead of handmade implementation.

Sponsored by:	Yandex LLC
2014-11-13 13:05:31 +00:00
np
99c3f1d7e4 MFC r271328:
Whitespace nit.
2014-11-12 20:37:23 +00:00
np
2215311d59 MFC r273615:
cxgbe(4): bump up PF4's share of some global resources.

This increases the size of the per-port RSS slice and also allows the
driver to use a larger number of tx and rx queues.

S2curity:
2014-11-12 20:24:14 +00:00
np
575489dd36 MFC r273280:
cxgb(4): reset the PHY if it generates an interrupt for no apparent reason.
2014-11-12 20:07:43 +00:00
np
21e5b9212b MFC r272190:
cxgbe(4): explicitly set various if_hw_tso* values.
2014-11-12 19:53:35 +00:00