]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
9 years agoMerge ^/head r275118 through r275209.
dim [Fri, 28 Nov 2014 13:25:57 +0000 (13:25 +0000)]
Merge ^/head r275118 through r275209.

9 years agoDRM2: fix off-by-one overflow in ioctl processing
rea [Fri, 28 Nov 2014 12:14:59 +0000 (12:14 +0000)]
DRM2: fix off-by-one overflow in ioctl processing

Call to the driver-specific ioctl used to process ioctl number
that will lead to the out-of-bounds access to the ioctl handler
array.

PR: 193367
Approved by: kib
MFC after: 1 week

9 years agoSome device tree configurations place the generic timer under the root
andrew [Fri, 28 Nov 2014 11:49:26 +0000 (11:49 +0000)]
Some device tree configurations place the generic timer under the root
of the tree and not under simplebus. Update the driver to handle this.

Submitted by: Julien Grall <julien.grall AT linaro.org>
MFC after: 1 week

9 years agoWe don't use the hypervisor interrupt, make it optional in the device tree.
andrew [Fri, 28 Nov 2014 11:45:53 +0000 (11:45 +0000)]
We don't use the hypervisor interrupt, make it optional in the device tree.

Submitted by: Julien Grall <julien.grall AT linaro.org>
MFC after: 1 week

9 years agoAssert the state of the process lock and sigact mutex in
kib [Fri, 28 Nov 2014 10:20:00 +0000 (10:20 +0000)]
Assert the state of the process lock and sigact mutex in
kern_sigprocmask() and reschedule_signals().

Discussed with: rea
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

9 years agoStyle changes:
hselasky [Fri, 28 Nov 2014 09:32:07 +0000 (09:32 +0000)]
Style changes:
- Move two IOCTL related defines to the top of the C-file
- Add more comments describing the recently added IOCTL small size and
small align macros

9 years agoCorrectly define constants.
cy [Fri, 28 Nov 2014 04:07:06 +0000 (04:07 +0000)]
Correctly define constants.

MFC after: 1 week

9 years agoFix build broken by r275195.
melifaro [Thu, 27 Nov 2014 23:10:03 +0000 (23:10 +0000)]
Fix build broken by r275195.

9 years agoDo not return unlocked/unreferenced lle in arpresolve/nd6_storelladdr -
melifaro [Thu, 27 Nov 2014 23:06:25 +0000 (23:06 +0000)]
Do not return unlocked/unreferenced lle in arpresolve/nd6_storelladdr -
  return lle flags IFF needed.
Do not pass rte to arpresolve - pass is_gateway flag instead.

9 years agoDo not try to copy header to @dst and than back to ethernet in case of
melifaro [Thu, 27 Nov 2014 21:29:19 +0000 (21:29 +0000)]
Do not try to copy header to @dst and than back to ethernet in case of
pseudo_AF_HDRCMPLT:

we copy media header from mbuf to 'struct sockaddr' @dst in bpf_movein, so
mbuf already contains valid info.

9 years agoRemove leftovers readline being changed to an internallib
bapt [Thu, 27 Nov 2014 20:24:58 +0000 (20:24 +0000)]
Remove leftovers readline being changed to an internallib

9 years agoPut each SUBDIR on a separate line
emaste [Thu, 27 Nov 2014 20:22:46 +0000 (20:22 +0000)]
Put each SUBDIR on a separate line

This makes it easier to review or merge changes that modify some subset
of SUBDIRs.

9 years agoCopy elftoolchain binutils replacements from vendor branch
emaste [Thu, 27 Nov 2014 20:12:13 +0000 (20:12 +0000)]
Copy elftoolchain binutils replacements from vendor branch

Sponsored by: The FreeBSD Foundation

9 years agoRevert part of r275059. Comparing unsigned 8 bit value
rdivacky [Thu, 27 Nov 2014 18:43:44 +0000 (18:43 +0000)]
Revert part of r275059. Comparing unsigned 8 bit value
against -'0' is always false so the conditional block is
optimized away.

