]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
12 years agoAdd two special directives to libmap.conf:
bapt [Mon, 30 Apr 2012 21:26:35 +0000 (21:26 +0000)]
Add two special directives to libmap.conf:
include <file>:
  Parse the contents of file before continuing with the current file.
includedir <dir>:
  Parse the contents of every file in dir that ends in .conf before continuing
  with the current file.
Any file or directory encountered while processing include or includedir
directives will be parsed exactly once, even if it is encountered multiple
times.

Reviewed by: kib, des
Approved by: des (mentor)
MFC after: 1 month

12 years agoRespect mathematical operation order piority with the exponent gnu extension
bapt [Mon, 30 Apr 2012 21:02:57 +0000 (21:02 +0000)]
Respect mathematical operation order piority with the exponent gnu extension

Obtained from: OpenBSD
Approved by: des (mentor)

12 years agoAdd to GEOM RAID class module, supporting the DDF metadata format, as
mav [Mon, 30 Apr 2012 17:53:02 +0000 (17:53 +0000)]
Add to GEOM RAID class module, supporting the DDF metadata format, as
defined by the SNIA Common RAID Disk Data Format Specification v2.0.

Supports multiple volumes per array and multiple partitions per disk.
Supports standard big-endian and Adaptec's little-endian byte ordering.
Supports all single-layer RAID levels. Dual-layer RAID levels except
RAID10 are not supported now because of GEOM RAID design limitations.

Some work is still to be done, but the present code already manages basic
interoperation with RAID BIOS of the Adaptec 1430SA SATA RAID controller.

MFC after: 1 month
Sponsored by: iXsystems, Inc.

12 years agoAdd myself.
dumbbell [Mon, 30 Apr 2012 16:16:37 +0000 (16:16 +0000)]
Add myself.

12 years agoImprove growfs(8) in a few ways; unfortunately, it's somewhat hard to untangle
trasz [Mon, 30 Apr 2012 16:08:02 +0000 (16:08 +0000)]
Improve growfs(8) in a few ways; unfortunately, it's somewhat hard to untangle
them and commit separately.

1. Rewrite the way growfs(8) finds the device and mount point.  This makes
   it possible to use e.g. "growfs /mnt"; it's also used to display more
   helpful messages.

2. Be more user-friendly, using descriptive messages, like this:

   OK to grow filesystem on /dev/md0, mounted on /mnt, from 9.8GB to 20GB? [Yes/No]"

3. Allow to specify the size (-s option) just like with mdconfig(8), i.e. with
   postfixes ("mdconfig -s 10g").

4. Reload read-only filesystem after growing.

Reviewed by: kib, mckusick (earlier version)
Sponsored by: The FreeBSD Foundation

12 years agoAdd GNU hash support for rtld.
kib [Mon, 30 Apr 2012 13:31:10 +0000 (13:31 +0000)]
Add GNU hash support for rtld.

Based on dragonflybsd support for GNU hash by John Marino <draco marino st>
Reviewed by: kan
Tested by: bapt
MFC after: 2 weeks

12 years agoSplit the symlook_obj1 into a loop iterating over the ELF object symbol
kib [Mon, 30 Apr 2012 13:29:21 +0000 (13:29 +0000)]
Split the symlook_obj1 into a loop iterating over the ELF object symbol
hash elements, and a helper matched_symbol() which match the given hash
entry and request, performing needed type and version checks.

Based on dragonflybsd support for GNU hash by John Marino <draco marino st>
Reviewed by: kan
Tested by: bapt
MFC after: 2 weeks

12 years agoDon't reuse credentials if redirected to a different host.
des [Mon, 30 Apr 2012 12:12:48 +0000 (12:12 +0000)]
Don't reuse credentials if redirected to a different host.

Submitted by: Niels Heinen <heinenn@google.com>
MFC after: 3 weeks

12 years agoSince the socket is non-blocking, it is necessary to use select(2) even
des [Mon, 30 Apr 2012 12:11:45 +0000 (12:11 +0000)]
Since the socket is non-blocking, it is necessary to use select(2) even
when there is no timeout, because read(2) will return immediately if there
is no data waiting in the TCP buffer, causing fetch_read() to busy-loop on
slow connections.

MFC after: 3 weeks
Noticed by: Yanhui Shen <shen.elf@gmail.com>

12 years agoRemove incorrect __restrict qualifier on several pointers
dumbbell [Mon, 30 Apr 2012 11:28:17 +0000 (11:28 +0000)]
Remove incorrect __restrict qualifier on several pointers

The typical case was:
static __inline int
convert_ccl(FILE *fp, char * __restrict p, [...])
{
        [...]

        if (p == SUPPRESS_PTR) {
[...]
} else {
[...]
}

[...]
}

This qualifier says that the pointer is the only one at that time
pointing to the resource.

