]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
9 years agoUpdate LLDB snapshot to upstream r216948 (git 50f7fe44)
emaste [Wed, 26 Nov 2014 16:48:12 +0000 (16:48 +0000)]
Update LLDB snapshot to upstream r216948 (git 50f7fe44)

This is approximately "LLDB 3.5" although with a little bit of skew,
and will go along with the Clang 3.5 import.

Sponsored by: DARPA, AFRL

9 years agoRevert Clang 3.4 API compatibility changes
emaste [Wed, 26 Nov 2014 16:23:32 +0000 (16:23 +0000)]
Revert Clang 3.4 API compatibility changes

Re-apply previously reverted changes to restore LLDB to parity with
the last update as of upstream revision 202189. This is the first step
an LLDB update to correspond with the Clang 3.5 import and re-applies
the following upstream revisions:

      SVN      git
    199408  3ad0a1a1
    199689  05be72c3
    200085  9ad47a93

Sponsored by: DARPA, AFRL

9 years agoAfter some horrible wrestling with Subversion's worthless merge
dim [Wed, 26 Nov 2014 14:36:04 +0000 (14:36 +0000)]
After some horrible wrestling with Subversion's worthless merge
implementation, merge ^/head r275078 through r275117.

Note that all the extraneous mergeinfo is there because Subversion
created it.  I'll hopefully be able to remove it again when merging back
to head.

9 years agor274961 through r275075
dim [Tue, 25 Nov 2014 21:43:01 +0000 (21:43 +0000)]
r274961 through r275075

9 years agoConvert to LIBADD
bapt [Tue, 25 Nov 2014 21:18:18 +0000 (21:18 +0000)]
Convert to LIBADD
Reduce overlinking

9 years agoDefine missing libraries to be able to convert gnu, cddl and secure to LIBADD
bapt [Tue, 25 Nov 2014 21:16:44 +0000 (21:16 +0000)]
Define missing libraries to be able to convert gnu, cddl and secure to LIBADD

9 years agoSimilar to r274977, use the correct combination of flags to get the pc98
dim [Tue, 25 Nov 2014 21:08:31 +0000 (21:08 +0000)]
Similar to r274977, use the correct combination of flags to get the pc98
boot2 below the limit.

9 years agoIn preparation for using clang's -Wcast-qual:
jamie [Tue, 25 Nov 2014 21:01:08 +0000 (21:01 +0000)]
In preparation for using clang's -Wcast-qual:

Use __DECONST (instead of my own attempted re-invention) for the iov
parameters to jail_get/set(2).  Similarly remove the decost-ish hack
from execvp's argv, except the __DECONST is only added at very end.

While I'm at it, remove an unused variable and fix a comment typo.

9 years agoImport LLDB as of upstream SVN r216948 (git 50f7fe44)
emaste [Tue, 25 Nov 2014 21:00:58 +0000 (21:00 +0000)]
Import LLDB as of upstream SVN r216948 (git 50f7fe44)

This corresponds with the branchpoint for the 3.5 release.
A number of files not required for the FreeBSD build have been removed.

Sponsored by: DARPA, AFRL

9 years agoReinstitate send() after syslogd restarts.
delphij [Tue, 25 Nov 2014 20:59:22 +0000 (20:59 +0000)]
Reinstitate send() after syslogd restarts.

In r228193 the test of CONNPRIV have been moved to before the _usleep
and send in vsyslog().  When syslogd restarts, this would prevent the
message being logged after the disconnect/connect dance for
scenario #1.

PR: 194751
Submitted by: Peter Creath <pjcreath+freebsd gmail com>
Reviewed By: glebius
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D1227

9 years agoSort libraries definitions
bapt [Tue, 25 Nov 2014 19:13:03 +0000 (19:13 +0000)]
Sort libraries definitions

Reported by: bjk

9 years agoRemove duplicated krb5
bapt [Tue, 25 Nov 2014 19:07:31 +0000 (19:07 +0000)]
Remove duplicated krb5

Reported by: markj

9 years agoFix style(9).
rdivacky [Tue, 25 Nov 2014 18:58:40 +0000 (18:58 +0000)]
Fix style(9).

Suggested by: jkim

9 years agoFix style(9).
rdivacky [Tue, 25 Nov 2014 18:53:17 +0000 (18:53 +0000)]
Fix style(9).

