Re: svn commit: r230230 - head/sys/dev/random

2012-01-27 Thread Bruce Evans
On Sat, 28 Jan 2012, Andrey Chernov wrote: New verson addressed bde's style things: Thanks, but ... --- sys/libkern.h.old 2012-01-16 07:15:12.0 +0400 +++ sys/libkern.h 2012-01-28 08:49:19.0 +0400 @@ -70,6 +70,11 @@ static __inline int abs(int a) { return static __inli

Re: svn commit: r230230 - head/sys/dev/random

2012-01-27 Thread Andrey Chernov
New verson addressed bde's style things: --- sys/libkern.h.old 2012-01-16 07:15:12.0 +0400 +++ sys/libkern.h 2012-01-28 08:49:19.0 +0400 @@ -70,6 +70,11 @@ static __inline int abs(int a) { return static __inline long labs(long a) { return (a < 0 ? -a : a); } static __inl

Re: svn commit: r230230 - head/sys/dev/random

2012-01-27 Thread Andrey Chernov
On Fri, Jan 27, 2012 at 08:34:35PM +1100, Bruce Evans wrote: > On Thu, 26 Jan 2012, Andrey Chernov wrote: > > >> On Thu, Jan 26, 2012 at 11:32:38AM -0500, John Baldwin wrote: > >>> Atomics don't operate on enums. You'll need to make it an int and just > >>> use > >>> #define's for the 3 states.

Re: svn commit: r230482 - head/release

2012-01-27 Thread Nathan Whitehorn
I think we didn't make PC98 release media for 9.0, but that's a good point. I'm out of commission right now due to an injury, so patches would be welcome. -Nathan On Jan 23, 2012, at 10:03 AM, Ed Schouten wrote: Hi Nathan, * Nathan Whitehorn , 20120123 16:44: TERM=xterm This cod

svn commit: r230640 - head/etc/devd

2012-01-27 Thread Justin Hibbits
Author: jhibbits Date: Sat Jan 28 02:52:22 2012 New Revision: 230640 URL: http://svn.freebsd.org/changeset/base/230640 Log: Remove the notify match from a couple devd apple events, the events don't include notify tags. Approved by: nwhitehorn (mentor) MFC after:3 days Modified:

svn commit: r230636 - head/sys/dev/hwpmc

2012-01-27 Thread Ed Maste
Author: emaste Date: Sat Jan 28 01:38:48 2012 New Revision: 230636 URL: http://svn.freebsd.org/changeset/base/230636 Log: pmc_*_initialize may return NULL if the CPU is not supported, so check that md is not null before dereferencing it. PR: kern/156540 Modified: head/sys/dev

svn commit: r230635 - head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pid

2012-01-27 Thread Pedro F. Giffuni
Author: pfg Date: Sat Jan 28 00:17:17 2012 New Revision: 230635 URL: http://svn.freebsd.org/changeset/base/230635 Log: Set SVN text/plain property for some shell scripts that happen to have a .exe extension. While here fix the shebang of a shell script that was looking for /bin/bash.

svn commit: r230634 - head/sys/sparc64/sparc64

2012-01-27 Thread Marius Strobl
Author: marius Date: Fri Jan 27 23:25:24 2012 New Revision: 230634 URL: http://svn.freebsd.org/changeset/base/230634 Log: Commit file missed in r230633. Modified: head/sys/sparc64/sparc64/pmap.c Modified: head/sys/sparc64/sparc64/pmap.c ===

svn commit: r230633 - in head/sys/sparc64: include sparc64

2012-01-27 Thread Marius Strobl
Author: marius Date: Fri Jan 27 23:21:54 2012 New Revision: 230633 URL: http://svn.freebsd.org/changeset/base/230633 Log: Now that we have a working OF_printf() since r230631 and a OF_panic() helper since r230632, use these for output and panicing during the early cycles and move cninit() un

svn commit: r230632 - in head/sys/sparc64: include sparc64

2012-01-27 Thread Marius Strobl
Author: marius Date: Fri Jan 27 22:35:53 2012 New Revision: 230632 URL: http://svn.freebsd.org/changeset/base/230632 Log: - Now that we have a working OF_printf() since r230631, use it for implementing a simple OF_panic() that may be used during the early cycles when panic() isn't availa

svn commit: r230631 - head/sys/dev/ofw

2012-01-27 Thread Marius Strobl
Author: marius Date: Fri Jan 27 22:29:29 2012 New Revision: 230631 URL: http://svn.freebsd.org/changeset/base/230631 Log: Implement OF_printf() using kvprintf() directly, avoiding to use a buffer and allowing to handle newlines properly Modified: head/sys/dev/ofw/openfirm.c Modified: head/

svn commit: r230630 - head/sys/sparc64/include

2012-01-27 Thread Marius Strobl
Author: marius Date: Fri Jan 27 22:25:46 2012 New Revision: 230630 URL: http://svn.freebsd.org/changeset/base/230630 Log: For machines where the kernel address space is unrestricted increase VM_KMEM_SIZE_SCALE to 2, awaiting more insight from alc@. As it turns out, the VM apparently has prob