Here, clang considers that "p" will never match "SUPPRESS_PTR" and
optimize the if{} block out. This leads to segfaults in programs calling
vfscanf(3) and vfwscanf(3) with just the format string (no arguments
following it).

The following softwares were reported to abort with segmentation fault
and this patch fixes it:
    o  cmake
    o  smartd
    o  devel/ORBit2

dim@ opened an LLVM PR to discuss this clang optimization:
    http://llvm.org/bugs/show_bug.cgi?id=12656

Tested by: bsam@

12 years agoMove several enums and structures required for L2 filtering from ip_fw_private.h...
melifaro [Mon, 30 Apr 2012 10:22:23 +0000 (10:22 +0000)]
Move several enums and structures required for L2 filtering from ip_fw_private.h to ip_fw.h.
Remove ipfw/ip_fw_private.h header from non-ipfw code.

Approved by:        ae(mentor)
MFC after:          2 weeks

12 years agoChange the default to not use packet counters to generate rx interrupts.
np [Mon, 30 Apr 2012 09:46:05 +0000 (09:46 +0000)]
Change the default to not use packet counters to generate rx interrupts.
Rely solely on the timer based mechanism.

Update man page to reflect this change.

MFC after: 1 week

12 years agoAdd support for missing gauth_number_of_chunks field. This Bug was
tuexen [Mon, 30 Apr 2012 08:44:21 +0000 (08:44 +0000)]
Add support for missing gauth_number_of_chunks field. This Bug was
found by Irene Ruengeler.

MFC after: 1 week

12 years agoMake sure that the firmware version is available in
np [Mon, 30 Apr 2012 08:44:10 +0000 (08:44 +0000)]
Make sure that the firmware version is available in
dev.t4nex.X.firmware_version even if the driver fails to attach
properly.  At least it'll be easy to tell what we're dealing with.

MFC after: 1 week

12 years agofix a further typo in the pdfork(2) man page.
rwatson [Mon, 30 Apr 2012 08:00:52 +0000 (08:00 +0000)]
fix a further typo in the pdfork(2) man page.

Submitted by: Norman Hardy
MFC after: 3 days

12 years agoThe returned file descriptor from pdfork(2) is via fdp, not pidp.
rwatson [Mon, 30 Apr 2012 07:32:39 +0000 (07:32 +0000)]
The returned file descriptor from pdfork(2) is via fdp, not pidp.

Submitted by: Norman Hardy
MFC after: 3 days

