]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
8 years agoMFV r296505: 6531 Provide mechanism to artificially limit disk performance
mav [Tue, 8 Mar 2016 17:27:13 +0000 (17:27 +0000)]
MFV r296505: 6531 Provide mechanism to artificially limit disk performance

Reviewed by: Paul Dagnelie <pcd@delphix.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: George Wilson <george.wilson@delphix.com>
Approved by: Dan McDonald <danmcd@omniti.com>
Author: Prakash Surya <prakash.surya@delphix.com>

illumos/illumos-gate@97e81309571898df9fdd94aab1216dfcf23e060b

8 years agoDelete empty sys/modules/aio/ directory
ngie [Tue, 8 Mar 2016 16:47:23 +0000 (16:47 +0000)]
Delete empty sys/modules/aio/ directory

This was missed in r296277

X-MFC with: r296277
Sponsored by: EMC / Isilon Storage Division

8 years agoFollow-up r296324: Fix STATICOBJS dependency guesses conditions.
bdrewery [Tue, 8 Mar 2016 16:12:55 +0000 (16:12 +0000)]
Follow-up r296324: Fix STATICOBJS dependency guesses conditions.

Reported by: antoine
Pointyhat to: bdrewery
Sponsored by: EMC / Isilon Storage Division

8 years agoDoes not leak fp. While here remove bogus cast of fp->f_data.
dchagin [Tue, 8 Mar 2016 15:55:43 +0000 (15:55 +0000)]
Does not leak fp. While here remove bogus cast of fp->f_data.

MFC after: 1 week

8 years agoLinux accept() system call return EOPNOTSUPP errno instead of EINVAL
dchagin [Tue, 8 Mar 2016 15:15:34 +0000 (15:15 +0000)]
Linux accept() system call return EOPNOTSUPP errno instead of EINVAL
for UDP sockets.

MFC after: 1 week

8 years agoAccording to POSIX and Linux implementation the alarm() system call
dchagin [Tue, 8 Mar 2016 15:12:49 +0000 (15:12 +0000)]
According to POSIX and Linux implementation the alarm() system call
is always successfull.
So, ignore any errors and return 0 as a Linux do.

XXX. Unlike POSIX, Linux in case when the invalid seconds value specified
always return 0, so in that case Linux does not return proper remining time.

MFC after: 1 week

8 years agoLink the newly created process to the corresponding parent as
dchagin [Tue, 8 Mar 2016 15:08:22 +0000 (15:08 +0000)]
Link the newly created process to the corresponding parent as
if CLONE_PARENT is set, then the parent of the new process will
be the same as that of the calling process.

MFC after: 1 week

8 years agoMention resolvconf(8) in resolv.conf(5).
trasz [Tue, 8 Mar 2016 11:04:08 +0000 (11:04 +0000)]
Mention resolvconf(8) in resolv.conf(5).

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

8 years agocxgbe(4): Minor updates to the shared routines that deal with firmware images.
np [Tue, 8 Mar 2016 10:07:40 +0000 (10:07 +0000)]
cxgbe(4): Minor updates to the shared routines that deal with firmware images.

8 years agocxgbe(4): Fix t4_tp_get_rdma_stats.
np [Tue, 8 Mar 2016 09:40:45 +0000 (09:40 +0000)]
cxgbe(4): Fix t4_tp_get_rdma_stats.

8 years agocxgbe(4): Many new functions in the shared code, unused at this time.
np [Tue, 8 Mar 2016 09:34:56 +0000 (09:34 +0000)]
cxgbe(4): Many new functions in the shared code, unused at this time.

Obtained from: Chelsio Communications

8 years agocxgbe(4): Use t4_link_down_rc_str in shared code to decode the reason
np [Tue, 8 Mar 2016 08:59:34 +0000 (08:59 +0000)]
cxgbe(4): Use t4_link_down_rc_str in shared code to decode the reason
the link is down, instead of doing it in OS specific code.

8 years agoAdd MIPS_INTRNG to sys/conf/options.mips
sgalabov [Tue, 8 Mar 2016 08:57:53 +0000 (08:57 +0000)]
Add MIPS_INTRNG to sys/conf/options.mips

This was somehow missed in the commit of
https://reviews.freebsd.org/D5182
although it was in the original diff submitted for review.

Approved by: adrian (mentor)
Differential Revision: https://reviews.freebsd.org/D5568

8 years agocxgbe(4): Updates to shared routines that get/set various parameters via
np [Tue, 8 Mar 2016 08:39:53 +0000 (08:39 +0000)]
cxgbe(4): Updates to shared routines that get/set various parameters via
the firmware.

Obtained from: Chelsio Communications

8 years agocxgbe(4): Remove __devinit and SPEED_<foo> as part of catch up with
np [Tue, 8 Mar 2016 08:13:37 +0000 (08:13 +0000)]
cxgbe(4): Remove __devinit and SPEED_<foo> as part of catch up with
internal shared code.

Obtained from: Chelsio Communications

