]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
10 years agoEnable Freescale i.MX I2C driver for i.MX6.
Ruslan Bukin [Tue, 22 Jul 2014 04:39:32 +0000 (04:39 +0000)]
Enable Freescale i.MX I2C driver for i.MX6.

10 years agoRemove boot1.efi during clean target.
Sean Bruno [Tue, 22 Jul 2014 04:38:28 +0000 (04:38 +0000)]
Remove boot1.efi during clean target.

10 years agoSupress clang warning for FreeBSD printf %b and %D formats
Sean Bruno [Tue, 22 Jul 2014 04:37:47 +0000 (04:37 +0000)]
Supress clang warning for FreeBSD printf %b and %D formats

MFC after: 2 weeks

10 years agoRename i.MX I2C driver file.
Ruslan Bukin [Tue, 22 Jul 2014 03:59:14 +0000 (03:59 +0000)]
Rename i.MX I2C driver file.

10 years agoSimplify r267600, there's no need to distinguish between allocated and
Navdeep Parhar [Tue, 22 Jul 2014 02:02:39 +0000 (02:02 +0000)]
Simplify r267600, there's no need to distinguish between allocated and
inlined mbufs.

MFC after: 1 week

10 years agobsd.lib.mk does not add OBJS etc to CLEANFILES so does not automatically
Simon J. Gerraty [Tue, 22 Jul 2014 00:42:55 +0000 (00:42 +0000)]
bsd.lib.mk does not add OBJS etc to CLEANFILES so does not automatically
get them flagged as .NOPATH.  This hurts people who don't use obj dirs.
Since its clean target seprate rm's for things, use NOPATH_FILES as list
to collect things that need .NOPATH.

bsd.obj.mk will add CLEANFILES to NOPATH_FILES and do the deed if needed.

Reviewed by: sbruno

10 years agoMerge serf-1.3.6
Peter Wemm [Mon, 21 Jul 2014 22:10:29 +0000 (22:10 +0000)]
Merge serf-1.3.6
+  Revert r2319 from serf 1.3.5: this change was making serf call handle_response
+    multiple times in case of an error response, leading to unexpected behavior.

10 years agoVendor import serf-1.3.6
Peter Wemm [Mon, 21 Jul 2014 22:08:49 +0000 (22:08 +0000)]
Vendor import serf-1.3.6
+  Revert r2319 from serf 1.3.5: this change was making serf call handle_response
+    multiple times in case of an error response, leading to unexpected behavior.

10 years agoRun mtree for BSD.tests.dist during make xdev-install, if the tests are
Dimitry Andric [Mon, 21 Jul 2014 21:26:10 +0000 (21:26 +0000)]
Run mtree for BSD.tests.dist during make xdev-install, if the tests are
enabled (which they are in the default configuration).  Otherwise, it
will fail because ${XDDESTDIR}/usr/include/atf-c does not exist.

MFC after: 3 days

10 years agoMerge change from upstream linux kernel submitted by OpenBSD:
Sean Bruno [Mon, 21 Jul 2014 19:33:08 +0000 (19:33 +0000)]
Merge change from upstream linux kernel submitted by OpenBSD:

drm/radeon: fix-up some float to fixed conversion thinkos

Spotted by Brad Smith when porting to OpenBSD.
Noticed-by: Brad Smith <brad@comstyle.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
ref: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=1cd73ff7

Remove #ifdef DUMBBELL_WIP in favor of upstream fix.

Phabric: https://phabric.freebsd.org/D423
Reviewed by: dumbbell, jkim
MFC after: 2 weeks

10 years agoRemove redundant return statement after errx
Ed Maste [Mon, 21 Jul 2014 17:43:37 +0000 (17:43 +0000)]
Remove redundant return statement after errx

MFC after: 3 days
Sponsored by: The FreeBSD Foundation

10 years agoUse the standard way of printing the usage string
Ed Maste [Mon, 21 Jul 2014 17:18:00 +0000 (17:18 +0000)]
Use the standard way of printing the usage string

Sponsored by: The FreeBSD Foundation

10 years agoHide syscons-specific workaround under DEV_SC
Ed Maste [Mon, 21 Jul 2014 16:38:05 +0000 (16:38 +0000)]
Hide syscons-specific workaround under DEV_SC

This change is a bit ugly, but so is the coupling between the i915
driver and syscons.  It isn't worth developing a more elegant solution
only to support the legacy syscons console.

10 years agoFix hdestroy() compliance issue.
Pedro F. Giffuni [Mon, 21 Jul 2014 15:44:59 +0000 (15:44 +0000)]
Fix hdestroy() compliance issue.