svn commit: r230629 - head/cddl/contrib/opensolaris/lib/libzpool/common/sys

2012-01-27 Thread Kip Macy
Author: kmacy Date: Fri Jan 27 22:24:03 2012 New Revision: 230629 URL: http://svn.freebsd.org/changeset/base/230629 Log: add KM_NODEBUG needed by ARC buffer core dump exclusion change Modified: head/cddl/contrib/opensolaris/lib/libzpool/common/sys/zfs_context.h Modified: head/cddl/contrib/op

svn commit: r230628 - head/sys/sparc64/include

2012-01-27 Thread Marius Strobl
Author: marius Date: Fri Jan 27 22:04:43 2012 New Revision: 230628 URL: http://svn.freebsd.org/changeset/base/230628 Log: Mark cpu_{halt,reset}() as __dead2 as appropriate. Modified: head/sys/sparc64/include/cpu.h Modified: head/sys/sparc64/include/cpu.h =

svn commit: r230627 - head/sys/dev/ata/chipsets

2012-01-27 Thread Marius Strobl
Author: marius Date: Fri Jan 27 21:52:59 2012 New Revision: 230627 URL: http://svn.freebsd.org/changeset/base/230627 Log: Using ATA_CAM along with ATAPI DMA causes data corruption with ALI_NEW and CMD controllers for reasons unknown so disable it. PR: 164226 Modified: head/sys/dev/at

svn commit: r230626 - head/sys/dev/pccbb

2012-01-27 Thread Warner Losh
Author: imp Date: Fri Jan 27 21:49:02 2012 New Revision: 230626 URL: http://svn.freebsd.org/changeset/base/230626 Log: Some laptops have weak power controllers that cannot tolerate multiple cards powering up at once. Work around the easy case (multiple cards inserted on boot) with a short s

svn commit: r230623 - in head/sys: amd64/amd64 cddl/compat/opensolaris/sys cddl/contrib/opensolaris/uts/common/fs/zfs sys vm

2012-01-27 Thread Kip Macy
Author: kmacy Date: Fri Jan 27 20:18:31 2012 New Revision: 230623 URL: http://svn.freebsd.org/changeset/base/230623 Log: exclude kmem_alloc'ed ARC data buffers from kernel minidumps on amd64 excluding other allocations including UMA now entails the addition of a single flag to kmem_alloc or

Re: svn commit: r230583 - head/sys/kern

