]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
11 years agoMFC r246242: zfs: add MODULE_VERSION for zfsctrl
avg [Fri, 8 Feb 2013 08:03:03 +0000 (08:03 +0000)]
MFC r246242: zfs: add MODULE_VERSION for zfsctrl

git-svn-id: svn://svn.freebsd.org/base/stable/9@246534 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r246244: solaris compat: remove KM_ZERO
avg [Fri, 8 Feb 2013 07:59:13 +0000 (07:59 +0000)]
MFC r246244: solaris compat: remove KM_ZERO

git-svn-id: svn://svn.freebsd.org/base/stable/9@246533 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r235922:
mav [Thu, 7 Feb 2013 08:27:48 +0000 (08:27 +0000)]
MFC r235922:
Revert devfs part of r235911. I was unaware about old but unfinished
discussion between kib@ and gibbs@ about it.

git-svn-id: svn://svn.freebsd.org/base/stable/9@246455 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r245051:
bjk [Thu, 7 Feb 2013 04:49:28 +0000 (04:49 +0000)]
MFC r245051:

    Grammar fixes and some wordsmithing

    Discussed with: rmacklem

Approved by: hrs (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/9@246451 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r236426 (by mjacob):
mav [Wed, 6 Feb 2013 22:39:45 +0000 (22:39 +0000)]
MFC r236426 (by mjacob):
Print FC PortID as a hex number. This makes it easy to
figure out domain, etc..

Zero ATIO and INOTify allocations. It makes for much
less guesswork when looking at the structure and
seeing 'deadc0de' present.

git-svn-id: svn://svn.freebsd.org/base/stable/9@246442 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r244016 (by ken):
mav [Wed, 6 Feb 2013 22:32:45 +0000 (22:32 +0000)]
MFC r244016 (by ken):
Make sure we hold the SIM lock when calling xpt_free_path().

Sponsored by:   Spectra Logic Corporation

git-svn-id: svn://svn.freebsd.org/base/stable/9@246441 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r244001 (by ken):
mav [Wed, 6 Feb 2013 22:30:40 +0000 (22:30 +0000)]
MFC r244001 (by ken):
Fix a panic during CAM EDT traversal.

The problem was a race condition between the EDT traversal used by
things like 'camcontrol devlist', and CAM peripheral driver
removal.

The EDT traversal code holds the CAM topology lock, and wants
to show devices that have been invalidated.  It acquires a
reference to the peripheral to make sure the peripheral it is
examining doesn't go away.

However, because the peripheral removal code in camperiphfree()
drops the CAM topology lock to call the peripheral's destructor
routine, we can run into a situation where the EDT traversal
increments the peripheral reference count after free process is
already in progress.  At that point, the reference count is
ignored, because it was 0 when we started the process.

Fix this race by setting a flag, CAM_PERIPH_FREE, that I previously
added and checked in xptperiphtraverse() and xptpdperiphtravsere(),
but failed to use.  If the EDT traversal code sees that flag,
it will know that the peripheral free process has already started,
and that it should not access that peripheral.

Also, fix an inconsistency in the locking between
xptpdperiphtraverse() and xptperiphtraverse().  They now both
hold the CAM topology lock while calling the peripheral traversal
function.

cam_xpt.c:      Change xptperiphtraverse() to hold the CAM topology
                lock across calls to the traversal function.

                Take out the comment in xptpdperiphtraverse() that
                referenced the locking inconsistency.

cam_periph.c:   Set the CAM_PERIPH_FREE flag when we are in the
                process of freeing a peripheral driver.

Sponsored by:   Spectra Logic Corporation

git-svn-id: svn://svn.freebsd.org/base/stable/9@246440 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r242358 (by trasz):
mav [Wed, 6 Feb 2013 22:25:28 +0000 (22:25 +0000)]
MFC r242358 (by trasz):
Use M_ZERO instead of explicit memsets and bzeros.

git-svn-id: svn://svn.freebsd.org/base/stable/9@246439 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r241503:
mav [Wed, 6 Feb 2013 22:22:15 +0000 (22:22 +0000)]
MFC r241503:
XPT_DEV_MATCH is probably the only xpt_action() method that is called
without holding SIM lock. It really doesn't need that lock, but adding it
removes that specific exception, allowing to assert locking there later.

git-svn-id: svn://svn.freebsd.org/base/stable/9@246438 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r235911, r235980, r238739, r238740, r238894, r239213, r241488, r241952,
mav [Wed, 6 Feb 2013 22:07:38 +0000 (22:07 +0000)]
MFC r235911, r235980, r238739, r238740, r238894, r239213, r241488, r241952,
r242173, r242621, r242634, r242638, r242647, r242720, r244418, r244508,
r245891:
Revamp the CAM enclosure services driver.
This updated driver uses an in-kernel daemon to track state changes and
publishes physical path location information for disk elements into the
CAM device database.

Sponsored by:   Spectra Logic Corporation
Sponsored by:   iXsystems, Inc.

git-svn-id: svn://svn.freebsd.org/base/stable/9@246437 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r242175:
mav [Wed, 6 Feb 2013 18:40:07 +0000 (18:40 +0000)]
MFC r242175:
Remove priority enforcement from xpt_ation().  It is not good and even not
safe in some cases to reduce CCB priority after it was scheduled with high
priority.  This fixes reproducible deadlock when command sent through the
pass interface while ATA XPT recovers from command timeout.

Instead of that enforce priority at passioctl().  libcam provides no obvious
interface to specify CCB priority and so much (all?) code specifies zero
(highest) priority.  This change limits pass CCBs priority to NORMAL run
level, allowing XPT to complete bus and device recovery after reset before
running any payload.

git-svn-id: svn://svn.freebsd.org/base/stable/9@246431 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r242174:
mav [Wed, 6 Feb 2013 18:36:26 +0000 (18:36 +0000)]
MFC r242174:
Remove several uses of numeric priorities from immediate CCB setups.

git-svn-id: svn://svn.freebsd.org/base/stable/9@246429 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r240993 (by trasz):
mav [Wed, 6 Feb 2013 18:32:12 +0000 (18:32 +0000)]
MFC r240993 (by trasz):
Remove useless NULL checks after M_WAITOK allocations.

git-svn-id: svn://svn.freebsd.org/base/stable/9@246427 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r240948 (by trasz):
mav [Wed, 6 Feb 2013 18:30:53 +0000 (18:30 +0000)]
MFC r240948 (by trasz):
Fix panic in CTL caused by trying to free invalid pointers passed
by the userland process via the IOCTL interface.

git-svn-id: svn://svn.freebsd.org/base/stable/9@246426 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r238595, r238596:
mav [Wed, 6 Feb 2013 18:21:36 +0000 (18:21 +0000)]
MFC r238595, r238596:
Add bunch of new ASC/ASCQ values from T10 site.

git-svn-id: svn://svn.freebsd.org/base/stable/9@246424 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFi386: Remove firewire devices.
nyan [Wed, 6 Feb 2013 13:55:02 +0000 (13:55 +0000)]
MFi386: Remove firewire devices.

git-svn-id: svn://svn.freebsd.org/base/stable/9@246406 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r246119:
kib [Wed, 6 Feb 2013 13:53:59 +0000 (13:53 +0000)]
MFC r246119:
Rework the handling of the children for the pthread_vfork_test.  The
trivial handler for SIGCHLD is installed, and SIGCHLD is blocked, to
not abandon our zombies to init(8). This way, the zombies are around
slightly longer, allowing to actually exercise the logic for p_pwait
use by the test.

git-svn-id: svn://svn.freebsd.org/base/stable/9@246405 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r246118:
kib [Wed, 6 Feb 2013 13:49:56 +0000 (13:49 +0000)]
MFC r246118:
The case of pid == WAIT_MYPGRP for the kern_wait() is already handled
in kern_wait6(), which is called by kern_wait().  Remove the redundand
check, introduced in r243136, and add a comment noting this, to make
the code less confusing.

git-svn-id: svn://svn.freebsd.org/base/stable/9@246404 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r245696:
zont [Wed, 6 Feb 2013 13:16:43 +0000 (13:16 +0000)]
MFC r245696:
- Force inetd to have listen queue size to be set to the value of
  kern.ipc.somaxconn instead of hardcoded value 64.

git-svn-id: svn://svn.freebsd.org/base/stable/9@246402 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r245457:
zont [Wed, 6 Feb 2013 13:13:15 +0000 (13:13 +0000)]
MFC r245457:
- Detect when we are in KVM.

git-svn-id: svn://svn.freebsd.org/base/stable/9@246400 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r246113 and r246126:
hselasky [Wed, 6 Feb 2013 11:08:11 +0000 (11:08 +0000)]
MFC r246113 and r246126:
Add missing NULL pointer check.

Reported by:  Lars Engels

git-svn-id: svn://svn.freebsd.org/base/stable/9@246395 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC: Remove firewire devices missed in r244992.
hrs [Wed, 6 Feb 2013 07:20:09 +0000 (07:20 +0000)]
MFC: Remove firewire devices missed in r244992.

git-svn-id: svn://svn.freebsd.org/base/stable/9@246386 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r246299;
pfg [Wed, 6 Feb 2013 02:51:25 +0000 (02:51 +0000)]
MFC r246299;

UFS: Remove dead assignment.

PR: kern/175794
Submitted by: Christoph Mallon

git-svn-id: svn://svn.freebsd.org/base/stable/9@246376 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC:
delphij [Wed, 6 Feb 2013 00:42:23 +0000 (00:42 +0000)]
MFC:

one-true-awk 20121220.

git-svn-id: svn://svn.freebsd.org/base/stable/9@246373 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r246028 (by theraven):
dim [Tue, 5 Feb 2013 19:10:50 +0000 (19:10 +0000)]
MFC r246028 (by theraven):

  Fix some symbol version mismatches between libstdc++ and libsupc++/libcxxrt
  that were causing the runtime and STL libraries to see different versions of
  various classes and functions when libstdc++ is used as a filter.

  Note: This changes the ABI for libcxxrt, but libcxxrt is currently only in
  -STABLE for testing and is not used by anything unless explicitly enabled by
  the end user.  No default compiler configurations use it.

  libc++ will need to be recompiled after this change.  make buildworld will do
  this automatically, but make in lib/libc++ will not necessarily work unless the
  new libcxxrt is installed first.

  PR: kern/171610, stand/175453
  Reviewed by: kib

MFC r246297:

  Add several missing symbols to libcxxrt's symbol version map, and remove
  a few duplicates.  This should fix building world with -stdlib=libc++
  after r246028.

  Submitted by: Yamaya Takashi <yamayan@kbh.biglobe.ne.jp>

git-svn-id: svn://svn.freebsd.org/base/stable/9@246368 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFH r246362: remove political propaganda
des [Tue, 5 Feb 2013 14:53:05 +0000 (14:53 +0000)]
MFH r246362: remove political propaganda

git-svn-id: svn://svn.freebsd.org/base/stable/9@246364 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r243779 (marcel):
delphij [Tue, 5 Feb 2013 09:53:32 +0000 (09:53 +0000)]
MFC r243779 (marcel):

Protect against DoS attacks, such as being described in CVE-2010-2632.
The changes were derived from what has been committed to NetBSD, with
modifications. These are:

1.  Preserve the existsing GLOB_LIMIT behaviour by including the number
    of matches to the set of parameters to limit.
2.  Change some of the limits to avoid impacting normal use cases:
    GLOB_LIMIT_STRING - change from 65536 to ARG_MAX so that glob(3)
        can still provide a full command line of expanded names.
    GLOB_LIMIT_STAT - change from 128 to 1024 for no other reason than
        that 128 feels too low (it's not a limit that impacts the
        behaviour of the test program listed in CVE-2010-2632).
    GLOB_LIMIT_PATH - change from 1024 to 65536 so that glob(3) can
        still provide a fill command line of expanded names.
3.  Protect against buffer overruns when we hit the GLOB_LIMIT_STAT or
    GLOB_LIMIT_READDIR limits. We append SEP and EOS to pathend in
    those cases. Return GLOB_ABORTED instead of GLOB_NOSPACE when we
    would otherwise overrun the buffer.

This change also modifies the existing behaviour of glob(3) in case
GLOB_LIMIT is specifies by limiting the *new* matches and not all
matches. This is an important distinction when GLOB_APPEND is set or
when the caller uses a non-zero gl_offs. Previously pre-existing
matches or the value of gl_offs would be counted in the number of
matches even though the man page states that glob(3) would return
GLOB_NOSPACE when gl_matchc or more matches were found.

The limits that cannot be circumvented are GLOB_LIMIT_STRING and
GLOB_LIMIT_PATH all others can be crossed by simply calling glob(3)
again and with GLOB_APPEND set.

The entire description above applies only when GLOB_LIMIT has been
specified of course. No limits apply when this flag isn't set!

Obtained from: Juniper Networks, Inc

git-svn-id: svn://svn.freebsd.org/base/stable/9@246357 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r243758 (marcel):
delphij [Tue, 5 Feb 2013 09:50:33 +0000 (09:50 +0000)]
MFC r243758 (marcel):

In globextend() when the pathv vector cannot be (re-)allocated, don't
free and clear the gl_pathv pointer in the glob_t structure. Such
breaks the invariant of the glob_t structure, as stated in the comment
right in front of the globextend() function. If gl_pathv was non-NULL,
then gl_pathc was > 0. Making gl_pathv a NULL pointer without also
setting gl_pathc to 0 is wrong.

Since we otherwise don't free the memory associated with a glob_t in
error cases, it's unlikely that this change will cause a memory leak
that wasn't already there to begin with. Callers of glob(3) must
call globfree(3) irrespective of whether glob(3) returned an error
or not.

MFC r243759 (marcel):

In globextend(), take advantage of the fact that realloc(NULL, size) is
equivalent to malloc(size). This eliminates the conditional expression
used for calling either realloc() or malloc() when realloc() will do
all the time.

git-svn-id: svn://svn.freebsd.org/base/stable/9@246356 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFH: sync netmap with the version in HEAD
luigi [Tue, 5 Feb 2013 09:40:31 +0000 (09:40 +0000)]
MFH: sync netmap with the version in HEAD

git-svn-id: svn://svn.freebsd.org/base/stable/9@246355 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoRegenerate
des [Mon, 4 Feb 2013 16:20:13 +0000 (16:20 +0000)]
Regenerate

git-svn-id: svn://svn.freebsd.org/base/stable/9@246323 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFH (r228082): add missing documentation for WITH_LIBCPLUSPLUS
des [Mon, 4 Feb 2013 16:13:55 +0000 (16:13 +0000)]
MFH (r228082): add missing documentation for WITH_LIBCPLUSPLUS
MFH (r228159): add missing documentation for WITH_CTF

git-svn-id: svn://svn.freebsd.org/base/stable/9@246322 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFH (r244992): remove firewire from GENERIC
des [Mon, 4 Feb 2013 15:51:27 +0000 (15:51 +0000)]
MFH (r244992): remove firewire from GENERIC

git-svn-id: svn://svn.freebsd.org/base/stable/9@246321 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r243930:
eadler [Mon, 4 Feb 2013 00:34:33 +0000 (00:34 +0000)]
MFC r243930:
Constify where possible

Approved by: cperciva (mentor, implicit)

git-svn-id: svn://svn.freebsd.org/base/stable/9@246309 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r245908:
dchagin [Sun, 3 Feb 2013 18:37:08 +0000 (18:37 +0000)]
MFC r245908:

Arithmetic on pointers takes into account the size of the type.
Properly cast the pointer to avoid incorrect pointer scaling.

git-svn-id: svn://svn.freebsd.org/base/stable/9@246292 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r240387 (by kevlo@):
dchagin [Sun, 3 Feb 2013 18:27:57 +0000 (18:27 +0000)]
MFC r240387 (by kevlo@):
 Remove redundant check.

git-svn-id: svn://svn.freebsd.org/base/stable/9@246291 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r235063 (by netchild@):
dchagin [Sun, 3 Feb 2013 18:14:37 +0000 (18:14 +0000)]
MFC r235063 (by netchild@):
 - >500 static DTrace probes for the linuxulator
 - DTrace scripts to check for errors, performance, ...
  they serve mostly as examples of what you can do with the static probes
  with moderate load the scripts may be overwhelmed, excessive lock-tracing
  may influence program behavior (see the last design decission)

 Design decissions:
 - use "linuxulator" as the provider for the native bitsize; add the
   bitsize for the non-native emulation (e.g. "linuxuator32" on amd64)
 - Add probes only for locks which are acquired in one function and released
   in another function. Locks which are aquired and released in the same
   function should be easy to pair in the code, inter-function
   locking is more easy to verify in DTrace.
 - Probes for locks should be fired after locking and before releasing to
   prevent races (to provide data/function stability in DTrace, see the
   man-page of "dtrace -v ..." and the corresponding DTrace docs).

Manual merge futex part of r227293 (by ed@):
 Mark MALLOC_DEFINEs static that have no corresponding MALLOC_DECLAREs.

MFC r235078 (by uqs@):
 Fix make depend.

git-svn-id: svn://svn.freebsd.org/base/stable/9@246290 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r245977:
kib [Sun, 3 Feb 2013 14:24:52 +0000 (14:24 +0000)]
MFC r245977:
Be conservative and do not try to consume more bytes than was
requested from the server for the read operation.

git-svn-id: svn://svn.freebsd.org/base/stable/9@246285 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r242379:
trasz [Sun, 3 Feb 2013 12:17:49 +0000 (12:17 +0000)]
MFC r242379:

Fix problem with geom_label(4) not recognizing UFS labels on filesystems
extended using growfs(8).  The problem here is that geom_label checks if
the filesystem size recorded in UFS superblock is equal to the provider
(i.e. device) size.  This check cannot be removed due to backward
compatibility.  On the other hand, in most cases growfs(8) cannot set
fs_size in the superblock to match the provider size, because, differently
from newfs(8), it cannot recompute cylinder group sizes.

To fix this problem, add another superblock field, fs_providersize, used
only for this purpose.  The geom_label(4) will attach if either fs_size
(filesystem created with newfs(8)) or fs_providersize (filesystem expanded
using growfs(8)) matches the device size.

PR: kern/165962
Reviewed by: mckusick
Sponsored by: FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/9@246284 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r245491:
eadler [Sun, 3 Feb 2013 03:46:16 +0000 (03:46 +0000)]
MFC r245491:
Avoid clobbering errno with a call to fprintf

PR: bin/173923
Approved by: cperciva (mentor, implicit)

git-svn-id: svn://svn.freebsd.org/base/stable/9@246281 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r243896:
eadler [Sun, 3 Feb 2013 03:43:59 +0000 (03:43 +0000)]
MFC r243896:
Use strdup instead of malloc + strcpy

Approved by: cperciva (mentor, implicit)

git-svn-id: svn://svn.freebsd.org/base/stable/9@246280 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r244493:
eadler [Sun, 3 Feb 2013 03:38:44 +0000 (03:38 +0000)]
MFC r244493:
Make bsdgrep behave as gnugrep and as documented: -m should only stop
reading the specific file, not any file.

Approved by: cperciva (mentor, implicit)

git-svn-id: svn://svn.freebsd.org/base/stable/9@246279 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r244407,r244409:
eadler [Sun, 3 Feb 2013 01:22:28 +0000 (01:22 +0000)]
MFC r244407,r244409:
POSIX requires that non-existent or null arguments be treated as if a
zero argument were supplied.

Add regression tests to catch this case as well.

PR: bin/174521
Approved by: cperciva (mentor, implicit)

git-svn-id: svn://svn.freebsd.org/base/stable/9@246277 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r243793,r243794:
eadler [Sun, 3 Feb 2013 00:02:59 +0000 (00:02 +0000)]
MFC r243793,r243794:
Add a few more translations from IDs to model name.

PR: kern/174059
Approved by: cperciva (mentor, implicit)

git-svn-id: svn://svn.freebsd.org/base/stable/9@246274 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r243931:
eadler [Sat, 2 Feb 2013 23:30:58 +0000 (23:30 +0000)]
MFC r243931:
Avoid the creation of a temporary object by using the prefix operator
for non-primitive types.

Approved by: cperciva (mentor, implicit)

git-svn-id: svn://svn.freebsd.org/base/stable/9@246270 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r244122:
eadler [Sat, 2 Feb 2013 23:22:27 +0000 (23:22 +0000)]
MFC r244122:
Remove 'dangerous' instructions from the example make.conf.
Clarify when and why these might be used and that this isn't a supported
configuration.

PR: docs/144488
Approved by: cperciva (mentor, implicit)

git-svn-id: svn://svn.freebsd.org/base/stable/9@246267 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r245535:
eadler [Sat, 2 Feb 2013 23:11:20 +0000 (23:11 +0000)]
MFC r245535:
Remove useless variable 'Pflag':
-P is an alternative to -H and -L, and it is implemented using the Hflag and Lflag variables.

Approved by: cperciva (mentor, implicit)

git-svn-id: svn://svn.freebsd.org/base/stable/9@246266 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r245606:
eadler [Sat, 2 Feb 2013 23:01:54 +0000 (23:01 +0000)]
MFC r245606:
Add option to make pc-sysinstall optional

PR: bin/173931
Approved by: cperciva (implicit)

git-svn-id: svn://svn.freebsd.org/base/stable/9@246264 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r244686 to stable/9:
antoine [Sat, 2 Feb 2013 13:47:34 +0000 (13:47 +0000)]
MFC r244686 to stable/9:
Use correct size in snprintf.
Remove unused buffer.

PR: 174631
Submitted by: Henning Petersen

git-svn-id: svn://svn.freebsd.org/base/stable/9@246253 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r246131:
dim [Sat, 2 Feb 2013 12:08:28 +0000 (12:08 +0000)]
MFC r246131:

Fix a problem introduced in r231057: in bsd.own.mk, move the test for
whether clang is enabled to just after the last place where it could
have been forced to "no".

git-svn-id: svn://svn.freebsd.org/base/stable/9@246249 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r245946: g_mirror: g_getattr() failure should not be fatal
avg [Sat, 2 Feb 2013 11:30:53 +0000 (11:30 +0000)]
MFC r245946: g_mirror: g_getattr() failure should not be fatal

PR: kern/175323

git-svn-id: svn://svn.freebsd.org/base/stable/9@246241 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r245945: spa_generate_rootconf: add support for old vdev labels
avg [Sat, 2 Feb 2013 11:25:10 +0000 (11:25 +0000)]
MFC r245945: spa_generate_rootconf: add support for old vdev labels

git-svn-id: svn://svn.freebsd.org/base/stable/9@246240 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r244295:
trasz [Sat, 2 Feb 2013 10:04:23 +0000 (10:04 +0000)]
MFC r244295:

When growing a filesystem, don't leave unused space at the end
if there is not enough room for a full cylinder group.

Reviewed by:    mckusick@

git-svn-id: svn://svn.freebsd.org/base/stable/9@246237 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r244243:
trasz [Sat, 2 Feb 2013 10:02:26 +0000 (10:02 +0000)]
MFC r244243:

Fix extending filesystems of weird size by making sure the actual size
is always multiple of fragment size.

git-svn-id: svn://svn.freebsd.org/base/stable/9@246236 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r243246:
trasz [Sat, 2 Feb 2013 10:00:46 +0000 (10:00 +0000)]
MFC r243246:

Make it possible to resize filesystems mounted read-write, using newly
introduced UFS write suspension mechanism.

Reviewed by: kib, mckusick
Sponsored by: FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/9@246235 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r243245:
trasz [Sat, 2 Feb 2013 09:57:34 +0000 (09:57 +0000)]
MFC r243245:

Add UFS writesuspension mechanism, designed to allow userland processes
to modify on-disk metadata for filesystems mounted for write.

Reviewed by:    kib, mckusick
Sponsored by:   FreeBSD Foundation

MFC r243247:

Add change missed in 243245.

MFC r243250:

Fix build of kdump(1).

MFC r243254:

Fix build on powerpc.

Reviewed by:    nwhitehorn

MFC r243305 by marius:

Fix build after r243245.

Submitted by:   trasz

MFC r243339 by kib:

Fix module build after r243245.

git-svn-id: svn://svn.freebsd.org/base/stable/9@246234 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r246153, r246154:
gjb [Sat, 2 Feb 2013 01:11:02 +0000 (01:11 +0000)]
MFC r246153, r246154:

r246153:
 - Update svn port directory in release(7).

r246154:
 -  Force commit to mark MFC for r246153.

git-svn-id: svn://svn.freebsd.org/base/stable/9@246224 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r245511:
delphij [Fri, 1 Feb 2013 07:48:13 +0000 (07:48 +0000)]
MFC r245511:

Improve the comment in txg.c

Obtained from: Illumos (13910:f3454e0a097c)

git-svn-id: svn://svn.freebsd.org/base/stable/9@246200 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r245048:
delphij [Fri, 1 Feb 2013 07:40:46 +0000 (07:40 +0000)]
MFC r245048:

Constify arguments.  While I'm there, also add a static for usage().

git-svn-id: svn://svn.freebsd.org/base/stable/9@246199 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r244568:
delphij [Fri, 1 Feb 2013 07:36:22 +0000 (07:36 +0000)]
MFC r244568:

 - Reduce buffer size from LINE_MAX to PATH_MAX, there is no point to store
   path longer than this.
 - Fix an unreached case of check against sizeof buf, which in turn leads
   to an off-by-one nul byte write on the stack.  The original condition
   can never be satisfied because the passed boundary is the maximum value
   that can be returned, so code was harmless.

git-svn-id: svn://svn.freebsd.org/base/stable/9@246197 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r245613:
delphij [Fri, 1 Feb 2013 00:32:01 +0000 (00:32 +0000)]
MFC r245613:

Make it possible to force async at server side on new NFS server, similar
to the old one's nfs.nfsrv.async.

Please note that by enabling this option (default is disabled), the system
could potentionally have silent data corruption if the server crashes
before write is committed to non-volatile storage, as the client side have
no way to tell if the data is already written.

Submitted by: rmacklem

git-svn-id: svn://svn.freebsd.org/base/stable/9@246187 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r245423, r245425, r245433:
mav [Thu, 31 Jan 2013 22:30:23 +0000 (22:30 +0000)]
MFC r245423, r245425, r245433:
- Print some more metadata fields.
- Small cosmetic tuning of the IRRT status constants.
- Keep value of orig_config_id metadata field.  Windows driver writes there
previous value of config_id when it is changed in some cases.  I guess it
may be used do avoid some split-brain conditions.

git-svn-id: svn://svn.freebsd.org/base/stable/9@246184 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r245400:
mav [Thu, 31 Jan 2013 22:26:48 +0000 (22:26 +0000)]
MFC r245400:
Windows driver writes relative volume IDs to metadata field.  Use that value
as a hint for raid/rX device number to make it persistent across reboots.

git-svn-id: svn://svn.freebsd.org/base/stable/9@246182 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r245398:
mav [Thu, 31 Jan 2013 22:24:05 +0000 (22:24 +0000)]
MFC r245398:
 - Add checks for Intel metadata version and attributes. Ignore disks with
unsupported metadata types like Intel Smart Response to not corrupt them.
 - Improve setting of these things during metadata writing to protect from
incapable BIOS'es and other implementations.

git-svn-id: svn://svn.freebsd.org/base/stable/9@246180 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r245363:
mav [Thu, 31 Jan 2013 22:21:39 +0000 (22:21 +0000)]
MFC r245363:
Improve support for disabled disks. If disabled disk disconnected and then
reconnected back, leave it as disabled. If new disk inserted instead of
disabled, rebuild it and leave as enabled.

git-svn-id: svn://svn.freebsd.org/base/stable/9@246178 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r245341:
mav [Thu, 31 Jan 2013 22:18:40 +0000 (22:18 +0000)]
MFC r245341:
Windows handles INIT and VERIFY as array-wide and it doesn't specify which
disks should be rebuilt. Our rebuild code is same time disk-centric.  To
handle this situation  properly check all disks for RBLD flags, and if no
disk specified try rebuild/resync all of them except newly inserted.

git-svn-id: svn://svn.freebsd.org/base/stable/9@246175 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r245338:
mav [Thu, 31 Jan 2013 22:15:47 +0000 (22:15 +0000)]
MFC r245338:
Implement migration from single disk to RAID1/IRRT for Intel metadata.
Windows driver uses such migration when it creates new arrays.  While GEOM
RAID has no mechanism to implement migration in general case, this specifc
case still can be handled easily via degraded RAID1 creation followed by
regular rebuild.

git-svn-id: svn://svn.freebsd.org/base/stable/9@246173 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r245326:
mav [Thu, 31 Jan 2013 22:12:25 +0000 (22:12 +0000)]
MFC r245326:
Add basic support for Intel Rapid Recover Technology (Intel RRT).
It is alike to RAID1, but with dedicating master and recovery disks and
providing manual control over synchronization.  It allows to use recovery
disk as snapshot of the master disk from the time of the last sync.

This implementation is not functionaly complete comparing to Windows,
but it is better then silent conversion to RAID1 on first boot.

git-svn-id: svn://svn.freebsd.org/base/stable/9@246168 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r245522, r245533:
mav [Thu, 31 Jan 2013 22:05:18 +0000 (22:05 +0000)]
MFC r245522, r245533:
For Promise/AMD metadata add support for disks with capacity above 2TiB
and for volumes with sector size above 512 bytes.

git-svn-id: svn://svn.freebsd.org/base/stable/9@246164 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r245519:
mav [Thu, 31 Jan 2013 21:24:38 +0000 (21:24 +0000)]
MFC r245519:
Recalculate volume size only for real CONCATs.  For SINGLE trust volume
size given by metadata, as it should be correct and in some cases can be
smaller then subdisk size.

git-svn-id: svn://svn.freebsd.org/base/stable/9@246160 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r245875:
mav [Thu, 31 Jan 2013 20:47:35 +0000 (20:47 +0000)]
MFC r245875:
Disable MSI interrupts for SB600 chipset.  According to the report they are
not functional.

PR: kern/174880, kern/174985, kern/175002

git-svn-id: svn://svn.freebsd.org/base/stable/9@246156 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r245459
sbruno [Thu, 31 Jan 2013 19:24:33 +0000 (19:24 +0000)]
MFC r245459

  Satisfy the intent of kern/151564: [ciss] ciss(4) should increase
  CISS_MAX_LOGICAL to 107

  Submitter wanted to increase the number of logical disks supported by ciss(4)
  by simply raising the CISS_MAX_LOGICAL value even higher.  Instead, consult
  the documentation for the raid controller (OPENCISS) and poke the controller
  bits to ask it for how many logical/physical disks it can handle.

  Revert svn R242089 that raised CISS_MAX_LOGICAL to 64 for all controllers.

  For older controllers that don't support this mechanism, fallback to the old
  value of 16 logical disks.  Tested on P420, P410, P400 and 6i model ciss(4)
  controllers.

  This should will be MFC'd back to stable/9 stable/8 and stable/7 after the MFC
  period.

git-svn-id: svn://svn.freebsd.org/base/stable/9@246152 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r245956:
mjg [Thu, 31 Jan 2013 01:15:12 +0000 (01:15 +0000)]
MFC r245956:
truss: if file requested with -o flag could not be opened print the reason

git-svn-id: svn://svn.freebsd.org/base/stable/9@246142 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r245456:
mav [Tue, 29 Jan 2013 17:51:12 +0000 (17:51 +0000)]
MFC r245456:
Allow to insert new component to geom_raid3 without specifying number.

PR: kern/160562

git-svn-id: svn://svn.freebsd.org/base/stable/9@246081 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r245444:
mav [Tue, 29 Jan 2013 17:45:05 +0000 (17:45 +0000)]
MFC r245444:
Alike to r242314 for GRAID make GRAID3 more aggressive in marking volumes
as clean on shutdown and move that action from shutdown_pre_sync stage to
shutdown_post_sync to avoid extra flapping.

ZFS tends to not close devices on shutdown, that doesn't allow GEOM RAID3
to shutdown gracefully.  To handle that, mark volume as clean just when
shutdown time comes and there are no active writes.

git-svn-id: svn://svn.freebsd.org/base/stable/9@246079 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r245443:
mav [Tue, 29 Jan 2013 17:20:49 +0000 (17:20 +0000)]
MFC r245443:
Alike to r242314 for GRAID make GMIRROR more aggressive in marking volumes
as clean on shutdown and move that action from shutdown_pre_sync stage to
shutdown_post_sync to avoid extra flapping.

ZFS tends to not close devices on shutdown, that doesn't allow GEOM MIRROR
to shutdown gracefully.  To handle that, mark volume as clean just when
shutdown time comes and there are no active writes.

PR:             kern/113957

git-svn-id: svn://svn.freebsd.org/base/stable/9@246076 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoClean some 'svn:executable' properties in the tree.
pfg [Tue, 29 Jan 2013 13:49:08 +0000 (13:49 +0000)]
Clean some 'svn:executable' properties in the tree.

Submitted by: Christoph Mallon

While here, merge some other mergeinfo properties that
were left behind from my commits

/head/include:r241008,241141,241181
/head/contrib/gcc:r244776,244792
/head/cddl:r238457,238509,238558

git-svn-id: svn://svn.freebsd.org/base/stable/9@246069 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r245820, r245844, r245950:
pfg [Tue, 29 Jan 2013 01:44:13 +0000 (01:44 +0000)]
MFC r245820, r245844, r245950:

ext2fs: make some inode fields match the ext2 spec.

Ext2fs uses unsigned fields in its dinode struct.
FreeBSD can have negative values in some of those
fields and the inode is meant to interact with the
system so we have never respected the unsigned
nature of most of those fields.

Block numbers and the generation number do
not need to be signed so redefine them as
unsigned to better match the on-disk information.

Include some fixes proposed by bde@.

While here add a lot of svn mergeinfo that was missing
in /sys:

r239963,240060,240880,241007,241141,241143,241181,243641,
243652,244475,245121,245612,245817

git-svn-id: svn://svn.freebsd.org/base/stable/9@246049 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC: r245314 and r245315:
imp [Mon, 28 Jan 2013 23:16:47 +0000 (23:16 +0000)]
MFC: r245314 and r245315:
     r245315 | imp | 2013-01-11 14:42:23 -0700 (Fri, 11 Jan 2013) | 4 lines

     Pass the device_t into atkbd_{probe,attach}_unit and get the
     controller unit and keyboard unit from there. It will be needed
     for other things in the future as well...

     r245314 | imp | 2013-01-11 14:19:45 -0700 (Fri, 11 Jan 2013) | 2 lines

     style(9) changes before I do more real changes.

git-svn-id: svn://svn.freebsd.org/base/stable/9@246045 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoAdd pointer from recent breakage to old breakage.
imp [Mon, 28 Jan 2013 22:53:08 +0000 (22:53 +0000)]
Add pointer from recent breakage to old breakage.

git-svn-id: svn://svn.freebsd.org/base/stable/9@246044 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoAdd notes for breakage points for traditional building of the kernel
imp [Mon, 28 Jan 2013 22:50:54 +0000 (22:50 +0000)]
Add notes for breakage points for traditional building of the kernel
as a guide to others. buildkernel, etc was not broken at these points,
so document that as well.

git-svn-id: svn://svn.freebsd.org/base/stable/9@246043 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r245725:
hselasky [Mon, 28 Jan 2013 07:26:45 +0000 (07:26 +0000)]
MFC r245725:
Add new quirk and correct old one.

PR: usb/175454
MFC after: 1 week

git-svn-id: svn://svn.freebsd.org/base/stable/9@246022 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC: r245923
marius [Mon, 28 Jan 2013 00:31:32 +0000 (00:31 +0000)]
MFC: r245923

- Check the return value of taskqueue_start_threads().
- At least the Saturn chips of 501-6738 cards need a delay after freezing
  the external GMII pins before the internal PHY is accessible again. So
  wait a bit after (un)freezing these. Also don't touch the other bits of
  that configuration register. [1]
- Take advantage of nitems().

Reported and tested by: Paul Keusemann [1]

git-svn-id: svn://svn.freebsd.org/base/stable/9@246018 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC: r245850
marius [Sun, 27 Jan 2013 23:21:47 +0000 (23:21 +0000)]
MFC: r245850

Revert the part of r239864 (MFC'ed to stable/9 in r241681) which removed
obtaining the SMP mutex around reading registers from other CPUs. As it
turns out, the hardware doesn't really like concurrent IPI'ing causing
adverse effects. Also the thought deadlock when using this spin lock here
and the targeted CPU(s) are also holding or in case of nested locks can't
actually happen. This is due to the fact that on sparc64, spinlock_enter()
only raises the PIL but doesn't disable interrupts completely. Thus direct
cross calls as used for the register reading (and all other MD IPI needs)
still will be executed by the targeted CPU(s) in that case.

git-svn-id: svn://svn.freebsd.org/base/stable/9@246014 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC: r245017
marius [Sun, 27 Jan 2013 23:08:51 +0000 (23:08 +0000)]
MFC: r245017

Revert bogus part of r241740 (MFC'ed to stable/9 in r241878).
Reported by: Michael Moll

git-svn-id: svn://svn.freebsd.org/base/stable/9@246011 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC: r244993
marius [Sun, 27 Jan 2013 23:05:21 +0000 (23:05 +0000)]
MFC: r244993

Remove files not connected to the build. It's confusing enough that
we still have two not quite the same evtchn.c left over.

git-svn-id: svn://svn.freebsd.org/base/stable/9@246009 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC: r244991
marius [Sun, 27 Jan 2013 23:02:33 +0000 (23:02 +0000)]
MFC: r244991

- Replace partially incorrect function names in panic(9) strings with
  __func__ and add some missing ones.
- Remove a stale comment.
- Remove unused NUM_ELEMENTS macro.
- Remove extra empty lines.
- Use DEVMETHOD_END.
- Use NULL rather than 0 for pointers.

git-svn-id: svn://svn.freebsd.org/base/stable/9@246007 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC: r244990
marius [Sun, 27 Jan 2013 22:59:59 +0000 (22:59 +0000)]
MFC: r244990

- Fix !SMP build.
- Replace incorrect function names in printf(9) strings with __func__.
- Make xctrl_shutdown_reasons table const.
- Use nitems() rather than rolling an own version.
- Use DEVMETHOD_END.
- Use NULL rather than 0 for pointers.

git-svn-id: svn://svn.freebsd.org/base/stable/9@246005 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC: r244987
marius [Sun, 27 Jan 2013 22:50:36 +0000 (22:50 +0000)]
MFC: r244987

Fix !INVARIANTS && !SMP build.

git-svn-id: svn://svn.freebsd.org/base/stable/9@246003 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r245057, r245688
gabor [Sun, 27 Jan 2013 19:44:41 +0000 (19:44 +0000)]
MFC r245057, r245688

  - Fix handling of the case when multiple patterns are specified in a single
    command line argument, separated by newlines

git-svn-id: svn://svn.freebsd.org/base/stable/9@245996 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC: r244986
marius [Sun, 27 Jan 2013 17:41:26 +0000 (17:41 +0000)]
MFC: r244986

Remove bogus '-' from getopt(3) string hit when porting daemon(8) to
GNU/Linux *duck*.

git-svn-id: svn://svn.freebsd.org/base/stable/9@245993 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoRevert r237842 (MFC'ed to stable/9 in r238012) and switch back to
marius [Sun, 27 Jan 2013 17:38:29 +0000 (17:38 +0000)]
Revert r237842 (MFC'ed to stable/9 in r238012) and switch back to
SCHED_ULE. All problems I encountered with the latter have been
fixed with r241780 (MFC'ed to stable/9 in r245981).

git-svn-id: svn://svn.freebsd.org/base/stable/9@245992 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC: r244307
marius [Sun, 27 Jan 2013 17:33:22 +0000 (17:33 +0000)]
MFC: r244307

Restore pre-r234898 (MFC'ed to stable/9 in r236076) printing of boot loader
and path.

git-svn-id: svn://svn.freebsd.org/base/stable/9@245990 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC: r241875
marius [Sun, 27 Jan 2013 17:15:56 +0000 (17:15 +0000)]
MFC: r241875

Remove support for using Giant for locking within mpt(4). Finer grained
locking has been working fine for ~5.5 years by now.

git-svn-id: svn://svn.freebsd.org/base/stable/9@245986 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC: r241874
marius [Sun, 27 Jan 2013 17:13:11 +0000 (17:13 +0000)]
MFC: r241874

After r241858 (MFC'ed to stable/9 in r242286), remove the remainder of
FreeBSD ~4 support from mpt(4).

git-svn-id: svn://svn.freebsd.org/base/stable/9@245983 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC: 241780
marius [Sun, 27 Jan 2013 16:49:11 +0000 (16:49 +0000)]
MFC: 241780

- Give PIL_PREEMPT the lowest priority just above low/stray interrupts.
  The reason for this is that the SPARC v9 architecture allows nested
  interrupts of higher priority/level than that of the current interrupt
  to occur (and we can't just entirely bypass this model, also, at least
  for tick interrupts, this also wouldn't be wise). However, when a
  preemption interrupt interrupts another interrupt of lower priority,
  f.e. PIL_ITHREAD, and that one in turn is nested by a third interrupt,
  f.e. PIL_TICK, with SCHED_ULE the execution of interrupts higher than
  PIL_PREEMPT may be migrated to another CPU. In particular, tl1_ret(),
  which is responsible for restoring the state of the CPU prior to entry
  to the interrupt based on the (also migrated) trap frame, then is run
  on a CPU which actually didn't receive the interrupt in question,
  causing an inappropriate processor interrupt level to be "restored".
  In turn, this causes interrupts of the first level, i.e. PIL_ITHREAD
  in the above scenario, to be blocked on the target of the migration
  until the correct PIL happens to be restored again on that CPU again.
  Making PIL_PREEMPT the lowest real priority, this effectively prevents
  this scenario from happening, as preemption interrupts no longer can
  interrupt any other interrupt besides stray ones (which is no issue).
  Thanks to attilio@ and especially mav@ for helping me to understand
  this problem at the 201208DevSummit.
- Give PIL_STOP (which is also used for IPI_STOP_HARD, given that there's
  no real equivalent to NMIs on SPARC v9) the highest possible priority
  just below the hardwired PIL_TICK, so it has a chance to interrupt
  more things.

git-svn-id: svn://svn.freebsd.org/base/stable/9@245981 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r245697: zfs/sparc64 boot: fix booting after r242230
avg [Sat, 26 Jan 2013 09:55:51 +0000 (09:55 +0000)]
MFC r245697: zfs/sparc64 boot: fix booting after r242230

git-svn-id: svn://svn.freebsd.org/base/stable/9@245943 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r240104:
delphij [Sat, 26 Jan 2013 05:23:17 +0000 (05:23 +0000)]
MFC r240104:

Add hpt27xx to GENERIC kernel for amd64 and i386 systems.

git-svn-id: svn://svn.freebsd.org/base/stable/9@245939 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r245768:
delphij [Sat, 26 Jan 2013 05:20:09 +0000 (05:20 +0000)]
MFC r245768:

 - Don't include date and time the driver is built, this is useful for
   generating binary diffs.
 - Constify a few strings used in the driver.
 - Style changes to make the driver compile with default clang settings.

Approved by: HighPoint Technologies

git-svn-id: svn://svn.freebsd.org/base/stable/9@245938 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r245918:
gjb [Sat, 26 Jan 2013 00:39:52 +0000 (00:39 +0000)]
MFC r245918:
 - Fix update method (s/SUP/CVS) warning.

git-svn-id: svn://svn.freebsd.org/base/stable/9@245929 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r245612:
pfg [Fri, 25 Jan 2013 03:38:02 +0000 (03:38 +0000)]
MFC r245612:

ext2fs: temporarily disable the reallocation code.

Testing with fsx has revealed problems and in order to
hunt the bugs properly we need reduce the complexity.

This seems to help but doesn't work around all the issues.

While here add missing merginfo for r245762 which somehow
got lost.

git-svn-id: svn://svn.freebsd.org/base/stable/9@245897 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f