]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
10 years agoMake clock optional on uart nodes. It is a FreeBSD-specific extention,
imp [Sat, 8 Mar 2014 03:39:09 +0000 (03:39 +0000)]
Make clock optional on uart nodes. It is a FreeBSD-specific extention,
and won't be present in vendor supplied dts files.

10 years agoAdd commented out dts for sam9260ek as well as early printf support.
imp [Sat, 8 Mar 2014 03:22:25 +0000 (03:22 +0000)]
Add commented out dts for sam9260ek as well as early printf support.

10 years agoInitial cut for DTS on the hl201 board.
imp [Sat, 8 Mar 2014 03:22:20 +0000 (03:22 +0000)]
Initial cut for DTS on the hl201 board.

10 years ago - Make runq_steal_from more aggressive. Previously it would examine only
jeff [Sat, 8 Mar 2014 00:35:06 +0000 (00:35 +0000)]
 - Make runq_steal_from more aggressive.  Previously it would examine only
   a single priority queue.  If that queue had a thread or threads which
   could not be migrated we would fail to steal load.  This could cause
   starvation in situations where cores are idle.

Submitted by: Doug Kilpatrick <dkilpatrick@isilon.com>
Tested by: pho
Reviewed by: mav
Sponsored by: EMC / Isilon Storage Division

10 years agoMove all the files named foo/common.c to foo/foo_common.c, as
imp [Sat, 8 Mar 2014 00:14:40 +0000 (00:14 +0000)]
Move all the files named foo/common.c to foo/foo_common.c, as
appropriate for each of the 'foo' in the tree. This will allow us to
compile them together (although symbol conflicts prevent us from doing
that today, this just fixes the file name collision).

10 years agoPartial revert of change 262914. I screwed up subversion syntax with
asomers [Fri, 7 Mar 2014 23:40:36 +0000 (23:40 +0000)]
Partial revert of change 262914.  I screwed up subversion syntax with
perforce syntax and committed some unrelated files.  Only devd files
should've been committed.

Reported by:  imp
Pointy hat to: asomers
MFC after: 3 weeks
X-MFC-With: r262914

10 years agosbin/devd/devd.8
asomers [Fri, 7 Mar 2014 23:30:48 +0000 (23:30 +0000)]
sbin/devd/devd.8
sbin/devd/devd.cc
Add a -q flag to devd that will suppress syslog logging at
LOG_NOTICE or below.

Requested by: ian@ and imp@
MFC after: 3 weeks
Sponsored by: Spectra Logic Corporation

10 years agocddl/contrib/opensolaris/lib/libuutil/common/uu_avl.c
asomers [Fri, 7 Mar 2014 23:01:35 +0000 (23:01 +0000)]
cddl/contrib/opensolaris/lib/libuutil/common/uu_avl.c
Fix a memory leak in uu_avl_pool_create: pthread_mutex_init without
a corresponding pthread_mutex_destroy.  It shows up, among other
places, when doing "zfs list".

MFC after: 3 weeks
Sponsored by: Spectra Logic Corporation

10 years agoTake a group name on the command-line if available.
dteske [Fri, 7 Mar 2014 22:29:00 +0000 (22:29 +0000)]
Take a group name on the command-line if available.

10 years agoFix copy/paste error in a comment.
dteske [Fri, 7 Mar 2014 22:24:53 +0000 (22:24 +0000)]
Fix copy/paste error in a comment.

10 years agoChange dipatch words from group* to *Group to backward compatible with
dteske [Fri, 7 Mar 2014 22:17:35 +0000 (22:17 +0000)]
Change dipatch words from group* to *Group to backward compatible with
ye-olden sysinstall(8).

10 years agoStrip arm/conf/DEFAULTS down to just items that are mandatory for running
ian [Fri, 7 Mar 2014 21:36:49 +0000 (21:36 +0000)]
Strip arm/conf/DEFAULTS down to just items that are mandatory for running
the architecture.  Move the other contents into each of the individual
config files.

Requested by: imp

