]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
12 years agoMFC r235222:
mm [Fri, 25 May 2012 01:19:28 +0000 (01:19 +0000)]
MFC r235222:
Import illumos changeset 13686:4bc0783f6064
2703 add mechanism to report ZFS send progress

If the zfs send command is used with the -v flag, the amount of bytes
transmitted is reported in per second updates.

References:
https://www.illumos.org/issues/2703

Obtained from: illumos (issue #2703)

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

12 years agoMFC r232614:
bz [Thu, 24 May 2012 19:24:31 +0000 (19:24 +0000)]
MFC r232614:

 Provide wbwd(4), a driver for the watchdog timer found on various
 Winbond Super I/O chips.

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

12 years agoAdd missing \n when generating pkg.conf
bapt [Thu, 24 May 2012 17:10:54 +0000 (17:10 +0000)]
Add missing \n when generating pkg.conf

Reported by: beat
Approved by: des (mentor)

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

12 years agoMFC r235634
sbruno [Thu, 24 May 2012 16:11:13 +0000 (16:11 +0000)]
MFC r235634

Decode new battery status indications.

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

12 years agoMFC r234383:
trasz [Thu, 24 May 2012 15:55:41 +0000 (15:55 +0000)]
MFC r234383:

Stop treating system processes as special.  This fixes panics
like the one triggered by this:

# kldload geom_vinum
# pwait `pgrep -S gv_worker` &
# kldunload geom_vinum

or this:

GEOM_JOURNAL: Shutting down geom gjournal 3464572051.
panic: destroying non-empty racct: 1 allocated for resource 6

which were tracked by jh@ to be caused by checking p->p_flag,
while it wasn't initialised yet.  Basically, during fork, the code
checked p_flag, concluded the process isn't marked as P_SYSTEM,
incremented the counter, and later on, when exiting, checked that
the process was marked as P_SYSTEM, and thus didn't decrement it.

Also, I believe there wasn't any good reason for checking P_SYSTEM
in the first place.

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

12 years agoMFC: r235568
rmacklem [Thu, 24 May 2012 12:28:11 +0000 (12:28 +0000)]
MFC: r235568
A problem with the NFSv4 server was reported by Andrew Leonard
to freebsd-fs@, where the setfacl of an NFSv4 acl would fail.
This was caused by the VOP_ACLCHECK() call for ZFS replying
EOPNOTSUPP. After discussion with rwatson@, it was determined
that a call to VOP_ACLCHECK() before doing VOP_SETACL() is not
required. This patch fixes the problem by deleting the
VOP_ACLCHECK() call.

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

12 years agoMFC r226234:
trasz [Thu, 24 May 2012 11:50:14 +0000 (11:50 +0000)]
MFC r226234:

Make unionfs also clear VAPPEND when clearing VWRITE, since VAPPEND
is just a modifier for VWRITE.

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

12 years agoMFC r234380:
trasz [Thu, 24 May 2012 11:46:39 +0000 (11:46 +0000)]
MFC r234380:

Enforce upper bound on the input buffer length.

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

12 years agoMFC r234381:
trasz [Thu, 24 May 2012 11:43:33 +0000 (11:43 +0000)]
MFC r234381:

Fix panic, triggered like this: "int main() { thr_exit(); }"

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

12 years agoMFC r232782:
trasz [Thu, 24 May 2012 10:31:17 +0000 (10:31 +0000)]
MFC r232782:

Remove useless thread_{lock,unlock}() in raccd.

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

12 years agoMFC r225868:
trasz [Thu, 24 May 2012 10:20:23 +0000 (10:20 +0000)]
MFC r225868:

Make ps(1) automatically size its column widths.

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

12 years agoMFC r234385:
trasz [Thu, 24 May 2012 10:02:42 +0000 (10:02 +0000)]
MFC r234385:

Fix bug where NFSv4 ACL enforcement code wouldn't unconditionally
allow the owner to read and write ACL and file attributes when there
was no entry with subject matching the owner.  In other words,
'getfacl meh' shouldn't fail for the owner if the ACL looks like this:

# file: meh
# owner: trasz
# group: wheel
         user:root:------a-------:------:allow

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

12 years agoMFC r226043:
trasz [Thu, 24 May 2012 09:59:58 +0000 (09:59 +0000)]
MFC r226043:

Remove assertion against empty NFSv4 ACLs.  An empty ACL is not exactly
valid - we don't allow for setting it on a file, for example - but it's
not something we should assert on.

For STABLE kernel, it changes nothing, because it's not compiled with
INVARIANTS.  If it was, it would fix crashes.  It also fixes an assert
in libc encountered with NFSv4 without nfsuserd(8) running.

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

12 years agoMFC r235541:
kib [Thu, 24 May 2012 08:43:10 +0000 (08:43 +0000)]
MFC r235541:
Allow to specify strftime(3) format for process start end exit times.

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

12 years agoMFC r233433
alc [Thu, 24 May 2012 05:11:21 +0000 (05:11 +0000)]
MFC r233433
  Disable detailed PV entry accounting by default.  Add a config option
  to enable it.

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

12 years agoMFC r232192
alc [Thu, 24 May 2012 04:46:40 +0000 (04:46 +0000)]
MFC r232192
  Fix typo.

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

12 years agoMFC r232288
alc [Thu, 24 May 2012 04:33:32 +0000 (04:33 +0000)]
MFC r232288
  Simplify kmem_alloc() by eliminating code that existed on account of
  external pagers in Mach.

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

12 years agoMFC r235519:
mav [Thu, 24 May 2012 04:23:06 +0000 (04:23 +0000)]
MFC r235519:
Add support for -z option for reading operations. It allows to not request
current values from device, but only receive changes.

Sponsored by: iXsystems, Inc.

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

12 years agoMFC r232160
alc [Thu, 24 May 2012 04:09:47 +0000 (04:09 +0000)]
MFC r232160
  Simplify vmspace_fork()'s control flow by copying immutable data before
  the vm map locks are acquired.  Also, eliminate redundant initialization
  of the new vm map's timestamp.

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

12 years agoMFC r235226:
mav [Thu, 24 May 2012 03:45:13 +0000 (03:45 +0000)]
MFC r235226:
Add `options GEOM_RAID` into i386 and amd64 GENERIC kernels.

ataraid(4) previously was present there and having GEOM RAID is convinient.
Unlike other classes GEOM RAID can be set up from BIOS before install and
users are expecting it to be detected automatically.

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

12 years agoMFC r235230
alc [Thu, 24 May 2012 03:38:47 +0000 (03:38 +0000)]
MFC r235230
  Give vm_fault()'s sequential access optimization a makeover.

  There are two aspects to the sequential access optimization: (1) read ahead
  of pages that are expected to be accessed in the near future and (2) unmap
  and cache behind of pages that are not expected to be accessed again.  This
  revision changes both aspects.

  The read ahead optimization is now more effective.  It starts with the same
  initial read window as before, but arithmetically grows the window on
  sequential page faults.  This can yield increased read bandwidth.  For
  example, on one of my machines, a program using mmap() to read a file that
  is several times larger than the machine's physical memory takes about 17%
  less time to complete.

  The unmap and cache behind optimization is now more selectively applied.
  The read ahead window must grow to its maximum size before unmap and cache
  behind is performed.  This significantly reduces the number of times that
  pages are unmapped and cached only to be reactivated a short time later.

  The unmap and cache behind optimization now clears each page's referenced
  flag.  Previously, in the case of dirty pages, if the containing file was
  still mapped at the time that the page daemon examined the dirty pages,
  they would be reactivated.

  From a stylistic standpoint, this revision also cleanly separates the
  implementation of the read ahead and unmap/cache behind optimizations.

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

12 years agoMFC r234458, r234603, r234610, r234727, r234816, r234848, r234868,
mav [Thu, 24 May 2012 02:34:03 +0000 (02:34 +0000)]
MFC r234458, r234603, r234610, r234727, r234816, r234848, r234868,
r234869, r234899, r234940, r234993, r234994, r235071 -c r235076, r235080,
r235096:
 - Add support for the DDF metadata format, as defined by the SNIA Common
RAID Disk Data Format Specification v2.0;
 - Add support for reading non-degraded RAID4/5/5E/5EE/5R/6/MDF volumes.

Sponsored by: iXsystems, Inc.

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

12 years agoMFC r235270:
mav [Thu, 24 May 2012 01:41:54 +0000 (01:41 +0000)]
MFC r235270:
- Prevent error status leak if write to some of the RAID1/1E volume disks
failed while write to some other succeeded. Instead mark disk as failed.
- Make RAID1E less aggressive in failing disks to avoid volume breakage.

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

12 years agoMFC r235558, r235569:
mav [Thu, 24 May 2012 01:28:58 +0000 (01:28 +0000)]
MFC r235558, r235569:
Add support for writing to HID devices through the interrupt output pipe.
Supermicro LCD screen modules seem to not support accessing reports through
the control pipes, but working fine with the interrupt pipes.

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

12 years agoMFC r235510:
mav [Thu, 24 May 2012 01:23:30 +0000 (01:23 +0000)]
MFC r235510:
HID Report ID is unsigned value, so clear the rest of bits from possible
sign expansion.

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

12 years agoMFC r235684:
bschmidt [Wed, 23 May 2012 16:43:16 +0000 (16:43 +0000)]
MFC r235684:
Add some more 100/130 series device IDs.

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

12 years agoMFC r234712, r234744, r234934, r234988, r235294, r235335,
jamie [Wed, 23 May 2012 15:29:34 +0000 (15:29 +0000)]
MFC r234712, r234744, r234934, r234988, r235294, r235335,
and bits of r235337 and r235355:

 A new jail(8) with a configuration file, ultimately to replace the work
 currently done by /etc/rc.d/jail.

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

12 years agoMFC r235799:
jamie [Wed, 23 May 2012 14:48:14 +0000 (14:48 +0000)]
MFC r235799:

 The fix in r235291 (r235624) re-broke the "allow.nomount" case.
 Re-fix it by testing for the right parameter name.

PR: bin/168250

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

12 years agoMFC 235692,235772:
iwasaki [Wed, 23 May 2012 14:44:57 +0000 (14:44 +0000)]
MFC 235692,235772:
- Don't start the sleep state transition procedure while sleep is
  disabled or the system is in shutdown procedure.
- Ignore the power button press event for resuming rather than starting
  shutdown.

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

12 years agoMerge r233749, building libsupc++ as a shared library and making libstdc++ a
theraven [Wed, 23 May 2012 09:10:46 +0000 (09:10 +0000)]
Merge r233749, building libsupc++ as a shared library and making libstdc++ a
filter library.

It should now be possible to build applications on 9-STABLE that link against
both libc++ and libstdc++ and to test libcxxrt with libstdc++.

If you wish to test libcxxrt, please add this to your /etc/libmap.conf:

libsupc++.so.1  libcxxrt.so.1

If you wish to test libc++, add -std=libc++ to your compile and link flags for
your favourite C++ applications and / or libraries.

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

12 years agoMFC: r235508
pfg [Wed, 23 May 2012 02:43:28 +0000 (02:43 +0000)]
MFC: r235508

Fix a couple of issues that appear to be inherited from the old
8.x code:
- If the lock cannot be acquired immediately unlocks 'bar' vnode
and then locks both vnodes in order.
- wrong vnode type panics from cache_enter_time after calls by
ext2_lookup.

The fix merges changes from ufs/ufs_lookup.c.

Submitted by: Mateusz Guzik
Approved by: jhb (mentor)

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

12 years agoMFC r235151:
yongari [Wed, 23 May 2012 02:02:29 +0000 (02:02 +0000)]
MFC r235151:
  Implement basic remote PHY support. Remote PHY allows the
  controller to perform MDIO type accesses to a remote transceiver
  using message pages defined through MRBE(multirate backplane
  ethernet).  It's used in blade systems(e.g Dell Blade m610) which
  are connected to pass-through blades rather than traditional
  switches.
  This change directly manipulates firmware's mailboxes to control
  remote PHY such that it does not use mii(4).  Alternatively, as
  David said, it could be implemented in brgphy(4) by creating a fake
  PHY and let brgphy(4) do necessary mii accesses and bce(4) can
  implement mailbox accesses based on the type of brgphy(4)'s mii
  accesses. Personally, I think it would make brgphy(4) hard to
  maintain since it would have to access many bce(4) registers in
  brgphy(4). Given that there are users who are suffering from lack
  of remote PHY support, it would be better to get working system
  rather than waiting for complete/perfect implementation.

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

12 years agoMFC r227478:
dim [Tue, 22 May 2012 20:26:14 +0000 (20:26 +0000)]
MFC r227478:

Fix kernel build breakage after r227475.  I had forgotten kernels are
built with -Wundef, as opposed to world.

Additionally, cdefs.h tends to not use indentation for preprocessor
directives, so remove that too.

Pointy hat to: me

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

12 years agoMFC r235036:
delphij [Tue, 22 May 2012 19:53:25 +0000 (19:53 +0000)]
MFC r235036:

Add ToS definitions for DiffServ Codepoints as per RFC2474.

Obtained from: OpenBSD

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

12 years agoMerged libcxxrt and libc++. Now available for testing on 9-stable with
theraven [Tue, 22 May 2012 18:30:14 +0000 (18:30 +0000)]
Merged libcxxrt and libc++.  Now available for testing on 9-stable with
-stdlib=libc++.  Changes to libstdc++ not yet merged, so it is not yet possible
to mix libstdc++ and libc++ in the same program.

Merged revisions: 226702,226785,227006,227755,227983,227987,228531,228630,228761,229067,230127,232950,233098,234715-234716,234772

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

12 years agoMFC 235622,235639,235683:
iwasaki [Tue, 22 May 2012 17:44:01 +0000 (17:44 +0000)]
MFC 235622,235639,235683:

Merge SMP/i386 suspend/resume support.

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

12 years agoMerge quick_exit and changes required for C++11 code to compile against FreeBSD headers.
theraven [Tue, 22 May 2012 15:26:55 +0000 (15:26 +0000)]
Merge quick_exit and changes required for C++11 code to compile against FreeBSD headers.

Merges changes from: r227472 r227475 r227475 r227476 r227476 r227490 r227490 r228322 r228323 r228329 r228330 r228528 r228529 r228529 r228901 r228918 r228918 r232971 r232971

Also bump __FreeBSD_version for this and the xlocale merge.

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

12 years agoMFC the xlocale implementation.
theraven [Tue, 22 May 2012 14:40:39 +0000 (14:40 +0000)]
MFC the xlocale implementation.

Merged revisions: 227487,227753,227807,227818,227999,228002,228875,230156,231673,232498,232601,232620,232626,232926-232927,232929,232931,232935,233173,233600,234573,234578,235239

This currently defines __NO_TLS on ARM (unlike head), because the required
support function has not been MFC'd.

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

12 years agoMFC: r233310
pfg [Tue, 22 May 2012 02:24:52 +0000 (02:24 +0000)]
MFC: r233310

Add snd_cmi, snd_csa and snd_emu10kx to GENERIC on i386 and amd64.

The GPL infected parts which were blocking the inclusion of snd_csa
and snd_emu10kx in GENERIC have recently been removed from the tree.

Requested by: joel
Discussed with: jhb, joel, Yuriy Tsibizov <yuriy.tsibizov@gfk.ru>
Approved by: jhb (mentor)

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

12 years agoMFC: r233362
pfg [Tue, 22 May 2012 02:11:08 +0000 (02:11 +0000)]
MFC: r233362

Don't cast a bus address to a uint8_t pointer just to add an offset to
it.  Instead, add the offset directly to the bus address.

Approved by: jhb (mentor)

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

12 years agoMFC 234098:
jhb [Tue, 22 May 2012 00:00:17 +0000 (00:00 +0000)]
MFC 234098:
Add media types for 40G media that might be used with FreeBSD.

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

12 years agoRepair mergeinfo from merges done into a sparse checkout.
jhb [Mon, 21 May 2012 23:54:21 +0000 (23:54 +0000)]
Repair mergeinfo from merges done into a sparse checkout.

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

12 years agoToss bogus mergeinfo.
jhb [Mon, 21 May 2012 21:29:59 +0000 (21:29 +0000)]
Toss bogus mergeinfo.

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

12 years agoMFC 234190,234196,234280:
jhb [Mon, 21 May 2012 21:14:09 +0000 (21:14 +0000)]
MFC 234190,234196,234280:
- Extend the KDB interface to add a per-debugger callback to print a
  backtrace for an arbitrary thread (rather than the calling thread).
  A kdb_backtrace_thread() wrapper function uses the configured debugger
  if possible, otherwise it falls back to using stack(9) if that is
  available.
- Replace a direct call to db_trace_thread() in propagate_priority()
  with a call to kdb_backtrace_thread() instead.

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

12 years agoMFC r235634
sbruno [Mon, 21 May 2012 19:58:40 +0000 (19:58 +0000)]
MFC r235634

Fix and update battery status bits according to linux driver

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

12 years agoMFC r235451:
hselasky [Mon, 21 May 2012 14:47:34 +0000 (14:47 +0000)]
MFC r235451:
Move reset of USB mouse parameters from the USB mouse attach to
the USB mouse device open. Protect against multi character
device open. Some other nits.

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

12 years agoMFC r235597:
gjb [Mon, 21 May 2012 00:15:34 +0000 (00:15 +0000)]
MFC r235597:

Fix a typo that crept in.

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

12 years agoMFC r232513:
bz [Sun, 20 May 2012 23:33:10 +0000 (23:33 +0000)]
MFC r232513:

 Correct typo in the RFC number for the constants based on IANA assignments
 for IPv6 Neighbor Discovery Option types for "IPv6 Router Advertisement
 Options for DNS Configuration".  It is RFC 6106.

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

12 years agoMFC r232514:
bz [Sun, 20 May 2012 22:55:24 +0000 (22:55 +0000)]
MFC r232514:

 In nd6_options() ignore the RFC 6106 options completely rather than printing
 them if nd6_debug is enabled as unknown.  Leave a comment about the RFC4191
 option as I am undecided so far.

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

12 years agoMFC r235212, r235216, r235217:
mm [Sun, 20 May 2012 22:21:59 +0000 (22:21 +0000)]
MFC r235212, r235216, r235217:

MFC r325212 [1]:
Import illumos changeset 13618:c6ae14a341e8
2088 zdb could use a reasonable manual page

Rewrite new zdb manpage to mdoc(7)

MFC r235216 [2]:
Add support for force unmounting ZFS filesystems during "zfs rename"
with the -f flag.

Reimplementation of the illumos changeset 13677:a0cbef703c12
2635 'zfs rename -f' to perform force unmount

MFC r235217 [3]:
Remove unreachable break in zfs_main.c

Partial import of illumos changeset 13622:e5889df1eaac
2077 lots of unreachable breaks in illumos gate

References:
https://www.illumos.org/issues/2088 [1]
https://www.illumos.org/issues/2635 [2]
https://www.illumos.org/issues/2077 [3]

PR: 164447 [1], 164447 [2], 167370 [3]
Suggested by: Marcelo Araujo <araujo@FreeBSD.org>
Obtained from: illumos (issue #2088 [1], #2635 [2], #2077 [3])

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

12 years agoMFC r232613:
bz [Sun, 20 May 2012 22:06:32 +0000 (22:06 +0000)]
MFC r232613:

 Fix building with WITHOUT_INET_SUPPORT set.

 Reviewed by: jamie (actually provided the real fix)

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

12 years agoMFC r231532:
bz [Sun, 20 May 2012 20:25:22 +0000 (20:25 +0000)]
MFC r231532:

 MFp4 204292:

 Ignore the NAT_T extension types so we can at least dump the SADB from
 the in-base libipsec/setkey without error when NAT_T support is present
 in the kernel, though not printing the additional information yet.
 However in case there is no NAT_T support in kernel still consider them
 to be an error.

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

12 years agoMFC r228976:
dim [Sun, 20 May 2012 15:10:13 +0000 (15:10 +0000)]
MFC r228976:

Reencode files to UTF-8. Drop CP1252 em-dash.

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

12 years agoMFC r235538:
kib [Sun, 20 May 2012 14:15:13 +0000 (14:15 +0000)]
MFC r235538:
Fix typo.

MFC r235555:
Use singular form for a modifier.

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

12 years agoMFC r235567:
gjb [Sun, 20 May 2012 01:40:12 +0000 (01:40 +0000)]
MFC r235567:

mdoc(7) style/formatting fixes.

While here, fix a few nits igor(1) does not like.

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

12 years agoMFC r234643:
bz [Sat, 19 May 2012 22:18:45 +0000 (22:18 +0000)]
MFC r234643:

 Do not toggle IFCAP_TSO4 if we would also do TSO6.  Given the driver does
 not currently announce/support TSO6 that cannot happen. Clean it up anyway
 for consistency.

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

12 years agoMFC r234620 (record mergeinfo only):
bz [Sat, 19 May 2012 21:56:26 +0000 (21:56 +0000)]
MFC r234620 (record mergeinfo only):

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

12 years agoMFC r234618:
bz [Sat, 19 May 2012 21:45:11 +0000 (21:45 +0000)]
MFC r234618:

 Do not announce IPv6 TSO support yet.  The driver seems to make assumptions
 based on IPv4 header parsing only.

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

12 years agoMFC r234617:
bz [Sat, 19 May 2012 21:36:52 +0000 (21:36 +0000)]
MFC r234617:

 Do not announce IPv6 TSO support yet.  The in-tree driver does not seem
 to fully handle this yet.

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

12 years agoMFC r231767:
bz [Sat, 19 May 2012 18:32:31 +0000 (18:32 +0000)]
MFC r231767:

 Fix PAWS (Protect Against Wrapped Sequence numbers) in cases when
 hz >> 1000 and thus getting outside the timestamp clock frequenceny of
 1ms < x < 1s per tick as mandated by RFC1323, leading to connection
 resets on idle connections.

 Always use a granularity of 1ms using getmicrouptime() making all but
 relevant callouts independent of hz.

 Use getmicrouptime(), not getmicrotime() as the latter may make a jump
 possibly breaking TCP nfsroot mounts having our timestamps move forward
 for more than 24.8 days in a second without having been idle for that
 long.

PR: kern/61404

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

12 years agoMFC r234353:
dim [Fri, 18 May 2012 21:49:11 +0000 (21:49 +0000)]
MFC r234353:

  Upgrade our copy of llvm/clang to trunk r154661, in preparation of the
  upcoming 3.1 release (expected in a few weeks).  Preliminary release
  notes can be found at: <http://llvm.org/docs/ReleaseNotes.html>

MFC r234982:

  Upgrade our copy of llvm/clang to r155985, from upstream's release_31
  branch.  This brings us very close to the 3.1 release, which is planned
  for May 14th.

MFC r235058:

  Make sure a few new internal clang headers get installed, I missed these
  in the last import.  They are sometimes needed when you want to use
  advanced instructions.

  Also, add clang's internal stdalign.h header to ObsoleteFiles.inc, since
  it is redundant: we already have a stdalign.h header in /usr/include.

  Pointy hat to: dim
  PR: kern/167574
  Submitted by: jkim
  Reported by: Oliver Hartmann <ohartman@zedat.fu-berlin.de>

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

12 years agoPurge mergeinfo from i386/conf/XENHVM. The mergeinfo related to
jhb [Fri, 18 May 2012 20:40:24 +0000 (20:40 +0000)]
Purge mergeinfo from i386/conf/XENHVM.  The mergeinfo related to
amd64/conf/XENHVM is only useful in HEAD.

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

12 years agoMove mergeinfo from sys/kern/subr_witness.c up to sys/.
jhb [Fri, 18 May 2012 20:24:31 +0000 (20:24 +0000)]
Move mergeinfo from sys/kern/subr_witness.c up to sys/.

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

12 years agoMFC of 234386, 234400, 234441, 234443, 234482, 234483, 235052, 235241,
mckusick [Fri, 18 May 2012 19:48:38 +0000 (19:48 +0000)]
MFC of 234386, 234400, 234441, 234443, 234482, 234483, 235052, 235241,
       235246, and 235619

MFC: 234386

Replace the MNT_VNODE_FOREACH interface with MNT_VNODE_FOREACH_ALL.
The primary changes are that the user of the interface no longer
needs to manage the mount-mutex locking and that the vnode that
is returned has its mutex locked (thus avoiding the need to check
to see if its is DOOMED or other possible end of life senarios).

To minimize compatibility issues for third-party developers, the
old MNT_VNODE_FOREACH interface will remain available so that this
change can be MFC'ed to 9. Following the MFC to 9, MNT_VNODE_FOREACH
will be removed in head.

The reason for this update is to prepare for the addition of the
MNT_VNODE_FOREACH_ACTIVE interface that will loop over just the
active vnodes associated with a mount point (typically less than
1% of the vnodes associated with the mount point).

Reviewed by: kib
Tested by:   Peter Holm
MFC after:   2 weeks

MFC: 234400

Drop export of vdestroy() function from kern/vfs_subr.c as it is
used only as a helper function in that file. Replace sole call to
vbusy() with inline code in vholdl(). Replace sole calls to vfree()
and vdestroy() with inline code in vdropl().

The Clang compiler already inlines these functions, so they do not
show up in a kernel backtrace which is confusing. Also you cannot
set their frame in kgdb which means that it is impossible to view
their local variables. So, while the produced code is unchanged,
the debugging should be easier.

Discussed with: kib
MFC after:      2 weeks

MFC: 234441

Fix a memory leak of M_VNODE_MARKER introduced in 234386.

Found by:  Peter Holm

MFC: 234443

Delete a no longer useful VNASSERT missed during changes in 234400.

Suggested by: kib

MFC: 234482

This change creates a new list of active vnodes associated with
a mount point. Active vnodes are those with a non-zero use or hold
count, e.g., those vnodes that are not on the free list. Note that
this list is in addition to the list of all the vnodes associated
with a mount point.

To avoid adding another set of linkage pointers to the vnode
structure, the active list uses the existing linkage pointers
used by the free list (previously named v_freelist, now renamed
v_actfreelist).

This update adds the MNT_VNODE_FOREACH_ACTIVE interface that loops
over just the active vnodes associated with a mount point (typically
less than 1% of the vnodes associated with the mount point).

Reviewed by: kib
Tested by:   Peter Holm
MFC after:   2 weeks

MFC: 234483

This update uses the MNT_VNODE_FOREACH_ACTIVE interface that loops
over just the active vnodes associated with a mount point to replace
MNT_VNODE_FOREACH_ALL in the vfs_msync, ffs_sync_lazy, and qsync
routines.

The vfs_msync routine is run every 30 seconds for every writably
mounted filesystem. It ensures that any files mmap'ed from the
filesystem with modified pages have those pages queued to be
written back to the file from which they are mapped.

The ffs_lazy_sync and qsync routines are run every 30 seconds for
every writably mounted UFS/FFS filesystem. The ffs_lazy_sync routine
ensures that any files that have been accessed in the previous
30 seconds have had their access times queued for updating in the
filesystem. The qsync routine ensures that any files with modified
quotas have those quotas queued to be written back to their
associated quota file.

In a system configured with 250,000 vnodes, less than 1000 are
typically active at any point in time. Prior to this change all
250,000 vnodes would be locked and inspected twice every minute
by the syncer. For UFS/FFS filesystems they would be locked and
inspected six times every minute (twice by each of these three
routines since each of these routines does its own pass over the
vnodes associated with a mount point). With this change the syncer
now locks and inspects only the tiny set of vnodes that are active.

Reviewed by: kib
Tested by:   Peter Holm
MFC after:   2 weeks

MFC: 235052 (by pluknet)

Fix mount mutex handling missed in r234386.

MFC: 235241 (by pluknet)

Fix mount interlock oversights from the previous change in r234386.

Reported by:    dougb
Submitted by:   Mateusz Guzik <mjguzik at gmail com>
Reviewed by:    Kirk McKusick
Tested by:      pho

MFC: 235246

Fix mount mutex handling missed in r234386.

MFC: 235619

Update comment to document that the vnode free-list mutex needs to be
held when updating mnt_activevnodelist and mnt_activevnodelistsize.

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

12 years agoMFC r235291:
jamie [Fri, 18 May 2012 19:08:10 +0000 (19:08 +0000)]
MFC r235291:

 The linker isn't consistent in the ordering of dynamic sysctls, so don't
 assume that the unnamed final component of "security.jail.param.foo." is
 one less than the "foo" component.  It might be one greater instead.

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

12 years agoMFC 234186
jhb [Fri, 18 May 2012 18:51:13 +0000 (18:51 +0000)]
MFC 234186
If a linker file contains at least one module, but all of the modules
fail to load (the MOD_LOAD event fails) during a kldload(2), unload the
linker file and fail the kldload(2) with ENOEXEC.

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

12 years agoMFC r230131:
dim [Fri, 18 May 2012 18:34:29 +0000 (18:34 +0000)]
MFC r230131:

Reencode morse.c to UTF-8. This does not make it Unicode aware.

No changes in resulting object file. Moved user-visible symbols into
comment table, so you can see all chars, not just the ones matching your
(fallback) locale.

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

12 years ago/etc/netstart: remove invocation of dhclient
rea [Fri, 18 May 2012 18:26:03 +0000 (18:26 +0000)]
/etc/netstart: remove invocation of dhclient

dhclient is no longer a real service, it is a helper script
for /etc/rc.d/netif and devd.  Its direct invocation isn't
needed to bring the network up.

Approved by: jhb, delphij

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

12 years agoMFC 234182:
jhb [Fri, 18 May 2012 16:16:47 +0000 (16:16 +0000)]
MFC 234182:
Don't update if_obytes when transmitting packets.  That is already done
in IFQ_HANDOFF() when the packet is passed to the start routine, so doing
it here resulted in double counting.

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

12 years agoMFC r235499:
gjb [Fri, 18 May 2012 02:19:53 +0000 (02:19 +0000)]
MFC r235499:

Reword hostapd.conf(5) sentence.

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

12 years agoMFC r235441:
gjb [Fri, 18 May 2012 02:16:14 +0000 (02:16 +0000)]
MFC r235441:

Fix an mdoc(7) formatting nit.

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

12 years agoMFC r235357,r235358,r235371,r235373,r235376:
gjb [Fri, 18 May 2012 02:13:19 +0000 (02:13 +0000)]
MFC r235357,r235358,r235371,r235373,r235376:

Fix various mdoc(7) style nits.

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

12 years agoDocument requirement to alter some sysctls when using igb(4) with
gjb [Fri, 18 May 2012 02:06:10 +0000 (02:06 +0000)]
Document requirement to alter some sysctls when using igb(4) with
jumbo frames.

PR: 153738

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

12 years agoMFC r235342:
gjb [Fri, 18 May 2012 02:00:01 +0000 (02:00 +0000)]
MFC r235342:

General mdoc(7) and typo fixes.

PR: 167804

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

12 years agoMFC r235337:
gjb [Fri, 18 May 2012 01:51:12 +0000 (01:51 +0000)]
MFC r235337:

General mdoc(7) and typo fixes.

PR: 167804

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

12 years agoMFC r235319:
gjb [Fri, 18 May 2012 01:10:12 +0000 (01:10 +0000)]
MFC r235319:

Remove duplicate words in mdoc(7) pages.

PR: 167810

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

12 years agoMFC r235140:
gjb [Fri, 18 May 2012 01:04:03 +0000 (01:04 +0000)]
MFC r235140:

General mdoc(7) and typo fixes.

PR: 167713

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

12 years agoMFC r235317:
gjb [Fri, 18 May 2012 00:55:47 +0000 (00:55 +0000)]
MFC r235317:

General mdoc(7) and typo fixes.

PR: 167776

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

12 years agoMFC r228917:
delphij [Fri, 18 May 2012 00:40:49 +0000 (00:40 +0000)]
MFC r228917:

 - Fail when the utility is not invoked as rtprio nor idprio.
 - use warnx() to tell the user whether a process is running in normal,
   idle or realtime priority. with the old code it would have been possible
   for another process to send data to stdout between
        printf("%s: ", p);
   and
        printf("* priority\n");
   and thus break the formatting.
 - 'rtprio 10 -0' triggeres non-intuitive behavior.  It would first set the
   priority of itself to 10 *and* would then try to execute '-0'. Of course,
   setting the priority of [id|rt]prio itself doesn't make a lot of sense,
   but it is intuitive compared to the previous behavior.
 - 'rtprio -t --1' will actually pass over the '-1' to rtprio().  Now
   invoking rtprio like this will catch the wrong usage before passing
   over the invalid argument to rtprio().
 - Garrett Cooper suggested to add further diagnostics where the failure
   occures, if execvp fails.

PR: bin/154042
Submitted by: arundel

MFC r235293:

Fix the case where the utility is being used to run a command directly,
this is a regression introduced with r228917.

PR: bin/154042
Submitted by: Bugs Beastie <bugsbeastie gmail.com>

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

12 years agoMFC r235286:
gjb [Fri, 18 May 2012 00:31:20 +0000 (00:31 +0000)]
MFC r235286:

General mdoc(7) and typo fixes.

PR: 167734

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

12 years agoMFC r235252:
gjb [Fri, 18 May 2012 00:07:48 +0000 (00:07 +0000)]
MFC r235252:

Document the unzip(1) '-Z' option implemented in r234206.

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

12 years agoMFC r235211:
gjb [Fri, 18 May 2012 00:00:46 +0000 (00:00 +0000)]
MFC r235211:

General mdoc(7) and typo fixes.

PR: 167696

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

12 years agoMFC 235563:
jhb [Thu, 17 May 2012 20:27:24 +0000 (20:27 +0000)]
MFC 235563:
Don't expose i386-only ptrace constants on amd64.  This broke gdb with
libthread_db on amd64.

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

12 years agoforgot two files in the previous commit...
luigi [Thu, 17 May 2012 20:04:24 +0000 (20:04 +0000)]
forgot two files in the previous commit...

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

12 years agoPartial MFC of 232520:
jhb [Thu, 17 May 2012 19:01:13 +0000 (19:01 +0000)]
Partial MFC of 232520:
For amd64 PT_GETXSTATE and PT_SETXSTATE have been redefined to match the
i386 values. The old values are still supported but should no longer be
used.

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

12 years agoMFC 235453:
jpaetzel [Thu, 17 May 2012 15:22:08 +0000 (15:22 +0000)]
MFC 235453:

Style fixes.

Submitted by: kmoore
Obtained from: PC-BSD
Sponsored by: iXsystems

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

12 years agoMFC: 235452
jpaetzel [Thu, 17 May 2012 15:20:21 +0000 (15:20 +0000)]
MFC: 235452

Set the MBR partition to active when doing a full disk MBR.

Submitted by: kmoore
Obtained from: PC-BSD
Sponsored by: iXsystems

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

12 years agoMFC: netmap support for the 're' driver
luigi [Thu, 17 May 2012 15:03:16 +0000 (15:03 +0000)]
MFC: netmap support for the 're' driver

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

12 years agoMFC: the netmap code from HEAD, now supported in the ixgbe/ and e1000/
luigi [Thu, 17 May 2012 15:02:51 +0000 (15:02 +0000)]
MFC: the netmap code from HEAD, now supported in the ixgbe/ and e1000/
drivers (re/ will come in the next commit)

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

12 years agofix a typo in a comment
luigi [Thu, 17 May 2012 14:37:01 +0000 (14:37 +0000)]
fix a typo in a comment

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

12 years agoMFC r235133:
dim [Thu, 17 May 2012 10:36:32 +0000 (10:36 +0000)]
MFC r235133:

Revert r234656, and apply a proper fix for binutils PR 10474, which
caused linking clang on 32-bit PowerPC to fail with "relocation
truncated to fit: R_PPC_REL24" errors.

Original diffs (relicensed under GPLv2 with permission from author):
http://sourceware.org/git/?p=binutils.git;a=commit;h=1fd262ff7d7ea5adf4894c6b960e092e7e43e3cd
http://sourceware.org/git/?p=binutils.git;a=commit;h=053c49fbff58bd33bd0d12200ea61302f92caceb

Tested by: andreast

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

12 years agoMFC r234785:
dim [Thu, 17 May 2012 10:25:34 +0000 (10:25 +0000)]
MFC r234785:

Add a convenience macro for the returns_twice attribute, and apply it to
the prototypes of the appropriate functions (getcontext, savectx,
setjmp, sigsetjmp and vfork).

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

12 years agoMFC r235122:
jlh [Thu, 17 May 2012 07:59:15 +0000 (07:59 +0000)]
MFC r235122:
  Introduce the ${SHLIB_LDSCRIPT} variable to have an ld(1) script
  instead of a symlink for .so files.

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

12 years agoMFC of the ixgbe driver. Including revisions:
jfv [Thu, 17 May 2012 00:06:54 +0000 (00:06 +0000)]
MFC of the ixgbe driver. Including revisions:
228276,229767,229939,230329,
230572,230775,230790,231796,
232238,234137,234229,234620

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

12 years agoMFC of the e1000 drivers: revisions include
jfv [Wed, 16 May 2012 22:22:52 +0000 (22:22 +0000)]
MFC of the e1000 drivers: revisions include
227309,228281,228386,228387,228393,228405,
228415,228788,228803,229606,229767,229939,
230023,230024,230742,231796,232238,233708,
234154,234665,235256

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

12 years agoMFC r235318, r235321
sbruno [Wed, 16 May 2012 22:19:22 +0000 (22:19 +0000)]
MFC r235318, r235321

Fix inappropriate data type for two bus_dmamap_t variables that were causing
PAE to insta-panic on startup.  Remove one unused variable that was
commented out.

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

12 years agoMFC 234152:
jhb [Wed, 16 May 2012 21:06:56 +0000 (21:06 +0000)]
MFC 234152:
Allow device_busy() and device_unbusy() to be invoked while a device is
being attached.  This is implemented by adding a new DS_ATTACHING state
while a device's DEVICE_ATTACH() method is being invoked.  A driver is
required to not fail an attach of a busy device.  The device's state will
be promoted to DS_BUSY rather than DS_ACTIVE() if the device was marked
busy during DEVICE_ATTACH()

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

12 years agoMFC r235142:
jlh [Wed, 16 May 2012 20:31:37 +0000 (20:31 +0000)]
MFC r235142:
  Always define LD_32_PRELOAD so it works for 32 bits binaries on
  64 bits platforms.  Let rtld(1) decide if it needs to honor it
  or not.

  While here, fix a small bug in error reporting when asprintf(3)
  returns an error.

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

12 years agoMFC r234245:
delphij [Wed, 16 May 2012 20:05:21 +0000 (20:05 +0000)]
MFC r234245:

Eliminate an unused parameter of static method igmp_stats_live_old().

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

12 years agoMFC 233709,233781,233793:
jhb [Wed, 16 May 2012 20:04:45 +0000 (20:04 +0000)]
MFC 233709,233781,233793:
- Don't malloc() new MCA records for machine checks logged due to a
  CMCI or MC# exception.  Instead, use a pre-allocated pool of records.
  When a CMCI or MC# exception fires, schedule a task to refill the pool.
  The pool is sized to hold at least one record per available machine
  bank, and one record per CPU. This should handle the case of all CPUs
  triggering a single bank at once as well as the case a single CPU
  triggering all of its banks.  The periodic scans still use malloc()
  since they are run from a safe context.
- Make machine check exception logging more readable.  On newer Intel systems,
  an uncorrected ECC error tends to fire on all CPUs in a package
  simultaneously and the current printf hacks are not sufficient to make
  the messages legible.  Instead, use the existing mca_lock spinlock to
  serialize calls to mca_log() and change the machine check code to panic
  directly when an unrecoverable error is encoutered rather than falling
  back to a trap_fatal() call in trap() (which adds nearly a screen-full of
  logging messages that aren't useful for machine checks).

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