]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
9 years agoDo not retry token errors. They are not going to disappear by themselves.
mav [Sun, 3 Aug 2014 10:02:14 +0000 (10:02 +0000)]
Do not retry token errors. They are not going to disappear by themselves.

MFC after: 1 week

9 years agoRevert r269404 and use cpu_ticks() for dbuf allocation.
delphij [Sun, 3 Aug 2014 09:47:51 +0000 (09:47 +0000)]
Revert r269404 and use cpu_ticks() for dbuf allocation.

Encode CPU's number by XOR'ing the CPU ID against the 64-bit cpu_ticks().

Reviewed by: mav, gibbs
Differential Revision: https://phabric.freebsd.org/D521
MFC after: 2 weeks

9 years agovn_path_to_global_path: update comment.
pluknet [Sun, 3 Aug 2014 07:59:19 +0000 (07:59 +0000)]
vn_path_to_global_path: update comment.

9 years agoAdd required `exec' before Xdialog(1) invocation for the case where we
dteske [Sun, 3 Aug 2014 05:02:00 +0000 (05:02 +0000)]
Add required `exec' before Xdialog(1) invocation for the case where we
expect (require) data on stdin. The effect of this is that, when
backgrounded, $! returns the pid of an Xdialog(1) instance instead of
an sh(1) instance -- the difference being a later kill of $! will reach
the Xdialog(1) instance whereas without the exec the kill succeeds on
the sh(1) instance leaving Xdialog(1) open.

9 years agoMake the witness lock limit an option.
imp [Sun, 3 Aug 2014 05:00:43 +0000 (05:00 +0000)]
Make the witness lock limit an option.

9 years agoDo the iwn(4) panic reinitialisation under IWN_LOCK().
adrian [Sun, 3 Aug 2014 03:51:33 +0000 (03:51 +0000)]
Do the iwn(4) panic reinitialisation under IWN_LOCK().

I've checked each of the functions being called and there's either a
_locked version or it's supposed to be called with IWN_LOCK() held.

9 years agoRemove Giant acquisition from the mount and unmount pathes.
kib [Sun, 3 Aug 2014 03:27:54 +0000 (03:27 +0000)]
Remove Giant acquisition from the mount and unmount pathes.

It could be claimed that two things were reasonable protected by
Giant.  One is vfsconf list links, which is converted to the new
dedicated sx vfsconf_sx.  Another is vfsconf.vfc_refcount, which is
now updated with atomics.

Note that vfc_refcount still has the same races now as it has under
the Giant, the unload of filesystem modules can happen while the
module is still in use.

Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks

9 years agoAdd myself to committers-src.dot.
hiren [Sun, 3 Aug 2014 00:29:03 +0000 (00:29 +0000)]
Add myself to committers-src.dot.
Better late than never :-)

9 years agoRework r269444 to work also for lists without IDs.
mav [Sat, 2 Aug 2014 23:20:43 +0000 (23:20 +0000)]
Rework r269444 to work also for lists without IDs.

MFC after: 3 days

9 years agoAdd support for the SCTP_PR_SUPPORTED socket option as specified in
tuexen [Sat, 2 Aug 2014 21:36:40 +0000 (21:36 +0000)]
Add support for the SCTP_PR_SUPPORTED socket option as specified in
http://tools.ietf.org/html/draft-ietf-tsvwg-sctp-prpolicies
Add also a sysctl controlling the default of the end-points.

MFC after: 1 week

9 years agoFix a copy and paste error.
tuexen [Sat, 2 Aug 2014 20:37:02 +0000 (20:37 +0000)]
Fix a copy and paste error.

X-MFC with: 269436

9 years agoPlug EXTENDED COPY request data memory leak.
mav [Sat, 2 Aug 2014 20:15:00 +0000 (20:15 +0000)]
Plug EXTENDED COPY request data memory leak.

MFC after: 3 days

9 years agoFix some bugs in RECEIVE COPY STATUS data.
mav [Sat, 2 Aug 2014 19:59:19 +0000 (19:59 +0000)]
Fix some bugs in RECEIVE COPY STATUS data.

MFC after: 3 days

9 years agoAdd missing comparisons to make list IDs in EXTENDED COPY per-initiator,
mav [Sat, 2 Aug 2014 19:51:10 +0000 (19:51 +0000)]
Add missing comparisons to make list IDs in EXTENDED COPY per-initiator,
as they should be.  Wrap it into a function to not duplicate the code.

MFC after: 3 days

9 years agocxgbe(4): Remove an unused version of t4_enable_vi.
np [Sat, 2 Aug 2014 18:37:22 +0000 (18:37 +0000)]
cxgbe(4): Remove an unused version of t4_enable_vi.

