]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
11 years agoMFH r200068: connect unzip to the build.
des [Mon, 28 May 2012 21:26:26 +0000 (21:26 +0000)]
MFH r200068: connect unzip to the build.

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

11 years agoMFH r208957: check return value from archive_read_new()
des [Mon, 28 May 2012 21:25:19 +0000 (21:25 +0000)]
MFH r208957: check return value from archive_read_new()
MFH r214137, r214140, r214174, r224584: support reading from stdin
MFH r230044, r233456: style and markup nits
MFH r234311: correct name in copyright statement

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

11 years agoUpgrade to BIND version 9.6-ESV-R7, the latest from ISC.
dougb [Mon, 28 May 2012 19:48:37 +0000 (19:48 +0000)]
Upgrade to BIND version 9.6-ESV-R7, the latest from ISC.

Feature Change

*  BIND now recognizes the TLSA resource record type, created to
   support IETF DANE (DNS-based Authentication of Named Entities)

Bug Fix

*  The locking strategy around the handling of iterative queries
   has been tuned to reduce unnecessary contention in a multi-
   threaded environment.

Other critical bug fixes are included.

All BIND users are encouraged to upgrade.

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

11 years agoMFC r225640
rstone [Sun, 27 May 2012 19:03:16 +0000 (19:03 +0000)]
MFC r225640

 Clear transmit checksum offload context state upon lem(4) interface
 initialization.  Prior to this change packets may be transmitted with an
 incorrect checksum.

 em(4) already has an equivalent change in r213234.

 Obtained From:  Sandvine

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

11 years agoMFC r234691
rstone [Sun, 27 May 2012 18:57:20 +0000 (18:57 +0000)]
MFC r234691

 Implement the D "cpu" variable, which returns curcpu.  I have chosen not
 to follow the example of OpenSolaris and its descendants, which implemented
 cpu as an inline that took a value out of curthread.  At certain points in
 the FreeBSD scheduler curthread->td_oncpu will no longer be valid (in
 particukar, just before the thread gets descheduled) so instead I have
 implemented this as its own built-in variable.

 Sponsored by: Sandvine Inc.

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

11 years agoMFC: r235255 (partial)
marius [Sun, 27 May 2012 15:48:25 +0000 (15:48 +0000)]
MFC: r235255 (partial)

Change the module order of this MAC driver to be last so its is
deterministically handled after the corresponding PHY drivers when
loaded as module. Otherwise, when this MAC/PHY driver combination
is compiled into a single module, probing the PHY drivers may fail.
This makes r151438 actually work.
Reported and tested by: yongari (for fxp(4))

Given that r226154 isn't part of stable/8, the other drivers fixed
as part of the original r235255 aren't affected here.

Submitted by: jhb

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

11 years agoMFC r233552
rstone [Sun, 27 May 2012 14:52:31 +0000 (14:52 +0000)]
MFC r233552

 Instead of only iterating over the set of known SDT probes when sdt.ko is
 loaded and unloaded, also have sdt.ko register callbacks with kern_sdt.c
 that will be called when a newly loaded KLD module adds more probes or
 a module with probes is unloaded.

 This fixes two issues: first, if a module with SDT probes was loaded after
 sdt.ko was loaded, those new probes would not be available in DTrace.
 Second, if a module with SDT probes was unloaded while sdt.ko was loaded,
 the kernel would panic the next time DTrace had cause to try and do
 anything with the no-longer-existent probes.

 This makes it possible to create SDT probes in KLD modules, although there
 are still two caveats: first, any SDT probes in a KLD module must be part
 of a DTrace provider that is defined in that module.  At present DTrace
 only destroys probes when the provider is destroyed, so you can still
 panic the system if a KLD module creates new probes in a provider from a
 different module(including the kernel) and then unload the the first module.

 Second, the system will panic if you unload a module containing SDT probes
 while there is an active D script that has enabled those probes.

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

11 years agoMFC r227441
rstone [Sun, 27 May 2012 14:25:16 +0000 (14:25 +0000)]
MFC r227441

 Correct the types of the arguments to return probes of the syscall
 provider.  Previously we were erroneously supplying the argument types of
 the corresponding entry probe.

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