10 years agoRewrite groupmgmt -- hooking it into the scripting system with dispatch
dteske [Fri, 7 Mar 2014 20:44:19 +0000 (20:44 +0000)]
Rewrite groupmgmt -- hooking it into the scripting system with dispatch
commands groupAdd, groupDelete, and groupEdit. Getting rid of the awkward-
to-use `groupinput' bolt-on which Ron and I talked about rewriting.

10 years agoFix the arm sys_sigreturn(): its argument is a struct ucontext, not a
ian [Fri, 7 Mar 2014 20:32:45 +0000 (20:32 +0000)]
Fix the arm sys_sigreturn(): its argument is a struct ucontext, not a
struct sigframe containing the struct ucontext.

The signal trampoline return code on the other hand DOES have just a
struct sigframe on the stack to work with, so have it get a pointer to
the ucontext out of there to pass along to sys_sigreturn.

In other words, make everything work right whether sys_sigreturn is
invoked from the trampoline or from userland code calling sigreturn(2).

Submitted by: Takashi Komatsu <komatsu.taka@jp.panasonic.com>
Reviewed by: cognet

10 years agoComment -- to go with NL global introduced (but not mentioned) by r262901
dteske [Fri, 7 Mar 2014 20:32:26 +0000 (20:32 +0000)]
Comment -- to go with NL global introduced (but not mentioned) by r262901

10 years agos/__number/__num/ for code clarify but more to prevent localization of
dteske [Fri, 7 Mar 2014 20:29:19 +0000 (20:29 +0000)]
s/__number/__num/ for code clarify but more to prevent localization of
__number if passed as the var_to_set argument.

10 years agoCentralize function name. Update a comment while here.
dteske [Fri, 7 Mar 2014 20:24:59 +0000 (20:24 +0000)]
Centralize function name. Update a comment while here.

10 years agoMake f_show_err non-fatal.
dteske [Fri, 7 Mar 2014 20:20:27 +0000 (20:20 +0000)]
Make f_show_err non-fatal.

10 years agoFix incorrect return status if var_to_set and var_to_get are the same.
dteske [Fri, 7 Mar 2014 20:18:39 +0000 (20:18 +0000)]
Fix incorrect return status if var_to_set and var_to_get are the same.

10 years agoFix a typo in a comment.
dteske [Fri, 7 Mar 2014 20:15:52 +0000 (20:15 +0000)]
Fix a typo in a comment.

10 years agoAdd missing local declaration.
dteske [Fri, 7 Mar 2014 20:15:08 +0000 (20:15 +0000)]
Add missing local declaration.

10 years agoAllow dispatched reswords to carry arguments. Fix a comment while here.
dteske [Fri, 7 Mar 2014 20:12:59 +0000 (20:12 +0000)]
Allow dispatched reswords to carry arguments. Fix a comment while here.

10 years agokern/Makefile
asomers [Fri, 7 Mar 2014 19:30:03 +0000 (19:30 +0000)]
kern/Makefile
Set WARNS=5 for all files in this directory

kern/unix_seqpacket_test.c
Fix compiler warnings.  Most were benign, but rcvbuf_oversized
wasn't working as intended because I forgot to set the buffer sizes.

MFC after: 2 weeks
Reported by: pho
Sponsored by: Spectra Logic Corporation

10 years agowlanstats: Add some logic to translate from a vap to its parent device.
eadler [Fri, 7 Mar 2014 17:47:53 +0000 (17:47 +0000)]
wlanstats: Add some logic to translate from a vap to its parent device.

This isn't entirely correct (as the device may not necc. be called wlan*) but
this will be further worked into a combined ath, iwn, wlan, etc. tool.

Discussed with: jhb, adrian

10 years ago- Export panel info to DTS
br [Fri, 7 Mar 2014 16:14:51 +0000 (16:14 +0000)]
- Export panel info to DTS
- Reset all the layers before setup first one
- Enable display

10 years agolibc man pages: Remove reference to non-existent FreeBSD Security
eadler [Fri, 7 Mar 2014 15:35:54 +0000 (15:35 +0000)]
libc man pages: Remove reference to non-existent FreeBSD Security
Architecture

MFC After: 3 days

10 years agoFix support for increased logical sector size (4K-native drives).
mav [Fri, 7 Mar 2014 09:45:40 +0000 (09:45 +0000)]
Fix support for increased logical sector size (4K-native drives).

- Logical sector size is measured in words, not bytes.
- If physical sector is not bigger then logical sector, it does not mean
it should be set equal to 512 bytes, but set to logical sector.

PR: misc/187269
Submitted by: Ravi Pokala <rpokala@panasas.com>
MFC after: 1 week

10 years agoAdd driver for Port control and interrupts (PORT).
br [Fri, 7 Mar 2014 07:06:36 +0000 (07:06 +0000)]
Add driver for Port control and interrupts (PORT).

PORT is responsible for external interrupts management,
so move IRQ lines from GPIO driver.

10 years agoOpen the uart emulation's backing tty in non-blocking mode.
grehan [Fri, 7 Mar 2014 06:23:37 +0000 (06:23 +0000)]
Open the uart emulation's backing tty in non-blocking mode.
This fixes the issue of bhyve appearing to halt when using
nmdm ports for the console, until a connection is made to
the other end.

bhyveload already does this.

Reported by: Many.
MFC after: 3 weeks.

10 years agowlanstats: add help
eadler [Fri, 7 Mar 2014 01:23:49 +0000 (01:23 +0000)]
wlanstats: add help

- add a help (-h) flag
- move usage into itsown function

10 years agoSlight if reordering to make error branch last.
imp [Fri, 7 Mar 2014 01:01:57 +0000 (01:01 +0000)]
Slight if reordering to make error branch last.

10 years agoAdd option TMPFS to arm/conf/DEFAULTS, remove it from the few configs
ian [Fri, 7 Mar 2014 00:25:23 +0000 (00:25 +0000)]
Add option TMPFS to arm/conf/DEFAULTS, remove it from the few configs
that have it individually.  Concensus on freebsd-arm@ is that it should
be included in all ARM kernels.

10 years agofts: Don't abort if an empty pathname is given.
jilles [Thu, 6 Mar 2014 22:47:11 +0000 (22:47 +0000)]
fts: Don't abort if an empty pathname is given.

Make fts_open(3) treat an empty pathname like any other pathname that cannot
be lstatted because of [ENOENT].

It is rather confusing if  rm -rf file1 "" file2  does not remove file1 and
file2.

PR: bin/187264
MFC after: 2 weeks

10 years agoWhen calculating the MPU freq, make sure not to overflow by using a uint64_t.
cognet [Thu, 6 Mar 2014 21:07:13 +0000 (21:07 +0000)]
When calculating the MPU freq, make sure not to overflow by using a uint64_t.

PR: arm/187223
Submitted by: Svatopluk Kraus <onwahe@gmail.com>

10 years agoext2fs: Fix a bug when sorting htree entries.
pfg [Thu, 6 Mar 2014 21:02:16 +0000 (21:02 +0000)]
ext2fs: Fix a bug when sorting htree entries.

This a typo introduced when bringing the original code from NetBSD.

Reported by: Mike Ma
MFC after: 3 days

10 years agoOnly use -lpthread for unix_seqpacket_test, not for all test programs.
asomers [Thu, 6 Mar 2014 20:39:56 +0000 (20:39 +0000)]
Only use -lpthread for unix_seqpacket_test, not for all test programs.

Reported by: Garrett Cooper
MFC after: 3 weeks
Sponsored by: Spectra Logic Corporation

10 years agoFix PR kern/185813 "SOCK_SEQPACKET AF_UNIX sockets with asymmetrical
asomers [Thu, 6 Mar 2014 20:24:15 +0000 (20:24 +0000)]
Fix PR kern/185813 "SOCK_SEQPACKET AF_UNIX sockets with asymmetrical
buffers drop packets".  It was caused by a check for the space available
in a sockbuf, but it was checking the wrong sockbuf.

sys/sys/sockbuf.h
sys/kern/uipc_sockbuf.c
    Add sbappendaddr_nospacecheck_locked(), which is just like
    sbappendaddr_locked but doesn't validate the receiving socket's
    space.  Factor out common code into sbappendaddr_locked_internal().
    We shouldn't simply make sbappendaddr_locked check the space and
    then call sbappendaddr_nospacecheck_locked, because that would cause
    the O(n) function m_length to be called twice.

sys/kern/uipc_usrreq.c
    Use sbappendaddr_nospacecheck_locked for SOCK_SEQPACKET sockets,
    because the receiving sockbuf's size limit is irrelevant.

tests/sys/kern/unix_seqpacket_test.c
    Now that 185813 is fixed, pipe_128k_8k fails intermittently due to
    185812.  Make it fail every time by adding a usleep after starting
    the writer thread and before starting the reader thread in
    test_pipe.  That gives the writer time to fill up its send buffer.
    Also, clear the expected failure message due to 185813.  It actually
    said "185812", but that was a typo.

PR: kern/185813
Reviewed by: silence from freebsd-net@ and rwatson@
MFC after: 3 weeks
Sponsored by: Spectra Logic Corporation

10 years agoPart 2 of bug 187310.. had to commit separately due to local confusion.
julian [Thu, 6 Mar 2014 19:58:03 +0000 (19:58 +0000)]
Part 2 of bug 187310.. had to commit separately due to local confusion.
Don't let pw crash when give certain input.

PR: 187310
Submitted by: Kim Shrier
MFC after: 1 week

10 years agoStop pw(8) from segfaulting when given certain input
julian [Thu, 6 Mar 2014 19:26:08 +0000 (19:26 +0000)]
Stop pw(8) from segfaulting when given certain input

PR:187310
Submitted by: Kim Shrier
Obtained from: bug
MFC after: 1 week

10 years agoAdd a hack-ish attempt to provide backwards-compatibility with
gjb [Thu, 6 Mar 2014 18:48:02 +0000 (18:48 +0000)]
Add a hack-ish attempt to provide backwards-compatibility with
release.conf SVNROOT entries that do not have a trailing '/'.

In order to provide a mechanism to use !svn, the trailing '/'
was added to SVNROOT so there were no assumptions being made
about '/' being in the URL between SVNROOT and SRCBRANCH.

Sponsored by: The FreeBSD Foundation

10 years agoDisable libwrap (TCP wrappers) support in rpcbind by default, introducing
mav [Thu, 6 Mar 2014 17:33:27 +0000 (17:33 +0000)]
Disable libwrap (TCP wrappers) support in rpcbind by default, introducing
new command line options -W, to enable it when needed.

On my tests this change by almost ten times improves rpcbind performance.

No objections: many, net@

10 years ago- Move carl to the alumni section
pgj [Thu, 6 Mar 2014 17:33:12 +0000 (17:33 +0000)]
- Move carl to the alumni section

10 years agoMinor fix to r262789.
mav [Thu, 6 Mar 2014 12:37:25 +0000 (12:37 +0000)]
Minor fix to r262789.

MFC after: 6 days

10 years agoMake reset handling in iSCSI target RFC-compliant. This fixes some rare
trasz [Thu, 6 Mar 2014 10:45:53 +0000 (10:45 +0000)]
Make reset handling in iSCSI target RFC-compliant.  This fixes some rare
hangs with Open-iSCSI (Linux).

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

10 years agoMigrate npestats to use bsdstat.
adrian [Thu, 6 Mar 2014 07:50:54 +0000 (07:50 +0000)]
Migrate npestats to use bsdstat.

10 years agoFix compiler warning. Thanks clang!
adrian [Thu, 6 Mar 2014 07:49:12 +0000 (07:49 +0000)]
Fix compiler warning. Thanks clang!

10 years agoMigrate mwlstats to use bsdstat.
adrian [Thu, 6 Mar 2014 07:48:43 +0000 (07:48 +0000)]
Migrate mwlstats to use bsdstat.

10 years agoMigrate athstats to use bsdstat.
adrian [Thu, 6 Mar 2014 07:47:19 +0000 (07:47 +0000)]
Migrate athstats to use bsdstat.

10 years agoFix a compiler warning.
adrian [Thu, 6 Mar 2014 07:46:32 +0000 (07:46 +0000)]
Fix a compiler warning.

Thanks Clang!

10 years agoMigrate athaggrstats to use bsdstat.
adrian [Thu, 6 Mar 2014 07:45:53 +0000 (07:45 +0000)]
Migrate athaggrstats to use bsdstat.

10 years agoLet __bt_put() accept the R_SETCURSOR flag, as stated in the dbopen(3) manpage.
jlh [Thu, 6 Mar 2014 07:44:45 +0000 (07:44 +0000)]
Let __bt_put() accept the R_SETCURSOR flag, as stated in the dbopen(3) manpage.

While here, update the comment above with all the accepted flags.

Reviewed by: silence on hackers@
MFC after: 2 weeks

10 years agoRemove these; they're no longer required.
adrian [Thu, 6 Mar 2014 07:44:08 +0000 (07:44 +0000)]
Remove these; they're no longer required.

10 years agoModify wlanstats to now use the copy of libbsdstat in /usr/lib/private.
adrian [Thu, 6 Mar 2014 07:43:42 +0000 (07:43 +0000)]
Modify wlanstats to now use the copy of libbsdstat in /usr/lib/private.

10 years agoFix a logic error when enabling MAC.
kevlo [Thu, 6 Mar 2014 06:39:55 +0000 (06:39 +0000)]
Fix a logic error when enabling MAC.

10 years agoAdd 'libstatfoo' from Sam Leffler.
adrian [Thu, 6 Mar 2014 04:06:36 +0000 (04:06 +0000)]
Add 'libstatfoo' from Sam Leffler.

10 years agoFix compilation for 32-bit machines.
glebius [Thu, 6 Mar 2014 02:00:01 +0000 (02:00 +0000)]
Fix compilation for 32-bit machines.

10 years agoUse SYSDIR to reference to the top of the sys hierarchy. Define SYSDIR
marcel [Thu, 6 Mar 2014 01:59:13 +0000 (01:59 +0000)]
Use SYSDIR to reference to the top of the sys hierarchy. Define SYSDIR
relative to .CURDIR if not already defined. This makes the makefiles
more readable but also more re-usable and adaptable.

Obtained from: Juniper Networks, Inc.

10 years agoAdd siphash.c. While here, sort.
marcel [Thu, 6 Mar 2014 00:37:16 +0000 (00:37 +0000)]
Add siphash.c. While here, sort.

10 years agoAdd a manual page for zopen(3) provided by our libz.so.
delphij [Thu, 6 Mar 2014 00:25:21 +0000 (00:25 +0000)]
Add a manual page for zopen(3) provided by our libz.so.

10 years ago - If we fail to do a non-blocking acquire of a buf lock while doing a
jeff [Thu, 6 Mar 2014 00:13:21 +0000 (00:13 +0000)]
 - If we fail to do a non-blocking acquire of a buf lock while doing a
   waiting sync pass we need to do a blocking acquire and restart.
   Another thread, typically the buf daemon, may have this buf locked and
   if we don't wait we can fail to sync the file.  This lead to a great
   variety of softdep panics because we rely on all dependencies being
   flushed before proceeding in several cases.

Reported by: pho
Discussed with: mckusick
Sponsored by: EMC / Isilon Storage Division
MFC after: 2 weeks

10 years ago - Gracefully handle truncation failures when trying to shrink directories.
jeff [Thu, 6 Mar 2014 00:10:07 +0000 (00:10 +0000)]
 - Gracefully handle truncation failures when trying to shrink directories.
   This could cause dirhash panics since the dirhash state would be
   successfully truncated while the directory was not.

Reported by: pho
Discussed with: mckusick
Sponsored by: EMC / Isilon Storage Division
MFC after: 2 weeks

10 years agomark that libctf depends upon libz so that if you dlopen libctf, you
jmg [Wed, 5 Mar 2014 23:37:25 +0000 (23:37 +0000)]
mark that libctf depends upon libz so that if you dlopen libctf, you
don't get:
Undefined symbol "zError"

10 years agoMerge ^/projects/release-embedded into ^/head.
gjb [Wed, 5 Mar 2014 23:17:53 +0000 (23:17 +0000)]
Merge ^/projects/release-embedded into ^/head.

After several months of testing and fixing (and breaking)
various parts of release/release.sh changes, it is now
possible to build FreeBSD/arm images as part of the release
process.

When EMBEDDEDBUILD is set in the release.conf file, release.sh
will create the build environment, then run a separate script
in release/${XDEV}/release.sh [1].  Currently, only arm is
supported.

The release/${XDEV}/release.sh configures the build environment
specific for the target image, such as installing gcc(1),
installing additional third-party software from the ports tree,
and fetching external sources.

Once the build environment is set up, release/${XDEV}/release.sh
runs Crochet, written by Tim Kientzle, which builds the userland
and kernel, and creates an image that can be written to an SD
card with dd(1).  Many thanks to Tim for his work on Crochet.

Sample configurations for FreeBSD/arm boards are in the
release/arm/ directory, and Crochet configuration files for each
board are located in release/tools/arm/.  Supported boards at this
time are: BEAGLEBONE, PANDABOARD, RPI-B, and WANDBOARD-QUAD.

Adding support for additional boards will continue in the
projects/release-embedded/ branch, and incrementally merged back
to head/.

Many thanks to the FreeBSD Foundation for the support and
sponsorship of this project.

[1] XDEV is used in order to keep the various configurations
    organized by architecture, but since TARGET and TARGET_ARCH
    are used to build the chroot, the values of those variables
    cannot be used.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

10 years agoPull in r203007 from upstream clang trunk:
dim [Wed, 5 Mar 2014 22:43:30 +0000 (22:43 +0000)]
Pull in r203007 from upstream clang trunk:

  Don't produce an alias between destructors with different calling conventions.

  Fixes pr19007.

(Please note that is an LLVM PR identifier, not a FreeBSD one.)

This should fix Firefox and/or libxul crashes (due to problems with
regparm/stdcall calling conventions) on i386.

Reported by: multiple users on freebsd-current
PR: bin/187103
MFC after: 1 week

10 years agoThe route code used to mtx_destroy() a locked mutex before rtentry free. Now,
glebius [Wed, 5 Mar 2014 21:16:46 +0000 (21:16 +0000)]
The route code used to mtx_destroy() a locked mutex before rtentry free. Now,
after r262763 it started to return locked mutexes to UMA. To fix that,
conditionally unlock the mutex in the destructor.

Tested by: "Sergey V. Dyatko" <sergey.dyatko@gmail.com>

10 years agoPull in r199848 from upstream libc++ trunk:
dim [Wed, 5 Mar 2014 20:01:04 +0000 (20:01 +0000)]
Pull in r199848 from upstream libc++ trunk:

  Const qualify __mem_fn call operator

  QOI improvement.

  Differential Revision: http://llvm-reviews.chandlerc.com/D2059

This should help with building recent versions of Mesa.  See also:
https://bugs.freedesktop.org/show_bug.cgi?id=75505

Reported by: dumbbell
MFC after: 3 days

10 years agoFix compilation for 32-bit machines.
glebius [Wed, 5 Mar 2014 19:26:22 +0000 (19:26 +0000)]
Fix compilation for 32-bit machines.

10 years ago- Temporary fix for race in RUN driver which can
hselasky [Wed, 5 Mar 2014 18:39:27 +0000 (18:39 +0000)]
- Temporary fix for race in RUN driver which can
cause freed memory to be accessed.
- Properly lock callout_reset()'s.

MFC after: 1 week

10 years agoRemove custom bus scanner code and fix use of CAM's default scanner.
mav [Wed, 5 Mar 2014 16:42:33 +0000 (16:42 +0000)]
Remove custom bus scanner code and fix use of CAM's default scanner.

This fixes kernel panic during boot, caused by incompatibility of recent
CAM locking changes and this bus scanner code.

Submitted by: Microsoft
MFC after: 1 week

10 years agoAdd efifb driver. Driver uses the data passed by UEFI compatible loader/BIOS and
ray [Wed, 5 Mar 2014 14:37:45 +0000 (14:37 +0000)]
Add efifb driver. Driver uses the data passed by UEFI compatible loader/BIOS and
enable to use framebuffer created by those loader.

10 years agoFix missing unlock in persistent reservations code, which resulted in panics
trasz [Wed, 5 Mar 2014 12:02:29 +0000 (12:02 +0000)]
Fix missing unlock in persistent reservations code, which resulted in panics
with Hyper-V Failover Cluster.

Reviewed by: ken@
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation

10 years agoPreserve naming consistency for test cases.
pho [Wed, 5 Mar 2014 08:33:58 +0000 (08:33 +0000)]
Preserve naming consistency for test cases.

Pointed out by:  jmmv
Sponsored by: EMC / Isilon storage division

10 years agoPopulate the GPIO pins and GPIOLED configs
sbruno [Wed, 5 Mar 2014 04:22:07 +0000 (04:22 +0000)]
Populate the GPIO pins and GPIOLED configs

10 years agoUpdate location of hints and name of the kernel we are building.
sbruno [Wed, 5 Mar 2014 04:19:52 +0000 (04:19 +0000)]
Update location of hints and name of the kernel we are building.

10 years agoRename the Dlink 825 configuration file to indicate that this is for the
sbruno [Wed, 5 Mar 2014 04:18:42 +0000 (04:18 +0000)]
Rename the Dlink 825 configuration file to indicate that this is for the
mips 24k B1

10 years agoLog the name of the device that we failed to open rather than an
markj [Wed, 5 Mar 2014 04:15:17 +0000 (04:15 +0000)]
Log the name of the device that we failed to open rather than an
uninitialized buffer.

MFC after: 3 days

10 years agoFix build.
glebius [Wed, 5 Mar 2014 02:35:41 +0000 (02:35 +0000)]
Fix build.

10 years agoPacify gcc.
glebius [Wed, 5 Mar 2014 02:35:15 +0000 (02:35 +0000)]
Pacify gcc.

10 years ago- Clarify usage of the -f option.
brd [Wed, 5 Mar 2014 02:10:10 +0000 (02:10 +0000)]
- Clarify usage of the -f option.

Reviewed by: gjb@, dru@, and Allan Jude

10 years agoAdd static where appropriate.
eadler [Wed, 5 Mar 2014 01:49:39 +0000 (01:49 +0000)]
Add static where appropriate.

10 years agoHide struct rtentry from userland.
glebius [Wed, 5 Mar 2014 01:47:08 +0000 (01:47 +0000)]
Hide struct rtentry from userland.

10 years agoIf the device doesn't exist when iwnstats starts running don't spam the console
eadler [Wed, 5 Mar 2014 01:41:10 +0000 (01:41 +0000)]
If the device doesn't exist when iwnstats starts running don't spam the console
forever.

10 years agoDisable amd64 TLB Context ID (pcid) by default for now
emaste [Wed, 5 Mar 2014 01:34:10 +0000 (01:34 +0000)]
Disable amd64 TLB Context ID (pcid) by default for now

There are a number of reports of userspace application crashes that
are "solved" by setting vm.pmap.pcid_enabled=0, including Java and the
x11/mate-terminal port (PR ports/184362).

I originally planned to disable this only in stable/10 (in r262753), but
it has been pointed out that additional crash reports on HEAD are not
likely to provide new insight into the problem.  The feature can easily
be enabled for testing.

10 years agoMFV r262756:
delphij [Wed, 5 Mar 2014 01:33:15 +0000 (01:33 +0000)]
MFV r262756:

Import xz-embedded from git.

This is from commit hash '6a8a2364434763a033781f6b2a605ace9a021013'.

This makes it possible to use CRC64 but for now it's intentionally
not added to build.

10 years ago- Remove rt_metrics_lite and simply put its members into rtentry.
glebius [Wed, 5 Mar 2014 01:17:47 +0000 (01:17 +0000)]
- Remove rt_metrics_lite and simply put its members into rtentry.
- Use counter(9) for rt_pksent (former rt_rmx.rmx_pksent). This
  removes another cache trashing ++ from packet forwarding path.
- Create zini/fini methods for the rtentry UMA zone. Via initialize
  mutex and counter in them.
- Fix reporting of rmx_pksent to routing socket.
- Fix netstat(1) to report "Use" both in kvm(3) and sysctl(3) mode.

The change is mostly targeted for stable/10 merge. For head,
rt_pksent is expected to just disappear.

Discussed with: melifaro
Sponsored by: Netflix
Sponsored by: Nginx, Inc.

10 years agoInstead of playing games with casts simply add 3 more members to the
glebius [Wed, 5 Mar 2014 00:40:03 +0000 (00:40 +0000)]
Instead of playing games with casts simply add 3 more members to the
structure pf_rule, that are used when the structure is passed via
ioctl().

PR: 187074

10 years agoAdd command line parsing - and an -i <ifname> option so I can monitor
adrian [Wed, 5 Mar 2014 00:26:25 +0000 (00:26 +0000)]
Add command line parsing - and an -i <ifname> option so I can monitor
multiple iwn interfaces.

Tested:

* Intel 5100

10 years agoRevert previous commit (262727) and bounce patch back to the
gnn [Tue, 4 Mar 2014 23:55:04 +0000 (23:55 +0000)]
Revert previous commit (262727) and bounce patch back to the
submitter.

Pointed out by: jhb

10 years agoImport xz-embedded from git.
delphij [Tue, 4 Mar 2014 23:23:55 +0000 (23:23 +0000)]
Import xz-embedded from git.

This is from commit hash '6a8a2364434763a033781f6b2a605ace9a021013'.

10 years agosh: Make argstr() return where it stopped and simplify expari() using this.
jilles [Tue, 4 Mar 2014 22:30:38 +0000 (22:30 +0000)]
sh: Make argstr() return where it stopped and simplify expari() using this.

10 years agoMFV r253848 (mm):
delphij [Tue, 4 Mar 2014 21:51:11 +0000 (21:51 +0000)]
MFV r253848 (mm):

Update vendor/xz from v5.0 branch to post-5.0.5

MFC after: 2 weeks

10 years agoMove fpusave() wrapper for suspend hander to sys/amd64/amd64/fpu.c.
jkim [Tue, 4 Mar 2014 21:35:57 +0000 (21:35 +0000)]
Move fpusave() wrapper for suspend hander to sys/amd64/amd64/fpu.c.

Inspired by: jhb

10 years agoRevert accidentally committed changes in 262748.
jkim [Tue, 4 Mar 2014 20:16:00 +0000 (20:16 +0000)]
Revert accidentally committed changes in 262748.

10 years agoAllow comments at end of line.
sjg [Tue, 4 Mar 2014 20:09:23 +0000 (20:09 +0000)]
Allow comments at end of line.

Reviewed by: marcel

10 years agoProperly save and restore CR0.
jkim [Tue, 4 Mar 2014 20:07:36 +0000 (20:07 +0000)]
Properly save and restore CR0.

MFC after: 3 days

10 years agoRemove ifa_ref()/ifa_free(), which are atomic(9), from ip_output().
glebius [Tue, 4 Mar 2014 19:49:41 +0000 (19:49 +0000)]
Remove ifa_ref()/ifa_free(), which are atomic(9), from ip_output().

The ifaddr is already referenced by the rtentry, and we are holding
reference on the rtentry throughout the function execution.

Sponsored by: Netflix
Sponsored by: Nginx, Inc.

10 years agoRemove dead code since r230426, fix a comment, and tidy up.
jkim [Tue, 4 Mar 2014 19:41:16 +0000 (19:41 +0000)]
Remove dead code since r230426, fix a comment, and tidy up.

Reported by: jhb
MFC after: 3 days

10 years agoAdd SMBIOS support.
tychon [Tue, 4 Mar 2014 17:12:06 +0000 (17:12 +0000)]
Add SMBIOS support.

A new option, -U, can be used to set the UUID in the System
Information (Type 1) structure.  Manpage fix to follow.

Approved by: grehan (co-mentor)

10 years agoAdd missing description of du (daemon.user) printcap capability.
dwmalone [Tue, 4 Mar 2014 15:09:57 +0000 (15:09 +0000)]
Add missing description of du (daemon.user) printcap capability.

10 years agoDo not retry on CAM_FUNC_NOTAVAIL error, but return immediately.
mav [Tue, 4 Mar 2014 15:07:00 +0000 (15:07 +0000)]
Do not retry on CAM_FUNC_NOTAVAIL error, but return immediately.

MFC after: 2 weeks