]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
8 years agoPut IPSec's anouncement of its successful intialisation under bootverbose:
Robert Watson [Sun, 13 Mar 2016 19:27:46 +0000 (19:27 +0000)]
Put IPSec's anouncement of its successful intialisation under bootverbose:
now that it's a default kernel option, we don't really need to tell the
world about it on every boot, especially as it won't be used by most users.

8 years agoWe only support GCC 4.8 for these flags.
Bryan Drewery [Sun, 13 Mar 2016 19:17:48 +0000 (19:17 +0000)]
We only support GCC 4.8 for these flags.

- 4.7 introduced maybe-uninitialized
- 4.8 introduced aggressive-loop-optimizations

Sponsored by: EMC / Isilon Storage Division

8 years agoFix a bug in bsdgrep that caused the program to hang in a tight loop for
Ian Lepore [Sun, 13 Mar 2016 14:53:12 +0000 (14:53 +0000)]
Fix a bug in bsdgrep that caused the program to hang in a tight loop for
some combinations of command line options and search patterns.  The code was
examining regexec flags looking for a regcomp flag value.  The fix is to
look in the struct field where the decoded regcomp flag was stored when the
regex was compiled.

With this fix, it's possible to build WITHOUT_GNU_GREP_COMPAT and
WITH_BSDGREP and have a usable GPL-free grep (which of course lacks gnugrep
extensions).  It now passes the kyua tests except for one test that requires
the -z/--null-data gnu extension, and one test involving outputting context
lines across multiple files which appears to sometimes output an extra
delimiter line ("--") between matches (a rather obscure failure of a rather
obscure feature, so bsdgrep should be generally usable now).

8 years agoRemove name length limitation from autofs(5). The linear search with
Edward Tomasz Napierala [Sun, 13 Mar 2016 14:17:23 +0000 (14:17 +0000)]
Remove name length limitation from autofs(5). The linear search with
strlens is somewhat suboptimal, but it's a temporary measure that will
be replaced with red-black trees later on.

PR: 204417
Reviewed by: kib@
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D5266

8 years agoAdd HDMI device nodes to Banana Pi dts.
Jared McNeill [Sun, 13 Mar 2016 01:49:36 +0000 (01:49 +0000)]
Add HDMI device nodes to Banana Pi dts.

PR: 207912
Approved by: gonzo (mentor)

8 years agoFix display output for non-HDMI display devices.
Jared McNeill [Sun, 13 Mar 2016 01:47:42 +0000 (01:47 +0000)]
Fix display output for non-HDMI display devices.

Only set the display to HDMI mode if a CEA-861 extension block was found
on the connected display.

PR: 207912
Approved by: gonzo (mentor)

8 years agoUse the newly minted Makefile.libcompat to implement libsoft libraries
Warner Losh [Sat, 12 Mar 2016 23:25:05 +0000 (23:25 +0000)]
Use the newly minted Makefile.libcompat to implement libsoft libraries
for the armv6 ABI switch. This also make WITH_LIBSOFT functional on
the arm platform. As a transition thing, this seems to work even
without switching the ABI (we basically build the same libraries
twice when MK_LIBSOFT=yes until the ABI cut over next
month). MK_LIBSOFT remains default no.

8 years agodd report short write as error, so don't halt on it.
Alexander Motin [Sat, 12 Mar 2016 23:04:10 +0000 (23:04 +0000)]
dd report short write as error, so don't halt on it.

8 years agoProvide high precision conversion from ns,us,ms -> sbintime in kevent
Justin T. Gibbs [Sat, 12 Mar 2016 23:02:53 +0000 (23:02 +0000)]
Provide high precision conversion from ns,us,ms -> sbintime in kevent

In timer2sbintime(), calculate the second and fractional second portions of
the sbintime separately. When calculating the the fractional second portion,
use a 64bit multiply to prevent excess truncation. This avoids the ~7% error
in the original conversion for ns, and smaller errors of the same type for us
and ms.

PR: 198139
Reviewed by: jhb
MFC after: 1 week
Differential Revision:    https://reviews.freebsd.org/D5397

8 years agoRegen.
John Baldwin [Sat, 12 Mar 2016 22:55:07 +0000 (22:55 +0000)]
Regen.

8 years agoDo not include system call wrappers in libc for old FreeBSD system calls.
John Baldwin [Sat, 12 Mar 2016 22:53:46 +0000 (22:53 +0000)]
Do not include system call wrappers in libc for old FreeBSD system calls.

The base system libc is only used to run binaries built on FreeBSD 7.0 and
later.  It does not need to include system call wrappers for system calls
only used by FreeBSD binaries built on versions older than 7.0.  This was
already true for "COMPAT" system calls, but now wrappers for system calls
used on FreeBSD 4 and 6 are excluded as well.

Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D5597

8 years agoEnable FAST_DEPEND by default.
Bryan Drewery [Sat, 12 Mar 2016 22:25:10 +0000 (22:25 +0000)]
Enable FAST_DEPEND by default.

Missed in r296668.

Discussed on: arch
Sponsored by: EMC / Isilon Storage Division

8 years agoReduce duplicated logic from r291744.
Bryan Drewery [Sat, 12 Mar 2016 22:21:14 +0000 (22:21 +0000)]
Reduce duplicated logic from r291744.