11 years agoMFC: r235332
rmacklem [Sun, 27 May 2012 14:20:46 +0000 (14:20 +0000)]
MFC: r235332
PR# 165923 reported intermittent write failures for dirty
memory mapped pages being written back on an NFS mount.
Since any thread can call VOP_PUTPAGES() to write back a
dirty page, the credentials of that thread may not have
write access to the file on an NFS server. (Often the uid
is 0, which may be mapped to "nobody" in the NFS server.)
Although there is no completely correct fix for this
(NFS servers check access on every write RPC instead of at
open/mmap time), this patch avoids the common cases by
holding onto a credential that recently opened the file
for writing and uses that credential for the write RPCs
being done by VOP_PUTPAGES() for both NFS clients.

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

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

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

11 years agoMFC 227430
rstone [Sun, 27 May 2012 00:38:36 +0000 (00:38 +0000)]
MFC 227430

 On i386, fbt probes are implemented by writing an invalid opcode over
 certain instructions in a function prologue or epilogue.  DTrace has a
 hook into the invalid opcode fault handler that checks whether the fault
 was due to an probe and if so, runs the DTrace magic.

 Upon returning from an invalid opcode fault caused by a probe, DTrace must
 emulate the instruction that was replaced with the invalid opcode and then
 return control to the instruction following the invalid opcode.

 There were a pair of related bugs in the emulation for the leave
 instruction.  The leave instruction is used to pop off a stack frame prior
 to returning from a function.  The emulation for this instruction must
 move the trap frame for the invalid opcode fault down the stack to the
 bottom of the stack frame that is being removed, and then execute an iret.

 At two points in this process, the emulation code was storing values above
 the current value of the stack pointer.  This opened up a window in which
 if we were two take an interrupt, the trap frame for the interrupt would
 overwrite the values stored on the stack, causing the system to panic
 later.

 The first bug was that at one point the emulation code saves the new value
 for $esp above the current stack pointer value.  The fix is to save this
 value instead inside of the original trap frame.  At this point we do
 not need the original trap frame so this is safe.

 The second bug is that when the emulate code loads $esp from the stack, it
 points part-way through the new trap frame instead of at its beginning.
 The emulation code adjusts the stack pointer to the correct value
 immediately afterwards, but this still leaves a one instruction window in
 which an interrupt would corrupt this trap frame.  Fix this by adjusting
 the stack frame value before loading it into $esp.

 This fixes panics in invop_leave on i386 when using fbt return probes.

 Reviewed by:  rpaulo, attilio

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

11 years agoMFC 227429
rstone [Sun, 27 May 2012 00:34:56 +0000 (00:34 +0000)]
MFC 227429

 The generated Makefile for the kernel was not running ctfconvert on
 object files corresponding to source files that had the compile-with
 option set in conf/files.  This means that any fbt probes for functions
 in that object file would not have correct argument types.

 The fix is to run ctfconvert on any target file that does not have the
 no-obj option set in files.

PR:           bin/160275
Reported by:  Paul Ambrose (ambrosehua AT gmail DOT com)

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

11 years agoMake yacc a bootstrap tool if building on head, since the new yacc is
des [Sun, 27 May 2012 00:21:27 +0000 (00:21 +0000)]
Make yacc a bootstrap tool if building on head, since the new yacc is
not 100% backward compatible.

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

11 years agoMFC r228513
alc [Sat, 26 May 2012 23:10:36 +0000 (23:10 +0000)]
MFC r228513
  Create large page mappings in pmap_map().

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

11 years agoMFC r235474:
bz [Sat, 26 May 2012 10:24:35 +0000 (10:24 +0000)]
MFC r235474:

 Switch to a standard 2 clause BSD license (from bsd-style-copyright).

 Approved by: Myricom Inc. (gallatin)
 Approved by: Intel Corporation (jfv)

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

11 years agoMFC: r234524
marius [Sat, 26 May 2012 09:31:25 +0000 (09:31 +0000)]
MFC: r234524