Suggested by: jkim

9 years agoFix b64_pton output buffer overrun test for exact-sized buffer
emaste [Tue, 25 Nov 2014 18:39:37 +0000 (18:39 +0000)]
Fix b64_pton output buffer overrun test for exact-sized buffer

b64_pton would sometimes erroneously fail to decode a base64 string into
a precisely sized buffer. The overflow check was a little too greedy.

Reported by: Ted Unangst on freebsd-hackers@
Reviewed by: loos, trasz
Obtained from: OpenBSD
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D1218

9 years agoShrink boot2 by a couple more bytes.
rdivacky [Tue, 25 Nov 2014 18:35:47 +0000 (18:35 +0000)]
Shrink boot2 by a couple more bytes.

Reviewed by:    jhb
Tested by:      me, dim

9 years agoCoalesce last data move and command status for read commands.
mav [Tue, 25 Nov 2014 17:53:35 +0000 (17:53 +0000)]
Coalesce last data move and command status for read commands.

Make CTL core and block backend set success status before initiating last
data move for read commands.  Make CAM target and iSCSI frontends detect
such condition and send command status together with data.  New I/O flag
allows to skip duplicate status sending on later fe_done() call.

For Fibre Channel this change saves one of three interrupts per read command,
increasing performance from 126K to 160K IOPS.  For iSCSI this change saves
one of three PDUs per read command, increasing performance from 1M to 1.2M
IOPS.

MFC after: 1 month
Sponsored by: iXsystems, Inc.

9 years agoAdd support for Buffalo WZR-HP-AG300H atheros MIPS router.
sbruno [Tue, 25 Nov 2014 17:33:22 +0000 (17:33 +0000)]
Add support for Buffalo WZR-HP-AG300H atheros MIPS router.

Special thanks to Nicholas Esborn for the loaner router to get this
target bootstrapped.

Review:  D777
Reviewed by:    adrian
Sponsored by:   Nicholas Esborn <nick@desert.net>

9 years agoConvert usr.sbin to LIBADD
bapt [Tue, 25 Nov 2014 16:57:27 +0000 (16:57 +0000)]
Convert usr.sbin to LIBADD
Reduce overlinking

9 years agoo Add Virtio MMIO bus driver to config
br [Tue, 25 Nov 2014 16:53:22 +0000 (16:53 +0000)]
o Add Virtio MMIO bus driver to config
o Move Virtio-related to common config file

9 years agoDefined the needed library to convert usr.sbin to LIBADD
bapt [Tue, 25 Nov 2014 16:51:06 +0000 (16:51 +0000)]
Defined the needed library to convert usr.sbin to LIBADD

9 years agoAdd new devices to the config.
br [Tue, 25 Nov 2014 16:24:31 +0000 (16:24 +0000)]
Add new devices to the config.

9 years agoo Add PIO and vtblk mmio device info to the tree
br [Tue, 25 Nov 2014 16:06:19 +0000 (16:06 +0000)]
o Add PIO and vtblk mmio device info to the tree
o Add FPGA memory window to static dev mappings
o Fix whitespace

9 years agoAdd BERI-specific virtio block backend device driver.
br [Tue, 25 Nov 2014 15:58:59 +0000 (15:58 +0000)]
Add BERI-specific virtio block backend device driver.
This part intended to operate on ARM side in heterogeneous
(ARM/BERI) system on crystal.

9 years agowhitespace and cosmetic changes in callout_reset family of macros
avg [Tue, 25 Nov 2014 15:24:05 +0000 (15:24 +0000)]
whitespace and cosmetic changes in callout_reset family of macros

- add parentheses around macro parameters for consistent style
- remove redundant parentheses around an expression
- use tab before a line continuation symbol

Differential Revision: https://reviews.freebsd.org/D1161 (partial)
Reviewed by: markj
MFC after: 1 week

9 years agocallout(9): add sbt flavors of callout_schedule
avg [Tue, 25 Nov 2014 15:21:21 +0000 (15:21 +0000)]
callout(9): add sbt flavors of callout_schedule

Differential Revision: https://reviews.freebsd.org/D1161 (partial)
Reviewed by: jhb, markj
MFC after: 1 week