8 years agocxgbe(4): Updates to the shared routines that deal with the serial EEPROM,
np [Tue, 8 Mar 2016 07:48:55 +0000 (07:48 +0000)]
cxgbe(4): Updates to the shared routines that deal with the serial EEPROM,
flash, and VPD.

Obtained from: Chelsio Communications

8 years agocxgbe(4): Updates to mailbox routines in the shared code.
np [Tue, 8 Mar 2016 06:27:47 +0000 (06:27 +0000)]
cxgbe(4): Updates to mailbox routines in the shared code.

Obtained from: Chelsio Communications

8 years agocxgbe(4): Update the interrupt handlers for hardware errors.
np [Tue, 8 Mar 2016 02:44:32 +0000 (02:44 +0000)]
cxgbe(4): Update the interrupt handlers for hardware errors.

Obtained from: Chelsio Communications

8 years agocxgbe(4): Overhaul the shared code that deals with the chip's TP block,
np [Tue, 8 Mar 2016 02:04:05 +0000 (02:04 +0000)]
cxgbe(4): Overhaul the shared code that deals with the chip's TP block,
which is responsible for filtering and RSS.

Add the ability to use filters that match on PF/VF (aka "VNIC id") while
here.  This is mutually exclusive with filtering on outer VLAN tag with
Q-in-Q.

Sponsored by: Chelsio Communications

8 years agoFix a couple of silly mistakes in r291962.
markj [Tue, 8 Mar 2016 00:46:03 +0000 (00:46 +0000)]
Fix a couple of silly mistakes in r291962.

- Handle the case where no DOF helper is provided. This occurs with the
  currently-unused DTRACEHIOC_ADD ioctl.
- Fix some checks that prevented the loading DOF in the (non-default)
  lazyload mode.

8 years agoFix fasttrap tracepoint locking.
markj [Tue, 8 Mar 2016 00:43:03 +0000 (00:43 +0000)]
Fix fasttrap tracepoint locking.

Upstream, tracepoints are protected by per-CPU mutexes. An unlinked
tracepoint may be freed once all the tracepoint mutexes have been acquired
and released - this is done in fasttrap_mod_barrier(). This mechanism was
not properly ported: in some places, the proc lock is used in place of a
tracepoint lock, and in others the locking is omitted entirely. This change
implements tracepoint locking with an rmlock, where the read lock is used
in fasttrap probe context. As a side effect, this fixes a recursion on the
proc lock when the raise action is used from a userland probe.

MFC after: 1 month

8 years agocxgbe(4): Add a struct sge_params to store per-adapter SGE parameters.
np [Tue, 8 Mar 2016 00:23:56 +0000 (00:23 +0000)]
cxgbe(4): Add a struct sge_params to store per-adapter SGE parameters.
Move the code that reads all the parameters to t4_init_sge_params in the
shared code.  Use these per-adapter values instead of globals.

Sponsored by: Chelsio Communications

8 years agoRemove the fasttrap implementation for sparc.
markj [Tue, 8 Mar 2016 00:18:46 +0000 (00:18 +0000)]
Remove the fasttrap implementation for sparc.

Other machine-dependent code required for DTrace on sparc is not present in
the tree, so there's no point to keeping the fasttrap code.