The hcreate(3) implementation and related functions we inherited
from NetBSD used to free() the key value, something that is not
supported by the standard implementation.

This would cause a segmentation fault when attempting to run
the examples from the opengroup and linux manpages.  NetBSD
has added non-standard calls to provide the previous
behaviour but hdestroy is not very commonly used so at this
time it seems excessive to bring those to FreeBSD.

Bump the __FreeBSD_version as this is an ABI change.

Reference:
http://bugs.dragonflybsd.org/issues/1398

MFC after: 2 weeks

10 years agoUpdate license.
Pedro F. Giffuni [Mon, 21 Jul 2014 15:26:52 +0000 (15:26 +0000)]
Update license.

NetBSD has removed the advertisement clause from this file.

Obtained from: NetBSD (CVS rev. 1,8)

10 years agoAdd re-entrant versions of the hash functions based on the GNU api.
Pedro F. Giffuni [Mon, 21 Jul 2014 15:22:48 +0000 (15:22 +0000)]
Add re-entrant versions of the hash functions based on the GNU api.

While testing this I found a conformance issue in hdestroy()
that will be fixed in a subsequent commit.

Obtained from: NetBSD (hcreate.c, CVS Rev. 1.7)

10 years agoFixed fallout from previous change.
Sergey Kandaurov [Mon, 21 Jul 2014 08:47:54 +0000 (08:47 +0000)]
Fixed fallout from previous change.

10 years ago[mdoc] cleanup
Sergey Kandaurov [Mon, 21 Jul 2014 08:42:35 +0000 (08:42 +0000)]
[mdoc] cleanup

10 years agoAdd the PCBGROUPS manpage.
Adrian Chadd [Mon, 21 Jul 2014 04:48:02 +0000 (04:48 +0000)]
Add the PCBGROUPS manpage.

Thanks to wblock for helping me with this manpage.

10 years agoCorrect spelling errors in ctld.8. While here, correct similar errors
Warren Block [Sun, 20 Jul 2014 22:13:51 +0000 (22:13 +0000)]
Correct spelling errors in ctld.8.  While here, correct similar errors
in ctl.conf.5 and fix a couple of contractions.

PR: 191984
Submitted by: olgeni
MFC after: 1 week

10 years agoAdjust errno on failed prepwrite.
Pedro F. Giffuni [Sun, 20 Jul 2014 21:24:29 +0000 (21:24 +0000)]
Adjust errno on failed prepwrite.

Obtained from: Apple Inc. (Libc 997.90.3)
Phabric: D442
MFC after: 1 week

10 years agoAdd new device ID.
Hans Petter Selasky [Sun, 20 Jul 2014 21:02:35 +0000 (21:02 +0000)]
Add new device ID.

MFC after: 1 week
PR: 191959

10 years agoConst-ify a character string.
Pedro F. Giffuni [Sun, 20 Jul 2014 20:29:28 +0000 (20:29 +0000)]
Const-ify a character string.

Obtained from: Apple Inc. (Libc 997.90.3)
MFC after: 3 days

10 years agosh: Allow arbitrarily large numbers in break and continue.
Jilles Tjoelker [Sun, 20 Jul 2014 20:29:09 +0000 (20:29 +0000)]
sh: Allow arbitrarily large numbers in break and continue.

The argument is capped to loopnest, so strtol()'s [ERANGE] can be ignored.

10 years agoUse a correct errno in freopen.
Pedro F. Giffuni [Sun, 20 Jul 2014 20:14:15 +0000 (20:14 +0000)]
Use a correct errno in freopen.

Use EBADF instead of EINVAL when working around incorrect O_ACCMODE.

Phabric: D442
Obtained from: Apple Inc. (Libc 997.90.3)
Reviewed by: jilles
MFC after: 1 week

10 years agoIn "procstat -v" (VM), spell out 'FL' to 'FLAG' since there are two extra
Robert Watson [Sun, 20 Jul 2014 20:11:34 +0000 (20:11 +0000)]
In "procstat -v" (VM), spell out 'FL' to 'FLAG' since there are two extra
columns available anyway.  Also left align as we tend to do for flags
fields, although you can't see that currently as the string fully fills
that available columns.

MFC after: 3 days
Sponsored by: DARPA, AFRL

10 years agoUpdate fflush(3) to return success on a read-only stream.
Pedro F. Giffuni [Sun, 20 Jul 2014 20:05:39 +0000 (20:05 +0000)]
Update fflush(3) to return success on a read-only stream.

This has small changes to what Apple uses for compliance
with SUSv3. The changes cause no secondary effects in the
gnulib tests (we pass them).

Obtained from: Apple Inc. (Libc 997.90.3 with changes)
Reviewed by: bde
Phabric: D440