9 years agoFix ifa_data description.
pluknet [Tue, 25 Nov 2014 15:09:34 +0000 (15:09 +0000)]
Fix ifa_data description.

PR: 176583
Discussed with: glebius
MFC after: 1 week
Sponsored by: Nginx, Inc.

9 years agoReadd protect(2) removed by mistake
bapt [Tue, 25 Nov 2014 14:40:38 +0000 (14:40 +0000)]
Readd protect(2) removed by mistake

Reported by: emaste

9 years agoConvert to usr.bin/ to LIBADD
bapt [Tue, 25 Nov 2014 14:29:10 +0000 (14:29 +0000)]
Convert to usr.bin/ to LIBADD
Reduce overlinking

9 years agoDefines all the libraries needed for usr.bin
bapt [Tue, 25 Nov 2014 14:28:15 +0000 (14:28 +0000)]
Defines all the libraries needed for usr.bin

9 years agoMFamd64: Check for invalid flags in the machine context in sigreturn()
jhb [Tue, 25 Nov 2014 12:52:00 +0000 (12:52 +0000)]
MFamd64: Check for invalid flags in the machine context in sigreturn()
and setcontext().

9 years agoOnly pass 6 arguments to the 'run' function on amd64. amd64's
jhb [Tue, 25 Nov 2014 12:44:18 +0000 (12:44 +0000)]
Only pass 6 arguments to the 'run' function on amd64.  amd64's
makecontext on FreeBSD only supports a maximum of 6 arguments.  This
fixes the setcontext_link test on amd64.

PR: 194828

9 years agoDecouple datamove/done logic from CTL status set.
mav [Tue, 25 Nov 2014 12:22:29 +0000 (12:22 +0000)]
Decouple datamove/done logic from CTL status set.

9 years agoConvert sbin/ to LIBADD
bapt [Tue, 25 Nov 2014 11:23:12 +0000 (11:23 +0000)]
Convert sbin/ to LIBADD
Reduce overlinking

9 years agoDefine libipf internal library
bapt [Tue, 25 Nov 2014 11:22:28 +0000 (11:22 +0000)]
Define libipf internal library

9 years agoConvert bin/ to LIBADD, reduce overlinking allow to build all components as
bapt [Tue, 25 Nov 2014 11:15:40 +0000 (11:15 +0000)]
Convert bin/ to LIBADD, reduce overlinking allow to build all components as
static

9 years agoFix recursive problem with libedit dependency, if you depends on ncursesw and
bapt [Tue, 25 Nov 2014 11:14:42 +0000 (11:14 +0000)]
Fix recursive problem with libedit dependency, if you depends on ncursesw and
not on itself

9 years agoAdd a definition for libxo
bapt [Tue, 25 Nov 2014 11:13:21 +0000 (11:13 +0000)]
Add a definition for libxo

9 years agoFix typo
bapt [Tue, 25 Nov 2014 11:08:58 +0000 (11:08 +0000)]
Fix typo

9 years agoConvert libraries to use LIBADD
bapt [Tue, 25 Nov 2014 11:07:26 +0000 (11:07 +0000)]
Convert libraries to use LIBADD
While here reduce a bit overlinking

9 years agoDefine compiler_rt and ssp_nonshared libraries
bapt [Tue, 25 Nov 2014 11:07:03 +0000 (11:07 +0000)]
Define compiler_rt and ssp_nonshared libraries

9 years agoConvert kerberos to LIBADD and reduce overlinking of the kerberos binaries and
bapt [Tue, 25 Nov 2014 09:57:42 +0000 (09:57 +0000)]
Convert kerberos to LIBADD and reduce overlinking of the kerberos binaries and
libraries

9 years agolibvers and libsl are internal libraries
bapt [Tue, 25 Nov 2014 09:54:05 +0000 (09:54 +0000)]
libvers and libsl are internal libraries

9 years agoThe fallback flag in nsdispatch prevents the fallback implementation of
des [Tue, 25 Nov 2014 09:47:15 +0000 (09:47 +0000)]
The fallback flag in nsdispatch prevents the fallback implementation of
getgroupmembership() from invoking the correct backend in the compat case.
Replace it with a nesting depth counter so it only blocks one level (the
first is the group -> group_compat translation, the second is the actual
backend).  This is one of two bugs that break getgrouplist() in the compat
case, the second being that the backend's own getgroupmembership() method
is ignored.  Unfortunately, that is not easily fixable without a redesign
of our nss implementation (which is also needed to implement the +@group
syntax in /etc/passwd).