Sponsored by: EMC / Isilon Storage Division

8 years agoStop looking up these values in every subdir on install.
Bryan Drewery [Sat, 12 Mar 2016 22:21:02 +0000 (22:21 +0000)]
Stop looking up these values in every subdir on install.

This was slowing down installkernel since it was rerunning this in
every module directory.

Sponsored by: EMC / Isilon Storage Division

8 years agoboot/efi: Prefer nm to objdump
Ed Maste [Sat, 12 Mar 2016 21:44:33 +0000 (21:44 +0000)]
boot/efi: Prefer nm to objdump

Both objdump and nm are equally capable of reporting undefined symbols.

This gets us a step closer to building without binutils as we have an nm
implementation from ELF Tool Chain.

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

8 years agodrm/i915: Import Linux commit 168f83660211b9e059e3bc0638daaa01e9ea0b71
Jean-Sébastien Pédron [Sat, 12 Mar 2016 20:05:23 +0000 (20:05 +0000)]
drm/i915: Import Linux commit 168f83660211b9e059e3bc0638daaa01e9ea0b71

This makes sure the default context of each ring is cleaned up with the
ring itself and fixes a memory leak.

Author: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Date:   Fri May 3 16:29:08 2013 +0300

    drm/i915: unreference default context on module unload

    Before module unload is called, gpu_idle() will switch
    to default context. This will increment ref count of base
    object as the default context is 'running' on module unload
    time. Unreference the drm object so that when context
    is freed, base object is freed as well.

    v2: added comment to explain the refcounts (Ben Widawsky)

Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Obtained from: Linux

8 years agoBetter handle filesystems mounted with -o noexec
Enji Cooper [Sat, 12 Mar 2016 19:41:38 +0000 (19:41 +0000)]
Better handle filesystems mounted with -o noexec

ftruncate/11, open/20, and truncate/11 copy sleep(1) to a temporary file on the
target filesystem, execute the binary, then expect a result. This doesn't work
with scenarios where the target binary cannot be executed, e.g. the filesystem
was mounted with -o noexec.

Ensure the filesystem hasn't been mounted with -o noexec for the testcases
before executing them.

Differential Revision: https://reviews.freebsd.org/D5622
MFC after: 1 week
Reviewed by: markj
Sponsored by: EMC / Isilon Storage Division

8 years agoBump BOOTSTRAPPING test for libelf after cross-endian fix in r296685
Ed Maste [Sat, 12 Mar 2016 19:08:13 +0000 (19:08 +0000)]
Bump BOOTSTRAPPING test for libelf after cross-endian fix in r296685

8 years agoBump __FreeBSD_version for libelf cross-endian fix in r296685
Ed Maste [Sat, 12 Mar 2016 19:05:41 +0000 (19:05 +0000)]
Bump __FreeBSD_version for libelf cross-endian fix in r296685

8 years agoFollow-up r296709: Fix build32 not properly building all libraries.
Bryan Drewery [Sat, 12 Mar 2016 18:41:27 +0000 (18:41 +0000)]
Follow-up r296709: Fix build32 not properly building all libraries.

Pointyhat to: bdrewery
Reported by: antoine

8 years agoFix the following gcc warnings on sparc64, when TCP_OFFLOAD is not
Dimitry Andric [Sat, 12 Mar 2016 18:38:51 +0000 (18:38 +0000)]
Fix the following gcc warnings on sparc64, when TCP_OFFLOAD is not
defined:

    sys/dev/cxgbe/t4_main.c:7474: warning: 'sysctl_tp_tick' defined but not used
    sys/dev/cxgbe/t4_main.c:7505: warning: 'sysctl_tp_dack_timer' defined but not used
    sys/dev/cxgbe/t4_main.c:7519: warning: 'sysctl_tp_timer' defined but not used

This just adds a bunch of #ifdef TCP_OFFLOAD in the right places.

Reviewed by: np
Differential Revision: https://reviews.freebsd.org/D5620

8 years agoFix gcc warnings about possibly uninitialized variables in gpioctl.c.
Dimitry Andric [Sat, 12 Mar 2016 15:10:30 +0000 (15:10 +0000)]
Fix gcc warnings about possibly uninitialized variables in gpioctl.c.

Noticed by: bz

8 years agoFix handling of umtxp resource limit in sh(1)/ulimit(1), limits(1), add
Konstantin Belousov [Sat, 12 Mar 2016 14:54:34 +0000 (14:54 +0000)]
Fix handling of umtxp resource limit in sh(1)/ulimit(1), limits(1), add
login.conf(5) support.

Reviewed by: jilles
Sponsored by: The FreeBSD Foundation
Differential revision: https://reviews.freebsd.org/D5610

8 years agodrm/i915: Call i915_gem_gtt_fini() when the device is detached
Jean-Sébastien Pédron [Sat, 12 Mar 2016 11:57:32 +0000 (11:57 +0000)]
drm/i915: Call i915_gem_gtt_fini() when the device is detached

This fixes several memory leaks. Apparently, this problem exists in
Linux 3.8 but the code changed in Linux 3.9 so it may be fixed upstream
already. Still, this is something we need to pay attention to.