12 years agoPrint out a warning message if a `lpc setstatus' is done when
gad [Mon, 30 Apr 2012 01:10:13 +0000 (01:10 +0000)]
Print out a warning message if a `lpc setstatus' is done when
the queue is not 'lpc stop'-ed.  In that situation `lpq' will
not display the status message to the user, and the operator
may think the queue is already stopped when it is not.

MFC after: 3 weeks

12 years agoFix a bug in *wscanf's handling of non-wide %s, %c, and %[
das [Mon, 30 Apr 2012 01:08:18 +0000 (01:08 +0000)]
Fix a bug in *wscanf's handling of non-wide %s, %c, and %[
conversions.  Both the specification and the documentation say the
width is interpreted as the max number of wide characters to read, but
the implementation was interpreting it as the number of bytes to convert.
(See also r105317.)

This change has security implications for any applications that depend
on the buggy behavior, but the impact in practice is probably nil.
Any such application would already be buggy on other platforms that
get the semantics right.  Also, these conversions are rarely used;
%ls, %lc, and %l[ are more appropriate.

12 years agoCatch the user-error when no queue name was specified on an
gad [Mon, 30 Apr 2012 00:54:10 +0000 (00:54 +0000)]
Catch the user-error when no queue name was specified on an
lpc-command which supports '-msg' (e.g.: setstatus).  Print
out a helpful error message instead hitting a seg-fault.

MFC after: 3 weeks

12 years agoCopy recent changes from etc/root/dot.cshrc that make the defaults more
eadler [Sun, 29 Apr 2012 22:29:48 +0000 (22:29 +0000)]
Copy recent changes from etc/root/dot.cshrc that make the defaults more
user friendly

Approved by: cperciva
MFC after: 3 days

12 years agoAdd support for:
eadler [Sun, 29 Apr 2012 22:28:15 +0000 (22:28 +0000)]
Add support for:
Olympus FE-210 camera
LG UP3S MP3 player
Laser MP3-2GA13 MP3

PR: usb/119201
Submitted by: Peter Jeremy <peterjeremy@optushome.com.au>
Approved by: cperciva
MFC after: 1 week

12 years agopread(2) might fail with EBUSY, so document it
eadler [Sun, 29 Apr 2012 22:23:00 +0000 (22:23 +0000)]
pread(2) might fail with EBUSY, so document it

PR: docs/167201
Submitted by: Kurt Jaeger <fbsd-ports@opsec.eu>
Approved by: cperciva
MFC after: 3 days

12 years agoAllow users of gprof to get per run output files (using the pid)
eadler [Sun, 29 Apr 2012 22:19:58 +0000 (22:19 +0000)]
Allow users of gprof to get per run output files (using the pid)

PR: bin/99800
Submitted by: Peter Jeremy <peterjeremy@optushome.com.au>
Reviewed by: jilles (code)
Reviewed by: dwhite (doc)
Approved by: cperciva
MFC after: 1 week

12 years agos/gmirror/graid/
mav [Sun, 29 Apr 2012 19:40:50 +0000 (19:40 +0000)]
s/gmirror/graid/

12 years agoAdd support for Multi-TT mode of modern USB HUBs.
hselasky [Sun, 29 Apr 2012 17:12:33 +0000 (17:12 +0000)]
Add support for Multi-TT mode of modern USB HUBs.
This will give you more bandwidth for isochronous
FULL speed applications connected through a
High Speed HUB.

This patch has been tested with XHCI and EHCI.

MFC after: 1 week

12 years agoPreviously, vfscanf()'s wide character processing functions were
das [Sun, 29 Apr 2012 16:28:39 +0000 (16:28 +0000)]
Previously, vfscanf()'s wide character processing functions were
reading wide characters manually.  With this change, they now use
fgetwc().  To make this work, we use an internal version of fgetwc()
with a few extensions: it takes an mbstate * because non-wide streams
don't have a built-in mbstate, and it indicates the number of bytes
read.

vfscanf() now resembles vfwscanf() more closely.  Minor functional
improvements include working xlocale support in vfscanf(), setting the
stream error indicator on encoding errors, and proper handling of
shift-based encodings.  (Actually, making shift-based encodings work
with non-wide streams is hopeless, but the implementation now matches
the broken specification.)

12 years agoPartially revert r232938; ZFS only requires nfs4 but not posix1e.
marius [Sun, 29 Apr 2012 16:21:47 +0000 (16:21 +0000)]
Partially revert r232938; ZFS only requires nfs4 but not posix1e.

Submitted by: jhb

12 years agoDrag in subr_acl_nfs4.c for ZFS automatically, otherwise it's
marius [Sun, 29 Apr 2012 16:14:09 +0000 (16:14 +0000)]
Drag in subr_acl_nfs4.c for ZFS automatically, otherwise it's
unintuitive that "options zfs" requires "options ufs_acl".

12 years agoAdd multiple inclusion protection.
marius [Sun, 29 Apr 2012 15:54:40 +0000 (15:54 +0000)]
Add multiple inclusion protection.

PR: 165025
Submitted by: Gavin Mu
MFC after: 1 week

12 years agoFix WITHOUT_EXAMPLES build:
bschmidt [Sun, 29 Apr 2012 12:48:52 +0000 (12:48 +0000)]
Fix WITHOUT_EXAMPLES build:
While removing unnecessary entries from .PATH.c I missed that for the
examples WPA_SUPPLICANT_DISTDIR/HOSTAPD_DISTDIR is explicitly added to
.PATH.

Tested by: lev
MFC after: 2 weeks

12 years agoAdd a convenience macro for the returns_twice attribute, and apply it to
dim [Sun, 29 Apr 2012 11:04:31 +0000 (11:04 +0000)]
Add a convenience macro for the returns_twice attribute, and apply it to
the prototypes of the appropriate functions (getcontext, savectx,
setjmp, sigsetjmp and vfork).

MFC after: 2 weeks

12 years agoRegenerate src.conf(5)
kib [Sun, 29 Apr 2012 09:37:02 +0000 (09:37 +0000)]
Regenerate src.conf(5)

12 years agoAdd src.conf option WITH_SHARED_TOOLCHAIN to enable building the
kib [Sun, 29 Apr 2012 09:32:44 +0000 (09:32 +0000)]
Add src.conf option WITH_SHARED_TOOLCHAIN to enable building the
toolchain binaries as dynamically linked.  Option is disabled by
default.

Reviewed by: ru (previous version)
MFC after: 2 weeks

12 years agoUse standard getopt(3) error message.
jlh [Sun, 29 Apr 2012 08:17:44 +0000 (08:17 +0000)]
Use standard getopt(3) error message.

Submitted by: jilles
Approved by: kib (mentor)

12 years agoChange cc -> bc : "bc" is "busy count", which is the % of time the channel
adrian [Sat, 28 Apr 2012 23:13:09 +0000 (23:13 +0000)]
Change cc -> bc : "bc" is "busy count", which is the % of time the channel
is considered "busy but not doing any active TX or frame RX."

Just keep in mind that "frame RX" is "decoding what looks like a wifi
signal", not necessarily "frame successfully decoded for this particular
device."

12 years agoAs cron(8) is started with '-s' by default, timezones that observe
gjb [Sat, 28 Apr 2012 22:48:00 +0000 (22:48 +0000)]
As cron(8) is started with '-s' by default, timezones that observe
DST should not need to worry about scheduling jobs when the DST time
changes.

Rather than removing the BUGS section in crontab(5) regarding this,
note that disabling '-s' may still cause jobs to be executed twice or
not at all.

PR: 166318
Submitted by: Florian k Unglaub (f.unglaub%googlemail!com)
MFC After: 1 week

12 years agoAfter thinking about this a bit more, let's not keep statistics per-channel
adrian [Sat, 28 Apr 2012 22:03:19 +0000 (22:03 +0000)]
After thinking about this a bit more, let's not keep statistics per-channel
in the HAL.  That's very memory hungry (32k just for channel statistics)
which would be better served by keeping a summary in the ANI state.

Or, later, keep a survey history in net80211.

So:

* Migrate the ah_chansurvey array to be a single entry, for the current
  channel.
* Change the ioctl interface and ANI code to just reference that.
* Clear the ah_chansurvey array during channel reset, both in the AR5212
  and AR5416 reset path.

12 years agoFix small documentation mistakes.
jlh [Sat, 28 Apr 2012 21:50:30 +0000 (21:50 +0000)]
Fix small documentation mistakes.

Submitted by: brueffer
Approved by: kib (mentor)

12 years agoImport stdbuf(1) and the shared library it relies on.
jlh [Sat, 28 Apr 2012 20:52:20 +0000 (20:52 +0000)]
Import stdbuf(1) and the shared library it relies on.
This tool changes the default buffering behaviour of standard
stdio streams.

It only works on dynamic binaries.  To make it work for static
ones it would require cluttering stdio because there no single
entry point.

PR: 166660
Reviewed by: current@, jhb
Approved by: kib (mentor)
MFC after: 1 week

12 years agoAs of r226840, GELI starts one thread per CPU.
gjb [Sat, 28 Apr 2012 20:23:13 +0000 (20:23 +0000)]
As of r226840, GELI starts one thread per CPU.

PR: 167382
Submitted by: John W. O'Brien (john%saltant.com)
X-Needs-MFC: r226840

12 years agoFix several memory and lock leaks on the out of memory condition.
kib [Sat, 28 Apr 2012 18:57:27 +0000 (18:57 +0000)]
Fix several memory and lock leaks on the out of memory condition.

Reported by: Matt Miller <matt matthewjmiller net>
MFC after: 1 week

12 years agoAlthough not strictly needed, quieten a compiler warning by a user.
adrian [Sat, 28 Apr 2012 18:56:17 +0000 (18:56 +0000)]
Although not strictly needed, quieten a compiler warning by a user.

12 years agoWhitespace changes.
tuexen [Sat, 28 Apr 2012 16:32:49 +0000 (16:32 +0000)]
Whitespace changes.

MFC after: 3 days

12 years agoFix build on 32-bit systems.
nwhitehorn [Sat, 28 Apr 2012 14:42:49 +0000 (14:42 +0000)]
Fix build on 32-bit systems.

12 years agoMove crypto stuff into a common Makefile. While here fix the
bschmidt [Sat, 28 Apr 2012 11:11:53 +0000 (11:11 +0000)]
Move crypto stuff into a common Makefile.  While here fix the
WITHOUT_OPENSSL build by using the wpa's internal crypto support if
openssl is not available, this allows us to unconditionally enable
EAP support.

MFC after: 2 weeks

12 years agonot only the file names have changed from eap_xxx.c to eap_server_xxx.c,
bschmidt [Sat, 28 Apr 2012 11:02:32 +0000 (11:02 +0000)]
not only the file names have changed from eap_xxx.c to eap_server_xxx.c,
the defines too

MFC after: 2 weeks

12 years agoenable EAP_GTC and EAP_OTP to match upstream's default configuration
bschmidt [Sat, 28 Apr 2012 11:01:12 +0000 (11:01 +0000)]
enable EAP_GTC and EAP_OTP to match upstream's default configuration

MFC after: 2 weeks

12 years agoFollow up r234711 and do same for the supplicant, one file/option per
bschmidt [Sat, 28 Apr 2012 10:59:29 +0000 (10:59 +0000)]
Follow up r234711 and do same for the supplicant, one file/option per
line. While here merge the options which are always enabled.

MFC after: 2 weeks

12 years agoExtend the ANI code to implement basic channel survey support.
adrian [Sat, 28 Apr 2012 08:29:46 +0000 (08:29 +0000)]
Extend the ANI code to implement basic channel survey support.

* Always call ar5416GetListenTime()
* Modify ar5416GetListenTime() to:
  + don't update the ANI state if there isn't any ANI state;
  + don't update the channel survey state if there's no active
    channel - just to be paranoid
  + copy the channel survey results into the current sample slot
    based on the current channel; then increment the sample counter
    and sample history counter.
* Modify ar5416GetMIBCyclesPct() to simply return a HAL_SURVEY_SAMPLE,
  rather than a set of percentages.  The ANI code wasn't using the
  percentages anyway.

TODO:

* Create a new function which fetches the survey results periodically
* .. then modify the ANI code to use the pre-fetched values rather than
  fetching them again
* Roll the 11n ext busy function from ar5416_misc.c to update all the
  counters, then do the result calculation
* .. then, modify the MIB counter routine to correctly fetch a snapshot -
  freeze the counters, fetch the values, then reset the counters.

12 years agoAdd a tool to print out min, average and max channel survey information
adrian [Sat, 28 Apr 2012 08:17:19 +0000 (08:17 +0000)]
Add a tool to print out min, average and max channel survey information
from the current channel.

There seem to be some occasional issues with the extension channel
counters reporting more than 100% of use.  I'll investigate that
soon.

12 years agoFetch the channel survey code from the HAL.
adrian [Sat, 28 Apr 2012 08:15:40 +0000 (08:15 +0000)]
Fetch the channel survey code from the HAL.

This information is currently not being populated by any of the HAL
modules.

12 years agoExtend the HAL channel survey statistics:
adrian [Sat, 28 Apr 2012 08:12:51 +0000 (08:12 +0000)]
Extend the HAL channel survey statistics:

* include ext_chan_busy;
* include ofdm/cck phy error counts, which aren't yet implemented.

12 years agoAdd a comment about this DELAY(), I'm not sure whether it's supposed
adrian [Sat, 28 Apr 2012 05:00:47 +0000 (05:00 +0000)]
Add a comment about this DELAY(), I'm not sure whether it's supposed
to be for a DDR/FIFO flush or something else.

12 years agoAdd an AR5416 PCU DMA stop method, as a check for the AR9130 is needed.
adrian [Sat, 28 Apr 2012 03:07:36 +0000 (03:07 +0000)]
Add an AR5416 PCU DMA stop method, as a check for the AR9130 is needed.

The reference driver has a 3ms delay for the AR9130 but I'm not as yet
sure why.  From what I can gather, it's likely waiting for some FIFO
flush to occur.

At some point in the future it may be worthwhile adding a WMAC
FIFO flush here, but that'd require some side-call through to the SoC
DDR flush routines.

Obtained from: Atheros

12 years agoRemove the RFC 1319 MD2 Message-Digest Algorithm routines from libmd.
obrien [Sat, 28 Apr 2012 02:48:51 +0000 (02:48 +0000)]
Remove the RFC 1319 MD2 Message-Digest Algorithm routines from libmd.

1. The licensing terms for the MD2 routines from RFC is not under a BSD-like
   license.  Instead it is only granted for non-commercial Internet
   Privacy-Enhanced Mail.
2. MD2 is quite deprecated as it is no longer considered a cryptographically
   strong algorithm.

Discussed with: so (cperciva), core

12 years agoAfter switching mutexes to use lwsync, they no longer provide sufficient
nwhitehorn [Sat, 28 Apr 2012 00:12:23 +0000 (00:12 +0000)]
After switching mutexes to use lwsync, they no longer provide sufficient
guarantees on acquire for the tlbie mutex. Conversely, the TLB invalidation
sequence provides guarantees that do not need to be redundantly applied on
release. Roll a small custom lock that is just right. Simultaneously,
convert the SLB tree changes back to lwsync, as changing them to sync
was a misdiagnosis of the tlbie barrier problem this commit actually fixes.

12 years agoFix the dates and history as of the move to HEAD.
jamie [Fri, 27 Apr 2012 23:39:21 +0000 (23:39 +0000)]
Fix the dates and history as of the move to HEAD.

12 years agoIncrease DFLDSIZ from 128 MiB to 32 GiB. On amd64 there's plenty of virtual
rmh [Fri, 27 Apr 2012 22:27:21 +0000 (22:27 +0000)]
Increase DFLDSIZ from 128 MiB to 32 GiB.  On amd64 there's plenty of virtual
memory available, so there is no need to be so conservative about it.

Reviewed by: arch

12 years agoIt was reported via email that some non-FreeBSD NFS servers
rmacklem [Fri, 27 Apr 2012 22:23:06 +0000 (22:23 +0000)]
It was reported via email that some non-FreeBSD NFS servers
do not include file attributes in the reply to an NFS create RPC
under certain circumstances.
This resulted in a vnode of type VNON that was not usable.
This patch adds an NFS getattr RPC to nfs_create() for this case,
to fix the problem. It was tested by the person that reported
the problem and confirmed to fix this case for their server.

Tested by: Steven Haber (steven.haber at isilon.com)
MFC after: 2 weeks

12 years agoFix a leak of namei lookup path buffers that occurs when a
rmacklem [Fri, 27 Apr 2012 20:23:24 +0000 (20:23 +0000)]
Fix a leak of namei lookup path buffers that occurs when a
ZFS volume is exported via the new NFS server. The leak occurred
because the new NFS server code didn't handle the case where
a file system sets the SAVENAME flag in its VOP_LOOKUP() and
ZFS does this for the DELETE case.

Tested by: Oliver Brandmueller (ob at gruft.de), hrs
PR: kern/167266
MFC after: 1 month

12 years agoAllow building a powerpc cross-kgdb.
marcel [Fri, 27 Apr 2012 20:16:20 +0000 (20:16 +0000)]
Allow building a powerpc cross-kgdb.

12 years agoAdd a note to hostapd.conf about an unhelpful error message in the hope that
theraven [Fri, 27 Apr 2012 15:35:09 +0000 (15:35 +0000)]
Add a note to hostapd.conf about an unhelpful error message in the hope that
it won't confuse anyone else in the future.

MFC after: 1 week

12 years agoRemove unused structure.
tuexen [Fri, 27 Apr 2012 13:58:09 +0000 (13:58 +0000)]
Remove unused structure.
Reported by Irene Ruengeler.

MFC after: 3 days

12 years agor234173 missed one instance of FREE(line).
des [Fri, 27 Apr 2012 11:29:09 +0000 (11:29 +0000)]
r234173 missed one instance of FREE(line).

Noticed by: glebius@

12 years agoStyle.
hselasky [Fri, 27 Apr 2012 09:22:46 +0000 (09:22 +0000)]
Style.

Suggested by: dumbbell @

12 years agoFix RAID5 level names changed at r234603.
mav [Fri, 27 Apr 2012 08:49:15 +0000 (08:49 +0000)]
Fix RAID5 level names changed at r234603.

12 years agoRemove some of the redundant locking done in the TX completion path,
adrian [Thu, 26 Apr 2012 23:57:24 +0000 (23:57 +0000)]
Remove some of the redundant locking done in the TX completion path,
when checking whether BAR frames need to be checked.

12 years agoFix ordering issue. 'make xdev' can fail with -jN because it tries to run the
imp [Thu, 26 Apr 2012 23:12:52 +0000 (23:12 +0000)]
Fix ordering issue.  'make xdev' can fail with -jN because it tries to run the
xdev-install step while xdev-build is still running.

Submitted by: Ian Lepore

12 years agoClean up the intr* MD KPI from the SMP dependency, removing a cause of
attilio [Thu, 26 Apr 2012 20:24:25 +0000 (20:24 +0000)]
Clean up the intr* MD KPI from the SMP dependency, removing a cause of
discrepancy between modules and kernel, but deal with SMP differences
within the functions themselves.

As an added bonus this also helps in terms of code readability.

Requested by: gibbs
Reviewed by: jhb, marius
MFC after: 1 week

12 years agoMove sctp_sendv and sctp_recvv to FBSD_1.3 as suggested by
tuexen [Thu, 26 Apr 2012 19:56:06 +0000 (19:56 +0000)]
Move sctp_sendv and sctp_recvv to FBSD_1.3 as suggested by
Konstantin Belousov.

MFC after: 1 week.
X-MFC with: r234715

12 years agoExport symbols for sctp_sendv() and sctp_recvv().
tuexen [Thu, 26 Apr 2012 19:31:16 +0000 (19:31 +0000)]
Export symbols for sctp_sendv() and sctp_recvv().

MFC after: 1 week

12 years agoUse the .Bx macro instead of BSD
eadler [Thu, 26 Apr 2012 19:21:58 +0000 (19:21 +0000)]
Use the .Bx macro instead of BSD

Submitted by: ru
Approved by: ru
MFC after: 3 days
X-MFC-With: r234700

12 years agoA new jail(8) with a configuration file, ultimately to replace the work
jamie [Thu, 26 Apr 2012 17:36:05 +0000 (17:36 +0000)]
A new jail(8) with a configuration file, ultimately to replace the work
currently done by /etc/rc.d/jail.

MFC after: 3 months

12 years agofix EAP server support after the 0.7.3 import:
bschmidt [Thu, 26 Apr 2012 17:35:11 +0000 (17:35 +0000)]
fix EAP server support after the 0.7.3 import:
- eap_xxx.c files have been renamed to eap_server_xxx.c
- additional crypto files are required for some options
- EAP_MD5 and EAP_GTC is now enabled by default to match vendor config
- move each file on its own line to hopefully make further diffs easier
  to read

EAP_SERVER is now enabled by default. Fiddling with HOSTAPD_CFLAGS in
src.conf is no longer required to get a basic WPA-EAP/radius setup
running.

Tested by: Johann Hugo <jhugo at meraka.csir.co.za>
MFC after: 2 weeks

12 years agoAdd libusb.so.2 to obsolete files.
hselasky [Thu, 26 Apr 2012 14:34:46 +0000 (14:34 +0000)]
Add libusb.so.2 to obsolete files.

Suggested by: dumbbell @

12 years agoFix a bug in the TCP tracerouting which resulted in not accepting any
tuexen [Thu, 26 Apr 2012 13:45:17 +0000 (13:45 +0000)]
Fix a bug in the TCP tracerouting which resulted in not accepting any
incoming packets. So all packets seemed to be lost.

MFC after: 1 week

12 years agoDocument the standardization status of err* and warn*
eadler [Thu, 26 Apr 2012 12:59:08 +0000 (12:59 +0000)]
Document the standardization status of err* and warn*

PR: docs/164939
Submitted by: Niclas Zeising <zeising@daemonic.se>
Approved by: bcr
MFC after: 3 days

12 years agoFix a type in an SCTP AUTH related notification. Keep the old name
tuexen [Thu, 26 Apr 2012 11:07:15 +0000 (11:07 +0000)]
Fix a type in an SCTP AUTH related notification. Keep the old name
for backwards compatibility.
Spotted by Irene Ruengeler.

MFC after: 3 days

12 years agoFixed a misspelling of OLD_LIBS in r232671 by pluknet@.
ru [Thu, 26 Apr 2012 09:07:32 +0000 (09:07 +0000)]
Fixed a misspelling of OLD_LIBS in r232671 by pluknet@.
(The patch in the PR 165523 had this spelled correctly.)

12 years agoAdd the BT register definitions for AR9285/AR9287 BT coexistence.
adrian [Thu, 26 Apr 2012 02:03:16 +0000 (02:03 +0000)]
Add the BT register definitions for AR9285/AR9287 BT coexistence.

Obtained from: Linux ath9k

12 years agoImplement the D "cpu" variable, which returns curcpu. I have chosen not
rstone [Thu, 26 Apr 2012 01:07:03 +0000 (01:07 +0000)]
Implement the D "cpu" variable, which returns curcpu.  I have chosen not
to follow the example of OpenSolaris and its descendants, which implemented
cpu as an inline that took a value out of curthread.  At certain points in
the FreeBSD scheduler curthread->td_oncpu will no longer be valid (in
particukar, just before the thread gets descheduled) so instead I have
implemented this as its own built-in variable.

Sponsored by: Sandvine Inc.
MFC after: 1 week

12 years agoCorrect r228114 and use the same implementation for tilde.h as for history.h
obrien [Thu, 26 Apr 2012 00:51:43 +0000 (00:51 +0000)]
Correct r228114 and use the same implementation for tilde.h as for history.h

12 years ago- Disable MMU before reconfiguring the pagetables in the trampoline code.
stas [Wed, 25 Apr 2012 22:44:07 +0000 (22:44 +0000)]
- Disable MMU before reconfiguring the pagetables in the trampoline code.
  Otherwise we might end up overwriting the PTEs we're currently using
  for some reason.

Reviewed by: cognet

12 years agoFix typo.
hselasky [Wed, 25 Apr 2012 21:59:56 +0000 (21:59 +0000)]
Fix typo.

12 years agoBump the libusb major version due to the last commit, which
hselasky [Wed, 25 Apr 2012 21:50:20 +0000 (21:50 +0000)]
Bump the libusb major version due to the last commit, which
changes the libusb 1.0 API. While at it, correct a manual
page symlink.

Suggested by: kib @

12 years agoI stopped using my middle name years ago.
des [Wed, 25 Apr 2012 18:07:35 +0000 (18:07 +0000)]
I stopped using my middle name years ago.

12 years agoFix binary compatibility to the official LibUSB 1.0.
hselasky [Wed, 25 Apr 2012 17:54:26 +0000 (17:54 +0000)]
Fix binary compatibility to the official LibUSB 1.0.
This is useful for GNU/kFreeBSD and the libusb2debian port.
Applications using the asynchronous API of LibUSB 1.0 needs
to be recompiled after this update.

Found by: lme @

12 years agoFor Yukon II controllers that implement optional temperature sensor
yongari [Wed, 25 Apr 2012 02:46:13 +0000 (02:46 +0000)]
For Yukon II controllers that implement optional temperature sensor
and voltage sensor, TWSI is used to get sensor data.  msk(4) does
not monitor these sensors and interrupt for TWSI completion is
disabled by default.
However, due to unknown reason, the TWSI completion interrupt fires
and it resulted in interrupt storm.  To fix it, acknowledges the
TWSI completion interrupt if driver see the event.  Given that not
all Yukon II controllers show the issue it could be a silicon bug
which does not honor interrupt masking.

Probably the right way to address the issue is disabling automatic
TWSI cycle initiation against these sensors.  It would be even
better to implement reading voltage/temperature from the NIC but it
requires access to National LM80 through TWSI and documentation to
do that is not available yet(probably will never happen).

Reported by: jhb
Tested by: jhb
MFC after: 2 weeks

12 years agoFix cut-and-paste comment error
emaste [Wed, 25 Apr 2012 02:05:14 +0000 (02:05 +0000)]
Fix cut-and-paste comment error

Submitted by: sbruno

12 years agoAdd placeholder methods for WMI command access (USB, perhaps SDIO later)
adrian [Wed, 25 Apr 2012 01:42:22 +0000 (01:42 +0000)]
Add placeholder methods for WMI command access (USB, perhaps SDIO later)
which will be needed for AR7010 and AR9287 USB access.

The names differ slightly from Linux and Atheros, for the sake of
consistency.

A lot more work is required in order to convert the 11n HAL support to
fully support USB.

12 years agoAdd a note that explains what the current state of the register byte order
adrian [Wed, 25 Apr 2012 01:24:39 +0000 (01:24 +0000)]
Add a note that explains what the current state of the register byte order
macros are.

12 years agoWork around llvm PR 12623, which makes variables declared with .symver
dim [Tue, 24 Apr 2012 18:41:17 +0000 (18:41 +0000)]
Work around llvm PR 12623, which makes variables declared with .symver
sometimes disappear from the resulting object file, if compiled with
clang.  In particular, this can lead to errors when building world with
clang and -g, similar to:

  /usr/obj/usr/src/tmp/usr/lib/libc.so: undefined reference to `_malloc_options'