o Fixes:
  - When switching to 4-bit operation, send a SET_CLR_CARD_DETECT command
    to disconnect the card-detect pull-up resistor from the DAT3 line before
    sending the SET_BUS_WIDTH command.
  - Add the missing "reserved" zero entry to the mantissa table used to
    decode various CSD fields. This was causing SD cards to report that they
    could run at 30 MHz instead of the maximum 25 MHz mandated in the spec.
o Enhancements:
  - At the MMC layer, format various info from the CID into a string that
    uniquely identifies the card instance (manufacturer number, serial
    number, product name and revision, etc). Export it as an instance
    variable.
  - At the MMCSD layer, display the formatted card ID string, and also
    report the clock speed of the hardware (not the card's max speed), and
    the number of bits and number of blocks per transfer. It comes out like
    this now:
    mmcsd0: 968MB <SD SD01G 8.0 SN 276886905 MFG 08/2008 by 3 SD> at mmc0
    22.5MHz/4bit/128-block
o Use DEVMETHOD_END.
o Use NULL instead of 0 for pointers.

PR: 156496
Submitted by: Ian Lepore

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

11 years agoMFC: r234561
marius [Sat, 26 May 2012 09:13:38 +0000 (09:13 +0000)]
MFC: r234561

Interrupts must be disabled while handling a partial cache line flush,
as otherwise the interrupt handling code may modify data in the non-DMA
part of the cache line while we have it stashed away in the temporary
stack buffer, then we end up restoring a stale value.

PR: 160431
Submitted by: Ian Lepore

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

11 years agoMFC: r234293
marius [Sat, 26 May 2012 09:08:33 +0000 (09:08 +0000)]
MFC: r234293

Generate an obviously missing STOP when having finished transmitting data.
This fixes communication with PCF8563.

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

11 years agoMFC: r234248
marius [Sat, 26 May 2012 08:58:29 +0000 (08:58 +0000)]
MFC: r234248

Add a driver for the NXP (Philips) PCF8563 RTC.

Obtained from: NetBSD (pcf8563reg.h)

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

11 years agoMFC: r234898, r235207
marius [Sat, 26 May 2012 08:54:44 +0000 (08:54 +0000)]
MFC: r234898, r235207

Add initial support for booting from ZFS on sparc64. At least on Sun Fire
V100, the firmware is known to be broken and not allowing to simultaneously
open disk devices, causing attempts to boot from a mirror or RAIDZ to cause
a crash. This will be worked around later. The firmwares of newer sun4u models
don't seem to exhibit this problem though.

PR:             165025
Submitted by:   Gavin Mu

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

11 years agoMFC r234936 (emaste)
thompsa [Sat, 26 May 2012 08:44:50 +0000 (08:44 +0000)]
MFC r234936 (emaste)

 Relax restriction on direct tx to child ports

 Lagg(4) restricts the type of packet that may be sent directly to a child
 port, to avoid undesired output from accidental misconfiguration.
 Previously only ETHERTYPE_PAE was permitted.

 BPF writes to a lagg(4) child port are presumably intentional, so just
 allow them, while still blocking other packets that should take the
 aggregation path.

PR: kern/138620

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

11 years agoMFC r231130 (pjd)
thompsa [Sat, 26 May 2012 08:41:48 +0000 (08:41 +0000)]
MFC r231130 (pjd)

 Allow to set if_bridge(4) sysctls from /boot/loader.conf.

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

11 years agoMFC r232321
thompsa [Sat, 26 May 2012 08:25:41 +0000 (08:25 +0000)]
MFC r232321

 Correct the description for CTLFLAG_TUN and CTLFLAG_RDTUN, the declaring of a
 system tunable has never been implemented. This flag is only used by sysctl(8)
 to provide a helpful error message.

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

11 years agoMFC r232638
thompsa [Sat, 26 May 2012 08:23:26 +0000 (08:23 +0000)]
MFC r232638

  Fix typo in lagg options.

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

11 years agoMFC r234488
thompsa [Sat, 26 May 2012 08:02:45 +0000 (08:02 +0000)]
MFC r234488

 Move the interface media check to a taskqueue, some interfaces (usb) sleep
 during SIOCGIFMEDIA and we were holding locks.

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

11 years agoMFC r234487
thompsa [Sat, 26 May 2012 08:02:13 +0000 (08:02 +0000)]
MFC r234487

 Add linkstate to bridge(4), set the link to up when at least one underlying
 interface is up, otherwise the link is down.

 This, among other things, allows carp to work on a bridge.

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

11 years agoMFC r234163
thompsa [Sat, 26 May 2012 08:00:34 +0000 (08:00 +0000)]
MFC r234163

 Set the proto to LAGG_PROTO_NONE before calling the detach routine so packets
 are discarded, this is an issue because lacp drops the lock which may allow
 network threads to access freed memory. Expand the lock coverage so the
 detach/attach happen atomically.

Submitted by: Andrew Boyer (earlier version)

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

11 years agoMFC r232629,r232640
thompsa [Sat, 26 May 2012 07:59:56 +0000 (07:59 +0000)]
MFC r232629,r232640

  Add the ability to set which packet layers are used for the load balance hash
  calculation.

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

11 years agoMFC r232118
thompsa [Sat, 26 May 2012 07:58:58 +0000 (07:58 +0000)]
MFC r232118

 Only look for a usable MAC address for the bridge ID from ports within our
 bridge, this allows us to have more than one independent bridge in the same
 STP domain.

PR: kern/164369
Submitted by: Nikos Vassiliadis (earlier version)

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

11 years agoMFC r232014,r232030,r232070
thompsa [Sat, 26 May 2012 07:58:12 +0000 (07:58 +0000)]
MFC r232014,r232030,r232070

- bstp_input() always consumes the packet so remove the mbuf handling dance
  around it.
- Now that network interfaces advertise if they support linkstate notifications
  we do not need to perform a media ioctl every 15 seconds.
- Indicate this function decrements the timer as well as testing for expiry.

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

11 years agoMFC r227342
rstone [Fri, 25 May 2012 23:24:16 +0000 (23:24 +0000)]
MFC r227342

 The in-kernel CTF parser caches the result of its first attempt to parse
 CTF data from a module.  On subsequent attempts to retrieve CTF data for
 a module, return an error if there no CTF data.

 This fixes a panic if you try to enable fbt probes on a module without CTF
 data twice.

Submitted by: Paul Ambrose (ambrosehua AT gmail DOT com)

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

11 years agoMFC: r212804
marius [Fri, 25 May 2012 22:42:21 +0000 (22:42 +0000)]
MFC: r212804

Remove magic value.

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

11 years agoMFC: r235681
marius [Fri, 25 May 2012 19:57:01 +0000 (19:57 +0000)]
MFC: r235681

Rewrite nd6_sysctl_{d,p}rlist() to avoid misaligned accesses to char arrays
casted to structs by getting rid of these buffers entirely. In r169832, it
was tried to paper over this issue by 32-bit aligning the buffers. Depending
on compiler optimizations that still was insufficient for 64-bit architectures
with strong alignment requirements though.
While at it, add comments regarding the total lack of locking in this area.

Tested by: bz
Reviewed by: bz (slightly earlier version), yongari (earlier version)

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

11 years agoMFC r220502:
bschmidt [Fri, 25 May 2012 16:52:00 +0000 (16:52 +0000)]
MFC r220502:
Don't hardcode assumptions about basic rates, similar to what the rt2661
support code does. While here remove an unnecessary loop.

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

11 years agoMFC r235235-235237:
bschmidt [Fri, 25 May 2012 16:40:31 +0000 (16:40 +0000)]
MFC r235235-235237:
Update man page due to import of RT2800/RT3000 support.

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

11 years agoMFC r232946,232958,235233:
bschmidt [Fri, 25 May 2012 16:39:56 +0000 (16:39 +0000)]
MFC r232946,232958,235233:

r232946:
Update the rt2860's firmware and add a Makefile for the module. While
here remove the ucode header file which was used to generate the fw files
but by now is outdated.

r232958:
Import the latest microcode.h which was used to generate the current
firmware files and adjust the Makefile.

r235233:
Add support for Ralink RT2800/RT3000 chipsets.

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

11 years agoMFC: r234897
marius [Fri, 25 May 2012 14:57:02 +0000 (14:57 +0000)]
MFC: r234897

Add a command for showing the heap usage.

PR: 165025
Submitted by: Gavin Mu

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

11 years agoMFC: r234789
marius [Fri, 25 May 2012 14:54:18 +0000 (14:54 +0000)]
MFC: r234789

Add multiple inclusion protection.

PR: 165025
Submitted by: Gavin Mu

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

11 years agoMFC r233611:
fabient [Fri, 25 May 2012 07:23:24 +0000 (07:23 +0000)]
MFC r233611:
- Support inlined location in calltree output.
  In case of multiple level of inlining all the locations are flattened.
  Require recent binutils/addr2line (head works or binutils from ports
  with the right $PATH order).
- Multiple fixes in the calltree output (recursion case, ...)
- Fix the calltree top view that previously hide some shared nodes.

Tested with Kcachegrind(kdesdk4)/qcachegrind(head).

Sponsored by: NETASQ

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

11 years agoMFC r235599:
ae [Fri, 25 May 2012 04:26:44 +0000 (04:26 +0000)]
MFC r235599:
  Introduce new device flag G_MIRROR_DEVICE_FLAG_TASTING. It should
  protect geom from destroying while it is tasting.

MFC r235600:
  Prevent removing of the last active component from a mirror.

PR: kern/154860
Reviewed by: pjd
Tested by: Eugene Grosbein

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

11 years agoMFC: r235623
pfg [Fri, 25 May 2012 03:08:46 +0000 (03:08 +0000)]
MFC: r235623

Bring in a subset of gcc fixes that were backported to
the GCC 4.1 branch and are available under GPLv2.

Reviewed by: mm
Approved by: jhb (mentor)

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

11 years agoMFC r235222:
mm [Fri, 25 May 2012 01:21:17 +0000 (01:21 +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/8@235952 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r232614:
bz [Thu, 24 May 2012 23:55:08 +0000 (23:55 +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/8@235947 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

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

Decode new battery status indications.

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

11 years agoMFC: r235568
rmacklem [Thu, 24 May 2012 13:15:15 +0000 (13:15 +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/8@235910 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

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

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

11 years agoMFC r233433
alc [Thu, 24 May 2012 05:30:17 +0000 (05:30 +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/8@235885 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r235519:
mav [Thu, 24 May 2012 04:24:17 +0000 (04:24 +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/8@235881 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r234458, r234603, r234610, r234727, r234816, r234848, r234868,
mav [Thu, 24 May 2012 02:46:35 +0000 (02:46 +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/8@235875 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r235270:
mav [Thu, 24 May 2012 01:43:08 +0000 (01:43 +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/8@235872 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r235558, r235569:
mav [Thu, 24 May 2012 01:30:17 +0000 (01:30 +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/8@235869 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r235510:
mav [Thu, 24 May 2012 01:24:49 +0000 (01:24 +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/8@235867 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

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

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

11 years agoMFC r222465, r223224, r224841, r232613:
jamie [Wed, 23 May 2012 15:47:07 +0000 (15:47 +0000)]
MFC r222465, r223224, r224841, r232613:

 Check for IPv4 or IPv6 to be available by the kernel to not
 provoke errors trying to query options not available.
 Make it possible to compile out INET or INET6 only parts.

PR: bin/161957

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

11 years agoMFC r235151:
yongari [Wed, 23 May 2012 02:12:00 +0000 (02:12 +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/8@235819 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r235634
sbruno [Mon, 21 May 2012 22:23:21 +0000 (22:23 +0000)]
MFC r235634

Fix and update battery status bits according to linux driver

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

11 years agoMFC 234190,234196,234280:
jhb [Mon, 21 May 2012 21:16:08 +0000 (21:16 +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/8@235742 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC: r201226, r202844, r206043, r206132, r206133, r212029, r225610, r226708,
bapt [Mon, 21 May 2012 13:05:41 +0000 (13:05 +0000)]
MFC: r201226, r202844, r206043, r206132, r206133, r212029, r225610, r226708,
r228670

- Add support for UPDATING remote fetching.
- Reorganize EXAMPLES section in pkg_updating(1).
- Style fixes.
- Replace hardcoded INDEX version. [1]
- Fix a buffer overlap. [2]
- Remove empty package when fetching fails and -K is used. [3]
- Remove useless chmod2() after mkdtemp(3). [4]
- Replace mkdir(1) call with mkdir(2). [5]
- Get rid of some vsystem() calls.
- Switch from lstat(2) to open(2) in fexists().
- Try rename(2) in move_file() first.
- Fix pkg_delete, check if the file we're trying to delete is a
symlink before complaining that it doesn't exist. Typical case
would be a leftover library symlink that's left over after the
actual library has been removed.
- Print the package name on deletion errors.
- Staticify elide_root()
- In usr.sbin/pkg_install/updating/main.c, use the size of the destination
buffer as size argument to strlcpy(), not the length of the source

PR: bin/145101 [1], bin/139492 [2], bin/144919 [3]
bin/144920 [4], bin/144921 [5]
Submitted by: gcooper [1,2,3,4,5]
Approved by: des (mentor)

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

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

Fix a typo that crept in.

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

11 years agoMFC r232513:
bz [Mon, 21 May 2012 00:03:13 +0000 (00:03 +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/8@235706 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r232514:
bz [Sun, 20 May 2012 22:58:37 +0000 (22:58 +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/8@235704 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r235212, r235216, r235217:
mm [Sun, 20 May 2012 22:23:58 +0000 (22:23 +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/8@235702 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r231532:
bz [Sun, 20 May 2012 20:25:57 +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/8@235697 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r235567:
gjb [Sun, 20 May 2012 01:40:24 +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/8@235674 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r234643:
bz [Sat, 19 May 2012 22:50:22 +0000 (22:50 +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/8@235669 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r234620:
bz [Sat, 19 May 2012 22:16:12 +0000 (22:16 +0000)]
MFC r234620:

 If we pass down 64k - L2 hdr size + 1 to 64K L3+ data adding an ether
 header will make the data go over the 64k limits announced to busdma as
 maxsize and the transaction will fail.

 With TSO this can result in a TCP regression due to the lost packet.

 According to the data sheets ixgbe(4) 82598 and 82599 can handle up to
 256k so increase the maximum.

 Reported by: Jon Kåre Hellan, UNINETT (jon.kare.hellan uninett.no)
 Tested by: Jon Kåre Hellan, UNINETT (jon.kare.hellan uninett.no)

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

11 years agoMFC r231767:
bz [Sat, 19 May 2012 18:33:08 +0000 (18:33 +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/8@235658 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r233713:
bz [Sat, 19 May 2012 14:32:47 +0000 (14:32 +0000)]
MFC r233713:

  Remove the magic mfi_array is 288 bytes and just use the
  sizeof the array since it is not 288 bytes.

  Change reporting of a "SYSTEM" disk to "JBOD" to match
  LSI MegaCli and firmware reporting.

  This means that mfiutil command to "create jbod" is now a
  little confusing since a RAID per drive is not really what
  LSI defines JBOD to be.  This should be fixed in the future
  and support added to really create LSI JBOD and enable that
  feature on cards that support it.

To unbreak the build after: r235625 (?)

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

11 years agoPurge mergeinfo from i386/conf/XENHVM. The mergeinfo related to
jhb [Fri, 18 May 2012 20:43:48 +0000 (20:43 +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/8@235630 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC of head thunderbolt support for mfi(4)
sbruno [Fri, 18 May 2012 19:48:33 +0000 (19:48 +0000)]
MFC of head thunderbolt support for mfi(4)

r233711 -- IFV head_mfi into head for initial thunderbolt support
r233768 -- atomic_t --> mfi_atomic
r233805 -- fix tinderbuild, move megasas_sge to mfivar.h
r233877 -- remove atomic.h from includes
r235014 -- fix reading of sector >= 2^32 or 2^21, repair RAID handling
r235016 -- style(9)
r235040 -- fix returns from mfi_tbolt_sync_map_info()
r235318 -- repair panic on PAE i386
r235321 -- repair the repair of panics on PAE i386

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

11 years agoMFC 234186
jhb [Fri, 18 May 2012 18:53:28 +0000 (18:53 +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/8@235621 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years ago/etc/netstart: remove invocation of dhclient
rea [Fri, 18 May 2012 18:32:44 +0000 (18:32 +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/8@235617 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r235210
sbruno [Fri, 18 May 2012 18:29:44 +0000 (18:29 +0000)]
MFC r235210

Modify the binding of queues to attach to as many CPUs
as possible when using more than one igb(4) adapter.  This
means that queues will not be bound to the same CPUs if
there are more CPUs availble.

This is only applicable to a system that has multiple interfaces.

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

11 years agoMFC 217886,218389:
jhb [Fri, 18 May 2012 14:29:54 +0000 (14:29 +0000)]
MFC 217886,218389:
Set td_kstack_pages for thread0.

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

11 years agoMFC r235499:
gjb [Fri, 18 May 2012 02:20:15 +0000 (02:20 +0000)]
MFC r235499:

Reword hostapd.conf(5) sentence.

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

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

Fix an mdoc(7) formatting nit.

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

11 years agoMFC r235357,r235358,r235371,r235373,r235376:
gjb [Fri, 18 May 2012 02:14:08 +0000 (02:14 +0000)]
MFC r235357,r235358,r235371,r235373,r235376:

Fix various mdoc(7) style nits.

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

11 years agoDocument requirement to alter some sysctls when using igb(4) with
gjb [Fri, 18 May 2012 02:06:34 +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/8@235590 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

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

General mdoc(7) and typo fixes.

PR: 167804

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

11 years agoMFC r235337:
gjb [Fri, 18 May 2012 01:50:34 +0000 (01:50 +0000)]
MFC r235337:

General mdoc(7) and typo fixes.

PR: 167804

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

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

Remove duplicate words in mdoc(7) pages.

PR: 167810

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

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

General mdoc(7) and typo fixes.

PR: 167713

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

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

General mdoc(7) and typo fixes.

PR: 167776

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

11 years agoMFC r235286:
gjb [Fri, 18 May 2012 00:32:29 +0000 (00:32 +0000)]
MFC r235286:

General mdoc(7) and typo fixes.

PR: 167734

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

11 years agoMFC r235252:
gjb [Fri, 18 May 2012 00:08:09 +0000 (00:08 +0000)]
MFC r235252:

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

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

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

General mdoc(7) and typo fixes.

PR: 167696

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

11 years agoMFC 233708,234154:
jhb [Thu, 17 May 2012 15:45:00 +0000 (15:45 +0000)]
MFC 233708,234154:
Fix a few issues with transmit handling in em(4) and igb(4):
- Do not define the foo_start() methods or set if_start in the ifnet if
  multiq transmit is enabled.  Also, set if_transmit and if_qflush before
  ether_ifattach rather than after when multiq transmit is enabled.  This
  helps to ensure that the drivers never try to mix different transmit
  methods.
- Properly restart transmit during resume.  igb(4) was not restarting it
  at all, and em(4) was restarting even if the link was down and was
  calling the wrong method if multiq transmit was enabled.
- Remove all the 'more' handling for transmit completions.  Transmit
  completion processing does not have a processing limit, so it always
  runs to completion and never has more work to do when it returns.
  Instead, the previous code was returning 'true' anytime there were
  packets in the queue that weren't still in the process of being
  transmitted.  The effect was that the driver would continuously
  reschedule a task to process TX completions in effect running at 100%
  CPU polling the hardware until it finished transmitting all of the
  packets in the ring.  Now it will just wait for the next TX completion
  interrupt.
- Restart packet transmission when the link becomes active.
- Fix the MSI-X queue interrupt handlers to restart packet transmission if
  there are pending packets in the relevant software queue (IFQ or buf_ring)
  after processing TX completions.  This is the root cause for the OACTIVE
  hangs as if the MSI-X queue handler drained all the pending packets from
  the TX ring, nothing would ever restart it.  As such, remove some
  previously-added workarounds to reschedule a task to poll the TX ring
  anytime OACTIVE was set.
- Use a dedicated task to handle deferred transmits from the if_transmit
  method instead of reusing the existing per-queue interrupt task.
  Reusing the per-queue interrupt task could result in both an interrupt
  thread and the taskqueue thread trying to handle received packets on a
  single queue resulting in out-of-order packet processing.
- Call ether_ifdetach() earlier in igb_detach().
- Drain tasks and free taskqueues during igb_detach().

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

11 years agoMFC r235122:
jlh [Thu, 17 May 2012 08:14:10 +0000 (08:14 +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/8@235536 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC 234152:
jhb [Wed, 16 May 2012 21:07:19 +0000 (21:07 +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/8@235523 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r235142:
jlh [Wed, 16 May 2012 20:33:29 +0000 (20:33 +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/8@235521 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r234245:
delphij [Wed, 16 May 2012 20:06:17 +0000 (20:06 +0000)]
MFC r234245:

Eliminate an unused parameter of static method igmp_stats_live_old().

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

11 years agoMFC 218221,233709,233781,233793:
jhb [Wed, 16 May 2012 20:05:31 +0000 (20:05 +0000)]
MFC 218221,233709,233781,233793:
- Use a dedicated taskqueue with a thread that runs at a software-interrupt
  priority for the periodic polling of the machine check registers.
- 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/8@235517 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r234244:
delphij [Wed, 16 May 2012 20:02:29 +0000 (20:02 +0000)]
MFC r234244:

The scandir(3) function expects fourth parameter, compar, be in type of:

int (*compar)(const struct dirent **, const struct dirent **)

The current code defines sortq() to accept two void *, then cast them
to const struct dirent **.  Because the code does not really need this
cast, we can eliminate the casts by changing the function prototype
to match scandir(3) expectation.

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

11 years agoMFC: r234957
brueffer [Wed, 16 May 2012 19:47:02 +0000 (19:47 +0000)]
MFC: r234957

Check vplabel for NULL before dereferencing it.  Fixes a panic
when running atop with MAC_MLS enabled.

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

11 years agoMFC r232102: Exit with proper status when wake() fails.
jh [Wed, 16 May 2012 17:26:14 +0000 (17:26 +0000)]
MFC r232102: Exit with proper status when wake() fails.

PR: bin/153527

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

11 years agoMFC r228363 (pjd):
mm [Wed, 16 May 2012 15:17:51 +0000 (15:17 +0000)]
MFC r228363 (pjd):
The vfs.zfs.txg.timeout sysctl can be safely modified at run time.

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

11 years agoMFC r228424,228448,230643: panic: add a switch and infrastructure for
avg [Wed, 16 May 2012 09:03:29 +0000 (09:03 +0000)]
MFC r228424,228448,230643: panic: add a switch and infrastructure for
stopping other CPUs in SMP case

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

11 years agoMFC r235201 r235419:
eadler [Wed, 16 May 2012 00:37:15 +0000 (00:37 +0000)]
MFC r235201 r235419:
 Add missing period at the end of the error message

Approved by: cperciva (implicit)

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

11 years agoMFC r235043:
jimharris [Wed, 16 May 2012 00:03:58 +0000 (00:03 +0000)]
MFC r235043:

Fix off-by-one error in sati_inquiry_block_device_translate_data().  Bug would
result in INQUIRY VPD 0x81 to SATA devices to return only 63 bytes of data
instead of 64 during SCSI/ATA translation.

Sponsored by: Intel

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

11 years agoMFC r235143:
kib [Tue, 15 May 2012 09:37:22 +0000 (09:37 +0000)]
MFC r235143:
Plug a leak.

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