10 years agoFix the build when DTrace isn't enabled.
Mark Johnston [Sun, 20 Jul 2014 18:44:56 +0000 (18:44 +0000)]
Fix the build when DTrace isn't enabled.

Reported by: stefanf
X-MFC-With: r268600

10 years agoFix build without INVARIANTS defined by getting rid of unused variable 'exc'.
Neel Natu [Sun, 20 Jul 2014 16:34:35 +0000 (16:34 +0000)]
Fix build without INVARIANTS defined by getting rid of unused variable 'exc'.

Reported by: adrian, stefanf

10 years agoOlder versions of flex (like the one used in FreeBSD <= 9) expect the
Dag-Erling Smørgrav [Sun, 20 Jul 2014 14:49:24 +0000 (14:49 +0000)]
Older versions of flex (like the one used in FreeBSD <= 9) expect the
output file name to follow the -o flag immediately, with no intervening
whitespace.

Reported by: ian@
MFC after: 1 week

10 years agosh: Remove prefix() function. Use strncmp() instead.
Jilles Tjoelker [Sun, 20 Jul 2014 12:06:52 +0000 (12:06 +0000)]
sh: Remove prefix() function. Use strncmp() instead.

10 years agoAdd the UDP hash -> RSS mbuf hash type for the ixgbe(4) driver.
Adrian Chadd [Sun, 20 Jul 2014 08:43:53 +0000 (08:43 +0000)]
Add the UDP hash -> RSS mbuf hash type for the ixgbe(4) driver.

10 years agoTeach ixgbe(4) about rss_gethashconfig().
Adrian Chadd [Sun, 20 Jul 2014 07:45:48 +0000 (07:45 +0000)]
Teach ixgbe(4) about rss_gethashconfig().

If RSS is enabled, ixgbe(4) will query the RSS API for the types of hashes
which should be used.  It'll then only enable hashes that are exposed via
the RSS layer.

This way it won't try to do things like enable UDP hashing if RSS explicitly
states that it isn't supported in lookups.

Tested:

82599EB ixgbe(4) NIC

10 years agoDisable the ixgbe(4) UDP 4-tuple hashing for the time being.
Adrian Chadd [Sun, 20 Jul 2014 07:43:41 +0000 (07:43 +0000)]
Disable the ixgbe(4) UDP 4-tuple hashing for the time being.

A mix of fragmented and non-fragmented UDP in a single stream will end up
being hashed differently, resulting in out-of-order behaviour in the receive
path.

This was done in the linux e1000 driver in 2011.

Discussed with: jfv

10 years agoWhen it's time to do 4-tuple UDP IPv6 hashing, make sure this is a known
Adrian Chadd [Sun, 20 Jul 2014 07:39:54 +0000 (07:39 +0000)]
When it's time to do 4-tuple UDP IPv6 hashing, make sure this is a known
type.

10 years agoMake the PCBGROUPS code aware of IPv4 UDP 4-tuple.
Adrian Chadd [Sun, 20 Jul 2014 07:38:38 +0000 (07:38 +0000)]
Make the PCBGROUPS code aware of IPv4 UDP 4-tuple.

10 years agoAdd hash awareness of the IPv4 and IPv6 UDP 4-tuple.
Adrian Chadd [Sun, 20 Jul 2014 07:37:47 +0000 (07:37 +0000)]
Add hash awareness of the IPv4 and IPv6 UDP 4-tuple.

Note: it would be nice if the supported hash check would be used here!

10 years agoImplement rss_gethashconfig() - return the currently supported hash methods
Adrian Chadd [Sun, 20 Jul 2014 07:36:59 +0000 (07:36 +0000)]
Implement rss_gethashconfig() - return the currently supported hash methods
by the stack.

Right now the stack isn't really setup for RSS with 4-tuple UDP hashing
for either IPv4 and IPv6.

The specifics:

* The UDP init path udp_init() and udplite_init() specify the hash as
  2-tuple, so the PCBGROUPS code only tries a 2-tuple check;
* The PCBGROUPS and RSS code doesn't know about the UDP hash types
  just yet, so they're never treated as valid hashes.
* For correctness, 4-tuple can't be enabled in the general case because
  UDP datagrams can be more fragmented than IP datagrams may be.

Strictly speaking, TCP datagrams may also be fragmented and this could
cause issues with PCBGROUPS/RSS until the IP defragment path grows some
code to re-calculate the RSS hash.

I'll follow this commit up with awareness of the UDP 4-tuple for those
who wish to configure it, but for now it'll stay disabled.

No drivers (yet) know to use this function when RSS is enabled.

