]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
13 years agoMFC 216943, 216945:
emaste [Tue, 11 Jan 2011 00:58:49 +0000 (00:58 +0000)]
MFC 216943, 216945:

  Handle failure from ftpd_popen in statfilecmd().

  Make format string a string literal.  (Discovered by clang.)

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

13 years agoMFC r217226:
yongari [Mon, 10 Jan 2011 19:43:16 +0000 (19:43 +0000)]
MFC r217226:
  Apply DMA address space restriction to controllers that have 4GB
  DMA boundary bug and runs with PCI-X mode.  watchdog timeout was
  observed on BCM5704 which lives behind certain PCI-X bridge(e.g.
  AMD 8131 PCI-X bridge).  It's still not clear whether the root
  cause came from that PCI-X bridge or not. The watchdog timeout
  indicates the issue is in TX path. If the bridge reorders TX
  mailbox write accesses it would generate all kinds of problems but
  I'm not sure.  This should be revisited.

  Early MFC requested by re@ for inclusion in 8.2-RC2/7.4-RC2.

  Tested by: Michael L. Squires (mikes <> siralan dot org)

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

13 years agoMFC: 217169
deischen [Mon, 10 Jan 2011 04:48:18 +0000 (04:48 +0000)]
MFC: 217169
  Make sure to always do source address selection on
  an unbound socket, regardless of any multicast options.
  If an address is specified via a multicast option, then
  let it override normal the source address selection.

  This fixes a bug where source address selection was
  not being performed when multicast options were present
  but without an interface being specified.

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

13 years agoMFC r216855:
bz [Sat, 8 Jan 2011 22:08:23 +0000 (22:08 +0000)]
MFC r216855:

  Move the increment operation under the lock and split the condition
  variable into two so that we can see on which one we are waiting.
  This might also more properly propagate the update of the
  flowclean_cycles flag and avoid "hangs" people were seeing.

  Suggested by: rwatson [1]
  Sponsored by: ISPsystem [1]
  Reviewed by:  julian [1]
  Updated by:   Mikolaj Golub (to.my.trociny gmail.com)
  Tested by:    Mikolaj Golub (to.my.trociny gmail.com)

  [1] Early 2010, initial version.

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

13 years agoMFC r216859:
bz [Sat, 8 Jan 2011 21:37:43 +0000 (21:37 +0000)]
MFC r216859:
  Use NULL rather than 0 to invalidate a pointer.

  Rather than duplicating the LLE_FREE_LOCKED() macro code in LLE_FREE(),
  call it directly (like we do for the RT_* macros).

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

13 years agoMFC r216856:
bz [Sat, 8 Jan 2011 21:02:27 +0000 (21:02 +0000)]
MFC r216856:

  Print the vnet pointer under DDB when iterating over flowtables of each
  virtual network stack instance.

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

13 years agoMFC r216861:
bz [Sat, 8 Jan 2011 19:49:27 +0000 (19:49 +0000)]
MFC r216861:

  Mfp4 CH177924:

  Add and export constants of array sizes of jail parameters as compiled into
  the kernel.
  This is the least intrusive way to allow kvm to read the (sparse) arrays
  independent of the options the kernel was compiled with.

  Reviewed by:  jhb (originally)
  MFC after:    1 week
  Sponsored by: The FreeBSD Foundation
  Sponsored by: CK Software GmbH

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

13 years agoMove the uint64_t to were the padding was before, rather than before all
bz [Sat, 8 Jan 2011 02:23:59 +0000 (02:23 +0000)]
Move the uint64_t to were the padding was before, rather than before all
pad.  Keep them to the end so that the two pad[]s are kept together.
This should restore ABI as well on platforms, where
   sizeof(void *) != sizeof(uint64_t)
after r216968, r217018.

Reviewed by: gnn, jhb, lstewart

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

13 years agoMFC: r216700
rmacklem [Sat, 8 Jan 2011 01:11:14 +0000 (01:11 +0000)]
MFC: r216700
Modify the experimental NFS server so that it uses LK_SHARED
for RPC operations when it can. Since VFS_FHTOVP() currently
always gets an exclusively locked vnode and is usually called
at the beginning of each RPC, the RPCs for a given vnode will
still be serialized. As such, passing a lock type argument to
VFS_FHTOVP() would be preferable to doing the vn_lock() with
LK_DOWNGRADE after the VFS_FHTOVP() call.

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

13 years agoMFC: r216693
rmacklem [Fri, 7 Jan 2011 20:31:47 +0000 (20:31 +0000)]
MFC: r216693
Add an argument to nfsvno_getattr() in the experimental
NFS server, so that it can avoid calling VOP_ISLOCKED()
when the vnode is known to be locked. This will allow
LK_SHARED to be used for these cases, which happen to
be all the cases that can use LK_SHARED. This does not
fix any bug, but it reduces the number of calls to
VOP_ISLOCKED() and prepares the code so that it can be
switched to using LK_SHARED in a future patch.

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