9 years agoFix hwpmc sampling for ppc970 (G5-class) processors.
jhibbits [Thu, 27 Nov 2014 18:41:14 +0000 (18:41 +0000)]
Fix hwpmc sampling for ppc970 (G5-class) processors.

With this, hwpmc sampling now works on these processors.

MFC after: 3 weeks
Relnotes: yes

9 years agoo NetBSD 6.1.5, OpenBSD 5.6, FreeBSD 10.1, DragonFly 4.0.1 added.
maxim [Thu, 27 Nov 2014 14:54:17 +0000 (14:54 +0000)]
o NetBSD 6.1.5, OpenBSD 5.6, FreeBSD 10.1, DragonFly 4.0.1 added.

9 years agoclean_build is not always done (*), so move the mkdir to the first step
n_hibma [Thu, 27 Nov 2014 09:17:42 +0000 (09:17 +0000)]
clean_build is not always done (*), so move the mkdir to the first step
that needs it and is always done: make.conf build.

(*) In our build environment we actually never do a clean build unless
instructed to do so, to make sure we do not accidentally delete the
built world when on a tight schedule.

9 years agoFix hwpmc sampling for MPC74xxx (G4) processors.
jhibbits [Thu, 27 Nov 2014 06:42:34 +0000 (06:42 +0000)]
Fix hwpmc sampling for MPC74xxx (G4) processors.

With this, hwpmc sampling now works correctly on these processors.

MFC after: 3 weeks
Relnotes: yes

9 years agoConvert sbin/mdconfig/tests from prove format tests to ATF format tests
ngie [Thu, 27 Nov 2014 06:04:00 +0000 (06:04 +0000)]
Convert sbin/mdconfig/tests from prove format tests to ATF format tests

As a side effect...
1. The tests now checks for the root user before continuing with kyua, which is
   more visible than the test being skipped with the TAP protocol
2. The tests work with devices that aren't /dev/md0 by caching the device
   attached during the test to a file, and later use the cached information to
   detach the device in the cleanup routine
3. The tests no longer require perl to run

MFC after: 1 week
PR: 191191
Sponsored by: EMC / Isilon Storage Division

9 years agoANSIfy b64_pton
emaste [Thu, 27 Nov 2014 02:15:35 +0000 (02:15 +0000)]
ANSIfy b64_pton

9 years agoInit array field in the proper place.
kevlo [Thu, 27 Nov 2014 01:37:01 +0000 (01:37 +0000)]
Init array field in the proper place.

Obtained from: OpenBSD

9 years agoAdd patch file for r275160.
dim [Thu, 27 Nov 2014 00:39:01 +0000 (00:39 +0000)]
Add patch file for r275160.

9 years agoPull in r222856 from upstream llvm trunk (by David Majnemer):
dim [Thu, 27 Nov 2014 00:33:31 +0000 (00:33 +0000)]
Pull in r222856 from upstream llvm trunk (by David Majnemer):

  Revert "Added inst combine transforms for single bit tests from Chris's note"

  This reverts commit r210006, it miscompiled libapr which is used in who
  knows how many projects.

  A test has been added to ensure that we don't regress again.

This fixes a miscompilation in libapr, which caused problems in svnlite.

9 years agoRemove ip4_input() declaration. It was removed in r275133.
ae [Thu, 27 Nov 2014 00:27:39 +0000 (00:27 +0000)]
Remove ip4_input() declaration. It was removed in r275133.

MFC after: 1 month

9 years agoAdd patch files for r275152, r275153 and r275154.
dim [Wed, 26 Nov 2014 23:57:12 +0000 (23:57 +0000)]
Add patch files for r275152, r275153 and r275154.

9 years agoPull in r221900 from upstream clang trunk (by Ed Maste):
dim [Wed, 26 Nov 2014 23:54:23 +0000 (23:54 +0000)]
Pull in r221900 from upstream clang trunk (by Ed Maste):

  Hook up FreeBSD AArch64 support

  Patch from Andrew Turner.