Reported by: Conrad J. Sabatier <conrads@.no.cox.net>
Reviewed by: jasone

12 years agoTake the spinlock around clearing of the fp->_flags in fclose(3), which
kib [Tue, 24 Apr 2012 17:51:36 +0000 (17:51 +0000)]
Take the spinlock around clearing of the fp->_flags in fclose(3), which
indicates the avaliability of FILE, to prevent possible reordering of
the writes as seen by other CPUs.

Reported by: Fengwei yin <yfw.bsd gmail com>
Reviewed by: jhb
MFC after: 1 week

12 years agoAfter r234596, temporarily disable building clang on 32-bit PowerPC,
dim [Tue, 24 Apr 2012 17:00:30 +0000 (17:00 +0000)]
After r234596, temporarily disable building clang on 32-bit PowerPC,
until we are able to fix the binutils bug that makes linking clang fail
with "relocation truncated to fit: R_PPC_REL24" errors.  This should fix
the tinderboxes for now.

12 years agoAdd missing and probably also mandatory -h option.
hselasky [Tue, 24 Apr 2012 14:06:07 +0000 (14:06 +0000)]
Add missing and probably also mandatory -h option.

MFC after: 1 week

12 years agoAdd -u option to 'zfs create' that prevents file system from being
pjd [Tue, 24 Apr 2012 13:44:46 +0000 (13:44 +0000)]
Add -u option to 'zfs create' that prevents file system from being
automatically mounted. This is similar to the 'zfs receive -u'.

