]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
8 years agoMFH
gjb [Mon, 14 Mar 2016 18:54:29 +0000 (18:54 +0000)]
MFH

Sponsored by: The FreeBSD Foundation

8 years agoRemove useless cast in SYSCTL_ADD_COUNTER_U64 macro.
glebius [Mon, 14 Mar 2016 18:07:59 +0000 (18:07 +0000)]
Remove useless cast in SYSCTL_ADD_COUNTER_U64 macro.

8 years agoComment fix: statistics are not read-only.
glebius [Mon, 14 Mar 2016 18:06:59 +0000 (18:06 +0000)]
Comment fix: statistics are not read-only.

8 years agoFix autofs handling of filesystem labels containing plus signs and slashes.
trasz [Mon, 14 Mar 2016 17:45:39 +0000 (17:45 +0000)]
Fix autofs handling of filesystem labels containing plus signs and slashes.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

8 years agoClean up repeated "All rights reserved"
rstone [Mon, 14 Mar 2016 17:41:17 +0000 (17:41 +0000)]
Clean up repeated "All rights reserved"

8 years agoclass -> i_class. Thanks C++.
adrian [Mon, 14 Mar 2016 16:52:05 +0000 (16:52 +0000)]
class -> i_class.  Thanks C++.

Noticed by: jbeich@

8 years agoAdd myself to MAINTAINERS.
trasz [Mon, 14 Mar 2016 16:27:43 +0000 (16:27 +0000)]
Add myself to MAINTAINERS.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

8 years agoFix the printf for PAE kernels where it'd be long long to unbreak
bz [Mon, 14 Mar 2016 16:19:50 +0000 (16:19 +0000)]
Fix the printf for PAE kernels where it'd be long long to unbreak
the build.

8 years agoOnly check for SYS_freebsd6_lseek if the syscall code is defined.
bz [Mon, 14 Mar 2016 14:55:15 +0000 (14:55 +0000)]
Only check for SYS_freebsd6_lseek if the syscall code is defined.
Whether this is the right or best solution is unclear but it fixes the
build for now.

8 years agoFix typo: nmd->cur_tx_ring should be used in pci_vtnet_netmap_writev()
gnn [Mon, 14 Mar 2016 08:48:16 +0000 (08:48 +0000)]
Fix typo: nmd->cur_tx_ring should be used in pci_vtnet_netmap_writev()
The buffer length should be checked to avoid overflow, but there
is no API to get the slot length, so the hardcoded value is used.
Return the currently-first request chain back to the available
queue if there are no more packets.
Report the link as up if we managed to open vale port.
Use consistent coding style.

Submitted by: btw
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D5595

8 years agopmap arm64: fixing pmap_invalidate_range
wma [Mon, 14 Mar 2016 07:26:38 +0000 (07:26 +0000)]
pmap arm64: fixing pmap_invalidate_range

It seems that if range within one page is given this page will not be
invalidated at all. Clean it up.

Submitted by:          Dominik Ermel <der@semihalf.com>
Obtained from:         Semihalf
Sponsored by:          Cavium
Reviewed by:           wma, zbb
Approved by:           cognet (mentor)
Differential Revision: https://reviews.freebsd.org/D5569

8 years agoAdd xhci_mv.c
wma [Mon, 14 Mar 2016 07:24:08 +0000 (07:24 +0000)]
Add xhci_mv.c

Add missing xhci driver for Marvell systems.

Submitted by:          Bartosz Szczepanek <bsz@semihalf.com>
Obtained from:         Semihalf
Sponsored by:          Stormshield
Reviewed by:           hselasky
Approved by:           cognet (mentor)
Differential Revision: https://reviews.freebsd.org/D5031

8 years agoAdd support for USB3.0 on Armada38x
wma [Mon, 14 Mar 2016 07:14:34 +0000 (07:14 +0000)]
Add support for USB3.0 on Armada38x

This commit provides attachment of xhci-platform for A38X boards, making
it possible to mount FreeBSD world from USB3.0 flash. 'xhci' device was
added to files.mv (as optional) and kernconf of Armada38x was enhanced.

It was also necessary to open programmable memory windows of USB3.0.
fdt_win_setup needed improvement so it's able to traverse through
children of internal-regs node.

Submitted by:          Bartosz Szczepanek <bsz@semihalf.com>
Obtained from:         Semihalf
Sponsored by:          Stormshield
Reviewed by:           hselasky
Approved by:           cognet (mentor)
Differential Revision: https://reviews.freebsd.org/D5031

8 years agoMake MPIC compatible with ARM_INTRNG
wma [Mon, 14 Mar 2016 07:05:41 +0000 (07:05 +0000)]
Make MPIC compatible with ARM_INTRNG

After ARM_INTRNG introduction, MPIC code needed several modifications:
- IRQ resource and its handler added
-  several DEVMETHODs of INTRNG interface implemented
-  defines enhanced to ensure code compiles as well for AXP as for A38X
- added dummy MSI_IRQ, ERR_IRQ defines for Armada38x
- MPIC driver was added to files.armada38x, ARM_INTRNG option enabled in
  kernconf file and regs of MPIC corrected in dts file.

Instead of modifying Armada38X DTS, offsets to CPU registers defined in
driver were changed. That required restoring 'reg' property of mpic node
in ArmadaXP to state compliant with Linux DTS.

Additionally, required ARM_INTRNG definitions were added to mv_common.c.

Submitted by:          Bartosz Szczepanek <bsz@semihalf.com>
Obtained from:         Semihalf
Sponsored by:          Stormshield
Reviewed by:           adrian, andrew, ian, skra
Approved by:           cognet (mentor)
Differential Revision: https://reviews.freebsd.org/D5030