MFC after: 2 weeks

9 years ago- Spelling corrections
hselasky [Sat, 2 Aug 2014 18:37:08 +0000 (18:37 +0000)]
- Spelling corrections

Suggested by: Garrett Cooper <yaneurabeya@gmail.com>
PR: 192101

9 years agoRewrite a loop in vm_map_wire() so that gcc doesn't think that the variable
alc [Sat, 2 Aug 2014 17:58:20 +0000 (17:58 +0000)]
Rewrite a loop in vm_map_wire() so that gcc doesn't think that the variable
"rv" is uninitialized.

Reported by: bz

9 years agoDon't assume that the framebuffer driver is using vt_fb_blank() when blanking
nwhitehorn [Sat, 2 Aug 2014 17:45:08 +0000 (17:45 +0000)]
Don't assume that the framebuffer driver is using vt_fb_blank() when blanking
the screen during init.

MFC after: 1 week

9 years agoCleanup the ECN configuration handling and provide an SCTP socket
tuexen [Sat, 2 Aug 2014 17:35:13 +0000 (17:35 +0000)]
Cleanup the ECN configuration handling and provide an SCTP socket
option for controlling ECN on future associations and get the
status on current associations.
A simialar pattern will be used for controlling SCTP extensions in
upcoming commits.

9 years agoAdd myself to calendar.freebsd and committers-src.dot
ngie [Sat, 2 Aug 2014 16:45:55 +0000 (16:45 +0000)]
Add myself to calendar.freebsd and committers-src.dot

Phabric: D522
Reviewed by: jmmv
Approved by: jmmv (co-mentor)

9 years agoHandle wiring failures in vm_map_wire() with the new functions
alc [Sat, 2 Aug 2014 16:10:24 +0000 (16:10 +0000)]
Handle wiring failures in vm_map_wire() with the new functions
pmap_unwire() and vm_object_unwire().

Retire vm_fault_{un,}wire(), since they are no longer used.

(See r268327 and r269134 for the motivation behind this change.)

Reviewed by: kib
Sponsored by: EMC / Isilon Storage Division

9 years agoMFV r269427:
delphij [Sat, 2 Aug 2014 08:34:22 +0000 (08:34 +0000)]
MFV r269427:

In dnode_children_t, use C99's "[]" idiom for declaring the variable
sized array dnc_children at the end of the structure.

This prevents the compiler from mistakenly optimizing away accesses
beyond the array's defined size.

Illumos issue:
    5038 Remove "old-style" flexible array usage in ZFS.
    Author: Justin T. Gibbs <justing@spectralogic.com>

MFC after: 2 weeks

9 years agoMFV r269426:
delphij [Sat, 2 Aug 2014 07:47:52 +0000 (07:47 +0000)]
MFV r269426:

Double test device size for ztest(1).

Illumos issue:
    5039 ztest should default to larger device sizes
    Author: Matthew Ahrens <mahrens@delphix.com>

MFC after: 2 weeks

9 years agocxgbe(4): some optimizations in freelist handling.
np [Sat, 2 Aug 2014 06:55:36 +0000 (06:55 +0000)]
cxgbe(4):  some optimizations in freelist handling.

MFC after: 2 weeks.

9 years agoSort switch statements.
imp [Sat, 2 Aug 2014 05:19:33 +0000 (05:19 +0000)]
Sort switch statements.

9 years agoSort usage options.
imp [Sat, 2 Aug 2014 05:17:59 +0000 (05:17 +0000)]
Sort usage options.

9 years agoAdd a new -K to suppress installing the kernel. Useful for creating
imp [Sat, 2 Aug 2014 05:16:20 +0000 (05:16 +0000)]
Add a new -K to suppress installing the kernel. Useful for creating
chroots that may never boot (such as build environments), or for
platforms that don't really need the kernel installed into the
filesystem.

9 years agoSet the erase block size properly in the case the underlying media
imp [Sat, 2 Aug 2014 05:05:16 +0000 (05:05 +0000)]
Set the erase block size properly in the case the underlying media
doesn't advertise an erase block size.

Submitted by: bjg@
Pointy hat to: imp@

9 years agoFollow the ufs practice for disallowing permission changes as well as
imp [Sat, 2 Aug 2014 05:05:10 +0000 (05:05 +0000)]
Follow the ufs practice for disallowing permission changes as well as
writes to files for read-only file systems. Since there are already
checks in nandfs_setattr that return an error, this moves detection of
the error earlier.