9 years agoPull in r216571 from upstream llvm trunk (by Zachary Turner):
dim [Wed, 26 Nov 2014 23:53:35 +0000 (23:53 +0000)]
Pull in r216571 from upstream llvm trunk (by Zachary Turner):

  Fix some semantic usability issues with DynamicLibrary.

  This patch allows invalid DynamicLibrary instances to be
  constructed, and fixes the const-correctness of the isValid()
  method.

  No functional change.

This is needed for supporting the upgrade to a newer LLDB snapshot.

9 years agoPull in r215352 from upstream llvm trunk (by Tim Northover):
dim [Wed, 26 Nov 2014 23:52:59 +0000 (23:52 +0000)]
Pull in r215352 from upstream llvm trunk (by Tim Northover):

  AArch64: add support for dynamic-loader relocations

  LLD needs them, and it's good to be able to print them properly when
  our object dumpers encounter them.

  Patch by Daniel Stewart.

This is needed for supporting the upgrade to a newer LLDB snapshot.

9 years agoSince for clang 3.5.0 ARM EHABI is now the default, the -mllvm
dim [Wed, 26 Nov 2014 23:28:16 +0000 (23:28 +0000)]
Since for clang 3.5.0 ARM EHABI is now the default, the -mllvm
-arm-enable-ehabi flag is no longer supported.  Use it only for older
versions of clang.

9 years agoIncrease default and maximum callchain depths
emaste [Wed, 26 Nov 2014 20:56:08 +0000 (20:56 +0000)]
Increase default and maximum callchain depths

Bump the default from 16 to 32, to accommodate kernel flamegraphs.
Bump the maximum from 32 to 128, to accommodate deep user stacks.

Reviewed by: gnn
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D1203

9 years agoRegen src.conf(5) after r275138.
gjb [Wed, 26 Nov 2014 20:44:54 +0000 (20:44 +0000)]
Regen src.conf(5) after r275138.

Sponsored by: The FreeBSD Foundation

9 years agoWhitespace cleanup to fix rendering nits in
gjb [Wed, 26 Nov 2014 20:43:09 +0000 (20:43 +0000)]
Whitespace cleanup to fix rendering nits in
src.conf(5).

Sponsored by: The FreeBSD Foundation

9 years agoAdd PCI ID for Intel Lynx Point LP controller.
adrian [Wed, 26 Nov 2014 20:34:05 +0000 (20:34 +0000)]
Add PCI ID for Intel Lynx Point LP controller.

PR: kern/195398
Submitted by: grembo
Obtained from: DragonflyBSD
MFC after: 1 week

9 years agoMake igb and ixgbe check tunables at probe time.
alfred [Wed, 26 Nov 2014 20:19:36 +0000 (20:19 +0000)]
Make igb and ixgbe check tunables at probe time.

This allows one to make a kernel module to tune the
number of queues before the driver loads.

This is needed so that a module at SI_SUB_CPU can set
tunables for these drivers to take.  Otherwise getenv
is called too early by the TUNABLE macros.

Reviewed by: smh
Phabric: https://reviews.freebsd.org/D1149

9 years agoRemove additional platform-specific LLDB code
emaste [Wed, 26 Nov 2014 18:03:25 +0000 (18:03 +0000)]
Remove additional platform-specific LLDB code

9 years agoRevert LLDB changes for Clang/LLVM 3.5 API compatibility
emaste [Wed, 26 Nov 2014 18:02:22 +0000 (18:02 +0000)]
Revert LLDB changes for Clang/LLVM 3.5 API compatibility

This reverts the following upstream revisions:

      SVN      git
    214335  59a1f270
    214340  42f16b1e

9 years agoDo not use xform_ipip as decapsulation fallback.
ae [Wed, 26 Nov 2014 17:44:49 +0000 (17:44 +0000)]
Do not use xform_ipip as decapsulation fallback.

xform_ipip was used as fallback with low priority for IPIP
encapsulated packets that were decrypted. In some cases
it can decapsulate packets, that it shouldn't. This leads to situations,
when wrong configurations are magically working. Also it can propagate
wrong ingress interface and this can break security.