13 years agoMFC: r216692
rmacklem [Fri, 7 Jan 2011 20:07:30 +0000 (20:07 +0000)]
MFC: r216692
Simplify vnode locking in the expeimental NFS server's
readdir functions. In particular, get rid of two bogus
VOP_ISLOCKED() calls. Removing the VOP_ISLOCKED() calls
is the only actual bug fixed by this patch.

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

13 years agoMFC r216983:
jpaetzel [Fri, 7 Jan 2011 18:32:03 +0000 (18:32 +0000)]
MFC r216983:
Fix typo in comment.

Approved by: Warner Losh <imp@FreeBSd.org>

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

13 years agoMFC r216944,r216963,r216960: Improve the stability of the i386/XEN pmap
cperciva [Fri, 7 Jan 2011 14:03:28 +0000 (14:03 +0000)]
MFC r216944,r216963,r216960: Improve the stability of the i386/XEN pmap
code by correctly protecting page mapping queue variables within a
critical section and by adding ham-fisted locking to pmap.c.

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

13 years agoMFC r216832: Make -S functional
brian [Fri, 7 Jan 2011 08:42:58 +0000 (08:42 +0000)]
MFC r216832: Make -S functional

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

13 years agoMFC: r216940
jkim [Thu, 6 Jan 2011 16:25:08 +0000 (16:25 +0000)]
MFC: r216940

Fix parameters for wakeup(9) and tsleep(9).

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

13 years agoMFC r216843-216847: Fix i386_set_ldt on i386/XEN.
cperciva [Thu, 6 Jan 2011 15:26:06 +0000 (15:26 +0000)]
MFC r216843-216847: Fix i386_set_ldt on i386/XEN.

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

13 years agoMFC r216812: Implement xenpic_dynirq_disable_intr and thereby avoid a
cperciva [Thu, 6 Jan 2011 14:19:29 +0000 (14:19 +0000)]
MFC r216812: Implement xenpic_dynirq_disable_intr and thereby avoid a
kernel panic when a disk is detached from a XEN system.

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

13 years agoMFC r216790: Fix Xen console spew: "no input to read" != an infinite
cperciva [Thu, 6 Jan 2011 13:21:38 +0000 (13:21 +0000)]
MFC r216790: Fix Xen console spew: "no input to read" != an infinite
supply of \0 bytes.

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

13 years agoMFC r216762: Don't panic when exiting gstat or 'mdconfig -l'
cperciva [Thu, 6 Jan 2011 13:09:02 +0000 (13:09 +0000)]
MFC r216762: Don't panic when exiting gstat or 'mdconfig -l'

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

13 years agoMFC r216703: Make i386/XEN not panic when mlock(2) is used.
cperciva [Thu, 6 Jan 2011 13:02:29 +0000 (13:02 +0000)]
MFC r216703: Make i386/XEN not panic when mlock(2) is used.

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

13 years agoMFC r200288, r200346, r200352: Make minidump work on i386/XEN.
cperciva [Thu, 6 Jan 2011 12:34:18 +0000 (12:34 +0000)]
MFC r200288, r200346, r200352:  Make minidump work on i386/XEN.

Note that r200288 and r200346 touched i386/i386/dump_machdep.c,
but in that file r200346 was a back-out of r200288; so the fact
that dump_machdep.c has moved to the x86 tree is not a problem.

In the !XEN case the files under i386/i386 are unchanged after
preprocessing.

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

13 years agoMFC r216919:
mm [Thu, 6 Jan 2011 09:34:22 +0000 (09:34 +0000)]
MFC r216919:

MFp4 186485, 186859:
Fix a race by defining two tasks in the zio structure
as we can still be returning from issue task when interrupt task is used.

Reviewed by: pav
Approved by: pav

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

13 years agoMFC: 215409
gnn [Wed, 5 Jan 2011 19:33:16 +0000 (19:33 +0000)]
MFC: 215409

Fix an error in our results printing.

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

13 years agoMFC: 213327
gnn [Wed, 5 Jan 2011 19:31:52 +0000 (19:31 +0000)]
MFC: 213327

Change the output of mctest to give a summary of the results instead
of printing a long list.

Add a default base port, and default mulitcast address to the
runner script.

Add support for specifying a different local and remote interface
in the runner script.

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

13 years agoMFC r216892 from head (Which is an MFi386 of r216012 by kib)
gavin [Wed, 5 Jan 2011 19:26:30 +0000 (19:26 +0000)]
MFC r216892 from head (Which is an MFi386 of r216012 by kib)

Calling fill_fpregs() for curthread is legitimate, and ELF coredump
does this.

Discussed with: kib

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

13 years agoUpdate netstat to handle uint64_t based stats for -T.
gnn [Wed, 5 Jan 2011 19:25:31 +0000 (19:25 +0000)]
Update netstat to handle uint64_t based stats for -T.

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

13 years agoFix binary compatability for netstats across the -x/-T changes
gnn [Wed, 5 Jan 2011 18:52:30 +0000 (18:52 +0000)]
Fix binary compatability for netstats across the -x/-T changes
that have been previously MFC'd.