9 years agoFix a minor style(9) issue.
imp [Sat, 2 Aug 2014 05:05:05 +0000 (05:05 +0000)]
Fix a minor style(9) issue.

9 years agoAdd vt(4) support to sparc64. The only driver currently present (ofwfb)
nwhitehorn [Sat, 2 Aug 2014 03:48:16 +0000 (03:48 +0000)]
Add vt(4) support to sparc64. The only driver currently present (ofwfb)
provides support for a variety of low-end graphics hardware (SBus adapters,
Mach64, QEMU's framebuffer, XVR-100). A driver for at least the Creator3D
cards will have to be present before this can become the default console
driver.

To test vt(4) on sparc64, set kern.vty=vt at the loader prompt.

9 years agoWhen arm 64-bit atomic ops are available, define ARM_HAVE_ATOMIC64. Use
ian [Sat, 2 Aug 2014 03:44:27 +0000 (03:44 +0000)]
When arm 64-bit atomic ops are available, define ARM_HAVE_ATOMIC64.  Use
that symbol (which will be correct in both kernel and userland contexts)
rather than just __arm__ to decide whether to use a local implementation.

9 years agocxgbe(4): Fix an off by one error when looking for the BAR2 doorbell
np [Sat, 2 Aug 2014 01:48:25 +0000 (01:48 +0000)]
cxgbe(4):  Fix an off by one error when looking for the BAR2 doorbell
address of an egress queue.

MFC after: 2 weeks

9 years agocxgbe(4): minor optimizations in ingress queue processing.
np [Sat, 2 Aug 2014 00:56:34 +0000 (00:56 +0000)]
cxgbe(4): minor optimizations in ingress queue processing.

Reorganize struct sge_iq.  Make the iq entry size a compile time
constant.  While here, eliminate RX_FL_ESIZE and use EQ_ESIZE directly.

MFC after: 2 weeks

9 years agoUse the 64-bit atomics now provided by arm machine/atomic.h instead of
ian [Fri, 1 Aug 2014 23:45:50 +0000 (23:45 +0000)]
Use the 64-bit atomics now provided by arm machine/atomic.h instead of
(conflicting) local versions.

9 years agoIn the shm_open() and shm_unlink() syscalls, export the path to KTR.
rpaulo [Fri, 1 Aug 2014 23:29:04 +0000 (23:29 +0000)]
In the shm_open() and shm_unlink() syscalls, export the path to KTR.

MFC after: 1 week

9 years agoAdd kdump support for shm_open().
rpaulo [Fri, 1 Aug 2014 23:28:21 +0000 (23:28 +0000)]
Add kdump support for shm_open().

MFC after: 1 week

9 years agoDon't return ZIO_PIPELINE_CONTINUE from vdev_op_io_start methods
smh [Fri, 1 Aug 2014 23:16:48 +0000 (23:16 +0000)]
Don't return ZIO_PIPELINE_CONTINUE from vdev_op_io_start methods

This prevents recursion of vdev_queue_io_done as per r265321 but
using a different method as recommended on the openzfs list.

We now use zio_interrupt(zio) and return ZIO_PIPELINE_STOP instead
of returning ZIO_PIPELINE_CONTINUE from vdev_*_io_start methods.

zio_vdev_io_start now ASSERTS the that vdev_op_io_start returns
ZIO_PIPELINE_STOP to ensure future changes don't reintroduce
ZIO_PIPELINE_CONTINUE returns.

Cleanup flow in vdev_geom_io_start while I'm here.

Also fix some cases not using SET_ERROR(..)

MFC after: 2 weeks
X-MFC-With: r265321

9 years agoUse atomic_load/store_64() in the arm implementation of counter(9), and
ian [Fri, 1 Aug 2014 23:06:38 +0000 (23:06 +0000)]
Use atomic_load/store_64() in the arm implementation of counter(9), and
remove the XXX comments about non-atomic access to the counters.

9 years agoAdd 64-bit atomic ops for armv4, only for kernel code, mostly so that we
ian [Fri, 1 Aug 2014 22:56:41 +0000 (22:56 +0000)]
Add 64-bit atomic ops for armv4, only for kernel code, mostly so that we
don't need any #ifdef stuff to use atomic_load/store_64() elsewhere in
the kernel.  For armv4 the atomics are trivial to implement for kernel
code (just disable interrupts), less so for user mode, so this only has
the kernel mode implementations for now.

9 years agoSplit gethrtime() and gethrtime_waitfree() and make the former use
delphij [Fri, 1 Aug 2014 22:33:23 +0000 (22:33 +0000)]
Split gethrtime() and gethrtime_waitfree() and make the former use
nanouptime() instead of getnanouptime().  nanouptime(9) provides more
precise result at expense of being slower.

In r269223, gethrtime() is used as creation time of dbuf, which in turn
acts as portion of lookup key to maintain AVL invariant where there can
not be duplicate items.  Before this change, gethrtime() have preferred
better execution time by sacrificing precision, which may lead to panic
on busy systems with:

panic: avl_find() succeeded inside avl_add()

Reported by: allanjude, mav
PR: kern/192284
MFC after: 11 days
X-MFC-with: r269223

9 years agoAdd 64-bit atomic ops for armv6. The only safe way to access a 64-bit
ian [Fri, 1 Aug 2014 22:28:36 +0000 (22:28 +0000)]
Add 64-bit atomic ops for armv6.  The only safe way to access a 64-bit
value shared across multiple cores is with atomic_load_64() and
atomic_store_64(), because the normal 64-bit load/store instructions
are not atomic on 32-bit arm.  Luckily the ldrexd/strexd instructions
that are atomic are fairly cheap on armv6.  Because it's fairly simple
to do, this implements all the ops for 64-bit, not just load/store.

Reviewed by: andrew, cognet

9 years agoRemove the asconf_auth_nochk sysctl. This was off by default and only
tuexen [Fri, 1 Aug 2014 20:49:27 +0000 (20:49 +0000)]
Remove the asconf_auth_nochk sysctl. This was off by default and only
existed to be able to test with non-compliant peers a long time ago.

9 years agoTell the assembler we're building for armv7a with security extensions,
ian [Fri, 1 Aug 2014 20:32:29 +0000 (20:32 +0000)]
Tell the assembler we're building for armv7a with security extensions,
so that the 'smc' (secure monitor call) opcode is valid.

Submitted by: Stepan Dyatkovskiy <stpworld@narod.ru>

9 years agoTeach as(1) to handle the arm .arch_extension pseudo-op, which accepts
ian [Fri, 1 Aug 2014 20:30:24 +0000 (20:30 +0000)]
Teach as(1) to handle the arm .arch_extension pseudo-op, which accepts
the same values as the -march= command line option.  Add support for the
"sec" extension (security extensions).

We've been getting away without support for the sec extension because
it's bogusly enabled even on arches where its presence is optional.  This
support for .arch_extension is being added mainly so that we can use the
right directives in our source code, and that helps folks using external
toolchains (and will help us when we finally update our toolchain).

9 years agoFix an bug in as(1) parsing of arm -march=arch+ext options. Compare the
ian [Fri, 1 Aug 2014 20:21:41 +0000 (20:21 +0000)]
Fix an bug in as(1) parsing of arm -march=arch+ext options.  Compare the
arch name to just the characters before the '+' in 'arch+ext'.

9 years agoLike with /usr/lib + /usr/lib/compat, add the optional /usr/lib32/compat
peter [Fri, 1 Aug 2014 19:32:20 +0000 (19:32 +0000)]
Like with /usr/lib + /usr/lib/compat, add the optional /usr/lib32/compat
to the ldconfig32 default path.  /usr/lib32 is the 32 bit versions of
*current* libraries, while old versions should be able to be in
/usr/lib32/compat, like with /usr/lib/compat.  The separation is meant to
keep the compile time default search paths cleaner.

9 years agoFix byte ordering in default RSS key.
grehan [Fri, 1 Aug 2014 18:36:40 +0000 (18:36 +0000)]
Fix byte ordering in default RSS key.

The rss_key[] array in netinet/in_rss.c has the bytes in incorrect
order. This results in the RSS test vectors in the Microsft RSS spec
and Intel NIC specs giving incorrect results, and making it difficult
to verify correct hash operation when RSS functionality is added to
new NICs.

CR: https://phabric.freebsd.org/D516
Reviewed by: adrian

9 years agoFix unwind-info errors in our hand-written arm assembler code.
ian [Fri, 1 Aug 2014 18:24:44 +0000 (18:24 +0000)]
Fix unwind-info errors in our hand-written arm assembler code.

We have functions nested within functions, and places where we start a
function then never end it, we just jump to the middle of something else.
We tried to express this with nested ENTRY()/END() macros (which result
in .fnstart and .fnend directives), but it turns out there's no way to
express that nesting in ARM EHABI unwind info, and newer tools treat
multiple .fnstart directives without an intervening .fnend as an error.

These changes introduce two new macros, EENTRY() and EEND().  EENTRY()
creates a global label you can call/jump to just like ENTRY(), but it
doesn't emit a .fnstart.  EEND() is a no-op that just documents the
conceptual endpoint that matches up with the same-named EENTRY().

This is based on patches submitted by Stepan Dyatkovskiy, but I made some
changes and added the EEND() stuff, so blame any problems on me.

Submitted by: Stepan Dyatkovskiy <stpworld@narod.ru>

9 years agoSimplify the selection of the pvo_head and pvo allocation zone in
alc [Fri, 1 Aug 2014 17:09:50 +0000 (17:09 +0000)]
Simplify the selection of the pvo_head and pvo allocation zone in
moea_enter_locked() and moea64_enter().

Eliminate an unused variable from moea64_enter().

9 years agoUpdate the ARMv6 core clang targets to be an arm1176jzf-s. This brings us
andrew [Fri, 1 Aug 2014 16:53:04 +0000 (16:53 +0000)]
Update the ARMv6 core clang targets to be an arm1176jzf-s. This brings us
in line with gcc in base as this makes llvm generate code for the armv6k
variant of the instruction set.

9 years agoRename files: keep codename only to make it shorter.
br [Fri, 1 Aug 2014 15:10:55 +0000 (15:10 +0000)]
Rename files: keep codename only to make it shorter.

9 years agoCleanup sctp_send_initiate() and sctp_send_initiate_ack() to be
tuexen [Fri, 1 Aug 2014 12:42:37 +0000 (12:42 +0000)]
Cleanup sctp_send_initiate() and sctp_send_initiate_ack() to be
in sync as much as possible. This simplifies upcoming changes.

9 years agoAdd support for Chromebook2 -- next-generation 8-core
br [Fri, 1 Aug 2014 06:20:25 +0000 (06:20 +0000)]
Add support for Chromebook2 -- next-generation 8-core
(4 in operation), 4GB ram (3.5 usable) ARM machine.

Support covers device drivers for:
- Serial Peripheral Interface (SPI)
- Chrome Embedded Controller (EC) - SPI-based version
- XHCI and USB 3.0 dual-role device PHY

Also:
- Add support for Exynos5420 in Pad module
- Move power-related functions to separate driver --
  Power Management Unit (PMU)
- Enable XHCI for Chromebook1

Special thanks to grehan@ for hardware, and to
hselasky@ for r269139.

9 years agoRetire PVO_EXECUTABLE. It's neither used nor set correctly.
alc [Fri, 1 Aug 2014 04:53:35 +0000 (04:53 +0000)]
Retire PVO_EXECUTABLE.  It's neither used nor set correctly.

9 years agoList one file per line in the Makefiles. This makes it easier to read
np [Fri, 1 Aug 2014 01:53:39 +0000 (01:53 +0000)]
List one file per line in the Makefiles.  This makes it easier to read
diffs when a file is added or removed.

MFC after: 2 weeks

9 years agoCorrect a long-standing problem in moea{,64}_pvo_enter() that was revealed
alc [Fri, 1 Aug 2014 01:48:41 +0000 (01:48 +0000)]
Correct a long-standing problem in moea{,64}_pvo_enter() that was revealed
by the combination of r268591 and r269134: When we attempt to add the
wired attribute to an existing mapping, moea{,64}_pvo_enter() do nothing.
(They only set the wired attribute on newly created mappings.)

Tested by: andreast

9 years agoImprove compliance with style.Makefile(5).
np [Fri, 1 Aug 2014 01:30:16 +0000 (01:30 +0000)]
Improve compliance with style.Makefile(5).

MFC after: 2 weeks

9 years agoNANO_OBJ shouldn't end with a '/', so remove it here. This makes the
imp [Fri, 1 Aug 2014 00:00:54 +0000 (00:00 +0000)]
NANO_OBJ shouldn't end with a '/', so remove it here. This makes the
pathnames printed not have the dreaded // which makes it hard to cut
and paste into an emacs find file command...

MFC After: 3 days

9 years agoUse rm -x only on FreeBSD 10 and newer. Many people still build from
imp [Fri, 1 Aug 2014 00:00:46 +0000 (00:00 +0000)]
Use rm -x only on FreeBSD 10 and newer. Many people still build from
older hosts, which still works, so don't break that gratuitously.

MFC After: 3 days

9 years agoAdd pkgfs, a file system implementation for reading files out of a
marcel [Thu, 31 Jul 2014 23:25:13 +0000 (23:25 +0000)]
Add pkgfs, a file system implementation for reading files out of a
compressed tarball, aka package. The file system assumes that the
files are layed-out in the same order as needed to allow for the
package to be streamed. As such, it does not read an entire package
into memory first.

Some properties of the file system:
o   Files that start with '+' are silently skipped. These are found
    in FreeBSD package files.
o   Files smaller than or equal to 4KB will be cached in memory and
    as such allow for some flexibility in accessing files out of
    order.
o   Files with the .tgz suffix are assumed to be (sub-)packages and
    signal the end for a directory scan.

Obtained from: Juniper Networks, Inc.

9 years agoUpdate shellsnoop to work on FreeBSD.
gnn [Thu, 31 Jul 2014 23:19:01 +0000 (23:19 +0000)]
Update shellsnoop to work on FreeBSD.

Contributed by: skreuzer

9 years agoFix a typo in the example script.
imp [Thu, 31 Jul 2014 22:32:39 +0000 (22:32 +0000)]
Fix a typo in the example script.

9 years agoUpdate command and add check for edge-case.
dteske [Thu, 31 Jul 2014 22:13:31 +0000 (22:13 +0000)]
Update command and add check for edge-case.

9 years agoFix breakage introduced by r256843: removing the SA_CCB_WAITING bit
joerg [Thu, 31 Jul 2014 22:09:50 +0000 (22:09 +0000)]
Fix breakage introduced by r256843: removing the SA_CCB_WAITING bit
left some of the decisions based on its counterpart, SA_CCB_BUFFER_IO
being random.  As a result, propagation of the residual information
for the SPACE command was broken, so the number of filemarks
encountered during a SPACE operation was miscalculated.  Consequently,
systems relying on properly tracked filemark counters (like Bacula)
fell apart.

The change also removes a switch/case in sadone() which r256843
degraded to a single remaining case label.

PR: 192285
Approved by: ken
MFC after: 2 weeks

9 years agoFix a syntax error when running under bash(1) for portability.
dteske [Thu, 31 Jul 2014 22:05:18 +0000 (22:05 +0000)]
Fix a syntax error when running under bash(1) for portability.

9 years agoDefine a setvar() function for platforms using a shell unlike FreeBSD's
dteske [Thu, 31 Jul 2014 22:00:36 +0000 (22:00 +0000)]
Define a setvar() function for platforms using a shell unlike FreeBSD's
sh(1) for `/bin/sh' (e.g., bash(1) which lacks a setvar definition).
This is to improve portability to other Operating Systems (e.g., Linux).

9 years agoDo not generate 1000 unique lock names for nfsrc hash chain locks.
kib [Thu, 31 Jul 2014 19:24:44 +0000 (19:24 +0000)]
Do not generate 1000 unique lock names for nfsrc hash chain locks.
It overflows witness.

Shorten the names of some nfs mutexes.

Reported and tested by: pho
No objections from: rmacklem, mav
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

9 years agoVarious style(9) and related fixes.
gnn [Thu, 31 Jul 2014 18:02:38 +0000 (18:02 +0000)]
Various style(9) and related fixes.
Update the copyright to be more in line with the current version in
our tree.
Remove the ancient rcsid.
Add a proper return from the main function

Pointed out by: bz

9 years ago- Updated SYSCTL manual pages after recent changes to the kernel
hselasky [Thu, 31 Jul 2014 17:18:40 +0000 (17:18 +0000)]
- Updated SYSCTL manual pages after recent changes to the kernel
SYSCTL code. Added description of new macros and functions.
- Merged dynamic and static SYSCTL related content into a single
manual page, hence parameters and functionality is very much the same.
- Uppercased all occurrences of "OID".
- Updated all SYSCTL examples.

PR: 192101

9 years agoExport an mmc or sd card's serial number from the mmc layer as an ivar.
ian [Thu, 31 Jul 2014 16:54:54 +0000 (16:54 +0000)]
Export an mmc or sd card's serial number from the mmc layer as an ivar.
In the mmcsd layer use this value to populate disk->d_ident.  Also set
disk->d_descr to the full set of card identification info (includes vendor,
model, manufacturing date, etc).

9 years agoEnsure that IP's added to CARP always use the CARP MAC
smh [Thu, 31 Jul 2014 16:43:56 +0000 (16:43 +0000)]
Ensure that IP's added to CARP always use the CARP MAC

Previously there was a race condition between the address addition
and associating it with the CARP which resulted in the interface
MAC, instead of the CARP MAC, being used for a brief amount of time.

This caused "is using my IP address" warnings as well as data being
sent to the wrong machine due to incorrect ARP entries being recorded
by other devices on the network.

9 years agoCorrect a defect in r268591. In the implementation of the new function
alc [Thu, 31 Jul 2014 16:17:30 +0000 (16:17 +0000)]
Correct a defect in r268591.  In the implementation of the new function
pmap_unwire(), the call to MOEA64_PVO_TO_PTE() must be performed before
any changes are made to the PVO.  Otherwise, MOEA64_PVO_TO_PTE() will
panic.

Reported by: andreast

9 years agoelfdump: use existing ELF constants where available
emaste [Thu, 31 Jul 2014 15:40:03 +0000 (15:40 +0000)]
elfdump: use existing ELF constants where available

Sponsored by: The FreeBSD Foundation

9 years agoelfdump: add EM_AARCH64 64-bit ARM machine architecture
emaste [Thu, 31 Jul 2014 15:25:12 +0000 (15:25 +0000)]
elfdump: add EM_AARCH64 64-bit ARM machine architecture

9 years agoOnly check error if one could have been generated
smh [Thu, 31 Jul 2014 09:18:29 +0000 (09:18 +0000)]
Only check error if one could have been generated

9 years agoAdd an example program to show how to use libpmc from a program.
gnn [Thu, 31 Jul 2014 09:18:15 +0000 (09:18 +0000)]
Add an example program to show how to use libpmc from a program.
This particular program attempts to use the TSC to measure how long
certainly libpmc operations take.  Depending on the quality of
the rdtsc() macro on a particular architecture this may work
more or less well.

9 years agoFix the example: free the memory that was allocated by getline().
n_hibma [Thu, 31 Jul 2014 08:28:42 +0000 (08:28 +0000)]
Fix the example: free the memory that was allocated by getline().

9 years agoCopy strtolctype.h to sys/cddl/contrib/opensolaris/common/util to keep
rpaulo [Thu, 31 Jul 2014 08:07:23 +0000 (08:07 +0000)]
Copy strtolctype.h to sys/cddl/contrib/opensolaris/common/util to keep
the kernel self-contained.

Requested by: jhb

9 years agolower warning level to fix build with gcc
bapt [Thu, 31 Jul 2014 05:56:15 +0000 (05:56 +0000)]
lower warning level to fix build with gcc

9 years agoReplace the whole license block with the standard one.
kevlo [Thu, 31 Jul 2014 05:12:21 +0000 (05:12 +0000)]
Replace the whole license block with the standard one.

Suggested by: emaste

9 years agoSwitch to using counter(9) for the new 64-bit stats kept by armv6 busdma.
ian [Thu, 31 Jul 2014 03:59:00 +0000 (03:59 +0000)]
Switch to using counter(9) for the new 64-bit stats kept by armv6 busdma.

9 years agoRemove an unsed variable.
kevlo [Thu, 31 Jul 2014 03:36:03 +0000 (03:36 +0000)]
Remove an unsed variable.

9 years agoIn copyright statement correct that the author is me, not Bill Paul.
kevlo [Thu, 31 Jul 2014 03:34:25 +0000 (03:34 +0000)]
In copyright statement correct that the author is me, not Bill Paul.

9 years agoReplace 'GNATS' with 'Bugzilla' in the base subversion commit template.
gjb [Thu, 31 Jul 2014 02:07:48 +0000 (02:07 +0000)]
Replace 'GNATS' with 'Bugzilla' in the base subversion commit template.

Approved by: peter
Sponsored by: The FreeBSD Foundation

9 years agoCommands which encounter a fatal error shouldn't be marked as completed.
tychon [Wed, 30 Jul 2014 18:47:31 +0000 (18:47 +0000)]
Commands which encounter a fatal error shouldn't be marked as completed.
Furthermore, provide an indication of the current command so it can be
determined which one actually failed.

Reviewed by: grehan

9 years agoBring in LSI's phase19 changes
smh [Wed, 30 Jul 2014 18:21:06 +0000 (18:21 +0000)]
Bring in LSI's phase19 changes
* Removed unused mpssas_discovery_timeout function.
* Don't alter mapping boundaries if not raid firmware.
* Check free_busaddr instead of post_busaddr (diff minimisation really)

MFC after: 2 weeks

9 years agoBring in LSI's phase16 - phase18 changes
smh [Wed, 30 Jul 2014 17:58:17 +0000 (17:58 +0000)]
Bring in LSI's phase16 - phase18 changes
* Implements Start Stop Unit for SATA direct-attach devices in IR mode to avoid
  data corruption.
* Use CAM_DEV_NOT_THERE instead of CAM_SEL_TIMEOUT and CAM_TID_INVALID

Obtained from: LSI
MFC after: 2 weeks

9 years agoFollow up r269179 and remove the libsbuf.so.7 library.
delphij [Wed, 30 Jul 2014 17:19:11 +0000 (17:19 +0000)]
Follow up r269179 and remove the libsbuf.so.7 library.

9 years agoProvide a means for loaders to control which file system to use. This
marcel [Wed, 30 Jul 2014 16:08:16 +0000 (16:08 +0000)]
Provide a means for loaders to control which file system to use. This
to counteract the default behaviour of always trying each and every
file system until one succeeds, or the open fails. The problem with the
loader is that we've implemented features based on this behavior. The
handling of compressed files is a good example of this. However, it is
in general highly undesirable to not have a one-time probe (or taste
in the geom lingo), followed by something similar to a mount whenever
we (first) read from a device. Everytime we go to the same device, we
can reasonably assume it (still) has the same file system. For file
systems that need to do far more that a trivial read of a super block,
not having something similar to a mount operation is disastrous from
a performance (and thus usability) perspective.

But, again, since we've implemented features based on this stateless
approach, things can get complicated quickly if and when we want to
change this. And yet, we sometimes do need stateful behaviour.

For this reason, this change simply introduces exclusive_file_system.
When set to the fsops of the file system to use, the open call will
only try this file system. Setting it to NULL restores the default
behaviour. It's a low-cost (low-brow?) approach to provide enough
control without re-implementing the guts of the loader.

A good example of when this is useful is when we're trying to load
files out of a container (say, a software packaga) that itself lives
on a file system or is fetched over the network. While opening the
container can be done in the normal stateless manner, once it is
opened, subsequent opens should only consider the container.

Obtained from: Juniper Networks, Inc.

9 years agofiles.mips: the kbd driver is used by vt(4) too
emaste [Wed, 30 Jul 2014 15:43:17 +0000 (15:43 +0000)]
files.mips: the kbd driver is used by vt(4) too

Sponsored by: DARPA, AFRL

9 years agoAdd new rule to source address selection algorithm. It prefers address
ae [Wed, 30 Jul 2014 15:08:12 +0000 (15:08 +0000)]
Add new rule to source address selection algorithm. It prefers address
with better virtual status. Use ifa_preferred() to choose better address.

PR: 187341
Tested by: des
MFC after: 1 week

9 years agoWhen restoring a UFS dump onto a ZFS filesystem, an assertion in
mckusick [Wed, 30 Jul 2014 14:52:04 +0000 (14:52 +0000)]
When restoring a UFS dump onto a ZFS filesystem, an assertion in
restore was failing because ZFS was reporting a blocksize that was
not a multiple of 1024.  Replace restore's failed assertion with
code that writes restored files in a blocksize that works for
restore (a multiple of 1024) despite being non-optimal for ZFS.

Submitted by: Dmitry Morozovsky
Tested by:    Dmitry Morozovsky
MFC after:    1 week

9 years agoFix relative numerical addressing (addr,+N).
jlh [Wed, 30 Jul 2014 14:46:39 +0000 (14:46 +0000)]
Fix relative numerical addressing (addr,+N).

As a bonus the patch untangles a bit the logic and makes the code
easier to grasp.

PR: 192108
MFC after: 1 week

9 years agoRemove trailing comma from ending Xref
gjb [Wed, 30 Jul 2014 04:48:56 +0000 (04:48 +0000)]
Remove trailing comma from ending Xref

MFC after: 3 days
Sponsored by: The FreeBSD Foundation

9 years agoRemove trailing comma from ending Xref
gjb [Wed, 30 Jul 2014 04:48:20 +0000 (04:48 +0000)]
Remove trailing comma from ending Xref

MFC after: 3 days
Sponsored by: The FreeBSD Foundation

9 years agoRemove trailing comma from ending Xref.
gjb [Wed, 30 Jul 2014 04:47:39 +0000 (04:47 +0000)]
Remove trailing comma from ending Xref.

MFC after: 3 days
Sponsored by: The FreeBSD Foundation

9 years agoRemove trailing comma from standalone Xref.
gjb [Wed, 30 Jul 2014 04:46:53 +0000 (04:46 +0000)]
Remove trailing comma from standalone Xref.

MFC after: 3 days
Sponsored by: The FreeBSD Foundation

9 years agoRemove trailing '.' from See Also section.
gjb [Wed, 30 Jul 2014 04:40:50 +0000 (04:40 +0000)]
Remove trailing '.' from See Also section.

MFC after: 3 days
Sponsored by: The FreeBSD Foundation

9 years agoCorrect typo in comment
emaste [Wed, 30 Jul 2014 00:28:29 +0000 (00:28 +0000)]
Correct typo in comment

PR: 192231
Submitted by: Ron Dahlgren
MFC after: 1 week