]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
10 years agoMFC r261680:
dim [Wed, 12 Feb 2014 07:51:14 +0000 (07:51 +0000)]
MFC r261680:

Pull in r200899 from upstream clang trunk:

  Allow transformation of VariableArray to ConstantArray.

  In the following code:

     struct A { static const int sz; };
     template<class T> void f() { T arr[A::sz]; }

  the array 'arr' is represented as a variable size array in the template.
  If 'A::sz' gets value below in the translation unit, the array in
  instantiation can turn into constant size array.

  This change fixes PR18633.

  Differential Revision: http://llvm-reviews.chandlerc.com/D2688

This fixes "Assertion failed: (T::isKind(*this)), function castAs"
errors, which can occur when building the security/quantis port.

Reported by: ale

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

10 years agoMFC r261507:
hselasky [Wed, 12 Feb 2014 07:18:01 +0000 (07:18 +0000)]
MFC r261507:
Add more quirks for making builtin audio speakers work with more
MacBookPro's. Only tested with MacBookPro 9,2.

Obtained from: Linux

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

10 years agoDocuemnt mount_udf(8) issue.
hrs [Tue, 11 Feb 2014 23:11:11 +0000 (23:11 +0000)]
Docuemnt mount_udf(8) issue.

Submitted by: brueffer

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

10 years agoMFC: r261500
brueffer [Tue, 11 Feb 2014 13:33:03 +0000 (13:33 +0000)]
MFC: r261500

Add a license (1) and do some cleanup.

Approved by: Stefan Bethke (original author, by private mail) (1)

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

10 years agoMFC r260389:
trasz [Tue, 11 Feb 2014 12:01:11 +0000 (12:01 +0000)]
MFC r260389:

Fix a rare "truncated checksums" problem, which manifested like this:

WARNING: icl_pdu_check_data_digest: data digest check failed; got 0xf23b,
should be 0xdb7f23b

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r260083:
trasz [Tue, 11 Feb 2014 11:58:54 +0000 (11:58 +0000)]
MFC r260083:

Fix extremely slow operation with data digests enabled.  This was caused
by receive code waiting for data digest even when the data segment was
empty.  It didn't actually read it, but it waited until those four bytes
become available in the socket buffer, i.e. until any other PDU (e.g. NOP)
came in.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r260255:
trasz [Tue, 11 Feb 2014 11:56:50 +0000 (11:56 +0000)]
MFC r260255:

Properly document -u and -s.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC: r261496
brueffer [Tue, 11 Feb 2014 08:20:45 +0000 (08:20 +0000)]
MFC: r261496

Unbreak mount_udf by passing the correct iovec length into
nmount().  This has been broken since r247861.

PR: bin/186193
Submitted by: Arnot Belohlavek

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

10 years agoMFC: r261487
brueffer [Tue, 11 Feb 2014 08:11:34 +0000 (08:11 +0000)]
MFC: r261487

Add qlxgbe(4) and qlxge(4) to the hardware notes.

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

10 years agoMFC: r261494
brueffer [Tue, 11 Feb 2014 08:08:53 +0000 (08:08 +0000)]
MFC: r261494

Actually install acpi_rapidstart.4.

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

10 years agoMFC: r261339
brueffer [Mon, 10 Feb 2014 22:24:49 +0000 (22:24 +0000)]
MFC: r261339

MLINK ixgbe.4 to {if_ix.4, ix.4}.  An update for ixgbe.4
which deals with the "ix prefix being shared by two drivers"
situation is forthcoming.

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

10 years agoMFC: r261447
brueffer [Mon, 10 Feb 2014 22:16:22 +0000 (22:16 +0000)]
MFC: r261447

Fix a typo.

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

10 years agoMFC r261609:
dim [Mon, 10 Feb 2014 20:25:40 +0000 (20:25 +0000)]
MFC r261609:

Pull in upstream libcxxrt commit 8006101, which makes its cxxabi.h file
compilable just by itself.

PR: kern/184019

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

10 years agoMFC r261522:
wblock [Mon, 10 Feb 2014 17:37:34 +0000 (17:37 +0000)]
MFC r261522:

Describe the use of a freebsd-boot GPT partition, brought up by Scot
Hetzel <swhetzel@gmail.com> on the -doc mailing list.

Also modify the Author section to be clear that I wrote the man page,
not gptboot.

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

10 years agoMFC r261515:
mav [Mon, 10 Feb 2014 16:29:50 +0000 (16:29 +0000)]
MFC r261515:
Fix I/O freezes in some cases, caused by r257916.

