]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
9 years agoMFC r259916:
bz [Sat, 16 Aug 2014 13:20:44 +0000 (13:20 +0000)]
MFC r259916:

 Use feature_present(3) to determine whether to open an INET or an
 INET6 socket when needed to allow pfctl to work on noinet and noinet6
 kernels (and try to provide a fallback using AF_LINK as best effort).
 Adjust the Makefile to also respect relevant src.conf(5) options
 for compile time decisions on INET and INET6 support.

 Reviewed by: glebius (no objections)

git-svn-id: svn://svn.freebsd.org/base/stable/10@270047 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r259885:
bz [Sat, 16 Aug 2014 13:11:59 +0000 (13:11 +0000)]
MFC r259885:

 As constantly reported during kernel compilation, m_buflen is unsigned so
 can never be < 0.  Remove the expression, which can never be true.

git-svn-id: svn://svn.freebsd.org/base/stable/10@270045 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r259884:
bz [Sat, 16 Aug 2014 13:09:40 +0000 (13:09 +0000)]
MFC r259884:

 Correct warnings comparing unsigned variables < 0 constantly reported
 while building kernels.  All instances removed are indeed unsigned so
 the expressions could not be true.

git-svn-id: svn://svn.freebsd.org/base/stable/10@270044 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r269583:
bz [Sat, 16 Aug 2014 13:06:11 +0000 (13:06 +0000)]
MFC r269583:

 Provide -o vers= support for mount_nfs.

 Our mount_nfs does use -o nfsv<2|3|4> or -2 or -3 to specify the version.
 OSX (these days), Solaris, and Linux use -o vers=<2,3,4>.

 With the upcoming autofs support we can make a lot of (entrerprisy) setups
 getting mount options from LDAP just work by providing -o vers= compatibility.

 Reviewed by: wblock, bjk (man page), rmacklem, emaste
 Sponsored by: DARPA,AFRL
PR: 192379

git-svn-id: svn://svn.freebsd.org/base/stable/10@270043 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r269669:
bz [Sat, 16 Aug 2014 12:59:47 +0000 (12:59 +0000)]
MFC r269669:

 Split up sys_ktimer_getoverrun() into a sys_ and a kern_ variant
 and export the kern_ version needed by an upcoming linuxolator change.

 Sponsored by: DARPA,AFRL

git-svn-id: svn://svn.freebsd.org/base/stable/10@270042 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r269909:
kib [Sat, 16 Aug 2014 08:38:53 +0000 (08:38 +0000)]
MFC r269909:
Add a knob LIBPTHREAD_BIGSTACK_MAIN, which instructs libthr to leave
the whole RLIMIT_STACK-sized region of the kernel-allocated stack as
the stack of main thread.

git-svn-id: svn://svn.freebsd.org/base/stable/10@270040 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r269908:
kib [Sat, 16 Aug 2014 08:37:13 +0000 (08:37 +0000)]
MFC r269908:
Style.

git-svn-id: svn://svn.freebsd.org/base/stable/10@270039 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r268924:
pfg [Sat, 16 Aug 2014 01:29:49 +0000 (01:29 +0000)]
MFC r268924:
Update fflush(3) to return success on a read-only stream.

This is done for compliance with SUSv3. The changes cause
no secondary effects in the gnulib tests (we pass them).

Obtained from: Apple Inc. (Libc 997.90.3 with changes)
Reviewed by: bde
Phabric: D440

git-svn-id: svn://svn.freebsd.org/base/stable/10@270035 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r269953:
pfg [Sat, 16 Aug 2014 01:06:23 +0000 (01:06 +0000)]
MFC r269953:
Use "NO NAME" as the default unnamed label.

Microsoft recommends avoiding the use of spaces in the
string structures for FAT. Unfortunately they do just
that by default in the case of unlabeled filesystems.

Follow the default MS behavior to avoid confusion in
common tools like file(1). This was actually the
default behavior before r203868.

Obtained from: NetBSD (CVS rev. 1.39)

git-svn-id: svn://svn.freebsd.org/base/stable/10@270034 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r269901:
pfg [Sat, 16 Aug 2014 01:03:51 +0000 (01:03 +0000)]
MFC r269901:
Minor style tweaks.

Obtained from: OpenBSD (CVS rev. 1.7)

git-svn-id: svn://svn.freebsd.org/base/stable/10@270033 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r269695:
pfg [Sat, 16 Aug 2014 01:00:37 +0000 (01:00 +0000)]
MFC r269695:
Const-ify character string

Obtained from:  Apple Inc. (Libc 997.90.3)
MFC after: 3 days

git-svn-id: svn://svn.freebsd.org/base/stable/10@270032 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r269015:
pfg [Sat, 16 Aug 2014 00:54:56 +0000 (00:54 +0000)]
MFC r269015:
fparseln(3): Update from NetBSD sources.

-fix a condition so that fparseln() doesn't report spurious empty lines
 eg after 2 comment lines, or on EOF after a single comment line
-no escape character means no escaped characters

modify the previous fix so that no pointless realloc()s are done in
the case of multiple empty continuation lines, and comment the code
to make the logics obvious.

fparseln is now part of libc in NetBSD so this changes the previous
revision numbering.

Obtained from: NetBSD (CVS Rev. 1.6-1.7)

git-svn-id: svn://svn.freebsd.org/base/stable/10@270031 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r267875:
pfg [Sat, 16 Aug 2014 00:52:13 +0000 (00:52 +0000)]
MFC r267875:

4251 libdtrace leaks open file handles

Illumos commit: 93ed8d0d4b068b95d0bb50d57bb854df462a8485
(partial)
Reference:
https://www.illumos.org/issues/4251

Discussed with: Robert Mustacchi
Obtained from: Illumos