8 years agodrm/i915: Fix page fault handler failure
Jean-Sébastien Pédron [Sat, 12 Mar 2016 11:54:58 +0000 (11:54 +0000)]
drm/i915: Fix page fault handler failure

... when __wait_seqno() is interrupted by a signal. In this case,
__wait_seqno() returns -ERESTARTSYS. Like we already do in drm_ioctl(),
we need to convert this error to a common code such as -EINTR, so the
page fault handler is restarted.

Reported by: Frederic Chardon <chardon.frederic@gmail.com>
Tested by: Frederic Chardon <chardon.frederic@gmail.com>

8 years agoagp: Do not attach to Intel GEN6+
Jean-Sébastien Pédron [Sat, 12 Mar 2016 09:44:23 +0000 (09:44 +0000)]
agp: Do not attach to Intel GEN6+

The i915 video driver doesn't depend on agp(4) anymore for Sandybridge
and later GPUs. Therefore, there is no need to attach agp(4) to those
devices.

While here, fix `agp_i965_res_spec` to include the aperture base for
GEN4 and GEN5.

Reviewed by: kib
Approved by: kib
Differential Revision: https://reviews.freebsd.org/D5586

8 years agoUse S_BLKSIZE instead of magic constant.
Edward Tomasz Napierala [Sat, 12 Mar 2016 09:33:26 +0000 (09:33 +0000)]
Use S_BLKSIZE instead of magic constant.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

8 years agoRefactor the way we restore cn_lkflags; no functional changes.
Edward Tomasz Napierala [Sat, 12 Mar 2016 09:05:43 +0000 (09:05 +0000)]
Refactor the way we restore cn_lkflags; no functional changes.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

8 years agoRemove cn_consume from 'struct componentname'. It was never set to anything
Edward Tomasz Napierala [Sat, 12 Mar 2016 08:50:38 +0000 (08:50 +0000)]
Remove cn_consume from 'struct componentname'. It was never set to anything
other than 0.

Reviewed by: kib@
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D5611

8 years agoFix autofs triggering problem. Assume you have an NFS server,
Edward Tomasz Napierala [Sat, 12 Mar 2016 07:54:42 +0000 (07:54 +0000)]
Fix autofs triggering problem.  Assume you have an NFS server,
192.168.1.1, with share "share". This commit fixes a problem
where "mkdir /net/192.168.1.1/share/meh" would return spurious
error instead of creating the directory if the target filesystem
wasn't mounted yet; subsequent attempts would work correctly.

The failure scenario is kind of complicated to explain, but it all
boils down to calling VOP_MKDIR() for the target filesystem (NFS)
with wrong dvp - the autofs vnode instead of the filesystem root
mounted over it.

Reviewed by: kib@
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D5442

8 years agoRemove Symbol.map entries for old AIO system calls for FreeBSD 6 compat.
John Baldwin [Sat, 12 Mar 2016 07:13:20 +0000 (07:13 +0000)]
Remove Symbol.map entries for old AIO system calls for FreeBSD 6 compat.

These entries should have never been present since they only exist for
compat with FreeBSD 6.x (and older) binaries.  This was missed in r296572.
Technically this breaks the ABI by removing versioned symbols.  However,
no binaries should be linked against these symbols.  No release has
shipped with a header that contained a prototype for these functions.

Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D5615

8 years agoPrint the correct size of loader.efi when failing to load it into memory.
Andrew Turner [Sat, 12 Mar 2016 06:50:16 +0000 (06:50 +0000)]
Print the correct size of loader.efi when failing to load it into memory.

Obtained from: AsiaBSDCon
Sponsored by: ABT Systems Ltd

8 years agocxgbe(4): Fix typo in previous commit.
Navdeep Parhar [Sat, 12 Mar 2016 03:02:33 +0000 (03:02 +0000)]
cxgbe(4): Fix typo in previous commit.

8 years agocxgbe(4): Catch up with the latest list of card capabilities as reported
Navdeep Parhar [Sat, 12 Mar 2016 02:54:55 +0000 (02:54 +0000)]
cxgbe(4): Catch up with the latest list of card capabilities as reported
by the firmware.

8 years agoMove Makefile.lib32 to Makefile.libcompat and generalize it.
Bryan Drewery [Fri, 11 Mar 2016 23:56:33 +0000 (23:56 +0000)]
Move Makefile.lib32 to Makefile.libcompat and generalize it.

This is in preparation for LIBSOFT.

This file only supports *1* LIBCOMPAT value currently and must be capitalized.
In Makefile.libcompat given LIBCOMPAT=FOO there can be values set for
LIBFOOCFLAGS, LIBFOOCPUFLAGS, LIBFOOWMAKEENV, LIBFOOWMAKEFLAGS, LIBFOOCPUFLAGS,
and LIBFOODTRACE.  These will have the standard cross-build values appended
onto them.

This could be extended to support multiple libcompat libraries in the future
once there is a need.

Reviewed by: imp
Sponsored by: EMC / Isilon Storage Division
Differential Revision: https://reviews.freebsd.org/D5612

8 years agoDIRDEPS_BUILD: Update dependencies.
Bryan Drewery [Fri, 11 Mar 2016 23:45:59 +0000 (23:45 +0000)]
DIRDEPS_BUILD: Update dependencies.