PR: 190055
MFC after: 1 week

9 years agoFix make depends with libnetbsd
bapt [Tue, 25 Nov 2014 07:47:44 +0000 (07:47 +0000)]
Fix make depends with libnetbsd

9 years agoAdd definitions of kerberos libraries
bapt [Tue, 25 Nov 2014 07:13:31 +0000 (07:13 +0000)]
Add definitions of kerberos libraries

9 years agoAdjust some checks missed in r274637, now that pi_rname can be NULL.
markj [Tue, 25 Nov 2014 07:01:38 +0000 (07:01 +0000)]
Adjust some checks missed in r274637, now that pi_rname can be NULL.

Additionally fix a misparenthesization in the same check, noticed while
fixing the first bug. This bug only appears to cause problems if the same
USDT probe appears twice within a static function.

X-MFC-With: r274637

9 years agoThe module load address always needs to be included when setting the dm_*_va
markj [Tue, 25 Nov 2014 06:43:17 +0000 (06:43 +0000)]
The module load address always needs to be included when setting the dm_*_va
fields of dt_module_t. Previously, this was only done on architectures where
kernel modules have type ET_REL; this change fixes that. As a result, symbol
name resolution in the stack() action now works properly for kernel modules
on i386.

Reported by: Shrikanth Kamath <shrikanth07@gmail.com>
Tested by: Shrikanth Kamath
Discussed with: avg
MFC after: 2 weeks

9 years agoAdd Apple Intrepid USB controller ID.
jhibbits [Tue, 25 Nov 2014 06:15:00 +0000 (06:15 +0000)]
Add Apple Intrepid USB controller ID.

MFC after: 2 weeks

9 years agoUse ctl_set_success() instead of direct inlining.
mav [Tue, 25 Nov 2014 06:11:05 +0000 (06:11 +0000)]
Use ctl_set_success() instead of direct inlining.

MFC after: 1 week

9 years agoRemove cokane@ from MAINTAINERS for 3dfx(4)/tdfx(4) because their email
ngie [Tue, 25 Nov 2014 05:25:12 +0000 (05:25 +0000)]
Remove cokane@ from MAINTAINERS for 3dfx(4)/tdfx(4) because their email
addresses on file bounce (see r252463 for more details)

Reviewed by: accounts (dhw)

9 years agoRevert r274772: it is not valid on MIPS
emaste [Tue, 25 Nov 2014 03:50:31 +0000 (03:50 +0000)]
Revert r274772: it is not valid on MIPS

Reported by: sbruno

9 years agoAdd missing headers needed by write().
kevlo [Tue, 25 Nov 2014 02:58:38 +0000 (02:58 +0000)]
Add missing headers needed by write().

9 years agoFix the fix
bapt [Tue, 25 Nov 2014 01:12:57 +0000 (01:12 +0000)]
Fix the fix

9 years agolibevent is an internallib
bapt [Tue, 25 Nov 2014 00:51:49 +0000 (00:51 +0000)]
libevent is an internallib

9 years agolibatf-c++ exposes libatf-c abi hence we need to explicit link to atf-c if
bapt [Tue, 25 Nov 2014 00:28:27 +0000 (00:28 +0000)]
libatf-c++ exposes libatf-c abi hence we need to explicit link to atf-c if
atf-c++ is requested

9 years agoDo not overwrite any LIBNETBSD or LIBNETBSDDIR if they are already defined
bapt [Tue, 25 Nov 2014 00:12:25 +0000 (00:12 +0000)]
Do not overwrite any LIBNETBSD or LIBNETBSDDIR if they are already defined

9 years agoFix build.
delphij [Tue, 25 Nov 2014 00:07:56 +0000 (00:07 +0000)]
Fix build.

9 years agoDefine special case for atf which libraries names are different from their
bapt [Tue, 25 Nov 2014 00:01:53 +0000 (00:01 +0000)]
Define special case for atf which libraries names are different from their
declaration

9 years agos/cft/ctf
bapt [Mon, 24 Nov 2014 23:58:04 +0000 (23:58 +0000)]
s/cft/ctf