10 years agoUpdate the comment to be more concise.
Adrian Chadd [Sun, 20 Jul 2014 07:31:55 +0000 (07:31 +0000)]
Update the comment to be more concise.

10 years agoCorrectly program the RSS redirection table entries.
Adrian Chadd [Sun, 20 Jul 2014 04:11:18 +0000 (04:11 +0000)]
Correctly program the RSS redirection table entries.

Without this, the RSS bucket assignments aren't correct - they're
DCBA instead of ABCD in each DWORD.

Tested: 82599EB ixgbe(4), TCP and UDP RSS

10 years agoFix allocation of 128MB extended memory region, broken since some careless
Nathan Whitehorn [Sun, 20 Jul 2014 00:08:50 +0000 (00:08 +0000)]
Fix allocation of 128MB extended memory region, broken since some careless
modifications in December.

MFC after: 3 days

10 years agoEnable X11 via xf86-video-scfb on the Playstation 3. This commit made from
Nathan Whitehorn [Sat, 19 Jul 2014 23:39:17 +0000 (23:39 +0000)]
Enable X11 via xf86-video-scfb on the Playstation 3. This commit made from
an xterm running for the first time on said Playstation.

10 years agoAdd dl_unwind_find_exidx() for ARM EABI, required for C++ exception
Ian Lepore [Sat, 19 Jul 2014 22:13:27 +0000 (22:13 +0000)]
Add dl_unwind_find_exidx() for ARM EABI, required for C++ exception
handling.  For statically linked apps this uses the __exidx_start/end
symbols set up by the linker.  For dynamically linked apps it finds the
shared object that contains the given address and returns the location and
size of the exidx section in that shared object.

The dl_unwind_find_exidx() name is used by other BSD projects and Android,
and is mentioned in clang 3.5 comments as "the BSD interface" for finding
exidx data.  GCC (in libgcc_s) expects the exact same API and functionality
to be provided by a function named __gnu_Unwind_Find_exidx(), so we provide
that with an alias ("strong reference").

Reviewed by: kib@
MFC after: 1 week

10 years agoAdd support for the "account" facility.
Dag-Erling Smørgrav [Sat, 19 Jul 2014 21:04:21 +0000 (21:04 +0000)]
Add support for the "account" facility.

PR: 115164
MFC after: 1 week

10 years agoHandle nested exceptions in bhyve.
Neel Natu [Sat, 19 Jul 2014 20:59:08 +0000 (20:59 +0000)]
Handle nested exceptions in bhyve.

A nested exception condition arises when a second exception is triggered while
delivering the first exception. Most nested exceptions can be handled serially
but some are converted into a double fault. If an exception is generated during
delivery of a double fault then the virtual machine shuts down as a result of
a triple fault.

vm_exit_intinfo() is used to record that a VM-exit happened while an event was
being delivered through the IDT. If an exception is triggered while handling
the VM-exit it will be treated like a nested exception.

vm_entry_intinfo() is used by processor-specific code to get the event to be
injected into the guest on the next VM-entry. This function is responsible for
deciding the disposition of nested exceptions.

10 years agoCheck if the specified group is the user's primary group before
Dag-Erling Smørgrav [Sat, 19 Jul 2014 20:55:13 +0000 (20:55 +0000)]
Check if the specified group is the user's primary group before
iterating over the (possibly empty) list of members.  Otherwise, we
get a false negative when the target group has no members listed in
/etc/group.  This went mostly unnoticed because root is explicitly
listed as a member of wheel, so the bug is never triggered in the most
common use case, which is su(8).

PR: 109416
MFC after: 1 week

10 years agoClean up the libunbound build to avoid accidentally regenerating the
Dag-Erling Smørgrav [Sat, 19 Jul 2014 18:38:48 +0000 (18:38 +0000)]
Clean up the libunbound build to avoid accidentally regenerating the
configuration lexer and parser during buildworld.  Instead of being
included in the source as it is in the upstream distribution, the code is
now always generated (in ${.OBJDIR}) at build time.

PR: 190739
MFC after: 1 week

10 years agoAllow mappings of memory not previously direct-mapped by the kernel when
Nathan Whitehorn [Sat, 19 Jul 2014 15:11:58 +0000 (15:11 +0000)]
Allow mappings of memory not previously direct-mapped by the kernel when
calling mmap on /dev/mem and add a handler for the possible userland
machine checks that may result. Remove some pointless and wrong copy/paste
that has been in here for a decade as well.

This results in a /dev/mem with identical semantics to the x86 version.

MFC after: 1 week

10 years agoBetter align headers and data for 'procstat -f' with and without '-C'.
Robert Watson [Sat, 19 Jul 2014 15:09:53 +0000 (15:09 +0000)]
Better align headers and data for 'procstat -f' with and without '-C'.