Reviewed by: rwatson, bz

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

13 years agoMFC r216799:
kib [Wed, 5 Jan 2011 13:50:37 +0000 (13:50 +0000)]
MFC r216799:
Move the increment of vm object generation count into
vm_object_set_writeable_dirty(). Merge two loops in
vm_object_page_clean(), doing the removal of write permission and
cleaning in the same loop. Clear the OBJ_MIGHTBEDIRTY flag after the
cleaning loop, not before.

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

13 years agoMFC: r216820
marius [Wed, 5 Jan 2011 13:26:26 +0000 (13:26 +0000)]
MFC: r216820

- Add CPUTYPE support for sparc64. The net result is that it's now possible
  to let the compiler optimize for the famility of UltraSPARC-III CPUs as the
  default already was to optimize for UltraSPARC-I/II and generating generic
  64-bit V9 is mainly for reference purposes. At least for SPARC64-V CPUs
  code optimized for UltraSPARC-I/II still is the most performant one.
  Thanks go to Michael Moll for testing SPARC64-V.
- Move a booke MACHINE_CPU bit into the right section.

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

13 years agoMFC r216794:
kib [Wed, 5 Jan 2011 12:47:42 +0000 (12:47 +0000)]
MFC r216794:
Add reporting of GEOM::candelete BIO_GETATTR for md(4) and geom_disk(4).
Non-zero value of attribute means that device supports BIO_DELETE.

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

13 years agoMFC r216793:
kib [Wed, 5 Jan 2011 12:45:11 +0000 (12:45 +0000)]
MFC r216793:
Add sysctl vm.md_malloc_wait, non-zero value of which switches malloc-backed
md(4) to using M_WAITOK malloc calls.

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

13 years agoMFC: r216802
marius [Wed, 5 Jan 2011 12:27:52 +0000 (12:27 +0000)]
MFC: r216802

- Move the macros for generating load and store instructions to asmacros.h
  so they can be shared by different source files and extend them by a
  variant for atomic compare and swap.
- Consistently use EMPTY.

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

13 years agoMFC: r216801
marius [Wed, 5 Jan 2011 12:20:53 +0000 (12:20 +0000)]
MFC: r216801

Rename the "xor" parameter to "xorval" as the former is a reserved keyword
in C++.

Submitted by: gahr

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

13 years agoMFC: r216628
marius [Wed, 5 Jan 2011 12:05:27 +0000 (12:05 +0000)]
MFC: r216628

Extend the hack of r182730 to trick GAS/GCC into compiling access to
STICK/STICK_COMPARE independently of the selected instruction set by
TICK_COMPARE so tick.c once again can be compiled with gcc -mcpu=v9
for reference purposes.

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

13 years agoMFC: r216623
marius [Wed, 5 Jan 2011 11:46:17 +0000 (11:46 +0000)]
MFC: r216623

- Add a comment regarding the fact that as documented in the datasheet
  manual 1000BASE-T modes of DP83865 only work together with other National
  Semiconductor PHYs.
- Spell 10BASE-T correctly
- Remove some redundant braces.

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

13 years agoMFC: r216085
marius [Wed, 5 Jan 2011 11:43:17 +0000 (11:43 +0000)]
MFC: r216085

- Remove the remaining support for older (in this case pre-7.0-RELEASE)
  versions of FreeBSD. In fact we are already missing a lot of conditional
  code necessary to support older versions of FreeBSD, including alternatives
  for vital functionality not yet provided by the respective subsystem back
  then (see for example r199663). So this change shouldn't actually break
  this driver on versions of FreeBSD that were supported before. Besides,
  this driver also isn't maintained as an multi-release version outside of
  the main repository, so removing the conditional code shouldn't be a
  problem in that regard either.
- Sprinkle some more const on tables.

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

13 years agoMFC: r216891
marius [Wed, 5 Jan 2011 11:29:07 +0000 (11:29 +0000)]
MFC: r216891

Extend the section in which interrupts are disabled in the TLB demap
functions, otherwise if we get preempted after checking whether a certain
pmap is active on the current CPU but before disabling interrupts we might
operate on an outdated state as the pmap might have been deactivated in
the meantime. As the same issue may arises when the TLB demap function is
interrupted by a TLB demap IPI, just entering a critical section before
the check isn't sufficient so we have to fully disable interrupts instead.

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

13 years agoMerge r216045 from head:
gavin [Tue, 4 Jan 2011 20:15:16 +0000 (20:15 +0000)]
Merge r216045 from head:

   Support the Falcom Twist USB GSM/GPRS modem in uftdi(4)

PR: usb/151862
Submitted by: Alessandro de Manzano <demanzano dqmicro.it>

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

13 years agoMFC: 215434, 215724
gnn [Tue, 4 Jan 2011 18:27:00 +0000 (18:27 +0000)]
MFC: 215434, 215724

Add new, per connection, statistics for TCP, including:
Retransmitted Packets
Zero Window Advertisements
Out of Order Receives