Now we redesigned the IPSEC code and IPIP encapsulation is called directly
from ipsec_output, and decapsulation is done in the ipsec_input with m_striphdr.

Differential Revision: https://reviews.freebsd.org/D1220
MFC after: 1 month
Sponsored by: Yandex LLC

9 years agoUpdate build for LLDB snapshot at upstream rev 216948
emaste [Wed, 26 Nov 2014 17:40:03 +0000 (17:40 +0000)]
Update build for LLDB snapshot at upstream rev 216948

Sponsored by: DARPA, AFRL

9 years agoRemove LLDB platform support not currently of interest to us
emaste [Wed, 26 Nov 2014 17:32:20 +0000 (17:32 +0000)]
Remove LLDB platform support not currently of interest to us

9 years agoUpdate paths for FreeBSD build infrastructure
emaste [Wed, 26 Nov 2014 17:29:01 +0000 (17:29 +0000)]
Update paths for FreeBSD build infrastructure

This same change was applied upstream in a later verison.

9 years agoThere is no Python in the FreeBSD base system
emaste [Wed, 26 Nov 2014 17:24:12 +0000 (17:24 +0000)]
There is no Python in the FreeBSD base system

9 years agoAvoid need for AppleObjCRuntime on FreeBSD
emaste [Wed, 26 Nov 2014 17:22:37 +0000 (17:22 +0000)]
Avoid need for AppleObjCRuntime on FreeBSD

Since it is unlikely to provide much value to us, just #if 0 it away

Sponsored by: DARPA, AFRL

9 years agoRevert LLDB changes for Clang/LLVM 3.5 API compatibility
emaste [Wed, 26 Nov 2014 17:09:58 +0000 (17:09 +0000)]
Revert LLDB changes for Clang/LLVM 3.5 API compatibility

This reverts the following upstream revisions:

     SVN       git
    214501  26d6f063
    215969  a083c0db
    216603  ee9cd340
    216810  f534f503

Sponsored by: DARPA, AFRL

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 agoFix WWNN/WWPN generation for virtual channels.
mav [Wed, 26 Nov 2014 16:05:01 +0000 (16:05 +0000)]
Fix WWNN/WWPN generation for virtual channels.

MFC after: 1 week

9 years agoFix incorrect check, blocking MULTIID functionality.
mav [Wed, 26 Nov 2014 15:03:21 +0000 (15:03 +0000)]
Fix incorrect check, blocking MULTIID functionality.

MFC after: 1 week

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 agoThe process spin lock currently has the following distinct uses:
kib [Wed, 26 Nov 2014 14:10:00 +0000 (14:10 +0000)]
The process spin lock currently has the following distinct uses:

- Threads lifetime cycle, in particular, counting of the threads in
  the process, and interlocking with process mutex and thread lock.
  The main reason of this is that turnstile locks are after thread
  locks, so you e.g. cannot unlock blockable mutex (think process
  mutex) while owning thread lock.

- Virtual and profiling itimers, since the timers activation is done
  from the clock interrupt context.  Replace the p_slock by p_itimmtx
  and PROC_ITIMLOCK().

- Profiling code (profil(2)), for similar reason.  Replace the p_slock
  by p_profmtx and PROC_PROFLOCK().

- Resource usage accounting.  Need for the spinlock there is subtle,
  my understanding is that spinlock blocks context switching for the
  current thread, which prevents td_runtime and similar fields from
  changing (updates are done at the mi_switch()).  Replace the p_slock
  by p_statmtx and PROC_STATLOCK().

The split is done mostly for code clarity, and should not affect
scalability.

Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

9 years agoFix SA_SIGINFO | SA_RESETHAND handling. The sysent' sv_sendsig()
kib [Wed, 26 Nov 2014 14:09:04 +0000 (14:09 +0000)]
Fix SA_SIGINFO | SA_RESETHAND handling. The sysent' sv_sendsig()
method needs pre-reset state of the ps_siginfo to correctly construct
signal frame.

Move sigdflt() call after the sv_sendsig() invocation in postsig().
Simultaneously extract common code from trapsignal() and postsig()
into new helper postsig_done().