MFC after: 3 days
Sponsored by: DARPA, AFRL

10 years agoClean r268867.
Pedro F. Giffuni [Sat, 19 Jul 2014 14:34:06 +0000 (14:34 +0000)]
Clean r268867.

Proposed by: bde

10 years agoUse -o (output to file) instead of -t (print to stdout) and a redirect.
Dag-Erling Smørgrav [Sat, 19 Jul 2014 14:26:04 +0000 (14:26 +0000)]
Use -o (output to file) instead of -t (print to stdout) and a redirect.

MFC after: 1 week

10 years agoMerge libucl 20140718 (fixes a bug in the parser)
Baptiste Daroussin [Sat, 19 Jul 2014 14:10:31 +0000 (14:10 +0000)]
Merge libucl 20140718 (fixes a bug in the parser)

10 years agoImport libucl 20140718 (fixes a bug in the parser)
Baptiste Daroussin [Sat, 19 Jul 2014 14:07:49 +0000 (14:07 +0000)]
Import libucl 20140718 (fixes a bug in the parser)

10 years agosh: Deduplicate some code in ulimit builtin.
Jilles Tjoelker [Sat, 19 Jul 2014 14:06:23 +0000 (14:06 +0000)]
sh: Deduplicate some code in ulimit builtin.

10 years agoUse a C wrapper for trap() instead of checking and calling the DTrace trap
Mark Johnston [Sat, 19 Jul 2014 02:27:31 +0000 (02:27 +0000)]
Use a C wrapper for trap() instead of checking and calling the DTrace trap
hook in assembly.

Suggested by: kib
Reviewed by: kib (original version)
X-MFC-With: r268600

10 years agoUse unsigned optlen in getsourcefilter()
Pedro F. Giffuni [Sat, 19 Jul 2014 01:53:52 +0000 (01:53 +0000)]
Use unsigned optlen in getsourcefilter()

Sizes can not be negative and the functions that use it
expect an unsigned value anyways.

Obtained from: Apple (Libc-997.90.3)
MFC after: 1 week

10 years agor243637 changed the default number of nfsd threads created,
Rick Macklem [Sat, 19 Jul 2014 01:15:01 +0000 (01:15 +0000)]
r243637 changed the default number of nfsd threads created,
but the man page did not reflect this.
This is a content change.

Reported by: bde
MFC after: 2 weeks

10 years agoReduce lock contention on the z_teardown_lock under heavily cached
Xin LI [Sat, 19 Jul 2014 00:26:03 +0000 (00:26 +0000)]
Reduce lock contention on the z_teardown_lock under heavily cached
read workload by splitting the single teardown rrw lock into
RRM_NUM_LOCKS (17) of them.

Read acquisitions are randomly distributed among these locks based
on curthread pointer.  Write acquisitions are going to all the
locks, which for the usage of this type of lock should be rare.

Illumos issue:
    5008 lock contention (rrw_exit) while running a read only load

MFC after: 2 weeks

10 years agoDocument the need to regenerate the local_unbound configuration.
Dag-Erling Smørgrav [Sat, 19 Jul 2014 00:11:51 +0000 (00:11 +0000)]
Document the need to regenerate the local_unbound configuration.

10 years agoOops, forgot to bump manual date/copyright in r268860.
Devin Teske [Fri, 18 Jul 2014 23:23:52 +0000 (23:23 +0000)]
Oops, forgot to bump manual date/copyright in r268860.

MFC after: 3 days
X-MFC-to: stable/10, stable/9, ports
X-MFC-with: r268860

10 years agoAdd libsbuf.so.6 to obsolete libraries since it has been bumped to .so.7
Baptiste Daroussin [Fri, 18 Jul 2014 23:04:27 +0000 (23:04 +0000)]
Add libsbuf.so.6 to obsolete libraries since it has been bumped to .so.7

10 years agoImprove timeout(1) man page
Baptiste Daroussin [Fri, 18 Jul 2014 22:56:59 +0000 (22:56 +0000)]
Improve timeout(1) man page

Document the exit values and the duration format
Improve wording
Pet mandoc -Tlint
Sort SEE ALSO

Phabric: https://phabric.freebsd.org/D432
Reviewed by: wblock

10 years agoMinor enhancements, bug fixes, and man-page adjustments.
Devin Teske [Fri, 18 Jul 2014 22:44:15 +0000 (22:44 +0000)]
Minor enhancements, bug fixes, and man-page adjustments.