Sponsored by: EMC / Isilon Storage Division

8 years agoAdd missing CLEANFILES.
Bryan Drewery [Fri, 11 Mar 2016 23:45:56 +0000 (23:45 +0000)]
Add missing CLEANFILES.

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

8 years agoAdd more .NOMETA missed in r291320
Bryan Drewery [Fri, 11 Mar 2016 23:45:51 +0000 (23:45 +0000)]
Add more .NOMETA missed in r291320

Sponsored by: EMC / Isilon Storage Division

8 years agoRevert r269030. CLEANFILES is already added to .NOPATH since r241298.
Bryan Drewery [Fri, 11 Mar 2016 23:45:45 +0000 (23:45 +0000)]
Revert r269030. CLEANFILES is already added to .NOPATH since r241298.

Sponsored by: EMC / Isilon Storage Division

8 years agoRemove bogus .ORDER.
Bryan Drewery [Fri, 11 Mar 2016 23:45:42 +0000 (23:45 +0000)]
Remove bogus .ORDER.

This is not SUBDIR_PARALLEL and if it were this .ORDER would not work
since the targets are <target>_subdir_<subdir> not <subdir>.

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

8 years agoDon't even define or append subdir targets with NO_SUBDIR.
Bryan Drewery [Fri, 11 Mar 2016 23:45:39 +0000 (23:45 +0000)]
Don't even define or append subdir targets with NO_SUBDIR.

No functional change.

This prevents adding empty targets to the main called target which is
confusing for debugging.

MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division

8 years agoRemove exists() checks so normal out-of-date handling can be used.
Bryan Drewery [Fri, 11 Mar 2016 23:45:36 +0000 (23:45 +0000)]
Remove exists() checks so normal out-of-date handling can be used.

This also fixes META MODE rebuilding these because the 'number of build commands'
changed from the previous build.

MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division

8 years agoMETA_MODE: We can only use a cookie if filemon is being used.
Bryan Drewery [Fri, 11 Mar 2016 23:45:32 +0000 (23:45 +0000)]
META_MODE: We can only use a cookie if filemon is being used.

Sponsored by: EMC / Isilon Storage Divsion

8 years agoMETA_MODE: Simplify the META_COOKIE handling to use .USE/.USEBEFORE.
Bryan Drewery [Fri, 11 Mar 2016 23:45:28 +0000 (23:45 +0000)]
META_MODE: Simplify the META_COOKIE handling to use .USE/.USEBEFORE.

Extend it to other cases of meta mode cookies so they get the proper rm
cookie behavior when a .meta file detects it needs to rebuild and fails.

Sponsored by: EMC / Isilon Storage Division

8 years agoDIRDEPS_BUILD: Add a sure way to prohibit building 'all' during dirdeps phase.
Bryan Drewery [Fri, 11 Mar 2016 23:45:23 +0000 (23:45 +0000)]
DIRDEPS_BUILD: Add a sure way to prohibit building 'all' during dirdeps phase.

This obsoletes the _SKIP_BUILD check but keeps it for now until it
proves to be enough.

In the dirdeps build the first 'make all' or 'make' ran would invoke
'make dirdeps' which builds dependencies and then builds the current
directory in a sub-make (when BUILD_AT_LEVEL0 is no, which for us it
is).  This behavior causes things attached to 'all:' to build in the
dirdeps phase AND the sub-make phase which creates all kinds of problems
for staging, meta file tracking, and races.

Sponsored by: EMC / Isilon Storage Division

8 years agoDIRDEPS_BUILD: Reduce restaging here.
Bryan Drewery [Fri, 11 Mar 2016 23:45:20 +0000 (23:45 +0000)]
DIRDEPS_BUILD: Reduce restaging here.

This also fixes meta tracking for the beforeinstall since it had been
marked .PHONY before (in bsd.sys.mk).

Sponsored by: EMC / Isilon Storage Division

8 years agoDIRDEPS_BUILD: Fix building during dirdeps.
Bryan Drewery [Fri, 11 Mar 2016 23:45:17 +0000 (23:45 +0000)]
DIRDEPS_BUILD: Fix building during dirdeps.

Sponsored by: EMC / Isilon Storage Division

8 years agoDIRDEPS_BUILD: Avoid rebuilds due to changed build commands with newly staged tools.
Bryan Drewery [Fri, 11 Mar 2016 23:45:13 +0000 (23:45 +0000)]
DIRDEPS_BUILD: Avoid rebuilds due to changed build commands with newly staged tools.

This is a follow-up to r291561 which reworked the bootstrap tool PATH
handling.

An example of this is when building lib/clang/libclangedit.  At first
clang-tblgen will not be staged in the host tree so it will have
CLANG_TBLGEN=clang-tblgen set and exported.  During the build though it
will stage clang-tblgen and then find it via the PATH.  On the next
build it finds clang-tblgen in the stage directory and would set
CLANG_TBLGEN=<stagedir/usr/bin>/clang-tblgen thus causing the build
command to change.  In both cases the same exact tool was used though so
there is no need to rebuild.  If the tool did change the normal
meta/filemon handling would pick that up via timestamp comparisons and
rebuild.

Sponsored by: EMC / Isilon Storage Division

