]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
11 years agoMFC 228157:
jhb [Tue, 23 Oct 2012 12:37:02 +0000 (12:37 +0000)]
MFC 228157:
- Fix segmentation fault when running "+command" when run with -jX -n due
  to Compat_RunCommand() being called with `cmd' that is not on the
  node->commands list
- Make ellipsis ("..." command) handling consistent: check for "..." command
  in job make after variables expansion to match compat make behavior
- Fix empty command handling (after variables expansion and @+- modifiers
  are processed): now empty commands are ignored in compat make and are not
  printed in job make case

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

11 years agoMFC r241626, r241642.
np [Mon, 22 Oct 2012 17:56:15 +0000 (17:56 +0000)]
MFC r241626, r241642.

r241626:
Whitespace cleanup.

r241642:
Always provide sndbuf and MSS values in a flowc command, even when the
driver is going to abort the connection right after the flowc.

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

11 years agoMerge r240892,r240893
melifaro [Mon, 22 Oct 2012 12:39:57 +0000 (12:39 +0000)]
Merge r240892,r240893

Permit table to be used as IPv6 address.
Whitespace fixes

Reported by: Serhiy Popov <sergiuspso@ukr.net>

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

11 years agoMFC: r241740
marius [Mon, 22 Oct 2012 11:10:14 +0000 (11:10 +0000)]
MFC: r241740

- Remove an unused header.
- Don't waste a delay slot.

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

11 years agoMFC: r241734
marius [Mon, 22 Oct 2012 11:07:59 +0000 (11:07 +0000)]
MFC: r241734

Let SCHED_ULE give affinity to the CPU the tick interrupt triggered on
when running tick_process(), similarly to what the x86 equivalents of
this function do, however employing the less racy sequence also used in
intr_event_handle().

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

11 years agoMerge of 241869
edwin [Mon, 22 Oct 2012 10:31:28 +0000 (10:31 +0000)]
Merge of 241869

Import of tzdata2012g

 - Fix end of DST in Gaza and Hebron
 - Western Samoa: DST start at 30 Septembet 2012 and finished at 7 April 2013.

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

11 years agoMFC r241597:
kib [Mon, 22 Oct 2012 09:07:12 +0000 (09:07 +0000)]
MFC r241597:
Acquire the rangelock for truncate(2) as well.

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

11 years agoMFC r236852: touch: Add the -d option from POSIX.1-2008.
jilles [Sun, 21 Oct 2012 21:47:58 +0000 (21:47 +0000)]
MFC r236852: touch: Add the -d option from POSIX.1-2008.

This is much like -t but with a different format which is ISO8601-like and
allows fractions of a second.

The precision is limited to microseconds because of utimes() and friends,
even though stat() returns nanoseconds.

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

11 years agoMFC r241556:
kib [Sun, 21 Oct 2012 12:33:38 +0000 (12:33 +0000)]
MFC r241556:
Add a KPI to allow to reserve some amount of space in the numvnodes
counter, without actually allocating the vnodes.

For KBI stability, the td_vp_reserv was moved to the end of struct thread.

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

11 years agoMFC r241550:
kib [Sun, 21 Oct 2012 12:17:22 +0000 (12:17 +0000)]
MFC r241550:
MFamd64: add machdep.uprintf_signal.

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

11 years agoMFC r241549:
kib [Sun, 21 Oct 2012 12:15:58 +0000 (12:15 +0000)]
MFC r241549:
Print the %rip value for uprintf_signal.

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

11 years agoMFC: r241679
marius [Sun, 21 Oct 2012 11:43:43 +0000 (11:43 +0000)]
MFC: r241679

It turns out that as documented, PCF8563_R_SECOND_VL (i.e. battery low)
doesn't automatically clear when VDD rises above Vlow again and needs to be
cleared manually. However, apparently this needs all of the time registers
to be set, i.e. pcf8563_settime(), and not just PCF8563_R_SECOND in order
for PCF8563_R_SECOND_VL to stick. Thus, we just issue a warning during
pcf8563_attach() rather than failing with ENXIO in case it is set.

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

11 years agoMFC r239382:
kuriyama [Sun, 21 Oct 2012 10:19:07 +0000 (10:19 +0000)]
MFC r239382:

- Allow to pass extra parameters for each jails.
- To achieve above, convert jail(8) invocation to use new style
  command line "-c" flag.

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

11 years agoMFC r228120:
brooks [Sun, 21 Oct 2012 09:31:48 +0000 (09:31 +0000)]
MFC r228120:

Allow NO_FOO to override WITH_FOO that could be specified in /etc/src.conf.

This is required to override knobs (e.g. WITH_PROFILE) during buildworld
stages in Makefile.inc1 (otherwise the build is stopped due to both WITH_FOO
and WITHOUT_FOO defined).

PR: misc/172873

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

11 years agoMFC r241507: Make a command for pkg_info changeable like
ume [Sat, 20 Oct 2012 17:27:57 +0000 (17:27 +0000)]
MFC r241507: Make a command for pkg_info changeable like
pkg_version in /etc/periodic/weekly/400.status-pkg to be
friendly with pkgng.

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

11 years agoMFC r241297: zvol: set mediasize in geom provider right upon its creation
avg [Sat, 20 Oct 2012 09:25:28 +0000 (09:25 +0000)]
MFC r241297: zvol: set mediasize in geom provider right upon its creation

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

11 years agoMFC r241280: make: report :M or :N pattern in debug mode
avg [Sat, 20 Oct 2012 09:22:57 +0000 (09:22 +0000)]
MFC r241280: make: report :M or :N pattern in debug mode

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

11 years agoMFC r241753:
delphij [Sat, 20 Oct 2012 07:38:42 +0000 (07:38 +0000)]
MFC r241753:

Integrate changes from LSI vendor driver 10.80.00.005 to FreeBSD.

PR: kern/172833
Submitted by: "Charles O'Donnell" <cao bus net>

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

11 years agoMFC r241444:
mav [Fri, 19 Oct 2012 19:27:33 +0000 (19:27 +0000)]
MFC r241444:
Increase device CCB queue array size by CAM_RL_VALUES - 1 (4) elements.
It is required to store extra recovery requests in case of bus resets.
On ATA/SATA this fixes assertion panics on HEAD with INVARIANTS enabled or
possible memory corruptions otherwise if timeout/reset happens when device
CCB queue is already full.

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

11 years agoMFC r241375:
mav [Fri, 19 Oct 2012 17:39:15 +0000 (17:39 +0000)]
MFC r241375:
Cast vendor-specific spell on VIA VT1818S codecs alike to VT1708S to
make analog input loopback and dual-stream playback work by enabling
signal mixing by nid 22, as it should be according to info returned by
the CODEC.  Otherwise pin nid 28 receives only signal from DAC nid 16.

PR:             kern/169124

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

11 years agoMFC r241613:
eadler [Fri, 19 Oct 2012 00:32:17 +0000 (00:32 +0000)]
MFC r241613:
Add support for samsung HM250JI

PR: usb/121474
Approved by: cperciva (implicit)

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

11 years agoMFC r241602:
eadler [Fri, 19 Oct 2012 00:26:18 +0000 (00:26 +0000)]
MFC r241602:

Add a bunch more example completions.
Approved by: cperciva (implicit)

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

11 years agoMFC 227429,228121,228124,228137,228140,228141,228147,228153,228158,228311,
jhb [Fri, 19 Oct 2012 00:22:09 +0000 (00:22 +0000)]
MFC 227429,228121,228124,228137,228140,228141,228147,228153,228158,228311,
241395,241396:
Various fixes to WITH_CTF:
- Conditionalize ctfconvert/ctfmerge runs on make level (.if/.endif)
  instead of executing a shell on every object or executable/library file.
- CTF knob is now implemented using common scheme: MK_CTF=yes/no is
  defined based on WITH/WITHOUT_CTF settings, default is WITHOUT_CTF,
  NO_CTF overrides WITH_CTF (used by Makefile.inc1)
- Add missing calls to ctfconvert/ctfmerge for various edge cases.

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

11 years agoMFC: r239941
marius [Thu, 18 Oct 2012 15:24:43 +0000 (15:24 +0000)]
MFC: r239941

Add a global MD macro for the VIS block size instead of duplicating
it and using magic values all over the place.

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

11 years agoMFC: r239089
marius [Thu, 18 Oct 2012 15:20:37 +0000 (15:20 +0000)]
MFC: r239089

- Merge from NetBSD:
  When issuing a non-DMA command, make sure to set the "remaining length of
  command to be transferred via DMA" (sc_cmdlen) to zero up-front, otherwise
  we might get confused on command competition interrupt (no DMA active but
  still data left to transfer).
- Implement handling of MSG_IGN_WIDE_RESIDUE which some targets produce, as
  just rejecting these leads to a resend and disconnect loop.
  Reported and tested by: mjacob

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

11 years agoRevert unintended part of r241681.
marius [Thu, 18 Oct 2012 12:22:12 +0000 (12:22 +0000)]
Revert unintended part of r241681.

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

11 years agoMFC: r239864
marius [Thu, 18 Oct 2012 12:06:26 +0000 (12:06 +0000)]
MFC: r239864

- Unlike cache invalidation and TLB demapping IPIs, reading registers from
  other CPUs doesn't require locking so get rid of it. As the latter is used
  for the timecounter on certain machine models, using a spin lock in this
  case can lead to a deadlock with the upcoming callout(9) rework.
- Merge r134227/r167250 from x86:
  Avoid cross-IPI SMP deadlock by using the smp_ipi_mtx spin lock not only
  for smp_rendezvous_cpus() but also for the MD cache invalidation and TLB
  demapping IPIs.
- Mark some unused function arguments as such.

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

11 years agoMFC r241581:
eadler [Thu, 18 Oct 2012 01:14:22 +0000 (01:14 +0000)]
MFC r241581:

Fix minor nits:
use a comma after "i.e."
sentences begin on new lines.

No .Dd bump for trivial modification.

Approved by: cperciva (implicit)

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

11 years agoMFC r241580:
eadler [Thu, 18 Oct 2012 01:12:15 +0000 (01:12 +0000)]
MFC r241580:
Add support for the USB DISK Pro PMAP.

This patch has sit for 6 years in the PR database.

PR: usb/96381
Approved by: cperciva (implicit)

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

11 years agoMFC r241305: ata_da: set disk::d_ident from serial number
avg [Wed, 17 Oct 2012 11:35:06 +0000 (11:35 +0000)]
MFC r241305: ata_da: set disk::d_ident from serial number

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

11 years agoMFC r241304: procstat_getprocs: honor kvm_getprocs interface - cnt is signed
avg [Wed, 17 Oct 2012 11:33:32 +0000 (11:33 +0000)]
MFC r241304: procstat_getprocs: honor kvm_getprocs interface - cnt is signed

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

11 years agoMFC r241295: cngetc: use cpu_spinwait to ease the cncheckc loop a tiny bit
avg [Wed, 17 Oct 2012 11:30:14 +0000 (11:30 +0000)]
MFC r241295: cngetc: use cpu_spinwait to ease the cncheckc loop a tiny bit

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

11 years agoMFC r240831: zfs: allow a zvol to be used as a pool vdev, again
avg [Wed, 17 Oct 2012 11:28:21 +0000 (11:28 +0000)]
MFC r240831: zfs: allow a zvol to be used as a pool vdev, again

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

11 years agoMFC r241303: kvm_getprocs: gracefully handle errors from kvm_deadprocs
avg [Wed, 17 Oct 2012 11:26:27 +0000 (11:26 +0000)]
MFC r241303: kvm_getprocs: gracefully handle errors from kvm_deadprocs

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

11 years agoMFC r241291: zfs boot spa_status: print bootfs for each reported pool
avg [Wed, 17 Oct 2012 11:24:06 +0000 (11:24 +0000)]
MFC r241291: zfs boot spa_status: print bootfs for each reported pool

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

11 years agoMFC r241552:
eadler [Wed, 17 Oct 2012 00:33:10 +0000 (00:33 +0000)]
MFC r241552:
Add support for  Feiya Elango USB MicroSD

PR: usb/153599
Approved by: cperciva (implicit)

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

11 years agoMFC r241551:
eadler [Wed, 17 Oct 2012 00:30:33 +0000 (00:30 +0000)]
MFC r241551:
Add support for the Buffalo RUF2 flash drive.

PR: usb/166848
Approved by: cperciva (implicit)

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

11 years agoMFC r241542:
eadler [Wed, 17 Oct 2012 00:27:29 +0000 (00:27 +0000)]
MFC r241542:
Don't document the PORTSSUPFILE variable. Even though this still works,
try to discourage users from depending on it.

Approved by: cperciva (implicit)

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

11 years agoMFC r240955 (partial):
mm [Tue, 16 Oct 2012 19:58:15 +0000 (19:58 +0000)]
MFC r240955 (partial):
Remove unsupported "-r" option from zfs send.

Illumos issued covered:
2811 missing implementation: zfs send -r

PR: kern/171761

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

11 years agoMFC r240164, r240203:
fabient [Tue, 16 Oct 2012 13:27:20 +0000 (13:27 +0000)]
MFC r240164, r240203:
Add Intel Ivy Bridge support to hwpmc(9).
Update offcore RSP token for Sandy Bridge.
Note: No uncore support.

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

11 years agoMFC r241143:
pfg [Tue, 16 Oct 2012 01:37:17 +0000 (01:37 +0000)]
MFC r241143:

rpc: be sure to free cl_netid and cl_tp.

When creating a client with clnt_tli_create, it uses strdup to copy
strings for these fields if nconf is passed in. clnt_dg_destroy frees
these strings already. Make sure clnt_vc_destroy frees them in the same
way.

Tested by: David Wolfskill
Obtained from: Bull GNU/Linux NFSv4 Project (libtirpc)

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

11 years agoMFC: r241214
jkim [Mon, 15 Oct 2012 21:53:26 +0000 (21:53 +0000)]
MFC: r241214

Do not install incomplete unwind.h from clang.

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

11 years agomx1 -> smarthost.ysv
peter [Mon, 15 Oct 2012 14:14:47 +0000 (14:14 +0000)]
mx1 -> smarthost.ysv

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

11 years agoMFC r241401, r241416.
np [Mon, 15 Oct 2012 06:48:50 +0000 (06:48 +0000)]
MFC r241401, r241416.

r241401:
Add an "i2c" subcommand to cxgbetool.  You can use this to read
information from the transceivers connected to the ports of a
cxgbe(4) based card.

# cxgbetool t4nex0 i2c <port_id> <dev_addr> <addr> [<count>]

For example:
# cxgbetool t4nex0 i2c 0 0xa0 3
0x10 [16]

(As per SFF-8472 the SFP+ module is at 0xa0 and bit 4 in the value at
address 3 indicates it's a 10Gbase-SR module, which it is.)

r241416:
Add a "clearstats" subcommand to cxgbetool that lets you clear the
MAC statistics for any port.

For example:
# cxgbetool t4nex0 clearstats 0

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

11 years agoMFC r241397-241399, r241409, r241493-24194.
np [Mon, 15 Oct 2012 06:41:54 +0000 (06:41 +0000)]
MFC r241397-241399, r241409, r241493-24194.

r241397:
Remove unused item.  cxgbe's rx queue's lock was removed a long time ago.

r241398:
There is no need to report the same error twice.

r241399:
Add a driver ioctl to read a byte from any device on a port's i2c bus.
This lets userspace read arbitrary information from the SFP+ modules
etc. on this bus.

Reading multiple bytes in the same transaction isn't possible right now.
I'll update the driver once the chip's firmware supports this.

r241409:
Add a driver ioctl to clear a port's MAC statistics.

r241493:
Use global knob in the TP_PARA_REG3 register to disable congestion
drops if the user has chosen this behaviour.

r241494:
Temporary fix for kern/172364.

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

11 years agoMFC: r241097
rmacklem [Mon, 15 Oct 2012 01:09:33 +0000 (01:09 +0000)]
MFC: r241097
Attila Bogar and Herbert Poeckl both reported similar problems
w.r.t. a Linux NFS client doing a krb5 NFS mount against the
FreeBSD server. We determined this was a Linux bug:
http://www.spinics.net/lists/linux-nfs/msg32466.html, however
the mount failed to work, because the Destroy operation with a
bogus encrypted checksum destroyed the authenticator handle.
This patch changes the rpcsec_gss code so that it doesn't
Destroy the authenticator handle for this case and, as such,
the Linux mount will work.

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

11 years agoMFC r241302: kvm_proclist: ignore processes in larvae state
avg [Sun, 14 Oct 2012 07:54:54 +0000 (07:54 +0000)]
MFC r241302: kvm_proclist: ignore processes in larvae state

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

11 years agoMFC r241282: zfs boot: chose a "first" pool if none is explicitly requested
avg [Sun, 14 Oct 2012 07:52:25 +0000 (07:52 +0000)]
MFC r241282: zfs boot: chose a "first" pool if none is explicitly requested

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

11 years agoMFC r241290: boot/zfs: a small whitespace cleanup
avg [Sun, 14 Oct 2012 07:45:40 +0000 (07:45 +0000)]
MFC r241290: boot/zfs: a small whitespace cleanup

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

11 years agoMFC r240339: openssl: change SHLIB_VERSION_NUMBER to reflect the reality
avg [Sun, 14 Oct 2012 07:28:21 +0000 (07:28 +0000)]
MFC r240339: openssl: change SHLIB_VERSION_NUMBER to reflect the reality

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

11 years agoMFC r240634: acpi_cpu: explicitly notify userland about c-state changes
avg [Sun, 14 Oct 2012 07:17:55 +0000 (07:17 +0000)]
MFC r240634: acpi_cpu: explicitly notify userland about c-state changes

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

11 years agoMFC r241353, r241356, r241400
alc [Sat, 13 Oct 2012 22:22:53 +0000 (22:22 +0000)]
MFC r241353, r241356, r241400
  To avoid page table page corruption, change pmap_pv_reclaim()'s method
  of mapping page table pages.

  Add some assertions that were helpful in debugging the page table page
  corruption.

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

11 years agoMFC r241430:
dim [Sat, 13 Oct 2012 13:00:51 +0000 (13:00 +0000)]
MFC r241430:

Pull in r164132 from upstream llvm trunk:

  When creating MCAsmBackend pass the CPU string as well. In X86AsmBackend
  store this and use it to not emit long nops when the CPU is geode which
  doesnt support them.

  Fixes PR11212.

Pull in r164133 from upstream clang trunk:

  Follow up on llvm r164132.

This should prevent illegal instructions when building world on Geode
CPUs (e.g. Soekris).

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

11 years agoMFC r241427:
dim [Sat, 13 Oct 2012 12:56:04 +0000 (12:56 +0000)]
MFC r241427:

Pull in r163710 from upstream llvm trunk:

  Add support for AMD Geode.

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

11 years agoMFC r241137,r241154
ache [Fri, 12 Oct 2012 13:17:19 +0000 (13:17 +0000)]
MFC r241137,r241154

Using putenv() and later direct pointer contents modification it is possibe
to craft environment variables with similar names like that:
a=1
a=2
...
unsetenv("a") should remove them all to make later getenv("a") impossible.
Fix it to do so (this is GNU autoconf test #3 failure too).

PR:             172273

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

11 years agoMFC r241155
alc [Fri, 12 Oct 2012 03:09:59 +0000 (03:09 +0000)]
MFC r241155
  Update some of the comments.  In particular, use "sleep" in preference
  to "block" where appropriate.

  Eliminate some unnecessary casts.

  Make a few whitespace changes for consistency.

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

11 years agoMFC r241373:
eadler [Fri, 12 Oct 2012 02:12:53 +0000 (02:12 +0000)]
MFC r241373:
Remove undefined behavior from sranddev() and
srandomdev(). This doesn't actually work
with any modern C compiler:

In particular, both clang and modern gcc
verisons silently elide any xor operation
with 'junk'.

Approved by: cperciva (implicit)

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

11 years agoMFC r240389,r240409:
eadler [Fri, 12 Oct 2012 02:10:27 +0000 (02:10 +0000)]
MFC r240389,r240409:
-  Add support for ipv6 addresses as destination
-  Add documentation for IPv6 support

PR: docs/171580
Approved by: cperciva (implicit)

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

11 years agoMFC r239624:
np [Thu, 11 Oct 2012 23:02:35 +0000 (23:02 +0000)]
MFC r239624:

Allow nmbjumbop, nmbjumbo9, and nmbjumbo16 to be set directly via loader
tunables.

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

11 years agoMFC r240452-240453.
np [Thu, 11 Oct 2012 22:46:20 +0000 (22:46 +0000)]
MFC r240452-240453.

r240452:
Use native FreeBSD facilities everywhere except the shared code in common/

r240453:
Install interrupt handlers early, during attach, for the reason
explained in r239913 by jhb.

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

11 years agoMFC r240451:
np [Thu, 11 Oct 2012 22:30:10 +0000 (22:30 +0000)]
MFC r240451:
Allow cxgbe to be built into a kernel with "device cxgbe."

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

11 years agoMFC r240443:
np [Thu, 11 Oct 2012 21:29:11 +0000 (21:29 +0000)]
MFC r240443:
Update interface to firmware 1.6.2 and include the firmware in the driver.

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

11 years agoMFC r233850:
np [Thu, 11 Oct 2012 21:15:54 +0000 (21:15 +0000)]
MFC r233850:
- Remove redundant call to pr_ctloutput from code that handles SO_SETFIB.
- Add a check for errors during copyin while here.

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

11 years agoPoint freebsd.org nullclient cluster machines to mx1
peter [Thu, 11 Oct 2012 20:48:45 +0000 (20:48 +0000)]
Point freebsd.org nullclient cluster machines to mx1

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

11 years agoMerge r241129:
glebius [Thu, 11 Oct 2012 01:32:51 +0000 (01:32 +0000)]
Merge r241129:
  There is a complex race in in_pcblookup_hash() and in_pcblookup_group().
  Both functions need to obtain lock on the found PCB, and they can't do
  classic inter-lock with the PCB hash lock, due to lock order reversal.
  To keep the PCB stable, these functions put a reference on it and after PCB
  lock is acquired drop it. If the reference was the last one, this means
  we've raced with in_pcbfree() and the PCB is no longer valid.

    This approach works okay only if we are acquiring writer-lock on the PCB.
  In case of reader-lock, the following scenario can happen:

    - 2 threads locate pcb, and do in_pcbref() on it.
    - These 2 threads drop the inp hash lock.
    - Another thread comes to delete pcb via in_pcbfree(), it obtains hash
      lock,   does in_pcbremlists(), drops hash lock, and runs
      in_pcbrele_wlocked(), which  doesn't free the pcb due to two references
      on it. Then it unlocks the pcb.
    - 2 aforementioned threads acquire reader lock on the pcb and run
      in_pcbrele_rlocked(). One gets 1 from in_pcbrele_rlocked() and continues,
      second gets 0 and considers pcb freed, returns.
    - The thread that got 1 continutes working with detached pcb, which later
      leads to panic in the underlying protocol level.

    To plumb that problem an additional INPCB flag introduced - INP_FREED. We
  check for that flag in the in_pcbrele_rlocked() and if it is set, we pretend
  that that was the last reference.

  Discussed with: rwatson, jhb
  Reported by: Vladimir Medvedkin <medved rambler-co.ru>

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

11 years agoMFC r241134:
eadler [Wed, 10 Oct 2012 21:30:26 +0000 (21:30 +0000)]
MFC r241134:
Fix alignment related warnings reported by gcc
Switch from old style arguments to modern C
remove WARNS as a result

tested with "make universe"

Approved by: cperciva (implicit)

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

11 years agoMFC r241119:
eadler [Wed, 10 Oct 2012 21:27:30 +0000 (21:27 +0000)]
MFC r241119:
Provide a generic way to disable devices at boot time

PR: kern/119202
Approved by: cperciva (implicit)

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

11 years agoMFC r241118:
eadler [Wed, 10 Oct 2012 21:21:54 +0000 (21:21 +0000)]
MFC r241118:
Implement the Sun/GNU extension of using a default
prefix when no arguments are supplied.

Approved by: cperciva (implicit)

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

11 years agoMFC r241117:
eadler [Wed, 10 Oct 2012 21:20:34 +0000 (21:20 +0000)]
MFC r241117:
add SG state type

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

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

11 years agoMFC r241414:
delphij [Wed, 10 Oct 2012 19:50:15 +0000 (19:50 +0000)]
MFC r241414:

Upgrade to 9.8.3-P4:

Prevents a lockup when queried a deliberately constructed combination
of records. [CVE-2012-5166]

For more information: https://kb.isc.org/article/AA-00801

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

11 years agorpc: fix __rpc_getconfip
pfg [Wed, 10 Oct 2012 19:08:46 +0000 (19:08 +0000)]
rpc: fix __rpc_getconfip

__rpc_getconfip is supposed to return the first netconf
entry supporting tcp or udp, respectively. The code will
currently return the *last* entry, plus it will leak
memory when there is more than one such entry.

Tested by: David Wolfskill
Obtained from: Bull GNU/linux NFSv4 Project (libtirpc)

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

11 years agoMFC r241163:
dim [Wed, 10 Oct 2012 19:07:56 +0000 (19:07 +0000)]
MFC r241163:

Pull in r164717 from upstream clang trunk:

  Allow -MF to be used in combination with -E -M or -E -MM.

This should help with building the lang/ghc port.

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

11 years agoMFC r240695:
jimharris [Tue, 9 Oct 2012 20:05:19 +0000 (20:05 +0000)]
MFC r240695:

Add constants for programming interfaces for NVM/solid state storage
controller sub-class code.

Reference:  PCI Code and ID Assignment Specification Rev 1.2

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

11 years agoMFC r240901:
jimharris [Tue, 9 Oct 2012 19:55:12 +0000 (19:55 +0000)]
MFC r240901:

Use CAM_SEL_TIMEOUT and CAM_DEV_NOT_THERE to report missing targets or
LUNs respectively.  This removes a huge number of error messages
from CAM during bus scans.

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

11 years agoMFC r240900:
jimharris [Tue, 9 Oct 2012 19:53:15 +0000 (19:53 +0000)]
MFC r240900:

Specify MTX_RECURSE for the controller's io_lock.  Without it, tws(4)
immediately panics on boot with INVARIANTS enabled.  The driver already
clearly expects to be able to recurse on this mutex - the main I/O path
is always recursing on this lock.

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

11 years agoMFC r240879
sbruno [Tue, 9 Oct 2012 03:41:59 +0000 (03:41 +0000)]
MFC r240879

This patch fixes a nit in the em, lem, and igb driver statistics.  Increment
adapter->dropped_pkts instead of if_ierrors because if_ierrors is
overwritten by hw stats collection.

Submitted by: Andrew Boyer <aboyer@averesystems.com>
Reviewed by: Jack F Vogel <jfv@freebsd.org>

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

11 years agoUpdate MAKE_VERSION for r237100.
obrien [Tue, 9 Oct 2012 02:52:56 +0000 (02:52 +0000)]
Update MAKE_VERSION for r237100.

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

11 years agoMFC: r240902
rmacklem [Mon, 8 Oct 2012 12:59:09 +0000 (12:59 +0000)]
MFC: r240902
Attila Bogar reported a bug in mountd when multiple export
entries with different security flavors are in the exports(5)
file. For that case, mountd replies with the security flavors
of the last entry and not the correct one for the client host.
This patch fixes that by storing separate copies of the flavors
for each host/net case, plus a default one for the case where
no hosts/nets are specified on an entry in the exports(5) file.
Unlike the patch in the PR, it replies with the security flavors
for the entry instead of merging the security flavors for all
the entries and replying with that.

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

11 years agoMFC r241218:
dougb [Mon, 8 Oct 2012 05:50:58 +0000 (05:50 +0000)]
MFC r241218:

Remove references to CVS so that people will stop bringing it up

For -p:
The localtime update should have been excluded in the first place

The make.conf comparison has been OBE for some time now, and there
is no src.conf equivalent to share/examples/make.conf, so remove
the whole thing.

Update copyright

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

11 years agoMFC 239955-239957:
jhb [Sun, 7 Oct 2012 21:32:41 +0000 (21:32 +0000)]
MFC 239955-239957:
Cleanups and fixes for building firmware modules into a kernel:
- Add common rules for building firmware object files (NORMAL_FW to run
  uudecode, and NORMAL_FWO to use ld to build the .fwo file) and use those
  instead of explicit ld/uudecode invocations in sys/conf/files.  Apart from
  increasing readability, this makes it possible to adjust the flags used for
  firmware objects in one place.
- Similar to how r171350 fixed linking of kernel modules containing
  firmware objects by adding --no-warn-mismatch to the linker flags,
  add --no-warn-mismatch when linking firmware objects (*.fwo) as
  well as to the link of the main kernel file.  This permits firmware
  modules to be statically linked into an ia64 kernel.

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

11 years agoMFC 239440,239519:
jhb [Sun, 7 Oct 2012 18:57:29 +0000 (18:57 +0000)]
MFC 239440,239519:
Refine the changes made in r208212 to avoid bogus failures from
if_delmulti() when clearing the configuration for a subinterface when
the parent interface is being detached.  The current code was still
triggering an assertion in if_delmulti() due to the parent interface being
partially detached.  Fix this by not calling if_delmulti() at all if the
parent interface is being detached.  Warn if if_delmulti() fails when the
parent is not being detached (but similar to 208212, still proceed with
tearing down the vlan state).

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

11 years agoMFC 239354:
jhb [Sun, 7 Oct 2012 18:47:53 +0000 (18:47 +0000)]
MFC 239354:
Allow static DMA allocations that allow for enough segments to do page-sized
segments for the entire allocation to use kmem_alloc_attr() to allocate
KVM rather than using kmem_alloc_contig().  This avoids requiring
a single physically contiguous chunk in this case.

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

11 years agoMFC 240962:
jhb [Sun, 7 Oct 2012 18:41:48 +0000 (18:41 +0000)]
MFC 240962:
Grab the mfi_config_lock while performing a MFI_DCMD_CFG_FOREIGN_IMPORT
request on behalf of a user utility.

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

11 years agoMFC 239335:
jhb [Sun, 7 Oct 2012 18:37:47 +0000 (18:37 +0000)]
MFC 239335:
Remove D_NEEDGIANT from dead_devsw.  biofinish() (and thus dead_strategy)
does not need Giant.

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

11 years agoMFC 226961,239951:
jhb [Sun, 7 Oct 2012 18:31:01 +0000 (18:31 +0000)]
MFC 226961,239951:
Add a -h flag similar to the -h flag for ln to force mv(1) to treat a
symbolic link to a directory for the target as a symbolic link instead of
a directory.  This makes it possible to atomically update a symbolic
link using rename().

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

11 years agoMFC 239906:
jhb [Sun, 7 Oct 2012 18:25:33 +0000 (18:25 +0000)]
MFC 239906:
Clarify that bus_dma does not stall future load requests once a load is
deferred.  The caller is required to enforce that if that is desired.

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

11 years agoMFC 240132:
jhb [Sun, 7 Oct 2012 18:22:59 +0000 (18:22 +0000)]
MFC 240132:
When WIFCONTINUED was added, the number of "first" macros grew from
three to four.

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

11 years agoMFC 239913:
jhb [Sun, 7 Oct 2012 18:18:59 +0000 (18:18 +0000)]
MFC 239913:
Attach interrupt handlers during attach instead of during the first time
the interface is brought up.  Without this, the boot time interrupt
round-robin assignment does not think the allocated interrupt resources
are active and leaves them assigned to CPU 0.

While here, add descriptive tags to each interrupt handler when MSI-X
is used.

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

11 years agoMFC r241141, r241165, r241165, r241181;
pfg [Sun, 7 Oct 2012 05:11:29 +0000 (05:11 +0000)]
MFC  r241141, r241165, r241165,  r241181;

rpc: convert all uid and gid variables to u_int.

Follow a similar change in Solaris and linux where the uid and
gid variables were made more similar to what the system expects.
In our case we use u_int which is what XDR can manage,

Reviewed by: bde

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

11 years agoMFC r240343: rc.d/power_profile: use recently added Cmax for cx_lowest
avg [Sat, 6 Oct 2012 19:06:09 +0000 (19:06 +0000)]
MFC r240343: rc.d/power_profile: use recently added Cmax for cx_lowest

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

11 years agoMFC r240349: zfs boot: add a size check for a value in fzap_lookup
avg [Sat, 6 Oct 2012 19:01:20 +0000 (19:01 +0000)]
MFC r240349: zfs boot: add a size check for a value in fzap_lookup

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

11 years agoMFC r240650: hwpmc amd_pcpu_fini: fix a bug in code locked under DEBUG
avg [Sat, 6 Oct 2012 18:59:12 +0000 (18:59 +0000)]
MFC r240650: hwpmc amd_pcpu_fini: fix a bug in code locked under DEBUG

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

11 years agoMFC r240632: zfs: correctly calculate dn_bonuslen for saving SAs to disk
avg [Sat, 6 Oct 2012 18:57:27 +0000 (18:57 +0000)]
MFC r240632:  zfs: correctly calculate dn_bonuslen for saving SAs to disk

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

11 years agoMFC r240631: zfs: allow both DEBUG and ZFS_DEBUG to be defined on
avg [Sat, 6 Oct 2012 18:55:32 +0000 (18:55 +0000)]
MFC r240631: zfs: allow both DEBUG and ZFS_DEBUG to be defined on
command line

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

11 years agoMFC r240347: zfs boot: fix/replace fzap_rlookup implementation
avg [Sat, 6 Oct 2012 18:53:48 +0000 (18:53 +0000)]
MFC r240347: zfs boot: fix/replace fzap_rlookup implementation

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

11 years agoMFC r240629: g_disk_flushcache definitely should not be traced under
avg [Sat, 6 Oct 2012 18:51:43 +0000 (18:51 +0000)]
MFC r240629: g_disk_flushcache definitely should not be traced under
G_T_TOPOLOGY

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

11 years agoMFC r240345: zfs: fix sa_modify_attrs handling of variable-sized
avg [Sat, 6 Oct 2012 18:49:18 +0000 (18:49 +0000)]
MFC r240345: zfs: fix sa_modify_attrs handling of variable-sized
attributes

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

11 years agoMFC r240342: boot: file_loadraw should strdup name argument
avg [Sat, 6 Oct 2012 18:47:15 +0000 (18:47 +0000)]
MFC r240342: boot: file_loadraw should strdup name argument

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

11 years agoMFC r240348: zfs boot: print only an attribute name in fzap_list
avg [Sat, 6 Oct 2012 18:45:13 +0000 (18:45 +0000)]
MFC r240348: zfs boot: print only an attribute name in fzap_list

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

11 years agoMFC r240341,240637: loader/i386: replace ugly inb/outb
avg [Sat, 6 Oct 2012 18:42:02 +0000 (18:42 +0000)]
MFC r240341,240637: loader/i386: replace ugly inb/outb
re-implementations with cpufunc.h

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