These statistics are available via the -T argument to
netstat(1).

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

13 years agoMFC r211397:
bcr [Tue, 4 Jan 2011 17:18:53 +0000 (17:18 +0000)]
MFC r211397:

Fix typos, spelling, formatting and mdoc mistakes found by Nobuyuki while
translating these manual pages.  Minor corrections by me.

Submitted by:   Nobuyuki Koganemaru <n-kogane@syd.odn.ne.jp>

Reminded by the following
PR:             docs/153615
Submitted by:   Warren Block (wblock at wonkity dot com)

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

13 years agoMFC: 215434, 215724
gnn [Tue, 4 Jan 2011 16:51:24 +0000 (16:51 +0000)]
MFC: 215434, 215724

Add new, per connection, statistics for TCP, including:
Retransmitted Packets
Zero Window Advertisements
Out of Order Receives

These statistics are available via the -T argument to
netstat(1).

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

13 years agoMFC 216769:
jhb [Tue, 4 Jan 2011 15:09:42 +0000 (15:09 +0000)]
MFC 216769:
Start sentences on a new line to ease life for translators.  Tweak the
wording in a few places.

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

13 years agoMFC r207745 (trasz):
mm [Mon, 3 Jan 2011 19:23:43 +0000 (19:23 +0000)]
MFC r207745 (trasz):

Enforce RLIMIT_FSIZE in ZFS.

Note: original implementation without vn_rlimit_fsize (pre-r207662)

Reviewed by: trasz
Approved by: pjd

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

13 years agoMFC 216679:
jhb [Mon, 3 Jan 2011 17:57:44 +0000 (17:57 +0000)]
MFC 216679:
Drop the icu_lock spinlock while pausing briefly after masking the
interrupt in the I/O APIC before moving it to a different CPU.

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

13 years agoMFC r210144 (originally committed by imp):
lstewart [Sun, 2 Jan 2011 13:12:24 +0000 (13:12 +0000)]
MFC r210144 (originally committed by imp):

Put warnings out to stderr rather than stdout.

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

13 years agoMFC r216824:
bschmidt [Sun, 2 Jan 2011 09:03:53 +0000 (09:03 +0000)]
MFC r216824:
The RX path is missing a few bus_dmamap_*() calls, this results in
modification of memory which was already free'd and eventually in:
wpi0: could not map mbuf (error 12)
wpi0: wpi_rx_intr: bus_dmamap_load failed, error 12
and an usuable device.

PR: kern/144898

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

13 years agoMFC r216524:
kib [Sat, 1 Jan 2011 08:47:38 +0000 (08:47 +0000)]
MFC r216524:
Inform a compiler which asm statements in the x86 implementation of
atomics change eflags.

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

13 years agoMFC r216848:
bz [Fri, 31 Dec 2010 18:16:15 +0000 (18:16 +0000)]
MFC r216848:

  Happy New Year 2011.

  Approved by:  core (kib)

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

13 years agoMFC: r216510
rmacklem [Fri, 31 Dec 2010 14:03:57 +0000 (14:03 +0000)]
MFC: r216510
Fix two vnode locking problems in nfsd_recalldelegation() in the
experimental NFSv4 server. The first was a bogus use of VOP_ISLOCKED()
in a KASSERT() and the second was the need to lock the vnode for the
nfsrv_checkremove() call. Also, delete a "__unused" that was bogus,
since the argument is used.

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

13 years agoMFC r216242:
bschmidt [Fri, 31 Dec 2010 12:59:17 +0000 (12:59 +0000)]
MFC r216242:
Implement NdisGetRoutineAddress and MmGetSystemRoutineAddress used in
newer Ralink drivers.

Submitted by: Paul B Mahol <onemda at gmail.com>

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

13 years agoMFC r216050:
bschmidt [Fri, 31 Dec 2010 12:53:07 +0000 (12:53 +0000)]
MFC r216050:
Add a dummy for IoOpenDeviceRegistryKey().

With that change the Atheros 9xxx driver is actually usable and does not
panic anymore.

Submitted by: Paul B Mahol <onemda at gmail.com>

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

13 years agoMFC r216049:
bschmidt [Fri, 31 Dec 2010 12:48:43 +0000 (12:48 +0000)]
MFC r216049:
Some drivers rely on the existence of certain keys. The Atheros 9xxx
driver for example requests the NetCfgInstanceId but doesn't check the
returned status code and will happily access random memory instead.

Submitted by: Paul B Mahol <onemda at gmail.com>

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

13 years agoMFC r216477,r216478,r216479,r216494,r216721,r216722:
pjd [Thu, 30 Dec 2010 09:46:45 +0000 (09:46 +0000)]
MFC r216477,r216478,r216479,r216494,r216721,r216722:

r216477:

Log the fact of launching and include protocol version number.

r216478:

Don't ignore errors from remote requests.

r216479:

Improve problems logging.

r216494:

The 'ret' variable is of type ssize_t and we use proper format for it (%zd), so
no (bogus) cast is needed.

r216721:

When node-specific configuration is missing in resource section, provide
more useful information. Instead of:

hastd: remote address not configured for resource foo

Print the following:

No resource foo configuration for this node (acceptable node names: freefall, freefall.freebsd.org, 44333332-4c44-4e31-4a30-313920202020).

r216722:

Detect when resource is configured more than once.

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

13 years agoMFC r216565,r216631,r216632,r216633,r216774:
pjd [Thu, 30 Dec 2010 09:45:26 +0000 (09:45 +0000)]
MFC r216565,r216631,r216632,r216633,r216774:

r216565:

Reduce lock scope a little.

r216631:

On error, unbusy file system and jump to the end, so we won't try to unlock
NULL *vpp.

Reviewed by: kib

r216632:

- Move pubflag and lockflag handling from nfsrv_fhtovp() to nfs_namei() -
  this is the only place that is different from all the other nfsrv_fhtovp()
  consumers.
  This simplifies nfsrv_fhtovp() a bit and also eliminates one
  vn_lock/VOP_UNLOCK() cycle in case of NFSv3.
- Implement NFSRV_FLAG_BUSY flag for nfsrv_fhtovp() that tells it to leave
  mount point busy.

Reviewed by: kib

r216633:

Use newly added NFSRV_FLAG_BUSY flag for nfsrv_fhtovp() to keep mount point
busy. This fixes a race where we can pass invalid mount point to VFS_VGET()
via vp->v_mount when exported file system was forcibly unmounted between
nfsrv_fhtovp() and VFS_VGET().

Reviewed by: kib

r216774:

ZFS might not return monotonically increasing directory offset cookies,
so turn off UFS-specific hack that assumes so in ZFS case.
Before the change we can miss returning some directory entries to a
NFS client.

I believe that the hack should be moved to ufs_readdir(), but until we find
somebody who will do it, turn it off for ZFS in NFS server code.

Submitted by: rmacklem
Discussed with: rmacklem, mckusick

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

13 years agoMFC r203802:
pjd [Thu, 30 Dec 2010 09:32:39 +0000 (09:32 +0000)]
MFC r203802:
      - Implement -q option for pgrep(1).
- Add regression test to test -q option.

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

13 years agoMFC r216725:
simon [Wed, 29 Dec 2010 12:25:45 +0000 (12:25 +0000)]
MFC r216725:

Fix deprecated warning about -L which said -i was deprecated.

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

13 years agoMFC: r216691
rmacklem [Wed, 29 Dec 2010 02:54:41 +0000 (02:54 +0000)]
MFC: r216691
Since VOP_READDIR() for ZFS does not return monotonically
increasing directory offset cookies, disable the UFS related
loop that skips over directory entries at the beginning of
the block for the experimental NFS server. This loop is
required for UFS since it always returns directory entries
starting at the beginning of the block that
the requested directory offset is in. In discussion with pjd@
and mckusick@ it seems that this behaviour of UFS should maybe
change, with this fix being an interim patch until then.
This patch only fixes the experimental server, since pjd@ is
working on a patch for the regular server.

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

13 years agoMFC 203532: Fix gcore so that it can have the '-s' flag without hanging.
jhb [Tue, 28 Dec 2010 18:56:55 +0000 (18:56 +0000)]
MFC 203532: Fix gcore so that it can have the '-s' flag without hanging.

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

13 years agoMFC r213265:
oleg [Tue, 28 Dec 2010 11:34:59 +0000 (11:34 +0000)]
MFC r213265:

Fix handling of initial credit for an idle pipe.  This fixes the bug where
setting bw > 1 MTU/tick resulted in infinite bandwidth if io_fast=1

PR: kern/147245, kern/148429
Obtained from: Riccardo Panicucci

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

13 years agoMFC r216432:
kevlo [Tue, 28 Dec 2010 02:45:24 +0000 (02:45 +0000)]
MFC r216432:
Fix a memory leak on the error condition

Reviewed by: rpaulo

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

13 years agoMFC r216431:
kevlo [Tue, 28 Dec 2010 02:43:28 +0000 (02:43 +0000)]
MFC r216431:
Check return value of malloc().

Reviewed by: hselasky

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

13 years agoMFC r216106:
kevlo [Tue, 28 Dec 2010 02:25:32 +0000 (02:25 +0000)]
MFC r216106:
Don't error out while searching for empty directories.

Submitted by: Bakul Shah <bakul at bitblocks dot com>

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