git-svn-id: svn://svn.freebsd.org/base/stable/10@270030 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r259088: Vendor import nvi-2.1.2-c80f493b038 a multikey mapping fix
emaste [Fri, 15 Aug 2014 19:06:59 +0000 (19:06 +0000)]
MFC r259088: Vendor import nvi-2.1.2-c80f493b038 a multikey mapping fix

PR: bin/182463

git-svn-id: svn://svn.freebsd.org/base/stable/10@270026 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r269888:
gjb [Fri, 15 Aug 2014 03:52:40 +0000 (03:52 +0000)]
MFC r269888:
  Fix a typo in a comment: s/interprete/interpret/

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@270009 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC of 269674:
mckusick [Thu, 14 Aug 2014 23:38:04 +0000 (23:38 +0000)]
MFC of 269674:

The journal is only prepared to handle full-size block numbers, so we
have to adjust freeblk records to reflect the change to a full-size block.
For example, suppose we have a block made up of fragments 8-15 and
want to free its last two fragments. We are given a request that says:
    FREEBLK ino=5, blkno=14, lbn=0, frags=2, oldfrags=0
where frags are the number of frags to free and oldfrags are the number
of fragments to keep. To block align it, we have to change it to have a
valid full-size blkno, so it becomes:
    FREEBLK ino=5, blkno=8, lbn=0, frags=2, oldfrags=6

Submitted by: Mikihito Takehara
Tested by:    Mikihito Takehara
Reviewed by:  Jeff Roberson

git-svn-id: svn://svn.freebsd.org/base/stable/10@270007 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 268531,269079,269204:
jhb [Thu, 14 Aug 2014 20:20:21 +0000 (20:20 +0000)]
MFC 268531,269079,269204:
Fix various edge cases with rewinddir(), seekdir(), and telldir():
- In the unionfs case, opendir() and fdopendir() read the directory's full
  contents and cache it.  This cache is not refreshed when rewinddir() is
  called, so rewinddir() will not notice updates to a directory.  Fix this
  by splitting the code to fetch a directory's contents out of
  __opendir_common() into a new _filldir() function and call this from
  rewinddir() when operating on a unionfs directory.
- If rewinddir() is called on a directory opened with fdopendir() before
  any directory entries are fetched, rewinddir() will not adjust the seek
  location of the backing file descriptor.  If the file descriptor passed
  to fdopendir() had a non-zero offset, the rewinddir() will not rewind to
  the beginning.  Fix this by always seeking back to 0 in rewinddir().
  This means the dd_rewind hack can also be removed.
- Add missing locking to rewinddir()
- POSIX says that passing a location returned by telldir() to seekdir()
  after an intervening call to rewinddir() is undefined, so reclaim any
  pending telldir() cookies in the directory when rewinddir() is called.
- If telldir() is called immediately after a call to seekdir(), POSIX
  requires the return value of telldir() to equal the value passed to
  seekdir().  The current seekdir code with SINGLEUSE enabled breaks
  this case as each call to telldir() allocates a new cookie.  Instead,
  remove the SINGLEUSE code and change telldir() to look for an existing
  cookie for the directory's current location rather than always creating
  a new cookie.

PR: 121656

git-svn-id: svn://svn.freebsd.org/base/stable/10@270002 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r257877:
markj [Thu, 14 Aug 2014 16:45:01 +0000 (16:45 +0000)]
MFC r257877:
Don't try to use the 32-bit drti.o unless the data model is explicitly set
to ILP32. Otherwise dtrace -G will attempt to use it on amd64 if it can't
determine which data model to use, which happens when -64 is omitted and
no object files are provided, e.g. with

# dtrace -G -n BEGIN

This would result in a linker error, but now works properly.

Also remove an unnecessary #ifdef.

git-svn-id: svn://svn.freebsd.org/base/stable/10@269986 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMake the ixgbe tunables now match their sysctl counterparts.
smh [Thu, 14 Aug 2014 14:07:05 +0000 (14:07 +0000)]
Make the ixgbe tunables now match their sysctl counterparts.

Previously the tunables and sysctls had different names for example:
hw.ixgbe.enable_aim => hw.ix.enable_aim

Anyone using ixgbe tunables should ensure they update /boot/loader.conf.

This is a direct commit to stable as the changes to sysctls in head
already fix this issue in a different way.

Sponsored by: Multiplay