8 years agoFix GIC interrupt decoding in INTRNG code
wma [Mon, 14 Mar 2016 06:30:37 +0000 (06:30 +0000)]
Fix GIC interrupt decoding in INTRNG code

   Bug was already fixed in not-INTRNG code, it needs to be corrected
   here as well.  Source: https://reviews.freebsd.org/rS294422

Submitted by:          Bartosz Szczepanek <bsz@semihalf.com>
Obtained from:         Semihalf
Sponsored by:          Stormshield
Reviewed by:           cognet, wma
Approved by:           cognet (mentor)
Differential Revision: https://reviews.freebsd.org/D5029

8 years ago[net80211] handle unlisted information elements.
adrian [Mon, 14 Mar 2016 04:39:35 +0000 (04:39 +0000)]
[net80211] handle unlisted information elements.

This displays the IE names in ifconfig but it doesn't yet decode things.

Submitted by: Idwer Vollering <vidwer@gmail.com>
Differential Revision: https://reviews.freebsd.org/D3782

8 years agoReword SX_NOADAPTIVE description to be clear that adaptive is default.
bdrewery [Mon, 14 Mar 2016 00:51:45 +0000 (00:51 +0000)]
Reword SX_NOADAPTIVE description to be clear that adaptive is default.

The default changed in r193011.

MFC after:  1 week

8 years agolibdtrace: use calloc(3) instead of malloc(3) when it makes sense.
pfg [Mon, 14 Mar 2016 00:34:12 +0000 (00:34 +0000)]
libdtrace: use calloc(3) instead of malloc(3) when it makes sense.

calloc(3) is faster and occasionally safer than malloc(3) + bzero(3).

In one case, pointed out by Mark[1], this also cleans up a calculation.

Reviewed by: markj [1]
MFC after: 1 week

8 years agosh: Fix copying uninitialized field 'special'.
jilles [Sun, 13 Mar 2016 22:54:14 +0000 (22:54 +0000)]
sh: Fix copying uninitialized field 'special'.

This just copied uninitialized data and did not depend on it later, so it
should not be dangerous.

Found by: clang static analyzer

8 years agoRemove duplicate external declaration of tcprexmtthresh making
bz [Sun, 13 Mar 2016 21:26:18 +0000 (21:26 +0000)]
Remove duplicate external declaration of tcprexmtthresh making
gcc compiles barf.

8 years agoIn the de-duplication mode, when found matching md5 checksum also read
sobomax [Sun, 13 Mar 2016 21:09:08 +0000 (21:09 +0000)]
In the de-duplication mode, when found matching md5 checksum also read
back block and compare actual content. Just output original block
instead of back reference in the unlikely event of collision.

8 years agoFollow-up r296700: Fix incorrectly declaring these as .MAIN.
bdrewery [Sun, 13 Mar 2016 20:51:45 +0000 (20:51 +0000)]
Follow-up r296700: Fix incorrectly declaring these as .MAIN.

This broke bootstrap-tools at least for DIRDEPS_BUILD.

Sponsored by: EMC / Isilon Storage Division

8 years agoCheck value returned from ucl_parser_add_file().
jceel [Sun, 13 Mar 2016 19:50:17 +0000 (19:50 +0000)]
Check value returned from ucl_parser_add_file().

Reviewed by: trasz
Approved by: trasz (mentor)
MFC after: 1 month
Sponsored by: iXsystems, Inc.

8 years agoRequire firewall setup before running rc.d/netwait, otherwise the ping
ian [Sun, 13 Mar 2016 19:42:59 +0000 (19:42 +0000)]
Require firewall setup before running rc.d/netwait, otherwise the ping
packets sent by netwait may not get through.

PR: 207916
Submitted by: John.Marshall@riverwillow.com.au (ipfw), ian@ (pf, ipfilter)

8 years agoPut IPSec's anouncement of its successful intialisation under bootverbose:
rwatson [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.
bdrewery [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 [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
trasz [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.
jmcneill [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.
jmcneill [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
imp [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.
mav [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
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.
jhb [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.
jhb [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.
bdrewery [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.
bdrewery [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.
bdrewery [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
emaste [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
dumbbell [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
ngie [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
emaste [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
emaste [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.
bdrewery [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
dim [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.
dim [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
kib [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
dumbbell [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
dumbbell [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+
dumbbell [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.
trasz [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.
trasz [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
trasz [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,
trasz [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.
jhb [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 [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.
np [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
np [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.
bdrewery [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.
bdrewery [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.
bdrewery [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
bdrewery [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.
bdrewery [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.
bdrewery [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.
bdrewery [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.
bdrewery [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.
bdrewery [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.
bdrewery [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.
bdrewery [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.
bdrewery [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.
bdrewery [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.
bdrewery [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.
bdrewery [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.
bdrewery [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.
bdrewery [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.
bdrewery [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.
bdrewery [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.
bdrewery [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.
np [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.
jhb [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):
dim [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
emaste [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.
bdrewery [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.
glebius [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
gonzo [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()
dumbbell [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):
dim [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.
jhibbits [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.
bdrewery [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.
bdrewery [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
dumbbell [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.
mav [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
dim [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.
bdrewery [Fri, 11 Mar 2016 17:21:27 +0000 (17:21 +0000)]
Revert r296645 as it breaks stable/10->head builds.

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

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

8 years agoEnable FAST_DEPEND by default.
bdrewery [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
emaste [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 [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 [Fri, 11 Mar 2016 15:29:00 +0000 (15:29 +0000)]
o Xr icmp(4).