13 years agoMerge three revisions from head:
wollman [Mon, 27 Dec 2010 23:46:47 +0000 (23:46 +0000)]
Merge three revisions from head:

  r214583 | wollman | 2010-10-30 22:36:05 -0400 (Sat, 30 Oct 2010) | 6 lines
  Changed paths:
     M /head/usr.bin/locate/locate/locate.rc
     M /head/usr.bin/locate/locate/updatedb.sh

  Make it possible to exclude directories by name no matter where they
  are in the filesystem from the locate database.  By default, exclude
  ".zfs" directories, as users who who have set snapdir=visible and are
  taking frequent snapshots most likely do not want the snapshots
  included in the locate database.

  ------------------------------------------------------------------------
  r214613 | wollman | 2010-10-31 21:51:47 -0400 (Sun, 31 Oct 2010) | 7 lines
  Changed paths:
     M /head/usr.bin/locate/locate/updatedb.sh

  jilles@ pointed out that using ${PRUNEDIRS:=".zfs"} in updatedb.sh
  made it impossible to override PRUNEDIRS to make it empty.  Use the
  non-colon form to only set PRUNEDIRS if it is completely unset.  (For
  parallelism, the other configuration defaults here could be done the
  same way, but that could be more obviously accomplished by disabling
  updatedb in periodic.conf, so leave them alone for now.)

  ------------------------------------------------------------------------
  r214615 | wollman | 2010-10-31 22:20:18 -0400 (Sun, 31 Oct 2010) | 6 lines
  Changed paths:
     M /head/usr.bin/locate/locate/updatedb.sh

  Style cleanup: make this look more like a 21st-century shell script
  and not something out of the early 1980s.  Make sure all error
  messages go to stderr, not stdout.  Since there's error-handling code
  to handle empty SEARCHPATHS and FILESYSTEMS, use the initialization
  form that allows this error to be diagnosed.  (hat tip: jilles@)

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

13 years ago- route(8) manual page update: no longer supports RTF_CLONING and
hrs [Mon, 27 Dec 2010 16:01:39 +0000 (16:01 +0000)]
- route(8) manual page update: no longer supports RTF_CLONING and
  RTF_LLINFO (MFC from r196833)

- Remove -cloning flag from network.subr[*]

PR: conf/144842 [*]
Approved by: re (bz)

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

13 years agoMFC r216513:
attilio [Mon, 27 Dec 2010 12:57:38 +0000 (12:57 +0000)]
MFC r216513:
Add Exar octal PCI UART.

Sponsored by: Sandvine Incorporated

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

13 years agoMFC r215868, 215918, 216266, 216298:
attilio [Mon, 27 Dec 2010 12:52:35 +0000 (12:52 +0000)]
MFC r215868, 215918, 216266, 216298:
- Advertise when the reboot came from a watchdog-induced reset
- Fix a bug where TCO_BOOT_STS was supposed to be cleared after
  TCO_SECOND_TO_STS
- Use macros for max and min value capping when re-arming the
  watchdog timeout

Sponsored by: Sandvine Incorporated

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

13 years agoMFC r215679:
attilio [Mon, 27 Dec 2010 12:39:24 +0000 (12:39 +0000)]
MFC r215679:
Add the ability for GDB to printout the thread name along with other thread
specific informations.
In order to achieve that, for both on-line debugging and core analysis,
a new member to PT_LWPINFO ptrace(2) interface is added and a new
ELF note (NT_THRMISC) as well.

Sponsored by: Sandvine Incorporated

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

13 years agoMFC r203548:
oleg [Mon, 27 Dec 2010 06:59:59 +0000 (06:59 +0000)]
MFC r203548:

Propagate the vlan events to the underlying interfaces/members so they
can do initialization of hw related features.

PR: kern/141646

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

13 years agoMFC r216249
thompsa [Sun, 26 Dec 2010 18:15:18 +0000 (18:15 +0000)]
MFC r216249

 Re-add a status check which sneaked out during r214804.
 This change can fix some USB error messages showing up
 during bootup.

Approved by: re (kib)

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

13 years agoMFC c216502:
tuexen [Sun, 26 Dec 2010 17:21:47 +0000 (17:21 +0000)]
MFC c216502:
Fix a flightsize bug related to the processing of PKTDRP reports.

Approved by: re

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

13 years agoMFC r216557:
bschmidt [Sun, 26 Dec 2010 14:09:06 +0000 (14:09 +0000)]
MFC r216557:
Fix panic while trying to use monitor mode. The iwn_cmd() calls issued by
iwn_config() want to msleep() on the mutex.

PR: kern/138427
Submitted by: Henry Hu <henry.hu.sh at gmail.com>
Approved by: re (kib)

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

13 years agoMFC r216453:
kib [Sun, 26 Dec 2010 13:57:05 +0000 (13:57 +0000)]
MFC r216453:
Add the missed 'p' flag to getopt() optstring argument.

Approved by: re (bz)

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

13 years agoMFC r216572:
kib [Sun, 26 Dec 2010 13:20:10 +0000 (13:20 +0000)]
MFC r216572:
Restore the ABI of struct kinfo_proc32 after r213536.

Approved by: re (bz)

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

13 years agoMFC r216454:
kib [Sun, 26 Dec 2010 13:14:36 +0000 (13:14 +0000)]
MFC r216454:
VOP_ISLOCKED() should not be used to determine if the vnode is locked.
Explicitely track the locked status of the vnode.

Approved by: re (bz)

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

13 years agoMFC r216469:
nwhitehorn [Wed, 22 Dec 2010 14:46:38 +0000 (14:46 +0000)]
MFC r216469:

Fix the overflowing livefs ISO by removing man pages from the HFS part of
the hybrid disk. This is a stopgap until a better solution can be found,
but lets the powerpc release build complete for the time being.

Approved by: re (kensmith)

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

13 years agoAdd the packages directories that will be used for the upcoming
kensmith [Wed, 22 Dec 2010 14:31:42 +0000 (14:31 +0000)]
Add the packages directories that will be used for the upcoming
8.2/7.4 releases.

Approved by: re (implicit)

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

13 years agoAdjust __FreeBSD_version to reflect we're past the point of branching
kensmith [Wed, 22 Dec 2010 14:29:42 +0000 (14:29 +0000)]
Adjust __FreeBSD_version to reflect we're past the point of branching
releng/8.2 in preparation for the FreeBSD 8.2 release.

Approved by: re (implicit)

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

13 years agoMisc. 8.1 -> 8.2 shifts as part of progress with FreeBSD 8.2 release.
kensmith [Wed, 22 Dec 2010 14:27:13 +0000 (14:27 +0000)]
Misc. 8.1 -> 8.2 shifts as part of progress with FreeBSD 8.2 release.

Approved by: re (implicit)

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

13 years agoAdjust the version of FreeBSD printed on the manual pages.
kensmith [Wed, 22 Dec 2010 14:25:56 +0000 (14:25 +0000)]
Adjust the version of FreeBSD printed on the manual pages.

Approved by: re (implicit)

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

13 years agoMFC c216495:
tuexen [Tue, 21 Dec 2010 10:43:51 +0000 (10:43 +0000)]
MFC c216495:

Bugfix: Take also the nr-mapping array into account when detecting
       gaps.
Approved by: re@

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

13 years agoMFC r216371:
thompsa [Tue, 21 Dec 2010 09:31:48 +0000 (09:31 +0000)]
MFC r216371:
 Fix race in devfs by using LIST_FIRST() instead of
 LIST_FOREACH_SAFE() when freeing the devfs private
 data entries.

Approved by: re (kib)

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

13 years agoAdd 2 missing bus_dmamap_sync() calls. Those fix random 'scan timeout',
bschmidt [Tue, 21 Dec 2010 09:16:42 +0000 (09:16 +0000)]
Add 2 missing bus_dmamap_sync() calls. Those fix random 'scan timeout',
'could not set power mode', 'device config failed' and other errors due
reading invalid memory.

Approved by: re (kib)
Obtained from: OpenBSD

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

13 years agoFix association on 5GHz channels. The device is initially configured using
bschmidt [Tue, 21 Dec 2010 09:14:59 +0000 (09:14 +0000)]
Fix association on 5GHz channels. The device is initially configured using
a 2GHz channel with appropriate flags set to sc->config. Due to not zeroing
sc->config for auth/assoc those flags are still set while trying to connect
on a 5GHz channel.

Approved by: re (kib)

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

13 years agoFix a panic while disabling the RF kill button, caller of the
bschmidt [Tue, 21 Dec 2010 09:13:24 +0000 (09:13 +0000)]
Fix a panic while disabling the RF kill button, caller of the
wpi_rfkill_resume() function will take care of the lock.

PR: kern/14489
Approved by: re (kib)

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

13 years agoMFC Xen-related commits r215470, r215472, r215525, r215663, r215813, r215819,
cperciva [Mon, 20 Dec 2010 20:39:49 +0000 (20:39 +0000)]
MFC Xen-related commits r215470, r215472, r215525, r215663, r215813, r215819,
r215844, r216041, r216241, r216280, r216382, and r216385.

* Make blkfront not advertise a larger maximum I/O size than it can handle
  for unaligned data (r216241)
* Correctly reserve CPU #0's DPCPU pages (r216041)
* Make machdep.independent_wallclock do what it claims (r216382)
* Don't round xen timecounter to the nearest tick (r215663), but decrease
  its frequency to avoid wrapping at ~4.3s (r216385)
* Remove debugging code which caused a massing slowdown in fork-heavy
  workloads (r215813)
* Add a missing page table flush before invalidating TLBs in pmap_qremove
  (r215819+215844)
* In pmap_release, don't unpin pages which weren't pinned (r215525) and don't
  KASSERT page mappings which don't exist (r215470); but do pmap_qremove all
  the relevant pages (r215472)
* Don't unmask an event channel until after we register the interrupt handler
  for it (r216280)

Approved by: re (rwatson)

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

13 years agoRecord merge-info for r216355,216364 previously merged as r216573.
bz [Mon, 20 Dec 2010 20:25:42 +0000 (20:25 +0000)]
Record merge-info for r216355,216364 previously merged as r216573.

Approved by: re (kib)

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

13 years agoMFC 216504:
jhb [Mon, 20 Dec 2010 17:08:22 +0000 (17:08 +0000)]
MFC 216504:
Add back a bounds check on valid idle priorities that was lost in an
earlier commit.  While here, move the thread lock down in rtp_to_pri().
It is not needed for all of the priority value checks and the computation
of newpri.