MFC after: 1 week

12 years agoSwitch the default I/O memory barrier to eieio, as it should be. This
nwhitehorn [Tue, 24 Apr 2012 13:37:43 +0000 (13:37 +0000)]
Switch the default I/O memory barrier to eieio, as it should be. This
does not appear to cause any problems due to fixes elsewhere.

MFC after: 2 months

12 years agoRevert r234581 for this file. The lockless SLB tree code does in fact need
nwhitehorn [Tue, 24 Apr 2012 13:36:41 +0000 (13:36 +0000)]
Revert r234581 for this file. The lockless SLB tree code does in fact need
a heavyweight sync instead of a lightweight sync to function properly.
Thanks to mdf for the clarification.

12 years agojemalloc: pointer size definition for 64-bit mips platforms
jchandra [Tue, 24 Apr 2012 11:42:48 +0000 (11:42 +0000)]
jemalloc: pointer size definition for 64-bit mips platforms

LG_SIZEOF_PTR has to be defined as 3 when jemalloc is compiled for
64 bit platforms.

Reviewed by: juli
Approved by: jasone

12 years agoDo not toggle IFCAP_TSO4 if we would also do TSO6. Given the driver does
bz [Tue, 24 Apr 2012 08:30:55 +0000 (08:30 +0000)]
Do not toggle IFCAP_TSO4 if we would also do TSO6.  Given the driver does
not currently announce/support TSO6 that cannot happen. Clean it up anyway
for consistency.

Reviewed by: yongari
MFC after: 1 week