8 years agoDIRDEPS_BUILD: Fix staging of share/sendmail and share/examples.
Bryan Drewery [Fri, 11 Mar 2016 23:45:09 +0000 (23:45 +0000)]
DIRDEPS_BUILD: Fix staging of share/sendmail and share/examples.

Sponsored by: EMC / Isilon Storage Division

8 years agoDIRDEPS_BUILD: export DESTDIR for STAGING.
Bryan Drewery [Fri, 11 Mar 2016 23:45:05 +0000 (23:45 +0000)]
DIRDEPS_BUILD: export DESTDIR for STAGING.

An example of where this is needed is in share/examples which for
'etc-examples' runs 'make -C SRCTOP/etc etc-examples' which installs
to the default DESTDIR otherwise.

Sponsored by: EMC / Isilon Storage Division

8 years agoDIRDEPS_BUILD: Extend beforeinstall: staging hack.
Bryan Drewery [Fri, 11 Mar 2016 23:45:02 +0000 (23:45 +0000)]
DIRDEPS_BUILD: Extend beforeinstall: staging hack.

Most beforeinstall: usage is not adding commands but only adding
targets, such as in share/sendmail.

Sponsored by: EMC / Isilon Storage Division

8 years agoRemove out-of-place make(buildincludes) check.
Bryan Drewery [Fri, 11 Mar 2016 23:44:59 +0000 (23:44 +0000)]
Remove out-of-place make(buildincludes) check.

This came in r239572 for META_MODE handling but it doesn't make sense
since the staging is always done in make(all); make(buildincludes)
is never actually ran in the META_MODE build.

Reported by: bapt
Sponsored by: EMC / Isilon Storage Division

8 years agoDIRDEPS_BUILD: None of this is needed anymore.
Bryan Drewery [Fri, 11 Mar 2016 23:44:56 +0000 (23:44 +0000)]
DIRDEPS_BUILD: None of this is needed anymore.

This file is using stage-install, so all of the .dirdep files
are properly handled.  The cookie handling also properly
handles rebuilds with .meta files.  DESTDIR from bsd.sys.mk is also
respected for staging.  This logic came in r239572.

Sponsored by: EMC / Isilon Storage Division

8 years agoDIRDEPS_BUILD: Remove the cookie when target is out-of-date.
Bryan Drewery [Fri, 11 Mar 2016 23:44:27 +0000 (23:44 +0000)]
DIRDEPS_BUILD: Remove the cookie when target is out-of-date.

The meta file may decide the target is out of date but nothing
ensures that the *next* build will build this target if it
fails this time for some reason; it is still out-of-date
until it succeeds.

Convert the include/ cookie usage to the global versions.

Sponsored by: EMC / Isilon Storage Division

8 years agocxgbe(4): sysctls to display the TOE's TCP timers.
Navdeep Parhar [Fri, 11 Mar 2016 23:24:04 +0000 (23:24 +0000)]
cxgbe(4): sysctls to display the TOE's TCP timers.

cask:~# sysctl -d dev.t5nex.0.toe
dev.t5nex.0.toe.finwait2_timer: FINWAIT2 timer (us)
dev.t5nex.0.toe.initial_srtt: Initial SRTT (us)
dev.t5nex.0.toe.keepalive_intvl: Keepidle interval (us)
dev.t5nex.0.toe.keepalive_idle: Keepidle idle timer (us)
dev.t5nex.0.toe.persist_max: Persist timer max (us)
dev.t5nex.0.toe.persist_min: Persist timer min (us)
dev.t5nex.0.toe.rexmt_max: Retransmit max (us)
dev.t5nex.0.toe.rexmt_min: Retransmit min (us)
dev.t5nex.0.toe.dack_timer: DACK timer (us)
dev.t5nex.0.toe.dack_tick: DACK tick (us)
dev.t5nex.0.toe.timestamp_tick: TCP timestamp tick (us)
dev.t5nex.0.toe.timer_tick: TP timer tick (us)
...

cask:~# sysctl dev.t5nex.0.toe
dev.t5nex.0.toe.finwait2_timer: 9765440
dev.t5nex.0.toe.initial_srtt: 244128
dev.t5nex.0.toe.keepalive_intvl: 73240800
dev.t5nex.0.toe.keepalive_idle: 7031116800
dev.t5nex.0.toe.persist_max: 9765440
dev.t5nex.0.toe.persist_min: 976544
dev.t5nex.0.toe.rexmt_max: 9765440
dev.t5nex.0.toe.rexmt_min: 244128
dev.t5nex.0.toe.dack_timer: 19520
dev.t5nex.0.toe.dack_tick: 32.768
dev.t5nex.0.toe.timestamp_tick: 1048.576
dev.t5nex.0.toe.timer_tick: 32.768
...

8 years agoUse SI_SUB_LAST instead of SI_SUB_SMP as the "catch-all" subsystem.
John Baldwin [Fri, 11 Mar 2016 23:18:06 +0000 (23:18 +0000)]
Use SI_SUB_LAST instead of SI_SUB_SMP as the "catch-all" subsystem.

Reviewed by: kib
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D5515