Delaying isp_reqodx update, we should be ready to update it every time
we read it.  Otherwise requests using several indexes may be requeued
ndefinitely without ever updating the variable.

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

10 years agoMFC r261400:
ae [Mon, 10 Feb 2014 15:23:40 +0000 (15:23 +0000)]
MFC r261400:
  Take exclusive lock only when lle isn't NULL. We don't need write access
  to lle in most cases.

MFC r261583:
  Unlock entry before retry.

Sponsored by: Yandex LLC

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

10 years agoRun ldconfig(8) rc script before building ports so
gjb [Mon, 10 Feb 2014 07:16:46 +0000 (07:16 +0000)]
Run ldconfig(8) rc script before building ports so
ld-elf.so.hints exists for pkg(8).

This is a direct commit to stable/10 as generate-release.sh
does not exist in head/.

PR: 186554
Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r260871:
adrian [Mon, 10 Feb 2014 06:29:05 +0000 (06:29 +0000)]
MFC r260871:

  If the flowid is available for the mbuf that finalised the creation
  of a syncache connection, copy it into the inp_flowid field.

  Without this, an incoming TCP connection won't have an inp_flowid marked
  until some data comes in, and this means that things like the per-CPU
  TCP timer option will choose a different CPU for the timer work.
  (It also means that if one grabbed the flowid via an ioctl from userland,
  it won't be available until some data has been received.)

Sponsored by: Netflix, Inc.

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

10 years agoMFC r260553 (by theraven):
dim [Sun, 9 Feb 2014 00:34:21 +0000 (00:34 +0000)]
MFC r260553 (by theraven):

Add missing C++11 typeinfos to the libcxxrt version script.

PR: 185663

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

10 years agoMFC r261354:
kib [Sat, 8 Feb 2014 15:51:24 +0000 (15:51 +0000)]
MFC r261354:
In _pthread_kill(), if passed pthread is current thread, do not send
the signal second time, by adding the missed else before if statement.

PR: threads/186309

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

10 years agoMFC r261505:
hselasky [Fri, 7 Feb 2014 07:18:52 +0000 (07:18 +0000)]
MFC r261505:
Fix a regression issue. Contiguous single segment allocations above
PAGE_SIZE bytes should only use one USB page structure. Fixes a
problem with some external drivers.

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

10 years agoMFC: 261291
gnn [Fri, 7 Feb 2014 04:34:04 +0000 (04:34 +0000)]
MFC: 261291

The timestamp bit is number 17, and not number 9, in the stat error
field of the receive descriptor.

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

10 years agoMFC r260949:
mav [Fri, 7 Feb 2014 04:09:15 +0000 (04:09 +0000)]
MFC r260949:
Make comconsole options set before its activation to be remembered.

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

10 years agoMFC r261449:
mav [Fri, 7 Feb 2014 04:02:14 +0000 (04:02 +0000)]
MFC r261449:
Fix lock acquisition in case no request space available, missed in r260097.

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

10 years agoMFC r261080:
kib [Thu, 6 Feb 2014 19:47:17 +0000 (19:47 +0000)]
MFC r261080:
The posix_fallocate(2) syscall should return error number on error,
without modifying errno.

MFC r261290:
The posix_madvise(3) and posix_fadvise(2) should return error on
failure, same as posix_fallocate(2).

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

10 years agoMFC r260702 (by melifaro):
ae [Thu, 6 Feb 2014 10:48:55 +0000 (10:48 +0000)]
MFC r260702 (by melifaro):
  Fix ipfw fwd for IPv4 traffic broken by r249894.

  Problem case:
  Original lookup returns route with GW set, so gw points to
  rte->rt_gateway.
  After that we're changing dst and performing lookup another time.
  Since fwd host is most probably directly reachable, resulting
  rte does not contain rt_gateway, so gw is not set. Finally, we
  end with packet transmitted to proper interface but wrong
  link-layer address.

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

10 years agoMFC r261432
rpaulo [Thu, 6 Feb 2014 02:12:39 +0000 (02:12 +0000)]
MFC r261432
 Fix the definition of hg_cmd.

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

10 years agoMFC r261260, r261262, r261315 and r261343:
hselasky [Wed, 5 Feb 2014 08:40:02 +0000 (08:40 +0000)]
MFC r261260, r261262, r261315 and r261343:
Add support for trackpads found in Apple MacBook products. While at it
add some missing devd entries.

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

10 years agoMFC r258787:
eadler [Tue, 4 Feb 2014 16:29:30 +0000 (16:29 +0000)]
MFC r258787:
r258780 should not have applied to .S files.

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

10 years agoMFC r260903:
hselasky [Tue, 4 Feb 2014 10:29:23 +0000 (10:29 +0000)]
MFC r260903:
Add support for GPS ports to UHSO driver.

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

10 years agoMFC r260315:
hselasky [Tue, 4 Feb 2014 10:18:29 +0000 (10:18 +0000)]
MFC r260315:
Implement two new libusb API functions.

PR: usb/185454

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

10 years agoMFC r261228:
hselasky [Tue, 4 Feb 2014 09:06:28 +0000 (09:06 +0000)]
MFC r261228:
When detaching a [USB] keyboard, keys might still be pressed. Ensure
that all pressed keys are released before completing the USB keyboard
detach. This will prevent so-called "ghost-keys" from appearing after
that the USB device generating the key event(s) has been detached.

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

10 years agoMFC r261224:
hselasky [Tue, 4 Feb 2014 08:59:42 +0000 (08:59 +0000)]
MFC r261224:
Comply to the official LibUSB v1.0 API:
"It is legal to attempt to claim an already-claimed interface."

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

10 years agoMFC r261134:
hselasky [Tue, 4 Feb 2014 08:54:59 +0000 (08:54 +0000)]
MFC r261134:
Add more USB quirks.

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

10 years agoMFC r261123:
hselasky [Tue, 4 Feb 2014 08:47:43 +0000 (08:47 +0000)]
MFC r261123:
Reduce dmesg verbosity.

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

10 years agoMFC r261004, r261005 and r261033:
hselasky [Tue, 4 Feb 2014 08:44:12 +0000 (08:44 +0000)]
MFC r261004, r261005 and r261033:
Adjust the DMA delay logic so that the DMA delay does not become too small.

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

10 years agoMFC r261003:
hselasky [Tue, 4 Feb 2014 08:37:39 +0000 (08:37 +0000)]
MFC r261003:
Add new quirk.

PR: usb/185968

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

10 years agoMFC r258779,r258780,r258787,r258822:
eadler [Tue, 4 Feb 2014 03:36:42 +0000 (03:36 +0000)]
MFC r258779,r258780,r258787,r258822:

Fix undefined behavior: (1 << 31) is not defined as 1 is an int and this
shifts into the sign bit.  Instead use (1U << 31) which gets the
expected result.

Similar to the (1 << 31) case it is not defined to do (2 << 30).

This fix is not ideal as it assumes a 32 bit int, but does fix the issue
for most cases.

A similar change was made in OpenBSD.

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

10 years agoMFC r260996:
mav [Tue, 4 Feb 2014 00:51:06 +0000 (00:51 +0000)]
MFC r260996:
Fix memory and references leak due to unfreed path in case we can't
allocate bus scan CCB.

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

10 years agoMFC r256499:
rpaulo [Mon, 3 Feb 2014 08:04:09 +0000 (08:04 +0000)]
MFC r256499:

Add support for Mercurial repositories.

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

10 years agoMFC: 260791
gnn [Mon, 3 Feb 2014 03:34:36 +0000 (03:34 +0000)]
MFC: 260791

Add a command line argument to turn off blocking waiting for the user
to press Ctrl-C (-b).  This allows tests with tight loops of mcgrabs
that can stress the multicast tables.

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

10 years agoMFC 260796
gnn [Mon, 3 Feb 2014 03:31:35 +0000 (03:31 +0000)]
MFC 260796

Fix various places where we don't properly release a lock

PR: 185043
Submitted by: Michael Bentkofsky

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

10 years agoMFC r260883:
mav [Sun, 2 Feb 2014 00:33:17 +0000 (00:33 +0000)]
MFC r260883:
Remove unneeded and dangerous assignment.  It would probably cause NULL
refererence panic if compiler not optimize it out.

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

10 years agoMFC: Note merge of sendmail 8.14.8.
gshapiro [Sat, 1 Feb 2014 22:38:34 +0000 (22:38 +0000)]
MFC: Note merge of sendmail 8.14.8.

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

10 years agoMFC: Minor changes to force commit these files so new freebsd*.cf files are
gshapiro [Sat, 1 Feb 2014 22:36:46 +0000 (22:36 +0000)]
MFC: Minor changes to force commit these files so new freebsd*.cf files are
     built to use the new sendmail-8.14.8/cf tree.

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

10 years agoMFC: Add missing svn:keywords property to new files
gshapiro [Sat, 1 Feb 2014 22:35:12 +0000 (22:35 +0000)]
MFC: Add missing svn:keywords property to new files

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

10 years agoMFC: Update for sendmail 8.14.8 import
gshapiro [Sat, 1 Feb 2014 22:33:58 +0000 (22:33 +0000)]
MFC: Update for sendmail 8.14.8 import

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

10 years agoMFC: Remove local FreeBSD workaround now that upstream project has a better fix.
gshapiro [Sat, 1 Feb 2014 22:32:45 +0000 (22:32 +0000)]
MFC: Remove local FreeBSD workaround now that upstream project has a better fix.

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

10 years agoMFC: Add new sendmail 8.14.8 file
gshapiro [Sat, 1 Feb 2014 22:29:04 +0000 (22:29 +0000)]
MFC: Add new sendmail 8.14.8 file

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

10 years agoMFC: Merge sendmail 8.14.8
gshapiro [Sat, 1 Feb 2014 22:27:40 +0000 (22:27 +0000)]
MFC: Merge sendmail 8.14.8

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

10 years agoMFC: Update link to vendor import instructions
gshapiro [Sat, 1 Feb 2014 22:05:38 +0000 (22:05 +0000)]
MFC: Update link to vendor import instructions

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

10 years agoMFC r261267: Add libexecinfo.
pluknet [Sat, 1 Feb 2014 10:48:28 +0000 (10:48 +0000)]
MFC r261267: Add libexecinfo.

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

10 years agoMFC r261261: Restore the Nx macro.
pluknet [Sat, 1 Feb 2014 10:41:26 +0000 (10:41 +0000)]
MFC r261261: Restore the Nx macro.

PR: 186205
Submitted by: naddy

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

10 years agoMFC r261138:
rmh [Fri, 31 Jan 2014 20:52:08 +0000 (20:52 +0000)]
MFC r261138:
Accept O_CLOEXEC in shm_open().

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

10 years agoMFC 259823:
jhb [Fri, 31 Jan 2014 17:26:15 +0000 (17:26 +0000)]
MFC 259823:
Fix i386 build.

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

10 years agoMFC r261136:
pfg [Fri, 31 Jan 2014 04:05:25 +0000 (04:05 +0000)]
MFC r261136:

ext2fs: Re-enable reallocblk.

The major corruption issues affecting this code have been fixed.

Tested by: Mike Ma

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

10 years agoMFC r260988, r261034, r261120, r261235:
pfg [Fri, 31 Jan 2014 03:58:36 +0000 (03:58 +0000)]
MFC r260988, r261034, r261120,  r261235:

ext2fs: Properly the EXT4_EXTENTS and EXT4_INDEX to the inode flags.

In order to support Ext4 extents we need to pass the Ext4 inode flags
without interfering with the chflags. This is better done by using the
i_flag field in the inode and doing proper translation to the linux
ext4 equivalents.

Solve a potential corruption issue in the dirindex code. The dirindex
code can now be renabled as the problems related to it have been
solved.

Suggested by: bde
Tested by: kevlo

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

10 years agoMFC r261175:
pfg [Fri, 31 Jan 2014 03:38:22 +0000 (03:38 +0000)]
MFC r261175:

binutils: add support for Intel SMAP-related instructions

Add support for stac/clac instructions to manipulate the flag
that controls the behaviour of Intel's Supervisor Mode Access
Prevention (SMAP) feature.

Tested by: dim
Obtained from: OpenBSD

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

10 years agoMFC r261178:
pfg [Fri, 31 Jan 2014 03:30:09 +0000 (03:30 +0000)]
MFC r261178:

gcc: Add support for -Wmissing-prototypes in C++

Support for warnings about missing prototypes in C++ was added by Apple
GCC (Radar 6261539).  Most of the code crept into r260311 so it felt
natural to make use of it.

Obtained from: Apple GCC - 5646

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

10 years agoMFC 261216:
jhb [Thu, 30 Jan 2014 19:09:59 +0000 (19:09 +0000)]
MFC 261216:
Explicitly enable I/O and memory decoding in the bridge's command register
when activating an I/O or memory window on the CardBus bridge.

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

10 years agoMFC r261084:
ae [Thu, 30 Jan 2014 10:53:29 +0000 (10:53 +0000)]
MFC r261084:
  malloc() with M_WAITOK doesn't return NULL.

MFC r261085:
  Fix typo in r261084.
  Add to the gctl_error() an ability to specify error description even
  if numeric error code is already specified. Also by default set
  error code to EINVAL.

  PR: 185852

MFC r261086:
  In gctl_copyin() remove unused error variable.
  geom_alloc_copyin() can't return ENOMEM, so describe its fail as bad
  control request. Add check for NULL pointer in gctl_dump(), since it
  can be NULL when geom_alloc_copyin() failed.

MFC r261089:
  Remove another unneeded NULL check from geom_alloc_copyin().
  Do copyout in case of gctl version mismatch and fix sbuf leak in
  g_ctl_ioctl_ctl().

MFC r261091:
  Always free sbuf in gctl_free().

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

10 years agoUpdate EINVAL description.
pluknet [Thu, 30 Jan 2014 05:35:12 +0000 (05:35 +0000)]
Update EINVAL description.

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

10 years agoMFC r256939
brooks [Wed, 29 Jan 2014 22:06:38 +0000 (22:06 +0000)]
MFC r256939

MFP4:
Change 221767 by rwatson@rwatson_zenith_cl_cam_ac_uk on 2013/02/05 14:18:53

When printing out information on a TLB MOD exception for a user
process (e.g., an attempt to write to a read-only page), report
it as a "write" in the console message, rather than "unknown".

Change 221768 by rwatson@rwatson_zenith_cl_cam_ac_uk on 2013/02/05 14:28:00

Fix post-compile but pre-commit typo in last changeset.

Sponsored by: DARPA/AFRL

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

10 years agoMFC r256937:
brooks [Wed, 29 Jan 2014 22:01:42 +0000 (22:01 +0000)]
MFC r256937:

MFP4:
Change 231031 by brooks@brooks_zenith on 2013/07/11 16:22:08

Turn the unused and uncompilable MIPS_DISABLE_L1_CACHE define in
cache.c into an option and when set force I- and D-cache line
sizes to 0 (the latter part might be better as a tunable).

Fix some casts in an #if 0'd bit of code which attempts to
disable L1 cache ops when the cache is coherent.

Sponsored by: DARPA/AFRL

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

10 years agoMFC r256945:
brooks [Wed, 29 Jan 2014 21:57:00 +0000 (21:57 +0000)]
MFC r256945:

MFP4:
Change 221669 by bz@bz_zenith on 2013/02/01 12:26:04

Run the initialization for polling earlier along with INTRs
so that we can put network interface into polling mode by default
if DEVICE_POLLING is compiled in and no interrupts are available.

Sponsored by: DARPA/AFRL

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

10 years agoMFC 259782:
jhb [Wed, 29 Jan 2014 21:23:37 +0000 (21:23 +0000)]
MFC 259782:
Add a resume hook for bhyve that runs a function on all CPUs during
resume.  For Intel CPUs, invoke vmxon for CPUs that were in VMX mode
at the time of suspend.

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

10 years agoMFC r256745:
brooks [Wed, 29 Jan 2014 20:48:26 +0000 (20:48 +0000)]
MFC r256745:

MFP4:
Change 227630 by bz@bz_zenith on 2013/04/12 08:50:27

Implement soft reset setting sr in sr and just in case loop
endlessly afterwards.

Sponsored by: DARPA/AFRL

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

10 years agoMFC 260206:
jhb [Wed, 29 Jan 2014 13:35:12 +0000 (13:35 +0000)]
MFC 260206:
Rework the DSDT generation code a bit to generate more accurate info about
LPC devices.  Among other things, the LPC serial ports now appear as
ACPI devices.

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

10 years agoRecord mergeinfo for earlier merge of 257293.
jhb [Wed, 29 Jan 2014 13:22:48 +0000 (13:22 +0000)]
Record mergeinfo for earlier merge of 257293.

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

10 years agoMFC r260267 (by smh), r261042:
mav [Wed, 29 Jan 2014 02:38:25 +0000 (02:38 +0000)]
MFC r260267 (by smh), r261042:
Correct short delete issue in SCSI UNMAP support
Correct missing \n's in xpt_print's
Correct incorrect count being passed to short delete xpt_print

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

10 years agoMFC 260910:
jhb [Tue, 28 Jan 2014 21:56:18 +0000 (21:56 +0000)]
MFC 260910:
- Allow PCI devices that are attached to a driver to be identified by their
  device name instead of just the selector.
- Accept an optional device argument to -l to restrict the output to only
  listing details about a single device.  This is mostly useful in
  conjunction with other flags like -e or -c to allow a user to query
  details about a single device.

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

10 years agoMerge /head:261072: Remove WITHOUT_ATF from src.conf.5
skreuzer [Tue, 28 Jan 2014 15:15:13 +0000 (15:15 +0000)]
Merge /head:261072: Remove WITHOUT_ATF from src.conf.5

Approved by: hrs (mentor)

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

10 years agoMFC: r261146
ache [Tue, 28 Jan 2014 13:29:54 +0000 (13:29 +0000)]
MFC: r261146

Bad timespec_subtract() calculations produce negative tv_nsec on i386
which cause EINVAL returned from nanosleep() which cause loop in
cron_sleep() and making all cron jobs to start about 30 seconds earlier
(which cause f.e. logfiles rotation by newsyslog delayed by 1 hour).

Use simple and proved calculations from kernel's timespecsub() instead.

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

10 years agoMFC r261162:
dim [Tue, 28 Jan 2014 08:07:19 +0000 (08:07 +0000)]
MFC r261162:

Pull in r195679 from upstream llvm trunk:

  Don't use nopl in cpus that don't support it.

  Patch by Mikulas Patocka. I added the test. I checked that for cpu names that
  gas knows about, it also doesn't generate nopl.

  The modified cpus:
  i686 - there are i686-class CPUs that don't have nopl: Via c3, Transmeta
 Crusoe, Microsoft VirtualBox - see
 https://bbs.archlinux.org/viewtopic.php?pid=775414
  k6, k6-2, k6-3, winchip-c6, winchip2 - these are 586-class CPUs
  via c3 c3-2 - see https://bugs.archlinux.org/task/19733 as a proof that
 Via c3 and c3-Nehemiah don't have nopl

PR: bin/185777

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

10 years agoMFC r260485,260496:
ae [Tue, 28 Jan 2014 00:30:17 +0000 (00:30 +0000)]
MFC r260485,260496:
  Remove extra nesting from X_ip6_mforward() function.
  Also remove disabled definitions from ip6_mroute.h.

  PR: 185148

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

10 years agoMerge 261024: fix PIM input regression.
glebius [Mon, 27 Jan 2014 09:33:30 +0000 (09:33 +0000)]
Merge 261024: fix PIM input regression.

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

10 years agoMerged /head:r256510,256512,257376,257469,260052:
glebius [Mon, 27 Jan 2014 08:15:21 +0000 (08:15 +0000)]
Merged /head:r256510,256512,257376,257469,260052:

  Make 'netstat -i' use getifaddrs(3) instead of kvm(3).

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

10 years agoMFC r260311, r260831:
pfg [Sun, 26 Jan 2014 19:49:54 +0000 (19:49 +0000)]
MFC r260311, r260831:

gcc: Add support for Apple's Block extension

Block objects [1] are a C-level syntactic and runtime feature. They
are similar to standard C functions, but in addition to executable
code they may also contain variable bindings to automatic (stack)
or managed (heap) memory. A block can therefore maintain a set of
state (data) that it can use to impact behavior when executed.

This port is based on Apple's GCC 5646 with some bugfixes from
Apple GCC 5666.3. It has some small differences with the support
in clang, which remains the recommended compiler.

Perhaps the most notable difference is that in GCC __block is not
actually a keyword, but a macro. There may be workaround for this
issue in the future. Other issues can be consulted in the clang
documentation [2]

For better compatiblity with Apple's GCC and llvm-gcc, some related
fixes and features from Apple have been included. Support for the
non-standard nested functions in GCC is now off by default.

No effort was made to update the ObjC support since FreeBSD doesn't
carry ObjC in the base system but some of the code crept in and
was more difficult to remove than to adjust.

References:
[1]
https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/Blocks/Articles/00_Introduction.html
[2]
http://clang.llvm.org/compatibility.html#block-variable-initialization

Obtained from: Apple GCC 4.2

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

10 years agoMFC r260872:
jhibbits [Sun, 26 Jan 2014 02:23:16 +0000 (02:23 +0000)]
MFC r260872:

There's actually no data in the PMU_GET_VERSION command.  Don't send any.
This change now allows the PMU to be used on PowerBook5,8

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

10 years agoMerge r260987:
demon [Sat, 25 Jan 2014 10:43:47 +0000 (10:43 +0000)]
Merge r260987:

 Do not exit with non-zero return code if sysctl.conf or sysctl.conf.local files
 are absent.

 Approved by: delphij

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

10 years agoMFC r260549:
mav [Sat, 25 Jan 2014 01:58:15 +0000 (01:58 +0000)]
MFC r260549:
Move xpt_run_devq() call before request completion callback where it was
originally.

I am not sure why exactly have I moved it during one of many refactorings
during camlock project, but obviously it opens race window that may cause
use after free panics during SIM (in reported cases umass(4)) detach.

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

10 years agoImplicit include of sys/queue.h instead of relying on gelf.h/libelf.h to bring it
bapt [Sat, 25 Jan 2014 01:08:35 +0000 (01:08 +0000)]
Implicit include of sys/queue.h instead of relying on gelf.h/libelf.h to bring it
Newer version of gelf.h and libelf.h does not include sys/queue.h anymore

Submitted by: kaiw

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

10 years agoMFH: r261027
bapt [Sat, 25 Jan 2014 01:06:20 +0000 (01:06 +0000)]
MFH: r261027

Remove pkg_* related info from periodic.conf

Reported by Robin Brocks <robin.brocks@brocks.de>

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

10 years agoMFC r257132:
hselasky [Fri, 24 Jan 2014 08:27:19 +0000 (08:27 +0000)]
MFC r257132:
Add id for GTM661W.
This also fixes kernel build breakage since last revision.

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

10 years agoMFC r260534:
hselasky [Fri, 24 Jan 2014 08:22:29 +0000 (08:22 +0000)]
MFC r260534:
Move USB ID from u3g driver to uhso driver.

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

10 years agoMFC r258545:
hselasky [Fri, 24 Jan 2014 08:15:21 +0000 (08:15 +0000)]
MFC r258545:
Comply to the XHCI specification. Certain input context fields should
always be zero.

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

10 years agoMFC r260808 and r260814:
hselasky [Fri, 24 Jan 2014 08:10:08 +0000 (08:10 +0000)]
MFC r260808 and r260814:
- Close a minor deadlock.
- Fix a possible memory use after free and leak situation associated
with USB device detach when using character device handles. This also
includes LibUSB. It turns out that "usb_close()" cannot always get a
reference to clean up its USB transfers and such, if called during the
kernel USB device detach.

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

10 years agoMFC r260588 and r260589:
hselasky [Fri, 24 Jan 2014 07:48:52 +0000 (07:48 +0000)]
MFC r260588 and r260589:
- Separate I/O errors from reception of STALL PID.
- Implement better error recovery for Transaction Translators, TTs,
found in High Speed USB HUBs which translate from High Speed USB into
FULL or LOW speed USB. In some rare cases SPLIT transactions might get
lost, which might leave the TT in an unknown state. Whenever we detect
such an error try to issue either a clear TT buffer request, or if
that is not possible reset the whole TT.

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

10 years agoMFC r260563:
hselasky [Fri, 24 Jan 2014 07:43:46 +0000 (07:43 +0000)]
MFC r260563:
Make sure reserved fields of the EHCI DMA descriptors are not dirty
after previous transfers.

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

10 years agoMFC r260559:
hselasky [Fri, 24 Jan 2014 07:32:05 +0000 (07:32 +0000)]
MFC r260559:
Don't do synchronous USB requests inside USB transfer callbacks. It is
technically OK, but not recommended.

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

10 years agoMFC r260388, r260535 and r260536:
hselasky [Fri, 24 Jan 2014 07:24:40 +0000 (07:24 +0000)]
MFC r260388, r260535 and r260536:
Fix XHCI interrupt logic for "Intel Lynx Point" found in MBP2013.

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

10 years agoMFC r260521:
mav [Fri, 24 Jan 2014 00:41:02 +0000 (00:41 +0000)]
MFC r260521:
Remove not applicable PI_SDTR_ABLE and PI_WIDE_16 hba_inquiry flags to
make CAM to not try negotiate unsupported settings and suppress warnings.

While there, enable command queuing on pass-through devices, announced
in hba_inquiry, but disabled.  Even though queue size is very small, It
seems working well enough.

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

10 years agoMFC 259826,259997,259998:
jhb [Thu, 23 Jan 2014 20:35:32 +0000 (20:35 +0000)]
MFC 259826,259997,259998:
Support soft power-off via the ACPI S5 state for bhyve guests and wire
up a virtual power button to SIGTERM:
- Implement the PM1_EVT and PM1_CTL registers required by ACPI.
- Emulate the Reset Control register at I/O port 0xcf9.
- Advertise an _S5 package.
- Implement an SMI_CMD register with commands to enable and disable ACPI.
  Currently the only change when ACPI is enabled is to enable the virtual
  power button via SIGTERM.
- Implement a fixed-feature power button when ACPI is enabled by asserting
  PWRBTN_STS in PM1_EVT when SIGTERM is received.
- Add support for EVFILT_SIGNAL events to mevent.
- Implement support for the ACPI system command interrupt (SCI) and assert
  it when needed based on the values in PM1_EVT.  Mark the SCI as active-low
  and level triggered in the MADT and MP Table.

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

10 years agoMFC 257422,257661,258075,258476,258494,258579,258609,258699:
jhb [Thu, 23 Jan 2014 20:21:39 +0000 (20:21 +0000)]
MFC 257422,257661,258075,258476,258494,258579,258609,258699:
Several enhancements to the I/O APIC support in bhyve including:
- Move the I/O APIC device model from userspace into vmm.ko and add
  ioctls to assert and deassert I/O APIC pins.
- Add HPET device emulation including a single timer block with 8 timers.
- Remove the 'vdev' abstraction.

Approved by: neel

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

10 years agoMFC r256959:
loos [Thu, 23 Jan 2014 12:32:30 +0000 (12:32 +0000)]
MFC r256959:

  Add the Raspberry Pi BSC (I2C compliant) controller driver.

  Reviewed by: rpaulo

MFC r256961:

  Enable the build of OFW I2C bus for FDT systems.

MFC r258045:

  As all the IIC controllers on system uses the same 'iichb' prefix we cannot
  rely only on checking the device unit to indentify the BSC unit we are
  attaching to.  Make use of the device base address to identify our BSC unit.

MFC r259127:

  Bring the RPi I2C driver in line with ti_i2c.  Make it treat any slave
  address as a 7-bit address.

Approved by: adrian (mentor)

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

10 years agoMFC r257127:
loos [Thu, 23 Jan 2014 12:02:04 +0000 (12:02 +0000)]
MFC r257127:

Remove all the instances of '#undef DEBUG' from kernel.

Suggested by: rpaulo
Approved by: adrian (mentor)

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

10 years agoMFC r260229, r260258, r260367, r260390, r260459, r260648:
mav [Wed, 22 Jan 2014 23:55:25 +0000 (23:55 +0000)]
MFC r260229, r260258, r260367, r260390, r260459, r260648:
Rework NFS Duplicate Request Cache cleanup logic.

 - Introduce additional hash to group requests by hash of sockref.  This
allows to process TCP acknowledgements without looping though all the cache,
and as result allows to do it every time.
 - Indroduce additional callbacks to notify application layer about sockets
disconnection.  Without this last few requests processed just before socket
disconnection never processed their ACKs and stuck in cache for many hours.
 - Implement transport-specific method for tracking reply acknowledgements.
New implementation does not cross multiple stack layers to get the data and
does not have race conditions that previously made some requests stuck
in cache.  This could be done more efficiently at sockbuf layer, but that
would broke some KBIs, while I don't know other consumers for it aside NFS.
 - Instead of traversing all DRC twice per request, run cleaning only once
per request, and except in some conditions traverse only single hash slot
at a time.

Together this limits NFS DRC growth only to situations of real connectivity
problems.  If network is working well, and so all replies are acknowledged,
cache remains almost empty even after hours of heavy load.  Without this
change on the same test cache was growing to many thousand requests even
with perfectly working local network.

As another result this reduces CPU time spent on the DRC handling during
SPEC NFS benchmark from about 10% to 0.5%.

Sponsored by:   iXsystems, Inc.

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

10 years agoMFC r260097:
mav [Wed, 22 Jan 2014 23:52:20 +0000 (23:52 +0000)]
MFC r260097:
Move most of NFS file handle affinity code out of the heavily congested
global RPC thread pool lock and protect it with own set of locks.

On synthetic benchmarks this improves peak NFS request rate by 40%.

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

10 years agoMFC r260036:
mav [Wed, 22 Jan 2014 23:51:12 +0000 (23:51 +0000)]
MFC r260036:
Introduce xprt_inactive_self()  -- variant for use when sure that port
is assigned to thread.  For example, withing receive handlers.  In that
case the function reduces to single assignment and can avoid locking.

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

10 years agoMFC r260031:
mav [Wed, 22 Jan 2014 23:50:13 +0000 (23:50 +0000)]
MFC r260031:
In addition to r259632 completely block receive upcalls if we have more
data than we need.  This reduces lock pressure from xprt_active() side.

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