9 years agoForgot to convert demandoc along with mandoc
bapt [Mon, 24 Nov 2014 23:29:56 +0000 (23:29 +0000)]
Forgot to convert demandoc along with mandoc

9 years agoFix typo
bapt [Mon, 24 Nov 2014 22:35:32 +0000 (22:35 +0000)]
Fix typo

9 years agoFix dependencies in case of building statically
bapt [Mon, 24 Nov 2014 22:32:18 +0000 (22:32 +0000)]
Fix dependencies in case of building statically

9 years agoAvoid code duplication by directly adding _INSTALLLIBS and _PRIVATELIBS into
bapt [Mon, 24 Nov 2014 22:29:16 +0000 (22:29 +0000)]
Avoid code duplication by directly adding _INSTALLLIBS and _PRIVATELIBS into
_LIBRARIES

Reported by: emaste

9 years agoEach time something links to sqlite3 it should link to pthread
bapt [Mon, 24 Nov 2014 22:17:35 +0000 (22:17 +0000)]
Each time something links to sqlite3 it should link to pthread

9 years agoConvert makefs to LIBADD
bapt [Mon, 24 Nov 2014 22:15:30 +0000 (22:15 +0000)]
Convert makefs to LIBADD

Add definition of libnetbsd in src.libnames.mk

9 years agoConvert mandoc to LIBADD
bapt [Mon, 24 Nov 2014 22:12:27 +0000 (22:12 +0000)]
Convert mandoc to LIBADD

While here remove the ugly LDMANDOC

9 years agoSkip L2 addresses lookups for p2p interfaces.
ae [Mon, 24 Nov 2014 21:51:43 +0000 (21:51 +0000)]
Skip L2 addresses lookups for p2p interfaces.

Discussed with: melifaro
Sponsored by: Yandex LLC

9 years agoImport libgpio.
rpaulo [Mon, 24 Nov 2014 21:49:40 +0000 (21:49 +0000)]
Import libgpio.

This is a thin wrapper around the kernel interface which should make
it easier to write GPIO applications.  gpioctl(8) will be converted to
use this library in a separate commit.

Differential Revision: https://reviews.freebsd.org/D1183
Reviewed by: adrian, loos
Discussed on: arm@, embedded@
Relnotes: yes

9 years agoConvert to LIBADD.
brd [Mon, 24 Nov 2014 21:49:01 +0000 (21:49 +0000)]
Convert to LIBADD.

Reviewed by: bapt

9 years agoCorrectly specify -L for internal and private libs
bapt [Mon, 24 Nov 2014 21:39:28 +0000 (21:39 +0000)]
Correctly specify -L for internal and private libs

9 years agoImplement LIBADD
bapt [Mon, 24 Nov 2014 21:31:08 +0000 (21:31 +0000)]
Implement LIBADD

LIBADD will automatically set DPADD and LDADD when needed including their
dependencies, LIBADD automatically handles private and internal libs so that
the end user Makefile does not have to care about it.

This allows to reduce overlinking on the base system leaving the framework get
the dependencies properly.

It also allows to built components binaries statically.

To use it:

Replace:
DPADD= ${LIBARCHIVE} ${LIBSSL}
LDADD= -larchive -lssl

by:
LIBADD= archive ssl

Differential Revision: https://reviews.freebsd.org/D1209
Reviewed by: brooks imp

9 years agoCleanup upstream build infrastructure files that we don't use.
dim [Mon, 24 Nov 2014 20:57:20 +0000 (20:57 +0000)]
Cleanup upstream build infrastructure files that we don't use.

9 years agoDisable the ObjC rewriter modules, since according to rdivacky these are
dim [Mon, 24 Nov 2014 20:54:48 +0000 (20:54 +0000)]
Disable the ObjC rewriter modules, since according to rdivacky these are
only used by Xcode.  This shaves off some compilation time.

9 years agoTentatively bump __FreeBSD_version for the import of llvm/clang 3.5.0.
dim [Mon, 24 Nov 2014 20:20:00 +0000 (20:20 +0000)]
Tentatively bump __FreeBSD_version for the import of llvm/clang 3.5.0.