git-svn-id: svn://svn.freebsd.org/base/stable/10@269975 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMerge r266206 from head (by bjk):
gavin [Thu, 14 Aug 2014 12:50:25 +0000 (12:50 +0000)]
Merge r266206 from head (by bjk):

  Review pass through jail.8

  Replace usage of "prison" with "jail", since that term has mostly dropped
  out of use.  Note once at the beginning that the "prison" term is equivalent,
  but do not use it otherwise. [1]

  Some grammar issues.

  Some mdoc formatting fixes.

  Consistently use \(em for em dashes, with spaces around it.

  Avoid contractions.

  Prefer ssh to telnet.

PR: 176832 [1]

git-svn-id: svn://svn.freebsd.org/base/stable/10@269970 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r267615:
trasz [Thu, 14 Aug 2014 12:33:24 +0000 (12:33 +0000)]
MFC r267615:

Rename a variable; no functional changes.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@269969 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r267614:
trasz [Thu, 14 Aug 2014 12:31:18 +0000 (12:31 +0000)]
MFC r267614:

Add "iscsictl -M", which allows one to change session parameters
without removing it and adding back.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@269968 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r269662:
roberto [Thu, 14 Aug 2014 12:16:03 +0000 (12:16 +0000)]
MFC r269662:

10 has a new flex (2.5.37) and the config.h for unbound has been updated to
take this into account. Alas it breaks source upgrade from any version of
9 because flex is not built as a bootstrap-tools (it would be for older
versions).

That means "libunbound/configlexer.c" is built with the old flex but using
config.h for the new one. Build is thus broken going from 9.* to 10.

Make flex a bootstrap-tools entry if host is less than 1000033 to take into
account the flex update in 10.

Tested on both 9.2-RC3 and 9.3 by myself and dim@. Running buildworld in
head but as both 10 and 11 has the new flex, it will not matter.

Reviewed by:    imp
Approved by:    des, imp
MFC after:      1 week
Phabric:        D554

git-svn-id: svn://svn.freebsd.org/base/stable/10@269967 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoAdd a header to the entries for the removal of csup example files.
gavin [Wed, 13 Aug 2014 22:34:14 +0000 (22:34 +0000)]
Add a header to the entries for the removal of csup example files.

This is a direct commit to 10, as the equivelent commit to head included
other changes that will not be merged to stable branches.

git-svn-id: svn://svn.freebsd.org/base/stable/10@269955 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r268300 r268541 r268544 r268565 r269775 r269838 r269839 r269840
rpaulo [Wed, 13 Aug 2014 16:11:57 +0000 (16:11 +0000)]
MFC  r268300 r268541 r268544 r268565 r269775 r269838 r269839 r269840
     r269842 r269844 r269899:

BSD make support for generating and compiling USDT DTrace probes.

git-svn-id: svn://svn.freebsd.org/base/stable/10@269946 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r269306:
ae [Wed, 13 Aug 2014 15:48:10 +0000 (15:48 +0000)]
MFC r269306:
  Add new rule to source address selection algorithm. It prefers address
  with better virtual status. Use ifa_preferred() to choose better address.

PR: 187341

git-svn-id: svn://svn.freebsd.org/base/stable/10@269944 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMerge r267859 (by bapt), r268998 from head:
gavin [Wed, 13 Aug 2014 12:55:44 +0000 (12:55 +0000)]
Merge r267859 (by bapt), r268998 from head:

o Mark send-pr info page as an obsolete file

o /usr/bin/sendbug and the sendbug(1) man page were part of send-pr and
  are no longer installed since r267486 (r267734 in stable/10).  Add them
  to ObsoleteFiles.inc1, which should have been done in r267486.

PR: 192010 (partial)
Submitted by: Vick Khera (partial)

git-svn-id: svn://svn.freebsd.org/base/stable/10@269940 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMerge r268842 from head:
gavin [Wed, 13 Aug 2014 12:47:51 +0000 (12:47 +0000)]
Merge r268842 from head:

  Fix two typos in iscsictl.8

PR: 191581
Submitted by: Jimmy Olgeni

git-svn-id: svn://svn.freebsd.org/base/stable/10@269939 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMerge r268728 from head:
gavin [Wed, 13 Aug 2014 12:44:44 +0000 (12:44 +0000)]
Merge r268728 from head:

  When we fail to extract the pkg binaries (for example, / is read-only),
  give a more helpful error message.

git-svn-id: svn://svn.freebsd.org/base/stable/10@269937 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMerge r268725 from head:
gavin [Wed, 13 Aug 2014 12:41:31 +0000 (12:41 +0000)]
Merge r268725 from head:

  Since r202933, kthread_suspend_check() takes no arguments.  Update the
  example to match.

git-svn-id: svn://svn.freebsd.org/base/stable/10@269935 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMerge r268637 from head:
gavin [Wed, 13 Aug 2014 12:36:59 +0000 (12:36 +0000)]
Merge r268637 from head:

  fortune(8): Search fortune files installed by ports/packages as well as
  those supplied by the base system.

PR: 191800
Submitted by: Andy Kosela

git-svn-id: svn://svn.freebsd.org/base/stable/10@269933 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMerge r268488 from head:
gavin [Wed, 13 Aug 2014 12:35:11 +0000 (12:35 +0000)]
Merge r268488 from head:

  Reword an awkward option description

PR: 191726
Submitted by: yaneurabeya gmail.com

git-svn-id: svn://svn.freebsd.org/base/stable/10@269929 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMerge r267867 from head:
gavin [Wed, 13 Aug 2014 12:32:52 +0000 (12:32 +0000)]
Merge r267867 from head:

  Remove example cvsup config files.

git-svn-id: svn://svn.freebsd.org/base/stable/10@269928 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r269197:
trasz [Wed, 13 Aug 2014 11:11:27 +0000 (11:11 +0000)]
MFC r269197:

Fix potential double free that could happen after connection error.

git-svn-id: svn://svn.freebsd.org/base/stable/10@269925 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r269567:
hselasky [Wed, 13 Aug 2014 08:21:52 +0000 (08:21 +0000)]
MFC r269567:
Add new USB phone descriptor template for USB device side mode.

git-svn-id: svn://svn.freebsd.org/base/stable/10@269922 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r266396 and r267183:
hselasky [Wed, 13 Aug 2014 08:18:49 +0000 (08:18 +0000)]
MFC r266396 and r267183:
Build fixes. Add support for fast interrupts.

git-svn-id: svn://svn.freebsd.org/base/stable/10@269921 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r269565:
hselasky [Wed, 13 Aug 2014 07:13:42 +0000 (07:13 +0000)]
MFC r269565:
Rename driver name a bit to avoid unit number confusion in dmesg.

git-svn-id: svn://svn.freebsd.org/base/stable/10@269920 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r269566:
hselasky [Wed, 13 Aug 2014 07:02:23 +0000 (07:02 +0000)]
MFC r269566:
Fix for deadlock in USB device side mode.

git-svn-id: svn://svn.freebsd.org/base/stable/10@269917 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r269604:
hselasky [Wed, 13 Aug 2014 06:59:40 +0000 (06:59 +0000)]
MFC r269604:
- Implement fast interrupt handler to save CPU usage.
- Cleanup some register reads and writes to use existing register
  access macros.
- Ensure code which only applies to the control endpoint is not run
  for other endpoints in the data transfer path.

git-svn-id: svn://svn.freebsd.org/base/stable/10@269916 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r269643:
kib [Wed, 13 Aug 2014 06:58:42 +0000 (06:58 +0000)]
MFC r269643:
Weaken the requirement for the vm object lock by only asserting locked
object in vm_pager_page_unswapped(), instead of locked exclusively.

git-svn-id: svn://svn.freebsd.org/base/stable/10@269915 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r269642:
kib [Wed, 13 Aug 2014 06:55:30 +0000 (06:55 +0000)]
MFC r269642:
Add wrappers to assert that vm object is unlocked and for try upgrade.

git-svn-id: svn://svn.freebsd.org/base/stable/10@269914 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r269744
rpaulo [Wed, 13 Aug 2014 06:45:02 +0000 (06:45 +0000)]
MFC r269744
 Run dtrace in 32-bit mode when compiling 32-bit libraries.

git-svn-id: svn://svn.freebsd.org/base/stable/10@269913 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r269776
rpaulo [Wed, 13 Aug 2014 06:41:06 +0000 (06:41 +0000)]
MFC r269776
 Remove the BROKEN_LIBELF section.

git-svn-id: svn://svn.freebsd.org/base/stable/10@269912 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 269745: Create a redundant grain directory and table.
marcel [Wed, 13 Aug 2014 01:43:38 +0000 (01:43 +0000)]
MFC 269745: Create a redundant grain directory and table.

git-svn-id: svn://svn.freebsd.org/base/stable/10@269900 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r269750:
dim [Tue, 12 Aug 2014 17:56:48 +0000 (17:56 +0000)]
MFC r269750:

In r268463, I misplaced a return in demangle(), causing the function to
erroneously skip symbols that were not mangled at all.  Fix this by
moving the return into the preceding if block.

While here, simplify the code by letting __cxa_demangle() allocate the
needed space for the demangled symbol.  This also fixes a memory leak,
which would occur whenever __cxa_demangle() failed.

Reported by: pgj
PR: base/191981

git-svn-id: svn://svn.freebsd.org/base/stable/10@269885 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC cleanup of libusb20 example
emaste [Tue, 12 Aug 2014 14:53:02 +0000 (14:53 +0000)]
MFC cleanup of libusb20 example

r257779 by hselasky:

  - Use libusb20_strerror() function instead of custom usb_error() one.
  - Rename "aux.[ch]" to "util.[ch]" which is a more common name for
  utility functions and allows checkout on some non-FreeBSD systems
  where the "aux.*" namespace is reserved.
  - Fix some compile warnings while at it.

r257796 by glebius:

  Finish r257779.

PR: 183728

git-svn-id: svn://svn.freebsd.org/base/stable/10@269879 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r257594:
hselasky [Tue, 12 Aug 2014 12:22:39 +0000 (12:22 +0000)]
MFC r257594:
Add description of two EHCI PCI IDs.

git-svn-id: svn://svn.freebsd.org/base/stable/10@269864 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r268316:
hselasky [Tue, 12 Aug 2014 12:10:29 +0000 (12:10 +0000)]
MFC r268316:
Fix OFED startup order: All SYSINIT()'s and modules should be loaded
prior to starting "/sbin/init" which will run all the "/etc/rc.d/xxx"
scripts. Else there can be a race configuring the interfaces via
"/etc/rc.conf".

Sponsored by: Mellanox Technologies

git-svn-id: svn://svn.freebsd.org/base/stable/10@269862 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r268315:
hselasky [Tue, 12 Aug 2014 12:07:57 +0000 (12:07 +0000)]
MFC r268315:
Fix compile warning.

Sponsored by: Mellanox Technologies

git-svn-id: svn://svn.freebsd.org/base/stable/10@269861 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r268314:
hselasky [Tue, 12 Aug 2014 12:06:21 +0000 (12:06 +0000)]
MFC r268314:
Fix some compile warnings.

Sponsored by: Mellanox Technologies

git-svn-id: svn://svn.freebsd.org/base/stable/10@269860 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r266728,266731,266735,266736,268135,268960,269833
peter [Tue, 12 Aug 2014 01:40:11 +0000 (01:40 +0000)]
MFC r266728,266731,266735,266736,268135,268960,269833
 Update apr 1.4.8 -> 1.5.1
 Update apr-util 1.5.2 -> 1.5.3
 Update serf 1.3.4 -> 1.3.7
 Update svnlite 1.8.8 -> 1.8.10
 Deal with svnlite.1 manpage.

git-svn-id: svn://svn.freebsd.org/base/stable/10@269847 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r269230: MFV r269224:
delphij [Tue, 12 Aug 2014 00:59:19 +0000 (00:59 +0000)]
MFC r269230: MFV r269224:

Increase default ARC buf_hash_table size.  When typical block size is small,
the hash table could be too small, which would lead to long hash chains and
limit performance for cached reads.

A new loader tunable, vfs.zfs.arc_average_blocksize, have been added which
allows users to override the default assumption of average (typical) block
size.  Old default was 65536 (64 KiB) and new default is 8192 (8 KiB).

Illumos issue:
    5034 ARC's buf_hash_table is too small

git-svn-id: svn://svn.freebsd.org/base/stable/10@269846 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r269229,269404,269466: MFV r269223:
delphij [Tue, 12 Aug 2014 00:53:03 +0000 (00:53 +0000)]
MFC r269229,269404,269466: MFV r269223:

Change dn->dn_dbufs from linked list to AVL tree.

Illumos issues:
  4873 zvol unmap calls can take a very long time for larger datasets

git-svn-id: svn://svn.freebsd.org/base/stable/10@269845 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r269302:
jlh [Mon, 11 Aug 2014 20:38:52 +0000 (20:38 +0000)]
MFC r269302:

  Fix relative numerical addressing (addr,+N).

  As a bonus the patch untangles a bit the logic and makes the code
  easier to grasp.

  PR:           192108

git-svn-id: svn://svn.freebsd.org/base/stable/10@269837 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r269740:
dim [Mon, 11 Aug 2014 20:37:03 +0000 (20:37 +0000)]
MFC r269740:

Pull in r214736 from upstream libc++ trunk (by Marshall Clow):

  Fix PR#20520 - predicate called too many times in list::remove_if.
  Add tests for list, forward_list, and the std::remove_if algorithm

This fixes an issue where std::list<>::remove_if() and remove() could
erroneously visit elements twice.

Reported by: Dominic Fandrey <kamikaze@bsdforen.de>
PR: 192303

git-svn-id: svn://svn.freebsd.org/base/stable/10@269836 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC: Merge in the changes in -current:
imp [Mon, 11 Aug 2014 18:42:20 +0000 (18:42 +0000)]
MFC: Merge in the changes in -current:

Support ! operator in "files" files.
Improve error detection and reporting
Cleanup code to make it easier to maintain.
Remove mandatory keyword: it has been used for 17 years.
Bump version number (we should have bumped for -I too, but didn't)

r261501 | imp | 2014-02-04 17:26:11 -0700 (Tue, 04 Feb 2014) | 5 lines
Fix ! by not clearing not at the bottom of the loop.
Add a blank line
Submitted by:   bde (blank line)

r261493 | imp | 2014-02-04 11:28:58 -0700 (Tue, 04 Feb 2014) | 5 lines
Implement the '!' operator for files* files. It means 'include this
only if the specified option is NOT specified.' Bump version because
old config won't be able to cope with files* files that have this
construct in them.

r261446 | imp | 2014-02-03 12:14:36 -0700 (Mon, 03 Feb 2014) | 5 lines
Convert the loop by gotos into a for loop to improve readability. I
did this only with the inner loop for the token parsing, and not the
outer loop which was understandable enough when the extra layers of
looping went away...

r261445 | imp | 2014-02-03 12:10:33 -0700 (Mon, 03 Feb 2014) | 4 lines
Fix a bug introduced in r261437 that failed to honor "optional
profiling-routine" to work, since profiling-routine is not really an
option or a device, but a special case elsewhere in the code.

r261444 | imp | 2014-02-03 11:56:41 -0700 (Mon, 03 Feb 2014) | 2 lines
Slight cleanup to the error messaging to compress code vertically...

r261442 | imp | 2014-02-03 11:31:51 -0700 (Mon, 03 Feb 2014) | 2 lines
Better error messages when EOF is hit in the middle of a phrase.

r261438 | imp | 2014-02-03 09:54:53 -0700 (Mon, 03 Feb 2014) | 5 lines
Move the check for standard keyword + optional inclusion specifier to
its proper location. Otherwise you could have 'file.c standard pci'
without an error. This construct isn't in our tree, and has no well
defined meaning.

r261437 | imp | 2014-02-03 09:47:10 -0700 (Mon, 03 Feb 2014) | 4 lines
Don't believe we have a requirement until after we've checked all the
known key words. This will make error messages slightly better in
weird corner cases, but should otherwise be a nop.

r261436 | imp | 2014-02-03 09:46:01 -0700 (Mon, 03 Feb 2014) | 3 lines
In the 17 years since r30796, the mandatory keyword has never been used
in any files as far as I can tell, and is currently unused. Retire it.

r261435 | imp | 2014-02-03 08:10:44 -0700 (Mon, 03 Feb 2014) | 6 lines
Slightly deobfuscate read_file() and likely pessimize the runtime
performance by epsilon.
(Translation: elminate bogus macros that hid 'returns' making it hard
 to read and moved a block of code inline rather than at the end of the
 fuction where it was effectively a 'gosub' kind of goto).

git-svn-id: svn://svn.freebsd.org/base/stable/10@269825 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r269522
smh [Mon, 11 Aug 2014 08:58:35 +0000 (08:58 +0000)]
MFC r269522

Added support for extra ifconfig args to jail ip4.addr & ip6.addr params

This allows for CARP interfaces to be  used in jails e.g.
ip4.addr = "em0|10.10.1.20/32 vhid 1 pass MyPass advskew 100"

r269340 will not be MFC'ed as mentioned due to the slim window and the
amount of additional commits required to support it.

Sponsored by: Multiplay

git-svn-id: svn://svn.freebsd.org/base/stable/10@269805 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r269180:
delphij [Mon, 11 Aug 2014 06:54:07 +0000 (06:54 +0000)]
MFC r269180:

When interval is set to very small value with limited amount of packets,
ping6(8) would quit before the remote side gets a chance to respond.

Solve this by resetting the itimer when we have reached the maximum packet
number have reached, but let the other handling to continue.

PR: bin/151023
Submitted by: tjmao at tjmao.net

git-svn-id: svn://svn.freebsd.org/base/stable/10@269800 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r269403, r269405, r269410, r269414:
ian [Mon, 11 Aug 2014 02:20:24 +0000 (02:20 +0000)]
MFC r269403, r269405, r269410, r269414:

  Add 64-bit atomic ops for armv6, and also for armv4 only in kernel code.
  Use the new ops in the cddl code (and avoid defining functions with the
  same names locally).

git-svn-id: svn://svn.freebsd.org/base/stable/10@269798 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r269393, r269394, r269395:
ian [Mon, 11 Aug 2014 01:48:00 +0000 (01:48 +0000)]
MFC r269393, r269394, r269395:

  Fix parsing of arch extensions in binutils/gas.
  Use ".arch_extension sec" when compiling ARM TI code that uses the
  security extensions.

git-svn-id: svn://svn.freebsd.org/base/stable/10@269797 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r269390: Fix unwind info in hand-written asm (avoid nested functions).
ian [Mon, 11 Aug 2014 01:29:28 +0000 (01:29 +0000)]
MFC r269390: Fix unwind info in hand-written asm (avoid nested functions).

git-svn-id: svn://svn.freebsd.org/base/stable/10@269796 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r269341: Populate disk->d_ident with the sd or mmc card's serial number.
ian [Mon, 11 Aug 2014 01:22:10 +0000 (01:22 +0000)]
MFC r269341: Populate disk->d_ident with the sd or mmc card's serial number.

git-svn-id: svn://svn.freebsd.org/base/stable/10@269795 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r269206, r269207, r269208, r269209, r269210, r269211, r269212, r269213,
ian [Mon, 11 Aug 2014 01:10:15 +0000 (01:10 +0000)]
MFC r269206, r269207, r269208, r269209, r269210, r269211, r269212, r269213,
    r269214, r269215, r269216, r269217, r269221:

  busdma-v6 improvements, primarily:
  - Allocate the temporary segments array per-map rather than per-tag.
  - Avoid needlessly bouncing IO for mbufs and buffers allocated by
    bus_dmamem_alloc() (in both situations we known they're allocated
    on cacheline boundaries and don't need bouncing).
  - Various minor reformatting and cleanups.

git-svn-id: svn://svn.freebsd.org/base/stable/10@269794 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r268993, r268893, r268994, plus partial r264070, r264082
ian [Sun, 10 Aug 2014 22:26:29 +0000 (22:26 +0000)]
MFC r268993, r268893, r268994, plus partial r264070, r264082

 Fix C++ exception handling for ARM EABI.

 Just the part of r264070 that creates the FBSD_1.4 namespace in libc
 is hand-applied, and then r264082 which creates the Versions.def entry
 is MFC'd.

git-svn-id: svn://svn.freebsd.org/base/stable/10@269792 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r268954
sbruno [Sun, 10 Aug 2014 21:45:58 +0000 (21:45 +0000)]
MFC r268954

Merge change from upstream linux kernel submitted by OpenBSD:

drm/radeon: fix-up some float to fixed conversion thinkos

Remove #ifdef DUMBBELL_WIP in favor of upstream fix.

git-svn-id: svn://svn.freebsd.org/base/stable/10@269790 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r269138:
delphij [Sun, 10 Aug 2014 06:10:21 +0000 (06:10 +0000)]
MFC r269138:

Add two sysctls for newly added tunables.

git-svn-id: svn://svn.freebsd.org/base/stable/10@269774 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r269118: MFV r269010:
delphij [Sun, 10 Aug 2014 05:58:41 +0000 (05:58 +0000)]
MFC r269118: MFV r269010:

Import Illumos changes to address the following Illumos issues:
  4976 zfs should only avoid writing to a failing non-redundant
       top-level vdev
  4978 ztest fails in get_metaslab_refcount()
  4979 extend free space histogram to device and pool
  4980 metaslabs should have a fragmentation metric
  4981 remove fragmented ops vector from block allocator
  4982 space_map object should proactively upgrade when feature
       is enabled
  4984 device selection should use fragmentation metric

git-svn-id: svn://svn.freebsd.org/base/stable/10@269773 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r259211:
markj [Sat, 9 Aug 2014 15:03:47 +0000 (15:03 +0000)]
MFC r259211:
Correct the check for errors from proc_rwmem().

git-svn-id: svn://svn.freebsd.org/base/stable/10@269756 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r265308:
markj [Sat, 9 Aug 2014 15:00:03 +0000 (15:00 +0000)]
MFC r265308:
If the traced process stops because it received a signal, libproc needs
to ensure that the signal is forwarded when proc_continue() is called.

git-svn-id: svn://svn.freebsd.org/base/stable/10@269754 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r266826, r266827
markj [Sat, 9 Aug 2014 14:05:01 +0000 (14:05 +0000)]
MFC r266826, r266827
Move some duplicated hook definitions from machine-dependent files to
kern_dtrace.c.

git-svn-id: svn://svn.freebsd.org/base/stable/10@269752 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r269408, r269409:
rpaulo [Fri, 8 Aug 2014 22:08:51 +0000 (22:08 +0000)]
MFC r269408, r269409:

shm_open()/shm_unlink() ktrace support.

git-svn-id: svn://svn.freebsd.org/base/stable/10@269742 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r269098:
delphij [Fri, 8 Aug 2014 19:39:40 +0000 (19:39 +0000)]
MFC r269098:

Use the right lengths.

Submitted by: Sascha Wildner

git-svn-id: svn://svn.freebsd.org/base/stable/10@269738 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r269097:
delphij [Fri, 8 Aug 2014 19:36:40 +0000 (19:36 +0000)]
MFC r269097:

Use the right length.

git-svn-id: svn://svn.freebsd.org/base/stable/10@269737 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r269100:
delphij [Fri, 8 Aug 2014 19:14:49 +0000 (19:14 +0000)]
MFC r269100:

Diff reduction against Illumos.

git-svn-id: svn://svn.freebsd.org/base/stable/10@269736 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r268621 (smh) + r268625:
delphij [Fri, 8 Aug 2014 19:11:23 +0000 (19:11 +0000)]
MFC r268621 (smh) + r268625:

Don't report non-native block-size pools under zpool status -x

zpool status -x is used to identify pools that are exhibiting
errors or are otherwise unavailable, therefore non-native
block-size pools shouldn't be reported.

Also update man page to clarify other additional conditions
which won't cause a pool to be displayed under zpool status -x.

Sponsored by:   Multiplay

git-svn-id: svn://svn.freebsd.org/base/stable/10@269735 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC the cddl/contrib/opensolaris/cmd/zpool portion of r267803 (joel):
delphij [Fri, 8 Aug 2014 19:06:24 +0000 (19:06 +0000)]
MFC the cddl/contrib/opensolaris/cmd/zpool portion of r267803 (joel):

mdoc: remove superfluous paragraph macros.

git-svn-id: svn://svn.freebsd.org/base/stable/10@269734 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r269093:
delphij [Fri, 8 Aug 2014 18:57:43 +0000 (18:57 +0000)]
MFC r269093:

Transform the I/O when vdev_physical_ashift is greater than
SPA_MINBLOCKSHIFT.

git-svn-id: svn://svn.freebsd.org/base/stable/10@269733 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r269086:
delphij [Fri, 8 Aug 2014 18:54:52 +0000 (18:54 +0000)]
MFC r269086:

As of r268075, the responsibility of rounding up buffer to optimal size have
been transferred from zio_compress_data to its caller.  Therefore, passing
the 'minblocksize' down will be a no-op.

Eliminate the parameter to reduce diff against upstream.

git-svn-id: svn://svn.freebsd.org/base/stable/10@269732 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r265631:
markj [Fri, 8 Aug 2014 15:21:43 +0000 (15:21 +0000)]
MFC r265631:
Re-apply r248644. This fixes an annoying problem which caused dtrace -c to
fail to attach to stripped binaries. With the _r_debug_postinit symbol,
dtrace(1) can now set a breakpoint in the victim process after it has
registered its DOF table(s) with the kernel. r_debug_state cannot be used
for this purpose since it is called before DOF is made available, in which
case dtrace(1) cannot create USDT probes before the program begins
execution.

git-svn-id: svn://svn.freebsd.org/base/stable/10@269724 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r265629, r265630
markj [Fri, 8 Aug 2014 14:53:01 +0000 (14:53 +0000)]
MFC r265629, r265630

MFC r265629:
Handle the different event types properly in rd_event_addr(). In particular,
with r265456 _r_debug_postinit can be used for RD_POSTINIT events. rtld(1)
uses r_debug_state for dl state transitions, so we use its address for
RD_DLACTIVITY events.

MFC r265630:
Fix the rd_event_addr prototype and slightly clarify the use of the "event"
parameter.

git-svn-id: svn://svn.freebsd.org/base/stable/10@269720 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMerge r269470:
joerg [Fri, 8 Aug 2014 14:48:26 +0000 (14:48 +0000)]
Merge r269470:

Avoid a divide-by-zero panic when setting the baudrate to 0.

git-svn-id: svn://svn.freebsd.org/base/stable/10@269718 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMerge r269353:
joerg [Fri, 8 Aug 2014 14:42:03 +0000 (14:42 +0000)]
Merge r269353:

Fix breakage introduced by r256843: removing the SA_CCB_WAITING bit
left some of the decisions based on its counterpart, SA_CCB_BUFFER_IO
being random.  As a result, propagation of the residual information
for the SPACE command was broken, so the number of filemarks
encountered during a SPACE operation was miscalculated.  Consequently,
systems relying on properly tracked filemark counters (like Bacula)
fell apart.

The change also removes a switch/case in sadone() which r256843
degraded to a single remaining case label.

PR: 192285

git-svn-id: svn://svn.freebsd.org/base/stable/10@269717 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r269585 - Honour WITH and WITHOUT_INET6_SUPPORT.
cy [Fri, 8 Aug 2014 00:58:24 +0000 (00:58 +0000)]
MFC r269585 - Honour WITH and WITHOUT_INET6_SUPPORT.

Approved by: glebius (mentor - implicit)

git-svn-id: svn://svn.freebsd.org/base/stable/10@269696 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC: r269682
jkim [Thu, 7 Aug 2014 21:04:42 +0000 (21:04 +0000)]
MFC: r269682

Merge OpenSSL 1.0.1i.

git-svn-id: svn://svn.freebsd.org/base/stable/10@269686 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r265456, r265578:
markj [Thu, 7 Aug 2014 18:36:47 +0000 (18:36 +0000)]
MFC r265456, r265578:
Add a postinit debugger hook to rtld. This will be used by dtrace(1) to halt
the victim process before its entry point is called, at which point probes
and DOF data are registered with the kernel. The r_debug_state hook cannot
be used for this purpose, as it is called before the program's init routines
are invoked and in particular before DOF data is registered (via drti.o).

git-svn-id: svn://svn.freebsd.org/base/stable/10@269680 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r256691, r256748: casuword fixes
ian [Thu, 7 Aug 2014 17:49:42 +0000 (17:49 +0000)]
MFC r256691, r256748: casuword fixes

  Use unsigned compare against KERNBASE addr.
  Use atomic ops on armv6.

git-svn-id: svn://svn.freebsd.org/base/stable/10@269679 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r269347:
kib [Thu, 7 Aug 2014 03:50:30 +0000 (03:50 +0000)]
MFC r269347:
Do not generate 1000 unique lock names for nfsrc hash chain locks.
Shorten the names of some nfs mutexes.

git-svn-id: svn://svn.freebsd.org/base/stable/10@269655 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r269318:
gjb [Thu, 7 Aug 2014 02:26:45 +0000 (02:26 +0000)]
MFC r269318:
  Replace 'GNATS' with 'Bugzilla' in the base subversion commit
  template.

Approved by: peter (implicit, original approver)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@269654 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC of r269303:
mckusick [Wed, 6 Aug 2014 23:33:16 +0000 (23:33 +0000)]
MFC of r269303:

When restoring a UFS dump onto a ZFS filesystem, an assertion in
restore was failing because ZFS was reporting a blocksize that was
not a multiple of 1024.  Replace restore's failed assertion with
code that writes restored files in a blocksize that works for
restore (a multiple of 1024) despite being non-optimal for ZFS.

Submitted by: Dmitry Morozovsky
Tested by:    Dmitry Morozovsky

git-svn-id: svn://svn.freebsd.org/base/stable/10@269651 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r269091:
wblock [Wed, 6 Aug 2014 17:38:35 +0000 (17:38 +0000)]
MFC r269091:

Fix spelling of Camellia algorithm.  While here, replace blank lines
between examples with actual .Pp breaks.

git-svn-id: svn://svn.freebsd.org/base/stable/10@269632 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC: r269116
ache [Wed, 6 Aug 2014 10:38:06 +0000 (10:38 +0000)]
MFC: r269116

In the "Too many open files" edge cases don't try to preserve old
number for non-std* descriptors, but close old file and retry.

Obtained from:  inspired by Apple's change from pfg@

git-svn-id: svn://svn.freebsd.org/base/stable/10@269624 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC: r268997
ache [Wed, 6 Aug 2014 10:33:43 +0000 (10:33 +0000)]
MFC: r268997

For "a"-mode files and rewind/fseek + fwrite combination return meaningful
value now, like Apple does, but avoid their __sflush physical write
performance degradation as much as possible.

git-svn-id: svn://svn.freebsd.org/base/stable/10@269623 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r269282: Correct typo in comment
emaste [Wed, 6 Aug 2014 00:35:32 +0000 (00:35 +0000)]
MFC r269282: Correct typo in comment

PR: 192231

git-svn-id: svn://svn.freebsd.org/base/stable/10@269619 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC: r260457
marius [Tue, 5 Aug 2014 16:04:22 +0000 (16:04 +0000)]
MFC: r260457

The changes in r233781 attempted to make logging during a machine check
exception more readable.  In practice they prevented all logging during
a machine check exception on at least some systems.  Specifically, when
an uncorrected ECC error is detected in a DIMM on a Nehalem/Westmere
class machine, all CPUs receive a machine check exception, but only
CPUs on the same package as the memory controller for the erroring DIMM
log an error.  The CPUs on the other package would complete the scan of
their machine check banks and panic before the first set of CPUs could
log an error.  The end result was a clearer display during the panic
(no interleaved messages), but a crashdump without any useful info about
the error that occurred.

To handle this case, make all CPUs spin in the machine check handler
once they have completed their scan of their machine check banks until
at least one machine check error is logged.  I tried using a DELAY()
instead so that the CPUs would not potentially hang forever, but that
was not reliable in testing.

While here, don't clear MCIP from MSR_MCG_STATUS before invoking panic.
Only clear it if the machine check handler does not panic and returns
to the interrupted thread.

MFC: r263113

Correct type for malloc().

Submitted by: "Conrad Meyer" <conrad.meyer@isilon.com>

MFC: r269052, r269239, r269242

Intel desktop Haswell CPUs may report benign corrected parity errors (see
HSD131 erratum in [1]) at a considerable rate. So filter these (default),
unless logging is enabled. Unfortunately, there really is no better way to
reasonably implement suppressing these errors than to just skipping them
in mca_log(). Given that they are reported for bank 0, they'd need to be
masked in MSR_MC0_CTL. However, P6 family processors require that register
to be set to either all 0s or all 1s, disabling way more than the one error
in question when using all 0s there. Alternatively, it could be masked for
the corresponding CMCI, but that still wouldn't keep the periodic scanner
from detecting these spurious errors. Apart from that, register contents of
MSR_MC0_CTL{,2} don't seem to be publicly documented, neither in the Intel
Architectures Developer's Manual nor in the Haswell datasheets.

Note that while HSD131 actually is only about C0-stepping as of revision
014 of the Intel desktop 4th generation processor family specification
update, these corrected errors also have been observed with D0-stepping
aka "Haswell Refresh".

1: http://www.intel.de/content/dam/www/public/us/en/documents/specification-updates/4th-gen-core-family-desktop-specification-update.pdf

Reviewed by: jhb
Sponsored by: Bally Wulff Games & Entertainment GmbH

git-svn-id: svn://svn.freebsd.org/base/stable/10@269592 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r269444, r269450:
mav [Tue, 5 Aug 2014 08:30:38 +0000 (08:30 +0000)]
MFC r269444, r269450:
Plug EXTENDED COPY request data memory leak.

git-svn-id: svn://svn.freebsd.org/base/stable/10@269574 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r269442:
mav [Tue, 5 Aug 2014 08:29:24 +0000 (08:29 +0000)]
MFC r269442:
Fix some bugs in RECEIVE COPY STATUS data.

git-svn-id: svn://svn.freebsd.org/base/stable/10@269572 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r269441:
mav [Tue, 5 Aug 2014 08:28:29 +0000 (08:28 +0000)]
MFC r269441:
Add missing comparisons to make list IDs in EXTENDED COPY per-initiator,
as they should be.  Wrap it into a function to not duplicate the code.

git-svn-id: svn://svn.freebsd.org/base/stable/10@269570 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r269244:
kib [Tue, 5 Aug 2014 05:00:22 +0000 (05:00 +0000)]
MFC r269244:
Remove one-time use macros which check for the vnode lifecycle.

git-svn-id: svn://svn.freebsd.org/base/stable/10@269562 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r267759, r267761
markj [Tue, 5 Aug 2014 01:53:15 +0000 (01:53 +0000)]
MFC r267759, r267761

r267759:
Fix a couple of bugs on amd64 when fetching probe arguments beyond the
first five for probes entered through a UD fault (i.e. FBT probes).

Specifically, handle the fact that dtrace_invop_callsite must be
16 byte-aligned and thus may not immediately follow the call to
dtrace_invop() in dtrace_invop_start(). Also fetch register arguments and
the stack pointer through a struct trapframe instead of a struct reg.

r267761:
Fix some bugs when fetching probe arguments in i386. Firstly ensure that
the 4 byte-aligned dtrace_invop_callsite can be found and that it
immediately follows the call to dtrace_invop(). Secondly, fix some pointer
arithmetic to account for differences between struct i386_frame and illumos'
struct frame. Finally, ensure that dtrace_getarg() isn't inlined. It works
by following a fixed number of frame pointers to the probe site, so inlining
breaks it.

PR: 191260

git-svn-id: svn://svn.freebsd.org/base/stable/10@269557 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r268584:
markj [Tue, 5 Aug 2014 01:03:10 +0000 (01:03 +0000)]
MFC r268584:
Add a headphone redirection quirk for the Lenovo G580.

git-svn-id: svn://svn.freebsd.org/base/stable/10@269546 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f