Submitted by: rea
MFC after: 1 week

9 years agoSome microoptimizations.
mav [Wed, 26 Nov 2014 13:56:54 +0000 (13:56 +0000)]
Some microoptimizations.

MFC after: 1 month

9 years agoMake isp_find_pdb_by_*() search for targets in portdb in reverse order.
mav [Wed, 26 Nov 2014 12:25:00 +0000 (12:25 +0000)]
Make isp_find_pdb_by_*() search for targets in portdb in reverse order.

Records with target_mode == 1 are allocated from the end of portdb, so it
seems logical to start search from the end not traverse whole array.

MFC after: 1 month

9 years agoAdd new USB quirk.
hselasky [Wed, 26 Nov 2014 10:58:08 +0000 (10:58 +0000)]
Add new USB quirk.

MFC after: 1 week
PR: 195372

9 years agoAdd support for 64-byte CQE size.
hselasky [Wed, 26 Nov 2014 09:51:38 +0000 (09:51 +0000)]
Add support for 64-byte CQE size.

Sponsored by: Mellanox Technologies
MFC after: 3 days

9 years agoRemove MINUSLPAM the LIBADD framework handles static dependencies just fine
bapt [Wed, 26 Nov 2014 08:14:30 +0000 (08:14 +0000)]
Remove MINUSLPAM the LIBADD framework handles static dependencies just fine

9 years agoConvert to LIBADD
bapt [Wed, 26 Nov 2014 08:12:21 +0000 (08:12 +0000)]
Convert to LIBADD

9 years agoConvert to LIBADD
bapt [Wed, 26 Nov 2014 08:09:44 +0000 (08:09 +0000)]
Convert to LIBADD

9 years agoAdd bunch of PCI IDs of Intel Wildcat Point (9 Series) chipsets.
mav [Wed, 26 Nov 2014 04:23:21 +0000 (04:23 +0000)]
Add bunch of PCI IDs of Intel Wildcat Point (9 Series) chipsets.

MFC after: 1 week

9 years agoRevert r273060 per discussion with avg@ as we need to make L2ARC
delphij [Wed, 26 Nov 2014 02:20:25 +0000 (02:20 +0000)]
Revert r273060 per discussion with avg@ as we need to make L2ARC
aware of 4K devices and this one is not the right fix anyway.

9 years agoConvert to LIBADD
bapt [Tue, 25 Nov 2014 22:45:35 +0000 (22:45 +0000)]
Convert to LIBADD

9 years agoRemove now useless USEPRIVATELIB
bapt [Tue, 25 Nov 2014 22:43:17 +0000 (22:43 +0000)]
Remove now useless USEPRIVATELIB

9 years agoRemove all remnant ugly LD<lbname> but atf one until the aft framework knows
bapt [Tue, 25 Nov 2014 22:39:59 +0000 (22:39 +0000)]
Remove all remnant ugly LD<lbname> but atf one until the aft framework knows
about LIBADD

9 years agoConvert to LIBADD
bapt [Tue, 25 Nov 2014 22:37:27 +0000 (22:37 +0000)]
Convert to LIBADD

9 years agoReduce overlinking
bapt [Tue, 25 Nov 2014 22:25:13 +0000 (22:25 +0000)]
Reduce overlinking
The framework now ensure by itself that pthread is added to the link chain
as the last component if linked to kerberos hence avoid with out any explicit
addition prevent issue like CVE-2014-8475

9 years agoRegister the explicit (pthread) and implicit (for static) dependencies for
bapt [Tue, 25 Nov 2014 22:17:31 +0000 (22:17 +0000)]
Register the explicit (pthread) and implicit (for static) dependencies for
kerberos

9 years agoDefines the libssh dependencies
bapt [Tue, 25 Nov 2014 22:10:31 +0000 (22:10 +0000)]
Defines the libssh dependencies

9 years agoConvert svn to LIBADD reduce overlinking
bapt [Tue, 25 Nov 2014 21:43:51 +0000 (21:43 +0000)]
Convert svn to LIBADD reduce overlinking

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