9 years agoUpdate ObsoleteFiles.inc and OptionalObsoleteFiles.inc for the import of
dim [Mon, 24 Nov 2014 20:18:14 +0000 (20:18 +0000)]
Update ObsoleteFiles.inc and OptionalObsoleteFiles.inc for the import of
llvm/clang 3.5.0.

9 years agoMerge ^/head r274961 through r274978.
dim [Mon, 24 Nov 2014 20:10:12 +0000 (20:10 +0000)]
Merge ^/head r274961 through r274978.

9 years agoFor now, disable using -fsanitize=bounds for the libc ssp tests, when
dim [Mon, 24 Nov 2014 20:07:09 +0000 (20:07 +0000)]
For now, disable using -fsanitize=bounds for the libc ssp tests, when
using clang 3.5.0, until the runtime support (via compiler-rt) is added.
Otherwise, this would lead to link errors about missing support
libraries.

9 years agoEnsure boot2 stays below the limit, by applying a patch from Roman
dim [Mon, 24 Nov 2014 20:01:05 +0000 (20:01 +0000)]
Ensure boot2 stays below the limit, by applying a patch from Roman
Divacky which shrinks the code, and by using the custom llvm option to
disable the Global Value Numbering optimization pass.

9 years agoAdd a bus_get_domain() wrapper around BUS_GET_DOMAIN(). Use this to add
jhb [Mon, 24 Nov 2014 19:55:45 +0000 (19:55 +0000)]
Add a bus_get_domain() wrapper around BUS_GET_DOMAIN().  Use this to add
a new per-device '%domain' sysctl node that returns the NUMA domain a
device is associated with if it is associated with one.

Note that this API is still a WIP and might change before 11.0 actually
ships.

Differential Revision: https://reviews.freebsd.org/D930
Reviewed by: kib, adrian

9 years agoUpdate BSD.include.dist for clang 3.5.0.
dim [Mon, 24 Nov 2014 19:50:01 +0000 (19:50 +0000)]
Update BSD.include.dist for clang 3.5.0.

9 years agoUpdate llvm and clang binary Makefiles.
dim [Mon, 24 Nov 2014 19:47:59 +0000 (19:47 +0000)]
Update llvm and clang binary Makefiles.

9 years agoUpdate llvm and clang library Makefiles.
dim [Mon, 24 Nov 2014 19:46:35 +0000 (19:46 +0000)]
Update llvm and clang library Makefiles.

9 years agoUpdate llvm and clang include files.
dim [Mon, 24 Nov 2014 19:37:11 +0000 (19:37 +0000)]
Update llvm and clang include files.

9 years agoCleanup patch set, and update README.TXT. Add three new patches.
dim [Mon, 24 Nov 2014 18:43:37 +0000 (18:43 +0000)]
Cleanup patch set, and update README.TXT.  Add three new patches.

9 years agoProperly initialize the capability rights for vnodes exported to procstat
jhb [Mon, 24 Nov 2014 18:34:11 +0000 (18:34 +0000)]
Properly initialize the capability rights for vnodes exported to procstat
that aren't for file descriptors (cwd, jdir, tracevp, etc.).

Submitted by: Mikhail <mp@lenta.ru>

9 years agoMerge clang 3.5.0 release from ^/vendor/clang/dist, resolve conflicts,
dim [Mon, 24 Nov 2014 18:11:16 +0000 (18:11 +0000)]
Merge clang 3.5.0 release from ^/vendor/clang/dist, resolve conflicts,
and preserve our customizations, where necessary.

9 years agoMerge llvm 3.5.0 release from ^/vendor/llvm/dist, resolve conflicts, and
dim [Mon, 24 Nov 2014 17:02:24 +0000 (17:02 +0000)]
Merge llvm 3.5.0 release from ^/vendor/llvm/dist, resolve conflicts, and
preserve our customizations, where necessary.

9 years agoAdd busdma sync ops before reading and after modifying the descriptor rings.
ian [Mon, 24 Nov 2014 16:12:11 +0000 (16:12 +0000)]
Add busdma sync ops before reading and after modifying the descriptor rings.

This was previously working by accident because BUSDMA_COHERENT_MEMORY has
always been set to strongly-ordered on arm.  Now we're moving towards
normal-uncacheable (what might be called write-combining on other platforms)
and using the proper sync ops will be more important.  Of course, that
opens the question of just what is the "proper" sync op for shared
concurrent dma access as opposed to accesses where the handoff of control
of the memory has well-defined sequence points that match the available
busdma sync operations.