Approved by: re (kib)

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

13 years agoPull svn:mergeinfo up from subdirectories and files onto etc/ where it
dougb [Sun, 19 Dec 2010 21:51:11 +0000 (21:51 +0000)]
Pull svn:mergeinfo up from subdirectories and files onto etc/ where it
belongs.

Approved by: re (kib)

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

13 years agoFix __retval vs. retval confusion: retval is meant to store the (userland)
joerg [Sun, 19 Dec 2010 21:33:28 +0000 (21:33 +0000)]
Fix __retval vs. retval confusion: retval is meant to store the (userland)
pointer where data is to be returned by ibask() (currently unimplemented),
while __retval holds the value returned by the libgpib ibfoo() functions.

The confusion resulted in the ibfoo() functions returning an uninitialized
value except in situations where the GPIB activity has been terminated
abnormally.

Implement more of __ibsta: END and SRQI status bits (taken out of the
uPD7210 IRQ status).

Approved by: re (kib)

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

13 years agoMFC r216187:
dougb [Sun, 19 Dec 2010 20:12:17 +0000 (20:12 +0000)]
MFC r216187:

Add MAKEDEV.8

Submitted by: Alex Kozlov <spam@rm-rf.kiev.ua>

Approved by: re (kib)

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

13 years agoMFC r215824:
dougb [Sun, 19 Dec 2010 20:10:48 +0000 (20:10 +0000)]
MFC r215824:

Add a sync to the shutdown step. In the common case this will be
harmless at worst. On a heavily loaded server it will give the fs a
chance to do its business without the axe hanging over its head.

Submitted by: ivoras

Approved by: re (kib)

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

13 years agoMFC r216335:
mlaier [Sun, 19 Dec 2010 06:07:35 +0000 (06:07 +0000)]
MFC r216335:
  Fix a long standing (from the original 4.4BSD lite sources) race between
  vmspace_fork and vm_map_wire that would lead to "vm_fault_copy_wired: page
  missing" panics.  While faulting in pages for a map entry that is being
  wired down, mark the containing map as busy.  In vmspace_fork wait until
  the map is unbusy, before we try to copy the entries.

  Sponsored by: Isilon Systems, Inc.

Approved by: re (kib)

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

13 years agoMerge xen.4 man page from head to stable/8; revs r216419, r216420, r216428,
rwatson [Sat, 18 Dec 2010 23:03:01 +0000 (23:03 +0000)]
Merge xen.4 man page from head to stable/8; revs r216419, r216420, r216428,
r216429, r216497, r216500, r216501, r216509.

Approved by: re (kib)
Sponsored by: DARPA, AFRL

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

13 years agoMFC 216480:
tuexen [Sat, 18 Dec 2010 11:45:54 +0000 (11:45 +0000)]
MFC 216480:
Add a missing cast. Reported by blade_ly at yahoo.com.cn.

Approved by: re (kib)

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

13 years agoMFC r216130:
delphij [Fri, 17 Dec 2010 19:48:54 +0000 (19:48 +0000)]
MFC r216130:

Decode IPC_CREAT and IPC_EXCL for semget(2).

PR: bin/152781
Submitted by: Anton Yuzhaninov <citrin citrin ru>
Approved by: re (kib)

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

13 years agoMFC r216407:
brucec [Thu, 16 Dec 2010 14:57:06 +0000 (14:57 +0000)]
MFC r216407:

USB probing often takes a long time and finishes finding devices after init
has started. In the case of sysinstall, this means that it has already built
its list of devices before probing finishes. Add a hint for users who have
booted from a USB stick only to find that sysinstall can't find it.

Approved by: re (kensmith)

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

13 years agoMFC r216397:
tuexen [Thu, 16 Dec 2010 10:58:45 +0000 (10:58 +0000)]
MFC r216397:
Bugfix: Do correct accounting using the MIB counters when an
        association is aborted via sctp_abort_association().

Approved by: re

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

13 years agoMFC r216173
jfv [Wed, 15 Dec 2010 22:59:50 +0000 (22:59 +0000)]
MFC r216173

Remove the test for a minimum frame size from the IPV6 TX context
descriptor setup, when using VLANs and HW TAGGING the length of
an ICMP6 frame will fail this test and be discarded.

Approved by: re

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

13 years agoRecord merge-info for r216171 previously merged as r216366.
bz [Wed, 15 Dec 2010 16:21:59 +0000 (16:21 +0000)]
Record merge-info for r216171 previously merged as r216366.
Record merge-info for r216172,216176 previously merged as r216440.

Approved by: re (kib)

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

13 years agoMFC r216255:
kib [Wed, 15 Dec 2010 15:25:56 +0000 (15:25 +0000)]
MFC r216255:
Update some comments related to use of amd64 full context switch.
In exec_linux_setregs(), use locally cached pointer to pcb to set
pcb_full_iret.
In set_regs(), note that full return is needed when code that sets
segment registers is enabled.

Approved by: re (bz)

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