2012-01-27 Thread David Schultz
On Fri, Jan 27, 2012, Kostik Belousov wrote: > On Fri, Jan 27, 2012 at 07:50:30PM +1100, Bruce Evans wrote: > > On Thu, 26 Jan 2012, Gleb Smirnoff wrote: > > > > >On Thu, Jan 26, 2012 at 11:53:57PM +1100, Bruce Evans wrote: > > >B> > @@ -1552,6 +1552,12 @@ aio_aqueue(struct thread *td, struct aio

svn commit: r230622 - head

2012-01-27 Thread Dimitry Andric
Author: dim Date: Fri Jan 27 18:29:03 2012 New Revision: 230622 URL: http://svn.freebsd.org/changeset/base/230622 Log: When the buildkernel stage 2.3 (build tools) runs, the PATH is still set to the default from the top-level Makefile. Therefore, invocations of lex and yacc (used during bui

svn commit: r230620 - head/sys/dev/iwn

2012-01-27 Thread Bernhard Schmidt
Author: bschmidt Date: Fri Jan 27 17:39:02 2012 New Revision: 230620 URL: http://svn.freebsd.org/changeset/base/230620 Log: On state changes from RUN to anything else the AGGR sessions are cleared/dropped leading to qid2tap[n] being NULL as there no longer is a tap. Now, if there have been l

svn commit: r230617 - head/usr.sbin/ifmcstat

2012-01-27 Thread Maxim Konovalov
Author: maxim Date: Fri Jan 27 17:16:44 2012 New Revision: 230617 URL: http://svn.freebsd.org/changeset/base/230617 Log: o in6_ifinfo() does not do any kvm(3) operations, so do not guard it by WITH_KVM ifdef. This allows to build ifmcstat(8) without kvm(3) support. PR: bin/16

Re: svn commit: r230516 - in head/sys: fs/nfsclient nfsclient

2012-01-27 Thread Rick Macklem
Bruce Evans wrote: > On Thu, 26 Jan 2012, Rick Macklem wrote: > > > Bruce Evans wrote: > > > >> Doesn't umount -f have to wait for i/o anyway? When it closes > >> files, > >> it must wait for all in-progress i/o for the files, and for all new > >> i/o's that result from closing. > >> > > umount -f

svn commit: r230614 - head/sys/netinet/ipfw

2012-01-27 Thread Luigi Rizzo
Author: luigi Date: Fri Jan 27 13:26:25 2012 New Revision: 230614 URL: http://svn.freebsd.org/changeset/base/230614 Log: a variable was erroneously declared as 32 bit instead of 64. MFC after:3 days Modified: head/sys/netinet/ipfw/dn_sched_qfq.c Modified: head/sys/netinet/ipfw/dn_sc

svn commit: r230613 - head/lib/libc/sys

2012-01-27 Thread Sergey Kandaurov
Author: pluknet Date: Fri Jan 27 13:26:19 2012 New Revision: 230613 URL: http://svn.freebsd.org/changeset/base/230613 Log: Remove a left-over reference to make.conf(5) which was used as a place to store the VM_STACK compile option to enable MAP_STACK support in its earliest stage of developm

Re: svn commit: r230572 - in head/sys/dev: ixgbe netmap

2012-01-27 Thread Luigi Rizzo
On Fri, Jan 27, 2012 at 08:45:40PM +1100, Bruce Evans wrote: > On Thu, 26 Jan 2012, Alan Cox wrote: > > >On 01/26/2012 03:55, Luigi Rizzo wrote: > > >>Log: > >>... > >> Netmap-related changes for ixgbe: > >>... > >>+#define NKR_PENDINTR 0x1 // Pending interrupt. > >>u_int nkr_num_slot

svn commit: r230612 - head/sbin/mdconfig

2012-01-27 Thread Edward Tomasz Napierala
Author: trasz Date: Fri Jan 27 11:48:44 2012 New Revision: 230612 URL: http://svn.freebsd.org/changeset/base/230612 Log: Rewrite option parsing in mdconfig(8). This makes it more user-friendly by removing the ordering requirements and adding more descriptive error messages; it also makes it

Re: svn commit: r230572 - in head/sys/dev: ixgbe netmap

2012-01-27 Thread Bruce Evans
On Thu, 26 Jan 2012, Alan Cox wrote: On 01/26/2012 03:55, Luigi Rizzo wrote: Log: ... Netmap-related changes for ixgbe: ... +#define NKR_PENDINTR 0x1 // Pending interrupt. u_int nkr_num_slots; int nkr_hwofs; /* offset between NIC and netmap ring */ s

Re: svn commit: r230230 - head/sys/dev/random

2012-01-27 Thread Bruce Evans
On Thu, 26 Jan 2012, Andrey Chernov wrote: On Thu, Jan 26, 2012 at 11:32:38AM -0500, John Baldwin wrote: Atomics don't operate on enums. You'll need to make it an int and just use #define's for the 3 states. This restores some style bugs and keeps old ones. --- sys/libkern.h.old 2012-01-

Re: svn commit: r230516 - in head/sys: fs/nfsclient nfsclient

2012-01-27 Thread Bruce Evans
On Thu, 26 Jan 2012, Rick Macklem wrote: Bruce Evans wrote: Doesn't umount -f have to wait for i/o anyway? When it closes files, it must wait for all in-progress i/o for the files, and for all new i/o's that result from closing. umount -f kills off RPCs in progress. There was an email discus

svn commit: r230611 - head/usr.sbin/mixer

2012-01-27 Thread Alexander Motin
Author: mav Date: Fri Jan 27 09:15:55 2012 New Revision: 230611 URL: http://svn.freebsd.org/changeset/base/230611 Log: Return proper error message if recording device is not specified. MFC after:1 week Modified: head/usr.sbin/mixer/mixer.c Modified: head/usr.sbin/mixer/mixer.c =

Re: svn commit: r230583 - head/sys/kern

2012-01-27 Thread Kostik Belousov
On Fri, Jan 27, 2012 at 07:50:30PM +1100, Bruce Evans wrote: > On Thu, 26 Jan 2012, Gleb Smirnoff wrote: > > >On Thu, Jan 26, 2012 at 11:53:57PM +1100, Bruce Evans wrote: > >B> > @@ -1552,6 +1552,12 @@ aio_aqueue(struct thread *td, struct aio > >B> > return (error); > >B> >

svn commit: r230610 - head/sys/kern

2012-01-27 Thread Gleb Smirnoff
Author: glebius Date: Fri Jan 27 08:58:58 2012 New Revision: 230610 URL: http://svn.freebsd.org/changeset/base/230610 Log: Fix size check, that prevents getting negative after casting to a signed type Reviewed by: bde Modified: head/sys/kern/vfs_aio.c Modified: head/sys/kern/vfs_aio.

Re: svn commit: r230583 - head/sys/kern

2012-01-27 Thread Bruce Evans
On Thu, 26 Jan 2012, Gleb Smirnoff wrote: On Thu, Jan 26, 2012 at 11:53:57PM +1100, Bruce Evans wrote: B> > @@ -1552,6 +1552,12 @@ aio_aqueue(struct thread *td, struct aio B> > return (error); B> > } B> > B> > +/* XXX: aio_nbytes is later casted to signed types. */ B> > +

svn commit: r230609 - head/share/man/man4

2012-01-27 Thread Gleb Smirnoff
Author: glebius Date: Fri Jan 27 08:46:32 2012 New Revision: 230609 URL: http://svn.freebsd.org/changeset/base/230609 Log: Do not mention SIOCSIFADDR. Modified: head/share/man/man4/lo.4 Modified: head/share/man/man4/lo.4 ===