9 years agoAdd a sysctl `net.link.tap.deladdrs_on_close' to configure whether tap
philip [Mon, 24 Nov 2014 14:00:27 +0000 (14:00 +0000)]
Add a sysctl `net.link.tap.deladdrs_on_close' to configure whether tap
should delete configured addresses and routes when the interface is
closed.  Default is enabled (preserve current behaviour).

MFC after: 1 week

9 years agoMake it possible to specify flags for autofs daemons in rc.conf.
trasz [Mon, 24 Nov 2014 13:02:39 +0000 (13:02 +0000)]
Make it possible to specify flags for autofs daemons in rc.conf.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

9 years agoAdd ip_gre.h to ObsoleteFiles.inc.
ae [Mon, 24 Nov 2014 12:53:56 +0000 (12:53 +0000)]
Add ip_gre.h to ObsoleteFiles.inc.

Sponsored by: Yandex LLC

9 years agoReplace home-grown CTL IO allocator with UMA.
mav [Mon, 24 Nov 2014 11:37:27 +0000 (11:37 +0000)]
Replace home-grown CTL IO allocator with UMA.

Old allocator created significant lock congestion protecting its lists
of preallocated I/Os, while UMA provides much better SMP scalability.
The downside of UMA is lack of reliable preallocation, that could guarantee
successful allocation in non-sleepable environments.  But careful code
review shown, that only CAM target frontend really has that requirement.
Fix that making that frontend preallocate and statically bind CTL I/O for
every ATIO/INOT it preallocates any way.  That allows to avoid allocations
in hot I/O path.  Other frontends either may sleep in allocation context
or can properly handle allocation errors.

On 40-core server with 6 ZVOL-backed LUNs and 7 iSCSI client connections
this change increases peak performance from ~700K to >1M IOPS!  Yay! :)

MFC after: 1 month
Sponsored by: iXsystems, Inc.

9 years agoLimit descriptors and enter capability mode.
brueffer [Mon, 24 Nov 2014 09:31:38 +0000 (09:31 +0000)]
Limit descriptors and enter capability mode.

Differential: D1009
Reviewed by: jonathan, pjd
MFC after: 2 weeks
Relnotes: yes

9 years agoVendor import of clang RELEASE_350/final tag r216957 (effectively, 3.5.0 release):
dim [Mon, 24 Nov 2014 09:15:30 +0000 (09:15 +0000)]
Vendor import of clang RELEASE_350/final tag r216957 (effectively, 3.5.0 release):
https://llvm.org/svn/llvm-project/cfe/tags/RELEASE_350/final@216957

9 years agoVendor import of llvm RELEASE_350/final tag r216957 (effectively, 3.5.0 release):
dim [Mon, 24 Nov 2014 09:08:18 +0000 (09:08 +0000)]
Vendor import of llvm RELEASE_350/final tag r216957 (effectively, 3.5.0 release):
https://llvm.org/svn/llvm-project/llvm/tags/RELEASE_350/final@216957

9 years agoRemove the pidfile clause from the ctl.conf example. Why do everyone
trasz [Mon, 24 Nov 2014 08:13:44 +0000 (08:13 +0000)]
Remove the pidfile clause from the ctl.conf example.  Why do everyone
just copy/paste this line into their configs, it's beyond me.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

9 years agoFix rendering of manpages with mandoc(1)
bapt [Mon, 24 Nov 2014 08:13:21 +0000 (08:13 +0000)]
Fix rendering of manpages with mandoc(1)

9 years agoWe already have "int i" in this scope.
glebius [Mon, 24 Nov 2014 07:57:20 +0000 (07:57 +0000)]
We already have "int i" in this scope.

Submitted by: alc

9 years agoThe arm PJ4B cpu is armv7 architecture, not v6.
ian [Mon, 24 Nov 2014 01:13:58 +0000 (01:13 +0000)]
The arm PJ4B cpu is armv7 architecture, not v6.

If this feels like deja vu... the last time this was fixed in this file
only ARM_MMU_V6 was fixed, this time it's ARM_ARCH_V6 (and this time I
searched for other occurrances of pj4b in here).