8 years agoFix a sneaky bug where we were missing an extern
rrs [Tue, 8 Mar 2016 00:16:34 +0000 (00:16 +0000)]
Fix a sneaky bug where we were missing an extern
to get the rxt threshold.. and thus created our own defaulted to 0 :-(

Sponsored by: Netflix Inc

8 years agoMFV r296306: 6604 harden DIF bounds checking
markj [Tue, 8 Mar 2016 00:14:14 +0000 (00:14 +0000)]
MFV r296306: 6604 harden DIF bounds checking

Reviewed by: Alex Wilson <alex.wilson@joyent.com>
Reviewed by: Patrick Mooney <patrick.mooney@joyent.com>
Reviewed by: Dan McDonald <danmcd@omniti.com>
Approved by: Robert Mustacchi <rm@joyent.com>
Author: Bryan Cantrill <bryan@joyent.com>

illumos/illumos-gate@1c0cef67dba05c477dba779bc99224693e809a14

MFC after: 2 weeks

8 years agolibc/{i386,amd64}: Do not export .cerror when building WITHOUT_SYMVER
emaste [Tue, 8 Mar 2016 00:09:34 +0000 (00:09 +0000)]
libc/{i386,amd64}: Do not export .cerror when building WITHOUT_SYMVER

Further to r240152 (i386) and r240178 (amd64), hide the .cerror symbol
so that it is not exported if symbol versioning is not in use.  Without
this change WITHOUT_SYMVER libc contains .text relocations for .cerror,
as described in LLVM PR 26813 (http://llvm.org/pr26813).

This is a no-op for the regular build as the symbol version script
already controls .cerror visibility.

PR: 207712
Submitted by: Rafael EspĂ­ndola
Reviewed by: jilles, kib
Differential Revision: https://reviews.freebsd.org/D5571

8 years agoAdd missing break for r296472.
bdrewery [Mon, 7 Mar 2016 21:45:24 +0000 (21:45 +0000)]
Add missing break for r296472.

This was lost in git rebasing, though it has no functional change.

X-MFC-With: r296472
MFC after: 1 week

8 years agoRequire kldunload -f to unload.
bdrewery [Mon, 7 Mar 2016 21:39:29 +0000 (21:39 +0000)]
Require kldunload -f to unload.

Code may still be executing from the wrappers at unload time and thus is
not generally safe to unload.  Converting the wrappers to use
EVENTHANDLER(9) will allow this to safely drain on active threads in
hooks.  More work on EVENTHANDLER(9) is needed first.

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

8 years agocxgbe(4): Updated register dumps.
np [Mon, 7 Mar 2016 21:11:35 +0000 (21:11 +0000)]
cxgbe(4): Updated register dumps.

- Get the list of registers to read during a regdump from the shared
  code instead of the OS specific code.  This follows a similar move
  internally.  The shared code includes the list for T6.

- Update cxgbetool to be able to decode T5 VF, T6, and T6 VF register
  dumps (and catch up with some updates to T4 and T5 register decode).

Obtained from: Chelsio Communications
Sponsored by: Chelsio Communications

8 years agoOnly call bwillwrite() for logging to vnodes, as other fo_write() calls do.
bdrewery [Mon, 7 Mar 2016 21:10:19 +0000 (21:10 +0000)]
Only call bwillwrite() for logging to vnodes, as other fo_write() calls do.

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

8 years agotunefs: clear the entire previous label when setting a new one
emaste [Mon, 7 Mar 2016 19:14:26 +0000 (19:14 +0000)]
tunefs: clear the entire previous label when setting a new one

strlcpy(3) null terminates but does not zero-fill the buffer, so would
leave beind any portion of the previous volume label longer than the
new one.

Note that tunefs only allows -L args up to a length of MAXVOLLEN-1, so
the stored label will be null-terminated (whether or not required by
UFS).

Reviewed by: imp
Sponsored by: The FreeBSD Foundation

8 years agoConvert all panics from the link_elf_obj kernel linker for object
kib [Mon, 7 Mar 2016 18:44:06 +0000 (18:44 +0000)]
Convert all panics from the link_elf_obj kernel linker for object
files format into printfs and errors to caller.  Some leaks of
resources are there, but the same leaks are present in other error
pathes.  With the change, the kernel at least boots even when module
with unexpected or corrupted ELF structure is preloaded.

Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks

8 years agoDon't install debug symbols onto embedded images...
imp [Mon, 7 Mar 2016 18:32:12 +0000 (18:32 +0000)]
Don't install debug symbols onto embedded images...

8 years agoAs reported on the transport@ and current@ mailing lists, the FreeBSD TCP
jtl [Mon, 7 Mar 2016 15:00:34 +0000 (15:00 +0000)]
As reported on the transport@ and current@ mailing lists, the FreeBSD TCP
stack is not compliant with RFC 7323, which requires that TCP stacks send
a timestamp option on all packets (except, optionally, RSTs) after the
session is established.

This patch adds that support. It also adds a TCP signature option to the
packet, if appropriate.

PR: 206047
Differential Revision: https://reviews.freebsd.org/D4808
Reviewed by: hiren
MFC after: 2 weeks
Sponsored by: Juniper Networks

8 years agoSome cleanup in tcp_respond() in preparation for another change:
jtl [Mon, 7 Mar 2016 14:59:49 +0000 (14:59 +0000)]
Some cleanup in tcp_respond() in preparation for another change:
- Reorder variables by size
- Move initializer closer to where it is used
- Remove unneeded variable

Differential Revision: https://reviews.freebsd.org/D4808
Reviewed by: hiren
MFC after: 2 weeks
Sponsored by: Juniper Networks

8 years agoRun the LinuxKPI PCI shutdown handler free of the Giant mutex.
hselasky [Mon, 7 Mar 2016 14:35:31 +0000 (14:35 +0000)]
Run the LinuxKPI PCI shutdown handler free of the Giant mutex.

MFC after: 1 week
Sponsored by: Mellanox Technologies

8 years agoUpdate meaning of -n argument.
mav [Mon, 7 Mar 2016 10:56:21 +0000 (10:56 +0000)]
Update meaning of -n argument.

Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com>
MFC after: 1 week

8 years agoRevert r296175
pfg [Sun, 6 Mar 2016 21:32:54 +0000 (21:32 +0000)]
Revert r296175
Undo update of libedit 2016-02-27

Something in libedit appears to be causing breakage in lldb38.
The changes are not generally huge but they are suficient to
to justify reverting for now.

Reported by: novel, bapt

8 years agolibc: Add some tests for memcmp().
jilles [Sun, 6 Mar 2016 18:41:48 +0000 (18:41 +0000)]
libc: Add some tests for memcmp().

8 years agoAdd an UPDATING entry about installing the boot loaders after installing
dim [Sun, 6 Mar 2016 17:34:21 +0000 (17:34 +0000)]
Add an UPDATING entry about installing the boot loaders after installing
the kernel, on amd64.

8 years agosh: Fix some dead stores.
jilles [Sun, 6 Mar 2016 17:24:02 +0000 (17:24 +0000)]
sh: Fix some dead stores.

Found by: clang static analyzer

8 years agoSince kernel modules can now contain sections of type SHT_AMD64_UNWIND,
dim [Sun, 6 Mar 2016 15:57:43 +0000 (15:57 +0000)]
Since kernel modules can now contain sections of type SHT_AMD64_UNWIND,
the boot loader should not skip over these anymore while loading images.
Otherwise the kernel can still panic when it doesn't find the .eh_frame
section belonging to the .rela.eh_frame section.

Unfortunately this will require installing boot loaders from sys/boot
before attempting to boot with a new kernel.

Reviewed by: kib
MFC after: 2 weeks
X-MFC-With: r296419

8 years agoAdd another libclang_rt library to ObsoleteFiles, so the enclosing
dim [Sun, 6 Mar 2016 14:37:49 +0000 (14:37 +0000)]
Add another libclang_rt library to ObsoleteFiles, so the enclosing
directory can be removed completely.

Noticed by: Oliver Hartmann <ohartman@zedat.fu-berlin.de>

8 years agoAdd SMP support for the Allwinner A31 and A31s. This updated the existing
andrew [Sun, 6 Mar 2016 11:41:08 +0000 (11:41 +0000)]
Add SMP support for the Allwinner A31 and A31s. This updated the existing
code for the A20 to use the new PLATFORM_SMP interface, and extends it to
add support for the new SoCs allowing for both to coexist within the same
kernel.

Submitted by: Emmanuel Vadot <manu@bidouilliste.com>
Reviewed by: jmcneill
Differential Revision: https://reviews.freebsd.org/D5342

8 years agoAllow O_CLOEXEC to be used in dbopen() flags
lidl [Sun, 6 Mar 2016 04:38:08 +0000 (04:38 +0000)]
Allow O_CLOEXEC to be used in dbopen() flags

There is also a small portability crutch, also present in NetBSD,
to allow compiling on a system that doesn't define O_CLOEXEC.

Approved by: rpaulo (mentor)
Obtained from: NetBSD (r1.17, r1.18)
Differential Revision: https://reviews.freebsd.org/D5549

8 years agoIn the link_elf_obj.c, handle sections of type SHT_AMD64_UNWIND same
kib [Sun, 6 Mar 2016 00:31:11 +0000 (00:31 +0000)]
In the link_elf_obj.c, handle sections of type SHT_AMD64_UNWIND same
as SHT_PROGBITS.  This is needed after the clang 3.8 import, which
generates that type for .eh_frame section, which had SHT_PROGBITS type
before.

Reported by:  Nikolai Lifanov <lifanov@mail.lifanov.com>
PR: 207729
Tested by: dim (previous version)
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks

8 years agoConvert two llvm source files to native line ending, which was also done
dim [Sat, 5 Mar 2016 21:10:34 +0000 (21:10 +0000)]
Convert two llvm source files to native line ending, which was also done
upstream.  Merging doesn't automatically do this, unfortunately.

8 years agoUpgrade our copies of clang, llvm, lldb and compiler-rt to 3.8.0
dim [Sat, 5 Mar 2016 20:24:31 +0000 (20:24 +0000)]
Upgrade our copies of clang, llvm, lldb and compiler-rt to 3.8.0
release.

Please note that from 3.5.0 onwards, clang, llvm and lldb require C++11
support to build; see UPDATING for more information.

Release notes for llvm and clang will soon be available here:
<http://llvm.org/releases/3.8.0/docs/ReleaseNotes.html>
<http://llvm.org/releases/3.8.0/tools/clang/docs/ReleaseNotes.html>

Thanks to Ed Maste, Roman Divacky, Davide Italiano and Antoine Brodin
for their help.

Relnotes: yes

8 years agoSignal handling within tcsh vfork code path will conflict with some system
mp [Sat, 5 Mar 2016 19:55:42 +0000 (19:55 +0000)]
Signal handling within tcsh vfork code path will conflict with some system
libraries (such as libthr) which maintain their own signal state. This
change adds the tcsh SAVESIGVEC option to save and restore the sigvecs for
the signals the child modifies before it execs.

Reviewed by: kib, rwatson
Reported by: kib

8 years agoUpgrade to Unbound 1.5.8.
des [Sat, 5 Mar 2016 19:29:18 +0000 (19:29 +0000)]
Upgrade to Unbound 1.5.8.

8 years agoPut the tentative merge-back date in ObsoleteFiles.inc.
dim [Sat, 5 Mar 2016 16:05:06 +0000 (16:05 +0000)]
Put the tentative merge-back date in ObsoleteFiles.inc.

8 years agoFix "files" arguments
bapt [Sat, 5 Mar 2016 15:53:06 +0000 (15:53 +0000)]
Fix "files" arguments

8 years agoMerge ^/head r296369 through r296409.
dim [Sat, 5 Mar 2016 15:34:54 +0000 (15:34 +0000)]
Merge ^/head r296369 through r296409.

8 years agoAdd support to enable/disable both the EHCI and OHCI Allwinner clocks. This
andrew [Sat, 5 Mar 2016 13:17:53 +0000 (13:17 +0000)]
Add support to enable/disable both the EHCI and OHCI Allwinner clocks. This
adds a lock to ensure only a single device is accessing the hardware. A
reference count is added to only enable when we start to use the clock,
and to disable after we have finished needing the clock.

This was extracted from a larger review to add OHCI support to the
Allwinner SoCs.

Submitted by: Emmanuel Vadot <manu@bidouilliste.com>
Reviewed by: jmcneill
X-Differential Revision: https://reviews.freebsd.org/D5481

8 years agoAdd myself as a ports committer
cmt [Sat, 5 Mar 2016 11:20:02 +0000 (11:20 +0000)]
Add myself as a ports committer

Mentors are miwi@ and rene@

Approved by: rene (mentor)

8 years agoRevert r296395.
bdrewery [Sat, 5 Mar 2016 05:39:59 +0000 (05:39 +0000)]
Revert r296395.

This mistakenly removed the SUBDIR_PARALLEL but even worse is that the install
(and build) order is not correct due to the lack of SUBDIR_DEPEND on the
most critical libraries.  The only reason they build correctly now is because
buildworld's 'make libraries' orders them properly.

Pointyhat to: bdrewery
Sponsored by: EMC / Isilon Storage Division

8 years agoConditionalize building makewhatis(1) for upgrades that need it.
bdrewery [Sat, 5 Mar 2016 05:08:57 +0000 (05:08 +0000)]
Conditionalize building makewhatis(1) for upgrades that need it.

Remove building of the legacy makewhatis(1) since it was only needed for
6.0 upgrades.

On my 2.2 GHz system libsqlite3 takes 60-100 seconds to build, which due to
its serialized nature can hold up the build waiting on it to finish in
bootstrap-tools.

makewhatis(1) was only required to be a build tool to support upgrades
from 6.0 which was properly removed in r208324 but later reverted due to
installworld using it.  The installworld issue was fixed in r275622
when it was added to ITOOLS.  A BOOTSTRAPPING check was missed when
makewhatis(1) was replaced with mandoc in r283777.

Sponsored by: EMC / Isilon Storage Division

8 years agoStray tabs and spaces.
pfg [Sat, 5 Mar 2016 01:17:23 +0000 (01:17 +0000)]
Stray tabs and spaces.

No functional change.

8 years agoDIRDEPS_BUILD: Connect ofed.
bdrewery [Fri, 4 Mar 2016 22:37:44 +0000 (22:37 +0000)]
DIRDEPS_BUILD: Connect ofed.

Sponsored by: EMC / Isilon Storage Division

8 years agoUpdate libsdp to the latest 1.1.108-0.17.ga6958ef.
bdrewery [Fri, 4 Mar 2016 22:37:31 +0000 (22:37 +0000)]
Update libsdp to the latest 1.1.108-0.17.ga6958ef.

The only relevant change here is the support for IPv6 in the config
file.  The previous version of this supported IPv6 but not in the
config.  The change for that ended up removing __sdp_sockaddr_to_sdp
which the IPV4 config code required; the IPv6 fix resolved the lack of
that symbol.

Note that the ChangeLog was lacking entries for which we already had the
changes for, which itself was an upstream bug.

Obtained from: https://www.openfabrics.org/downloads/libsdp/libsdp-1.1.108-0.17.ga6958ef.tar.gz
Sponsored by: EMC / Isilon Storage Division

8 years agoFix missing symbol program_invocation_short_name.
bdrewery [Fri, 4 Mar 2016 22:37:25 +0000 (22:37 +0000)]
Fix missing symbol program_invocation_short_name.

This fixes runtime when logging is enabled.

Sponsored by: EMC / Isilon Storage Division

8 years agoDIRDEPS_BUILD: For bootstrapping always install all headers.
bdrewery [Fri, 4 Mar 2016 22:37:21 +0000 (22:37 +0000)]
DIRDEPS_BUILD: For bootstrapping always install all headers.

There is no good way to guess if any of these will be needed but
they commonly are and add no extra overhead so just stage them.

Sponsored by: EMC / Isilon Storage Division

8 years agoDon't add duplicates from LOCAL_LIB_DIRS.
bdrewery [Fri, 4 Mar 2016 22:37:16 +0000 (22:37 +0000)]
Don't add duplicates from LOCAL_LIB_DIRS.

This causes parallel failures.

Sponsored by: EMC / Isilon Storage Division

8 years agoFix over/under-linking in contrib/ofed.
bdrewery [Fri, 4 Mar 2016 22:37:09 +0000 (22:37 +0000)]
Fix over/under-linking in contrib/ofed.

Sponsored by: EMC / Isilon Storage Division

8 years agoAllow adding to SOLINKOPTS.
bdrewery [Fri, 4 Mar 2016 22:37:00 +0000 (22:37 +0000)]
Allow adding to SOLINKOPTS.

Sponsored by: EMC / Isilon Storage Division

8 years agoNO_ROOT: Create the METALOG directory on installworld/distributeworld.
bdrewery [Fri, 4 Mar 2016 22:36:56 +0000 (22:36 +0000)]
NO_ROOT: Create the METALOG directory on installworld/distributeworld.

When not using NO_ROOT the DESTDIR is implicitly created by the
distrib-dirs call.  However with NO_ROOT it is trying to write
to the METALOG right away before running distrib-dirs which
may fail.

Sponsored by: EMC / Isilon Storage Division

8 years agoParallel installation has been safe here since r267511 added SUBDIR_DEPEND.
bdrewery [Fri, 4 Mar 2016 22:36:42 +0000 (22:36 +0000)]
Parallel installation has been safe here since r267511 added SUBDIR_DEPEND.

Sponsored by: EMC / Isilon Storage Division

8 years agoxdr: Fix xdr_rpc* defines.
pfg [Fri, 4 Mar 2016 22:03:38 +0000 (22:03 +0000)]
xdr: Fix xdr_rpc* defines.

The defines for xdr_rpc* in xdr.h are wrong. It could be
very well that Solaris did strip the '_t' from xdr_u_int32_t,
but Solaris has a xdr_u_int32 function, we don't have this.
So all of this defines will lead to an unresolved symbol.

This explains why we do not use these functions in FreeBSD
while they are used in Illumos/Solaris.

Obtained from: linux libtirpc (git 7864122e61ffe4db1aa8ace89117358a1e3a391b)
MFC after: 3 weeks

8 years agonet80211: fix possible overflow in IEEE80211_TU_TO_TICKS()
avos [Fri, 4 Mar 2016 21:22:11 +0000 (21:22 +0000)]
net80211: fix possible overflow in IEEE80211_TU_TO_TICKS()

For hz=1000 any number, greater than 4194 causes integer overflow;
this change casts the number to uint64_t before operating with it.

Approved by: adrian (mentor)
Differential Revision: https://reviews.freebsd.org/D5268

8 years agoSet bhsdi_target_transfer_tag to reserved value, which is 0xffffffff.
mav [Fri, 4 Mar 2016 19:57:11 +0000 (19:57 +0000)]
Set bhsdi_target_transfer_tag to reserved value, which is 0xffffffff.

This should be a purely cosmetic change.

8 years agoelfcopy: fail if debug link target is empty
emaste [Fri, 4 Mar 2016 18:28:19 +0000 (18:28 +0000)]
elfcopy: fail if debug link target is empty

An empty debug link target previously returned a confusing and incorrect
error like "objcopy: fread failed: No error: 0". Now, return an explicit
error.

GNU objcopy allows an empty file as the debug link target. However,
that case is nonsensical so diverging from GNU behaviour is fine.

Reviewed by: bdrewery
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D5541

8 years agoAdd an UPDATING entry for the recent AIO changes.
jhb [Fri, 4 Mar 2016 17:42:59 +0000 (17:42 +0000)]
Add an UPDATING entry for the recent AIO changes.

Suggested by: maxim

8 years agoPass MNTK_NO_IOPF and MNTK_UNMAPPED_BUFS flags from the lower
kib [Fri, 4 Mar 2016 17:24:28 +0000 (17:24 +0000)]
Pass MNTK_NO_IOPF and MNTK_UNMAPPED_BUFS flags from the lower
filesystem to the nullfs mount.

MNTK_NO_IOPF must be present on the nullfs struct mount so that struct
file fo_read and fo_write fops operate in the mode requested by the
lower mount.

MNTK_UNMAPPED_BUFS allows VOP_GETPAGES() to use unmapped buffers.  It
does not matter for VOP_GETPAGES() calls from vm_fault() since handle
of the vm_object always points to the lower vnode.  But it may be
useful for other situations where VOP_GETPAGES() is used.

Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks

8 years agoAdd dd as a bootstrap tool, for status= support
emaste [Fri, 4 Mar 2016 16:03:15 +0000 (16:03 +0000)]
Add dd as a bootstrap tool, for status= support

In r295757 I added status=none to buildworld's use of dd, but FreeBSD
versions before April 2014 lack support.

8 years agoWork around aliasing issues detected in modern GCC.
pfg [Fri, 4 Mar 2016 15:30:41 +0000 (15:30 +0000)]
Work around aliasing issues detected in modern GCC.

Avoid casting gymnastics that lead to pointer aliasing by introducing an
inline function as done in NetBSD (but without #if0'd WIP code).

Obtained from: NetBSD (CVS Rev. 1.24, 1.25)

8 years agoThe register read/write mphy functions have misleading whitespace around
sbruno [Fri, 4 Mar 2016 14:23:34 +0000 (14:23 +0000)]
The register read/write mphy functions have misleading whitespace around
the locked check. This cleanup merely preserves the existing functionality
while improving the ready check.

Submitted by: Jim Thompson
Reviewed by: gnn erj
Obtained from: Netgate
MFC after: 2 weeks
Sponsored by: Netgate
Differential Revision: https://reviews.freebsd.org/D5448

8 years agoAlso remove libcapsicum and libexec/casper after the casper changes
bapt [Fri, 4 Mar 2016 13:58:39 +0000 (13:58 +0000)]
Also remove libcapsicum and libexec/casper after the casper changes

8 years agocxgbe(4): Very basic T6 awareness. This is part of ongoing work to
np [Fri, 4 Mar 2016 13:11:13 +0000 (13:11 +0000)]
cxgbe(4): Very basic T6 awareness.  This is part of ongoing work to
update to the latest internal shared code.

- Add a chip_params structure to keep track of hardware constants for
  all generations of Terminators handled by cxgbe.
- Update t4_hw_pci_read_cfg4 to work with T6.
- Update the hardware debug sysctls (hidden within dev.<tNnex>.<n>.misc.*) to
  work with T6.  Most of the changes are in the decoders for the CIM
  logic analyzer and the MPS TCAM.
- Acquire the regwin lock around indirect register accesses.

Obtained from: Chelsio Communications
Sponsored by: Chelsio Communications

8 years agoWhitespace fixes.
hselasky [Fri, 4 Mar 2016 09:07:30 +0000 (09:07 +0000)]
Whitespace fixes.

MFC after: 1 week
Sponsored by: Mellanox Technologies

8 years agohyperv/hn: Add per-TX ring stats for # of transmitted packets
sephe [Fri, 4 Mar 2016 07:07:42 +0000 (07:07 +0000)]
hyperv/hn: Add per-TX ring stats for # of transmitted packets

MFC after: 2 weeks
Sponsored by: Microsoft OSTC

8 years agohyperv/hn: Pass channel to send done callbacks.
sephe [Fri, 4 Mar 2016 07:00:37 +0000 (07:00 +0000)]
hyperv/hn: Pass channel to send done callbacks.

Mainly to strigent the data packet send done check.

MFC after: 2 weeks
Sponsored by: Microsoft OSTC

8 years agohyperv/hn: Add multiple channel support, a.k.a. vRSS
sephe [Fri, 4 Mar 2016 06:52:11 +0000 (06:52 +0000)]
hyperv/hn: Add multiple channel support, a.k.a. vRSS

Each channel contains one RX ring and one TX ring.  And we
try to distribute the channels to different evenly.

Note: Currently we don't have enough information to extract
the RSS type and RSS hash value from the received packets.

This greatly improves the TX/RX performance for 8 virtual CPU
Hyper-V over 10Ge: it can max out 10Ge for TCP when multiple
RX/TX rings are enabled.

This almost doubles the TX/RX performance for locally connected
Hyper-Vs: was 6Gbps w/ 128 TCP streams, now 11Gbps w/ multiple
RX/TX rings enabled.

It is not enabled by default; it will be switched on after more
tests.

Collaborated with: Hongjiang Zhang <honzhan microsoft com>
MFC after: 2 week
Sponsored by: Microsoft OSTC

8 years agoFix ubldr build failure on mipsn32 and mipsn32el targets.
sgalabov [Fri, 4 Mar 2016 05:36:53 +0000 (05:36 +0000)]
Fix ubldr build failure on mipsn32 and mipsn32el targets.

Approved by: adrian (mentor)

8 years agoSet argument encode/result decode call backs for 'maplist' and 'all'.
araujo [Fri, 4 Mar 2016 03:10:08 +0000 (03:10 +0000)]
Set argument encode/result decode call backs for 'maplist' and 'all'.

Note: Listing a map is still not fully implemented.

Obtained from: OpenBSD (r1.16, r1.17)

8 years agoImplement the 'master' request.
araujo [Fri, 4 Mar 2016 02:14:32 +0000 (02:14 +0000)]
Implement the 'master' request.

Obtained from: OpenBSD (r1.15)

8 years agoRemove default initializations for rman, a'la r296331
jhibbits [Fri, 4 Mar 2016 01:25:45 +0000 (01:25 +0000)]
Remove default initializations for rman, a'la r296331

8 years agoMerge ^/head r296007 through r296368.
dim [Thu, 3 Mar 2016 23:15:46 +0000 (23:15 +0000)]
Merge ^/head r296007 through r296368.

8 years agoRegenerate llvm and clang manpages.
dim [Thu, 3 Mar 2016 23:09:57 +0000 (23:09 +0000)]
Regenerate llvm and clang manpages.

8 years agoUpdate llvm and clang to 3.8.0 release.
dim [Thu, 3 Mar 2016 22:50:52 +0000 (22:50 +0000)]
Update llvm and clang to 3.8.0 release.

8 years agoAdd support for resetting the PHY via GPIO.
jmcneill [Thu, 3 Mar 2016 22:26:36 +0000 (22:26 +0000)]
Add support for resetting the PHY via GPIO.

Submitted by: Emmanuel Vadot <manu@bidouilliste.com>
Reviewed by: andrew, jmcneill
Approved by: adrian (mentor)
Differential Revision: https://reviews.freebsd.org/D5505

8 years agoAdd support for Allwinner A31 RTC controller.
jmcneill [Thu, 3 Mar 2016 22:19:39 +0000 (22:19 +0000)]
Add support for Allwinner A31 RTC controller.

Very similar to the A10 RTC controller with a few register offsets changed
and a different location for the LOSC switch status.

Submitted by: Emmanuel Vadot <manu@bidouilliste.com>
Reviewed by: jmcneill
Approved by: adrian (mentor)
Differential Revision: https://reviews.freebsd.org/D5500

8 years agozyd, run, ural: do not corrupt MAC address
avos [Thu, 3 Mar 2016 20:06:16 +0000 (20:06 +0000)]
zyd, run, ural: do not corrupt MAC address

Do not use ic_macaddr as a storage for current BSSID;
it may be reused in vap creation procedure;
similar to r288619.

Approved by: adrian (mentor)
Differential Revision: https://reviews.freebsd.org/D5513

8 years agonet80211: drop <smth> -> INIT state transition warning (STA mode only)
avos [Thu, 3 Mar 2016 19:53:46 +0000 (19:53 +0000)]
net80211: drop <smth> -> INIT state transition warning (STA mode only)

This warning is irrelevant, since user can execute
'ifconfig wlan0 down' (or turn off card via rfkill switch) at any time.

Approved by: adrian (mentor)
Differential Revision: https://reviews.freebsd.org/D5511

8 years agoFix ixl with RSS
smh [Thu, 3 Mar 2016 19:49:37 +0000 (19:49 +0000)]
Fix ixl with RSS

Fix compilation of ixl when RSS option is set, broken by r295946

MFC after: 3 weeks
X-MFC-With: r295946
Sponsored by: Multiplay
Differential Revision: https://reviews.freebsd.org/D5428

8 years agoDEBUG_FILES: Create the DEBUGFILEDIR if it doesn't exist on install.
bdrewery [Thu, 3 Mar 2016 18:08:58 +0000 (18:08 +0000)]
DEBUG_FILES: Create the DEBUGFILEDIR if it doesn't exist on install.

Currently the base.txz distribution does not get the BSD.debug.dist mtree
extracted into it.  So if you start from that and then try to build a 3rd-party
application outside of buildworld it will by-default try installing the
debug files into a missing directory if they are being installed into /usr/lib.

Check for the existence before forcing the directory to be created rather than
the older way of running a shell command with test -d || mkdir -p always.

Reported by: HardenedBSD (https://github.com/HardenedBSD/secadm/issues/23)
Sponsored by: EMC / Isilon Storage Division
Differential Revision: https://reviews.freebsd.org/D5411

8 years agoFix dtrace probes (introduced in 287759): debug__input was used
gnn [Thu, 3 Mar 2016 17:46:38 +0000 (17:46 +0000)]
Fix dtrace probes (introduced in 287759): debug__input was used
for output and drop; connect didn't always fire a user probe
some probes were missing in fastpath

Submitted by: Hannes Mehnert
Sponsored by: REMS, EPSRC
Differential Revision: https://reviews.freebsd.org/D5525

8 years agoMFV r296350:
pfg [Thu, 3 Mar 2016 15:36:00 +0000 (15:36 +0000)]
MFV r296350:
Split each domain again after striping any trailing dot.

Reported by:  dumbbell
Obtained from: openresolv (53416cf1b4)

8 years agoAdd sunrpc compat define for xp_sock.
pfg [Thu, 3 Mar 2016 14:44:30 +0000 (14:44 +0000)]
Add sunrpc compat define for xp_sock.

SunRPC is using xp_sock in SVCXPRT, while TI-RPC is using
xp_fd. Add a compatibility define.

Illumos has something similar for the non-kernel case.

Obtained from: linux-nfs project (git 0d94036c3a0d4c24d22bf6a8c40ac6625d972c29)

8 years agoUse correct size for malloc.
ae [Thu, 3 Mar 2016 13:07:59 +0000 (13:07 +0000)]
Use correct size for malloc.

Obtained from: Yandex LLC
MFC after: 1 week

8 years agoAdd more functions to the LinuxKPI.
hselasky [Thu, 3 Mar 2016 09:56:04 +0000 (09:56 +0000)]
Add more functions to the LinuxKPI.

Define strnicmp as a function macro instead of a regular macro while
at it.

MFC after: 1 week
Sponsored by: Mellanox Technologies