8 years agoPull in r250279 from upstream libc++ trunk (by Eric Fiselier):
Dimitry Andric [Fri, 11 Mar 2016 22:56:16 +0000 (22:56 +0000)]
Pull in r250279 from upstream libc++ trunk (by Eric Fiselier):

  Fix GCC atomic implementation in C++03

Pull in r250802 from upstream libc++ trunk (by Eric Fiselier):

  Detect relaxed constexpr rules for gcc versions

Pull in r255585 from upstream libc++ trunk (by Eric Fiselier):

  Fix various GCC mis-configurations for newer versions.

  This patch goes through and enables C++11 and C++14 features for newer GCC's.
  The main changes are:

  1. Turn on variable templates. (Uses __cpp_variable_templates)
  2. Assert atomic<Tp> is trivially copyable (Uses _GNUC_VER >= 501).
  3. Turn on trailing return support for GCC. (Uses _GNUC_VER >= 404)
  4. XFAIL void_t test for GCC 5.1 and 5.2. Fixed in GCC 6.

Together, these should fix building clang 3.8.0 as part of building
world with recent versions of gcc (e.g. the devel/*-xtoolchain-gcc
ports).

8 years agolibelf: correct byte count in cross-endian note translation
Ed Maste [Fri, 11 Mar 2016 22:37:12 +0000 (22:37 +0000)]
libelf: correct byte count in cross-endian note translation

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

8 years agoAdd more casper leftover files.
Bryan Drewery [Fri, 11 Mar 2016 22:11:36 +0000 (22:11 +0000)]
Add more casper leftover files.

Reported by: jhb

8 years agoAllow minimum and maximum sweep size be the same.
Gleb Smirnoff [Fri, 11 Mar 2016 21:06:17 +0000 (21:06 +0000)]
Allow minimum and maximum sweep size be the same.

Submitted by: maxim

8 years agoMake it possible for operations to refer to GPIO pins by name
Oleksandr Tymoshenko [Fri, 11 Mar 2016 21:05:16 +0000 (21:05 +0000)]
Make it possible for operations to refer to GPIO pins by name

- Try to guess what is provided as a pin spec for -t or for get/set
    operation: number or name. Fails in case of ambiguity.
- Add -p and -N switches to force pin specification interpretation:
    -p forces spec to be pin number, -N forces it to be name

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

8 years agodrm/i915: Fix malloc type in i915_gem_object_bind_to_gtt()
Jean-Sébastien Pédron [Fri, 11 Mar 2016 21:00:14 +0000 (21:00 +0000)]
drm/i915: Fix malloc type in i915_gem_object_bind_to_gtt()

drm_mm.c expects DRM_MEM_MM, not DRM_I915_GEM.

8 years agoPull in r246280 from upstream libc++ trunk (by Eric Fiselier):
Dimitry Andric [Fri, 11 Mar 2016 20:30:06 +0000 (20:30 +0000)]
Pull in r246280 from upstream libc++ trunk (by Eric Fiselier):

  Fix most GCC warnings during build. Only -Wattribute left.

This helps to fix a number of -Werror warnings when building world with
recent versions of gcc (e.g. the devel/*-xtoolchain-gcc ports).

8 years agoAdd to CFLAGS, rather than replacing.
Justin Hibbits [Fri, 11 Mar 2016 20:04:32 +0000 (20:04 +0000)]
Add to CFLAGS, rather than replacing.

This allows additional CFLAGS, as set in bsd.cpu.mk, to go through.

8 years agoAvoid MK_TESTS error on stable/10 by just preventing SUBDIR recursion.
Bryan Drewery [Fri, 11 Mar 2016 19:28:43 +0000 (19:28 +0000)]
Avoid MK_TESTS error on stable/10 by just preventing SUBDIR recursion.

8 years agoAvoid bmake upgrade NO_MAN warning by just setting MAN to empty.
Bryan Drewery [Fri, 11 Mar 2016 19:24:15 +0000 (19:24 +0000)]
Avoid bmake upgrade NO_MAN warning by just setting MAN to empty.

Suggested by: imp

8 years agodrm: Fix dev->ioctl_count references leak
Jean-Sébastien Pédron [Fri, 11 Mar 2016 18:59:15 +0000 (18:59 +0000)]
drm: Fix dev->ioctl_count references leak

This fixes the following error:
kernel: error: [drm:pid1167:drm_release] *ERROR* Device busy: 2

Because of that, drm_lastclose() was not called, leading to a few memory
leaks once the driver was unloaded.

MFC after: 1 week

8 years agoOops, remove debugging forgotten in r296655.
Alexander Motin [Fri, 11 Mar 2016 17:39:54 +0000 (17:39 +0000)]
Oops, remove debugging forgotten in r296655.

MFC after: 2 weeks

8 years agoIn nvmecontrol, fix gcc warnings about the local 'power' variables
Dimitry Andric [Fri, 11 Mar 2016 17:25:18 +0000 (17:25 +0000)]
In nvmecontrol, fix gcc warnings about the local 'power' variables
shadowing a global declaration.

8 years agoRevert r296645 as it breaks stable/10->head builds.
Bryan Drewery [Fri, 11 Mar 2016 17:21:27 +0000 (17:21 +0000)]
Revert r296645 as it breaks stable/10->head builds.

8 years agoRegenerate
Bryan Drewery [Fri, 11 Mar 2016 17:03:30 +0000 (17:03 +0000)]
Regenerate

8 years agoAdd a WITHOUT_FAST_DEPEND
Bryan Drewery [Fri, 11 Mar 2016 17:00:42 +0000 (17:00 +0000)]
Add a WITHOUT_FAST_DEPEND

8 years agoEnable FAST_DEPEND by default.
Bryan Drewery [Fri, 11 Mar 2016 16:57:41 +0000 (16:57 +0000)]
Enable FAST_DEPEND by default.

Discussed on: arch
Sponsored by: EMC / Isilon Storage Division

8 years agolibdwarf: fix SHT_REL relocation processing
Ed Maste [Fri, 11 Mar 2016 16:24:39 +0000 (16:24 +0000)]
libdwarf: fix SHT_REL relocation processing

Relocation of type SHT_REL must use the current value as addend.

PR: 204084
Obtained from: NetBSD libdwarf_elf_init.c v1.4

8 years agoo Kill EoL whitespaces. No functional changes.
Maxim Konovalov [Fri, 11 Mar 2016 16:03:47 +0000 (16:03 +0000)]
o Kill EoL whitespaces.  No functional changes.

8 years agoo Xr icmp(4).
Maxim Konovalov [Fri, 11 Mar 2016 15:29:00 +0000 (15:29 +0000)]
o Xr icmp(4).

8 years agoo Document net.inet.icmp.maskfake and net.inet.icmp.tstamprepl sysctls.
Maxim Konovalov [Fri, 11 Mar 2016 15:26:56 +0000 (15:26 +0000)]
o Document net.inet.icmp.maskfake and net.inet.icmp.tstamprepl sysctls.

8 years agoApply upstream r3651: the IPv6 address of the L root has changed.
Dag-Erling Smørgrav [Fri, 11 Mar 2016 14:57:40 +0000 (14:57 +0000)]
Apply upstream r3651: the IPv6 address of the L root has changed.

8 years agoApply upstream r3651: the IPv6 address of the L root has changed.
Dag-Erling Smørgrav [Fri, 11 Mar 2016 14:56:42 +0000 (14:56 +0000)]
Apply upstream r3651: the IPv6 address of the L root has changed.

8 years agoNot ready for level 6 yet due to -Wredundant-decls.
Dag-Erling Smørgrav [Fri, 11 Mar 2016 14:47:14 +0000 (14:47 +0000)]
Not ready for level 6 yet due to -Wredundant-decls.

8 years agoDon't bother to invoke gmirror or zpool if the module is not loaded.
Alexander Motin [Fri, 11 Mar 2016 14:24:32 +0000 (14:24 +0000)]
Don't bother to invoke gmirror or zpool if the module is not loaded.

8 years agoUnify and improve metadata wiping.
Alexander Motin [Fri, 11 Mar 2016 14:14:15 +0000 (14:14 +0000)]
Unify and improve metadata wiping.

MFC after: 2 weeks

8 years agoUse `geom disk list` instead `camcontrol identify`.
Alexander Motin [Fri, 11 Mar 2016 13:06:11 +0000 (13:06 +0000)]
Use `geom disk list` instead `camcontrol identify`.

The new way works for almost any disk, while the old only for ATA.

MFC after: 2 weeks

8 years agoAllow standard commands for "unknown" classes in RESCUE mode.
Alexander Motin [Fri, 11 Mar 2016 12:59:07 +0000 (12:59 +0000)]
Allow standard commands for "unknown" classes in RESCUE mode.

For example, it allows quite useful `geom disk list` command.

MFC after: 1 week

8 years agoDo not perform unneccessary shared recursion on the allproc_lock in
Konstantin Belousov [Fri, 11 Mar 2016 11:51:38 +0000 (11:51 +0000)]
Do not perform unneccessary shared recursion on the allproc_lock in
pfs_visible().  The recursion does not cause deadlock because the sx
implementation does not prefer exclusive waiters over the shared, but
this is an implementation detail.

Reported by: pho, Matthew Bryan <matthew.bryan@isilon.com>
Reviewed by: jhb
Tested by: pho
Approved by: des (pseudofs maintainer)
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks

8 years agoDefine __bounded__ to fix the gcc build. While there, raise WARNS.
Dag-Erling Smørgrav [Fri, 11 Mar 2016 11:38:31 +0000 (11:38 +0000)]
Define __bounded__ to fix the gcc build.  While there, raise WARNS.

8 years ago- Implement -T option to allow to specify a fs type for a vnode-backed memory disk
Alex Kozlov [Fri, 11 Mar 2016 06:07:09 +0000 (06:07 +0000)]
- Implement -T option to allow to specify a fs type for a vnode-backed memory disk
- Rephrase -t option description (manpage)
- Split long sentences (manpage)

Differential Review: https://reviews.freebsd.org/D4394

Reviewed by: mav, wblock (manpage)
Approved by: mav

8 years agoUse the new bmake .dinclude feature to make these safe.
Bryan Drewery [Fri, 11 Mar 2016 04:17:39 +0000 (04:17 +0000)]
Use the new bmake .dinclude feature to make these safe.

At least FAST_DEPEND won't even run 'make depend', so the code was
potentially broken with FAST_DEPEND anyhow.  The .dinclude directive
will ignore missing files rather than make them be fatal.

Sponsored by: EMC / Isilon Storage Division

8 years agoFAST_DEPEND: Use .dinclude to enable full .depend logic in bmake.
Bryan Drewery [Fri, 11 Mar 2016 04:09:56 +0000 (04:09 +0000)]
FAST_DEPEND: Use .dinclude to enable full .depend logic in bmake.

The inclusion of .MAKE.DEPENDFILE (.depend) has special logic in make
to ignore stale/missing dependencies.  bmake 20160220 added a '.dinclude'
directive that uses the special logic for .depend when including the file.

This fixes a build error when a file is moved or deleted that exists in a
.depend.OBJ file.  This happened in r292782 when sha512c.c "moved" and an
incremental build of lib/libmd would fail with:
  make: don't know how to make /usr/src/lib/libcrypt/../libmd/sha512c.c. Stop

Now this will just be seen as a stale dependency and cause a rebuild:
  make: /usr/obj/usr/src/lib/libmd/.depend.sha512c.o, 13: ignoring stale .depend for /usr/src/lib/libcrypt/../libmd/sha512c.c
  --- sha512c.o ---
  ...
This rebuild will only be done once since the .depend.sha512c.o will
be updated on the build with the -MF flags.

This also removes -MP being passed for the .depend.OBJ generation (which
would create fake targets for system headers) since the logic is no
longer needed to protect from missing files.

Sponsored by: EMC / Isilon Storage Division

8 years agoFix bmake upgrade NO_MAN warnings.
Bryan Drewery [Fri, 11 Mar 2016 04:09:53 +0000 (04:09 +0000)]
Fix bmake upgrade NO_MAN warnings.

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

8 years agoFix upgrade of bmake by not setting conflicting MAKE_VERSION.
Bryan Drewery [Fri, 11 Mar 2016 04:09:50 +0000 (04:09 +0000)]
Fix upgrade of bmake by not setting conflicting MAKE_VERSION.

This may be used in later checks, such as in bsd.dep.mk, to
enable features that rely on the built-in value.

Sponsored by: EMC / Isilon Storage Division

8 years agoFix make -n upgrade_checks.
Bryan Drewery [Fri, 11 Mar 2016 04:09:47 +0000 (04:09 +0000)]
Fix make -n upgrade_checks.

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

8 years agoFactor out lib32 generation to its own file. This is prep for a
Warner Losh [Fri, 11 Mar 2016 03:38:10 +0000 (03:38 +0000)]
Factor out lib32 generation to its own file. This is prep for a
similar Makefile.libsoft which will do the same for armv6 soft fp API
libraries in prep for pulling the trigger on moving to armv6 hard
float. Once there's two files, I'll work with bdrewery@ to merge the
two files as they are mostly the same. The high rate of churn for
Makefile* makes it quite difficult to make progress out of tree.

Differential Review: https://reviews.freebsd.org/D5566

8 years agocxgbe(4): Add sysctls to display the TP microcode version and the
Navdeep Parhar [Fri, 11 Mar 2016 03:15:17 +0000 (03:15 +0000)]
cxgbe(4): Add sysctls to display the TP microcode version and the
expansion rom version (if there's one).

trantor:~# sysctl dev.t4nex dev.t5nex | grep _version
dev.t4nex.0.firmware_version: 1.15.28.0
dev.t4nex.0.tp_version: 0.1.9.4
dev.t5nex.0.firmware_version: 1.15.28.0
dev.t5nex.0.exprom_version: 1.0.0.68
dev.t5nex.0.tp_version: 0.1.4.9

8 years agocxgbe(4): Add a sysctl for the event capture mask of the TP block's
Navdeep Parhar [Fri, 11 Mar 2016 01:54:43 +0000 (01:54 +0000)]
cxgbe(4): Add a sysctl for the event capture mask of the TP block's
logic analyzer.

dev.t5nex.<n>.misc.tp_la_mask
dev.t4nex.<n>.misc.tp_la_mask

8 years agoMerge bmake-20160307
Simon J. Gerraty [Fri, 11 Mar 2016 01:35:39 +0000 (01:35 +0000)]
Merge bmake-20160307

8 years agoImport bmake-20160307
Simon J. Gerraty [Fri, 11 Mar 2016 00:37:02 +0000 (00:37 +0000)]
Import bmake-20160307

8 years agoRe-add AES-CBC ciphers to the default cipher list on the server.
Dag-Erling Smørgrav [Fri, 11 Mar 2016 00:23:10 +0000 (00:23 +0000)]
Re-add AES-CBC ciphers to the default cipher list on the server.

PR: 207679

8 years agoUpgrade to OpenSSH 7.2p2.
Dag-Erling Smørgrav [Fri, 11 Mar 2016 00:15:29 +0000 (00:15 +0000)]
Upgrade to OpenSSH 7.2p2.

8 years agoWhen -S is specified dump summary to stdout, not stderr, so it's
Maxim Sobolev [Thu, 10 Mar 2016 23:19:35 +0000 (23:19 +0000)]
When -S is specified dump summary to stdout, not stderr, so it's
easier to capture and process it with external tools via pipe.