+ Make `sysrc -x foo' produce error status if foo is unset.
NB: Reported by lme (everything else ``while I'm at it'')
+ Remove mention of SYSRC_VERBOSE from `sysrc --help' output.
NB: False documentation leftover from an ancient precursor.
+ Make `sysrc -qc foo' work the same as `sysrc -ic foo' when foo is unset
NB: For syntax convenience (my fingers know `-q' more than `-i').
+ Update description of `-c' flag in help message/manual.
+ Update description of `-q' flag in help message/manual.
+ Make `sysrc -vc foo' work as documented in the manual
NB: Show message stating whether foo is currently set.
+ Make `sysrc -vc foo=1' work as documented in the manual
NB: Show message stating how value of foo would be changed (if at all).
+ Remove odd usage of parentheses in `-R dir' section of manual.
+ Clarify syntax section of manual w/respect to sysctl(8) similarities.
+ Add new/missing people to the `THANKS TO' section of the manual.

Reported by: lme
MFC after: 3 days
X-MFC-to: stable/10, stable/9, ports

10 years agoMFV r268851:
Xin LI [Fri, 18 Jul 2014 22:34:01 +0000 (22:34 +0000)]
MFV r268851:

When a sync task is waiting for a txg to complete, we should hurry it along
by increasing the number of outstanding async writes (i.e. make
vdev_queue_max_async_writes() return a larger number).

Illumos issue:
    4753 increase number of outstanding async writes when sync task is waiting

MFC after: 2 weeks

10 years agoMFV r268850:
Xin LI [Fri, 18 Jul 2014 22:04:21 +0000 (22:04 +0000)]
MFV r268850:

Change the interaction between the DMU and ARC so that when the DMU is
shutting down an objset, we do not evict the data from the ARC.  Instead
we simply coordinate the destruction of the DMU's data with the ARC.

The only case where we actually need to explicitly evict from the ARC is
when dbuf_rele_and_unlock() determines that the administrator has requested
that it not be kept in memory, via the primarycache/secondarycache properties.
In this case, we evict the data from the ARC by its blkptr_t, the same way
as when a block is freed we explicitly evict it from the ARC.

Illumos issue:
    4631 zvol_get_stats triggering too many reads

MFC after: 2 weeks

10 years agottyname(3): Fix EBADF/ENOTTY error descriptions.
Jilles Tjoelker [Fri, 18 Jul 2014 21:29:59 +0000 (21:29 +0000)]
ttyname(3): Fix EBADF/ENOTTY error descriptions.

Also, make sure to document the return values and errors for all three
functions in the man page.

PR: 191931
MFC after: 1 week

10 years agoFix build by using the driver API (driver converted in r266979 which should
Xin LI [Fri, 18 Jul 2014 21:28:59 +0000 (21:28 +0000)]
Fix build by using the driver API (driver converted in r266979 which should
be upstreamed).

X-MFC with: r268854
MFC after: 5 days

10 years agoMFV r268848:
Xin LI [Fri, 18 Jul 2014 20:41:40 +0000 (20:41 +0000)]
MFV r268848:

Instead of asserting all zio's be properly aligned, only assert
on the logical ones.

Cap uberblocks at 8k, otherwise with ashift=17, there would be
only one uberblock.

This fixes a problem that zdb would trip assert on pools with
ashift >= 0xe (8k).

While there, also change the code so it only attempt to condense
space map unless the uncondensed size consumes greater than
zfs_metaslab_condense_block_threshold blocks.

Illumos issue:
  4958 zdb trips assert on pools with ashift >= 0xe

MFC after: 2 weeks

10 years agoInitiate error recovery stats fail to update after 3 retries.
David C Somayajulu [Fri, 18 Jul 2014 20:04:11 +0000 (20:04 +0000)]
Initiate error recovery stats fail to update after 3 retries.
Change bxe_panic() ECORE_DBG_BREAK_IF() ECORE_BUG() ECORE_BUG_ON() to
panic only if ECORE_STOP_ON_ERROR is defined.

MFC after:5 days

10 years ago5008 lock contention (rrw_exit) while running a read only load
Xin LI [Fri, 18 Jul 2014 18:09:20 +0000 (18:09 +0000)]
5008 lock contention (rrw_exit) while running a read only load
Reviewed by: Matthew Ahrens <matthew.ahrens@delphix.com>
Reviewed by: George Wilson <george.wilson@delphix.com>
Reviewed by: Alex Reece <alex.reece@delphix.com>
Reviewed by: Christopher Siden <christopher.siden@delphix.com>
Reviewed by: Richard Yao <ryao@gentoo.org>
Reviewed by: Saso Kiselkov <skiselkov.ml@gmail.com>
Approved by: Garrett D'Amore <garrett@damore.org>

illumos/illumos-gate@c9030f6c93613fe30ee0c16f92b96da7816ac052

10 years ago4753 increase number of outstanding async writes when sync task is waiting
Xin LI [Fri, 18 Jul 2014 18:05:09 +0000 (18:05 +0000)]
4753 increase number of outstanding async writes when sync task is waiting
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: George Wilson <george.wilson@delphix.com>
Reviewed by: Adam Leventhal <ahl@delphix.com>
Reviewed by: Christopher Siden <christopher.siden@delphix.com>
Reviewed by: Dan McDonald <danmcd@omniti.com>
Approved by: Garrett D'Amore <garrett@damore.org>

illumos/illumos-gate@73527f441cbbd953fa42cc5a30a413bad75f24a9

10 years ago4631 zvol_get_stats triggering too many reads
Xin LI [Fri, 18 Jul 2014 18:02:34 +0000 (18:02 +0000)]
4631 zvol_get_stats triggering too many reads
Reviewed by: Adam Leventhal <ahl@delphix.com>
Reviewed by: Sebastien Roy <sebastien.roy@delphix.com>
Reviewed by: Matt Ahrens <mahrens@delphix.com>
Approved by: Dan McDonald <danmcd@omniti.com>

illumos/illumos-gate@bbfa8ea8bb4168c969ba27d632dfe0aeec3fc0da

10 years ago4958 zdb trips assert on pools with ashift >= 0xe
Xin LI [Fri, 18 Jul 2014 17:55:12 +0000 (17:55 +0000)]
4958 zdb trips assert on pools with ashift >= 0xe
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Max Grossman <max.grossman@delphix.com>
Reviewed by: George Wilson <george.wilson@delphix.com>
Reviewed by: Christopher Siden <christopher.siden@delphix.com>
Approved by: Garrett D'Amore <garrett@damore.org>

illumos/illumos-gate@2a104a5236475eb73aa41eaaf3ed9f3ccbe0ca55

10 years agoThe description is a bit misleading. Trying to make it more obvious.
Hiren Panchasara [Fri, 18 Jul 2014 16:25:35 +0000 (16:25 +0000)]
The description is a bit misleading. Trying to make it more obvious.

Phabric:    https://phabric.freebsd.org/D435
Reviewed by: gnn

10 years agoRevert r268826:
Pedro F. Giffuni [Fri, 18 Jul 2014 16:21:15 +0000 (16:21 +0000)]
Revert r268826:
The current ordering of this header is a feature as it
is more consistent with POSIX.
Also adding gratuitous newlines is not elegant.

Pointed out by: bde

10 years agoRemove obsolete man pages. The corresponding code was removed in r255608.
Alan Cox [Fri, 18 Jul 2014 15:39:07 +0000 (15:39 +0000)]
Remove obsolete man pages.  The corresponding code was removed in r255608.

10 years agoUse assignment instead of bcopy.
Gleb Smirnoff [Fri, 18 Jul 2014 14:59:35 +0000 (14:59 +0000)]
Use assignment instead of bcopy.

Submitted by: jmg

10 years agoExtend kqueue's EVFILT_TIMER by adding precision unit flags support
Baptiste Daroussin [Fri, 18 Jul 2014 14:27:04 +0000 (14:27 +0000)]
Extend kqueue's EVFILT_TIMER by adding precision unit flags support

Define the precision macros as bits sets to conform with XNU equivalent.
Test fflags passed for EVFILT_TIMER and return EINVAL in case an invalid flag
is passed.

Phabric: https://phabric.freebsd.org/D421
Reviewed by: kib

10 years agoFix two typos in iscsictl.8
Gavin Atkinson [Fri, 18 Jul 2014 12:51:35 +0000 (12:51 +0000)]
Fix two typos in iscsictl.8

PR: 191581
Submitted by: Jimmy Olgeni
MFC after: 3 days

10 years agoUse a combination of unblock-lan-zones (r268839) and domain-insecure
Dag-Erling Smørgrav [Fri, 18 Jul 2014 12:33:22 +0000 (12:33 +0000)]
Use a combination of unblock-lan-zones (r268839) and domain-insecure
to fix reverse lookups on networks using private addresses.

10 years agoImport unblock-lan-zones feature backported from upstream svn trunk.
Dag-Erling Smørgrav [Fri, 18 Jul 2014 11:32:44 +0000 (11:32 +0000)]
Import unblock-lan-zones feature backported from upstream svn trunk.
This is a partial fix for reverse lookups in RFC 1918 networks.  With
this option enabled, unbound no longer ignores these queries; however,
it will still reject the answer it gets from the forwarder, because
the RFC 1918 reverse zones are signed.

Submitted by: "W.C.A. Wijngaards" <wouter@nlnetlabs.nl>

10 years agoAdd support for Toradex Apalis i.MX6 development board.
Ruslan Bukin [Fri, 18 Jul 2014 08:23:53 +0000 (08:23 +0000)]
Add support for Toradex Apalis i.MX6 development board.

Sponsored by: Toradex AG

10 years agoUpdate the default RSS hash to the Chelsio T5 firmware one - it provides
Adrian Chadd [Fri, 18 Jul 2014 08:22:13 +0000 (08:22 +0000)]
Update the default RSS hash to the Chelsio T5 firmware one - it provides
markedly better distribution of IPv6 address/ports than the previous key.

The previous key would hash large swaths of the port space for a given
source/destination IP address to the same low handful of bits, effectively
mapping them to the same queue.  This made testing very .. special.

10 years agoFix typo.
Ruslan Bukin [Fri, 18 Jul 2014 08:08:45 +0000 (08:08 +0000)]
Fix typo.

10 years agoRename gpio driver file.
Ruslan Bukin [Fri, 18 Jul 2014 07:52:35 +0000 (07:52 +0000)]
Rename gpio driver file.

10 years agoo Enable GPIO device driver for i.MX6.
Ruslan Bukin [Fri, 18 Jul 2014 07:47:50 +0000 (07:47 +0000)]
o Enable GPIO device driver for i.MX6.
  It was originally written for i.MX5 and compatible with newer chip.
o Extend device tree information
o style(9) fixes

Discussed with: ian

10 years agoFix an apparent conversion error in bge to the new driver api.
Peter Wemm [Fri, 18 Jul 2014 07:41:38 +0000 (07:41 +0000)]
Fix an apparent conversion error in bge to the new driver api.
if_multiaddr_array() does the LLADDR work, don't do it twice.

This broke IPv6 in "interesting" ways in the FreeBSD.org cluster.

10 years agoUpdate libucl to the 2014-07-16 snapshot
Baptiste Daroussin [Fri, 18 Jul 2014 06:58:01 +0000 (06:58 +0000)]
Update libucl to the 2014-07-16 snapshot
This update brings streamlined ucl emitter support

10 years agoRemove an obsolete man page.
Alan Cox [Fri, 18 Jul 2014 06:56:24 +0000 (06:56 +0000)]
Remove an obsolete man page.

10 years agoImport libucl 2014-07-16
Baptiste Daroussin [Fri, 18 Jul 2014 06:49:18 +0000 (06:49 +0000)]
Import libucl 2014-07-16

10 years agoFix "ndp -d hostname".
Peter Wemm [Fri, 18 Jul 2014 06:48:02 +0000 (06:48 +0000)]
Fix "ndp -d hostname".

10 years agoMinor sorting to match the NetBSD header
Pedro F. Giffuni [Fri, 18 Jul 2014 02:49:41 +0000 (02:49 +0000)]
Minor sorting to match the NetBSD header

MFC after: 3 days
Obtained from: NetBSD

10 years agoRemove deprecated definition "m_act".
Kevin Lo [Fri, 18 Jul 2014 01:35:20 +0000 (01:35 +0000)]
Remove deprecated definition "m_act".

Suggested by: adrian, glebius

10 years agoFix manpages path and sort entries
Baptiste Daroussin [Thu, 17 Jul 2014 23:30:29 +0000 (23:30 +0000)]
Fix manpages path and sort entries

10 years agoRemove texinfo manpages as well if built WITHOUT_INFO
Baptiste Daroussin [Thu, 17 Jul 2014 23:24:33 +0000 (23:24 +0000)]
Remove texinfo manpages as well if built WITHOUT_INFO

10 years agoFix markups.
Xin LI [Thu, 17 Jul 2014 23:23:01 +0000 (23:23 +0000)]
Fix markups.

10 years agoFix markup regression introduced in r268369.
Xin LI [Thu, 17 Jul 2014 23:14:47 +0000 (23:14 +0000)]
Fix markup regression introduced in r268369.

10 years agoAdd the mtree entry for yacc tests
Baptiste Daroussin [Thu, 17 Jul 2014 22:26:24 +0000 (22:26 +0000)]
Add the mtree entry for yacc tests

10 years agoUpdate to byacc 20140715 (only concerns regression tests being fixed)
Baptiste Daroussin [Thu, 17 Jul 2014 22:22:38 +0000 (22:22 +0000)]
Update to byacc 20140715 (only concerns regression tests being fixed)
Directly use regression test from upstream

PR: 191020
Submitted by: gcooper (yaneurabeya@gmail.com)

10 years agoimport byacc 20140715
Baptiste Daroussin [Thu, 17 Jul 2014 21:58:22 +0000 (21:58 +0000)]
import byacc 20140715