svn commit: r221803 - head/sys/dev/sound/pcm

2011-05-12 Thread Andriy Gapon
Author: avg Date: Thu May 12 07:44:41 2011 New Revision: 221803 URL: http://svn.freebsd.org/changeset/base/221803 Log: dsp/pcm: allow to mmap both read and write buffers using the same fd This brings our implementation in line with OSS specification for systems that support mmap. The

Re: svn commit: r221703 - in head/sys: amd64/include i386/include x86/isa x86/x86

2011-05-12 Thread Stanislav Sedov
On Mon, 9 May 2011 17:34:00 + (UTC) Jung-uk Kim j...@freebsd.org mentioned: Author: jkim Date: Mon May 9 17:34:00 2011 New Revision: 221703 URL: http://svn.freebsd.org/changeset/base/221703 Log: Implement boot-time TSC synchronization test for SMP. This test is executed when

svn commit: r221806 - in head/sys/dev/ath/ath_hal: ar5416 ar9002

2011-05-12 Thread Adrian Chadd
Author: adrian Date: Thu May 12 10:11:24 2011 New Revision: 221806 URL: http://svn.freebsd.org/changeset/base/221806 Log: Break out the AR9285 analog registers from ar5416/ar5416phy.h and put them in a new header file, ar9002/ar9285_an.h. Shuffle the AR9280 analog registers in

svn commit: r221807 - in head: lib lib/libprocstat lib/libprocstat/zfs lib/libutil sys/kern sys/sys usr.bin/fstat usr.bin/fstat/zfs usr.bin/procstat

2011-05-12 Thread Stanislav Sedov
Author: stas Date: Thu May 12 10:11:39 2011 New Revision: 221807 URL: http://svn.freebsd.org/changeset/base/221807 Log: - Commit work from libprocstat project. These patches add support for runtime file and processes information retrieval from the running kernel via sysctl in the form

Re: svn commit: r221703 - in head/sys: amd64/include i386/include x86/isa x86/x86

2011-05-12 Thread Andriy Gapon
on 12/05/2011 12:49 Stanislav Sedov said the following: On Mon, 9 May 2011 17:34:00 + (UTC) Jung-uk Kim j...@freebsd.org mentioned: Author: jkim Date: Mon May 9 17:34:00 2011 New Revision: 221703 URL: http://svn.freebsd.org/changeset/base/221703 Log: Implement boot-time TSC

Re: svn commit: r221703 - in head/sys: amd64/include i386/include x86/isa x86/x86

2011-05-12 Thread Stanislav Sedov
On Thu, 12 May 2011 13:43:58 +0300 Andriy Gapon a...@freebsd.org mentioned: Theory: - smp_rv_waiters[2] becomes equal to smp_rv_ncpus - [at least] one slave CPU is still in the last call to cpu_spinwait() in smp_rendezvous_action() - master CPU notices that the condition is true, exits

svn commit: r221808 - head/sys/kern

2011-05-12 Thread Stanislav Sedov
Author: stas Date: Thu May 12 10:56:33 2011 New Revision: 221808 URL: http://svn.freebsd.org/changeset/base/221808 Log: - Do no try to drop a NULL filedesc pointer. Modified: head/sys/kern/kern_descrip.c Modified: head/sys/kern/kern_descrip.c

Re: svn commit: r221703 - in head/sys: amd64/include i386/include x86/isa x86/x86

2011-05-12 Thread Andriy Gapon
on 12/05/2011 13:55 John Baldwin said the following: On 5/12/11 6:55 AM, Stanislav Sedov wrote: On Thu, 12 May 2011 13:43:58 +0300 Andriy Gapona...@freebsd.org mentioned: Theory: - smp_rv_waiters[2] becomes equal to smp_rv_ncpus - [at least] one slave CPU is still in the last call to

Re: svn commit: r221703 - in head/sys: amd64/include i386/include x86/isa x86/x86

2011-05-12 Thread Andriy Gapon
on 09/05/2011 20:34 Jung-uk Kim said the following: Author: jkim Date: Mon May 9 17:34:00 2011 New Revision: 221703 URL: http://svn.freebsd.org/changeset/base/221703 [snip] I would to note [again] that I don't like code style of this change. Modified: head/sys/x86/x86/tsc.c

Re: svn commit: r221807 - in head: lib lib/libprocstat lib/libprocstat/zfs lib/libutil sys/kern sys/sys usr.bin/fstat usr.bin/fstat/zfs usr.bin/procstat

2011-05-12 Thread Kostik Belousov
On Thu, May 12, 2011 at 10:11:39AM +, Stanislav Sedov wrote: Author: stas Date: Thu May 12 10:11:39 2011 New Revision: 221807 URL: http://svn.freebsd.org/changeset/base/221807 Log: - Commit work from libprocstat project. These patches add support for runtime file and processes

Re: svn commit: r221703 - in head/sys: amd64/include i386/include x86/isa x86/x86

2011-05-12 Thread John Baldwin
On 5/12/11 6:55 AM, Stanislav Sedov wrote: On Thu, 12 May 2011 13:43:58 +0300 Andriy Gapona...@freebsd.org mentioned: Theory: - smp_rv_waiters[2] becomes equal to smp_rv_ncpus - [at least] one slave CPU is still in the last call to cpu_spinwait() in smp_rendezvous_action() - master CPU

Re: svn commit: r221703 - in head/sys: amd64/include i386/include x86/isa x86/x86

2011-05-12 Thread Andriy Gapon
on 12/05/2011 14:40 John Baldwin said the following: Hmmm, this might be interesting. I think you want to always wait for this though even if you have a teardown function. I think so too. In fact I have that change in my private tree, but was still waiting (a few months) for someone to

Re: svn commit: r221703 - in head/sys: amd64/include i386/include x86/isa x86/x86

2011-05-12 Thread John Baldwin
On 5/12/11 7:05 AM, Andriy Gapon wrote: on 12/05/2011 13:55 John Baldwin said the following: On 5/12/11 6:55 AM, Stanislav Sedov wrote: On Thu, 12 May 2011 13:43:58 +0300 Andriy Gapona...@freebsd.org mentioned: Theory: - smp_rv_waiters[2] becomes equal to smp_rv_ncpus - [at least] one

svn commit: r221809 - head/sys/dev/sound/pcm

2011-05-12 Thread Andriy Gapon
Author: avg Date: Thu May 12 12:18:01 2011 New Revision: 221809 URL: http://svn.freebsd.org/changeset/base/221809 Log: fix build on 32-bit platforms for r221803 Casting a pointer to a wide integer is probably not that bad, but I am still guilty of not testing this. Pointyhat to: avg

svn commit: r221811 - head/sys/dev/ath

2011-05-12 Thread Adrian Chadd
Author: adrian Date: Thu May 12 14:03:29 2011 New Revision: 221811 URL: http://svn.freebsd.org/changeset/base/221811 Log: Now that the devices with functioning ps-poll hardware support have been enumerated (merlin and later), flick this on. Modified: head/sys/dev/ath/if_ath.c Modified:

svn commit: r221812 - head/sys/dev/mii

2011-05-12 Thread Marius Strobl
Author: marius Date: Thu May 12 14:16:07 2011 New Revision: 221812 URL: http://svn.freebsd.org/changeset/base/221812 Log: Some PHYs like the Level One LXT970 optionally can default to isolation after rest, in which case we may need to deisolate it. Tested by:nwhitehorn MFC after

svn commit: r221813 - head/sys/dev/bm

2011-05-12 Thread Nathan Whitehorn
Author: nwhitehorn Date: Thu May 12 14:27:28 2011 New Revision: 221813 URL: http://svn.freebsd.org/changeset/base/221813 Log: Remove some hacks to handle strange behavior of LXT 970 PHYs now better handled in miibus after r221812. Thanks to marius@ for piecing this together! Modified:

svn commit: r221814 - head/release/powerpc

2011-05-12 Thread Nathan Whitehorn
Author: nwhitehorn Date: Thu May 12 15:03:17 2011 New Revision: 221814 URL: http://svn.freebsd.org/changeset/base/221814 Log: Add (somewhat speculative) bootable CD support for PAPR/pSeries-type systems. In principle, FreeBSD should run on at least some of these already, and support for the

Re: svn commit: r221348 - head/sys/boot/i386/boot2

2011-05-12 Thread Ulrich Spörlein
On Tue, 03.05.2011 at 18:51:19 +0200, Roman Divacky wrote: On Tue, May 03, 2011 at 04:27:57AM -0500, Brooks Davis wrote: On Tue, May 03, 2011 at 03:39:27PM +0200, Roman Divacky wrote: With the recent libobjc removal this means that we can compile all (no exceptions) of

Re: svn commit: r221363 - head/sbin/geom/class/part

2011-05-12 Thread Ulrich Spörlein
On Tue, 03.05.2011 at 07:33:39 +, Andrey V. Elsukov wrote: Author: ae Date: Tue May 3 07:33:39 2011 New Revision: 221363 URL: http://svn.freebsd.org/changeset/base/221363 Log: Add -a alignment option to gpart(8). When it specified gpart(8) tries to align partition start offset

Re: svn commit: r221363 - head/sbin/geom/class/part

2011-05-12 Thread Andrey V. Elsukov
On 12.05.2011 19:15, Ulrich Spörlein wrote: Add -a alignment option to gpart(8). When it specified gpart(8) tries to align partition start offset and size to be multiple of alignment value. Aligned to what? The disk or the partition scheme? Consider someone having a GELI partition

Re: svn commit: r221703 - in head/sys: amd64/include i386/include x86/isa x86/x86

2011-05-12 Thread Jung-uk Kim
On Thursday 12 May 2011 07:23 am, Andriy Gapon wrote: on 09/05/2011 20:34 Jung-uk Kim said the following: Author: jkim Date: Mon May 9 17:34:00 2011 New Revision: 221703 URL: http://svn.freebsd.org/changeset/base/221703 [snip] I would to note [again] that I don't like code style of

svn commit: r221816 - head/usr.bin/fstat

2011-05-12 Thread Warner Losh
Author: imp Date: Thu May 12 17:02:56 2011 New Revision: 221816 URL: http://svn.freebsd.org/changeset/base/221816 Log: Fix printf int mismatch on 32-bit architectures... Modified: head/usr.bin/fstat/fstat.c Modified: head/usr.bin/fstat/fstat.c

svn commit: r221817 - head/sys/dev/mii

2011-05-12 Thread Pyun YongHyeon
Author: yongari Date: Thu May 12 17:11:31 2011 New Revision: 221817 URL: http://svn.freebsd.org/changeset/base/221817 Log: Explicitly clear 1000baseT control register for F1 PHY used in AR8132 FastEthernet controller. The PHY has no ability to establish a gigabit link. Previously only link

svn commit: r221818 - head/sys/dev/bge

2011-05-12 Thread Pyun YongHyeon
Author: yongari Date: Thu May 12 17:15:57 2011 New Revision: 221818 URL: http://svn.freebsd.org/changeset/base/221818 Log: Add initial BCM5719 support. TSO and jumbo frame was intentionally disabled for BCM5719 A0 revision due to known hardware errata. Many thanks to Broadcom for continuing

Re: svn commit: r221816 - head/usr.bin/fstat

2011-05-12 Thread Andriy Gapon
on 12/05/2011 20:02 Warner Losh said the following: - printf( %6lu, vn.vn_size); + printf( %6ju, (intmax_t)vn.vn_size); Just a nit - uintmax_t should be more appropriate here. Thank you for fixing this! print_access_flags(fst-fs_fflags); } -- Andriy Gapon

Re: svn commit: r221816 - head/usr.bin/fstat

2011-05-12 Thread Stanislav Sedov
On Thu, 12 May 2011 17:02:56 + (UTC) Warner Losh i...@freebsd.org mentioned: Author: imp Date: Thu May 12 17:02:56 2011 New Revision: 221816 URL: http://svn.freebsd.org/changeset/base/221816 Log: Fix printf int mismatch on 32-bit architectures... Thanks a lot! Apparently I did

svn commit: r221819 - head/usr.bin/fstat

2011-05-12 Thread Warner Losh
Author: imp Date: Thu May 12 19:10:00 2011 New Revision: 221819 URL: http://svn.freebsd.org/changeset/base/221819 Log: uintmax_t is a better type here... Submitted by: avg@ Modified: head/usr.bin/fstat/fstat.c Modified: head/usr.bin/fstat/fstat.c

Re: svn commit: r221363 - head/sbin/geom/class/part

2011-05-12 Thread Alexander Motin
On 12.05.2011 18:53, Andrey V. Elsukov wrote: On 12.05.2011 19:15, Ulrich Spörlein wrote: Add -a alignment option to gpart(8). When it specified gpart(8) tries to align partition start offset and size to be multiple of alignment value. Aligned to what? The disk or the partition

svn commit: r221820 - head/lib/libfetch

2011-05-12 Thread Dag-Erling Smorgrav
Author: des Date: Thu May 12 21:12:24 2011 New Revision: 221820 URL: http://svn.freebsd.org/changeset/base/221820 Log: Increase WARNS to 3. Modified: head/lib/libfetch/Makefile head/lib/libfetch/http.c Modified: head/lib/libfetch/Makefile

svn commit: r221821 - head/lib/libfetch

2011-05-12 Thread Dag-Erling Smorgrav
Author: des Date: Thu May 12 21:18:55 2011 New Revision: 221821 URL: http://svn.freebsd.org/changeset/base/221821 Log: Mechanical whitespace cleanup. Modified: head/lib/libfetch/http.c Modified: head/lib/libfetch/http.c

svn commit: r221822 - head/lib/libfetch

2011-05-12 Thread Dag-Erling Smorgrav
Author: des Date: Thu May 12 21:26:42 2011 New Revision: 221822 URL: http://svn.freebsd.org/changeset/base/221822 Log: Increase WARNS to 4. Modified: head/lib/libfetch/Makefile head/lib/libfetch/ftp.c head/lib/libfetch/http.c Modified: head/lib/libfetch/Makefile

svn commit: r221823 - head/lib/libfetch

2011-05-12 Thread Dag-Erling Smorgrav
Author: des Date: Thu May 12 21:30:46 2011 New Revision: 221823 URL: http://svn.freebsd.org/changeset/base/221823 Log: Builds cleanly at the default WARNS level (WARNS=6). Modified: head/lib/libfetch/Makefile Modified: head/lib/libfetch/Makefile

Re: svn commit: r221816 - head/usr.bin/fstat

2011-05-12 Thread Pawel Jakub Dawidek
On Thu, May 12, 2011 at 11:57:03AM -0700, Stanislav Sedov wrote: On Thu, 12 May 2011 17:02:56 + (UTC) Warner Losh i...@freebsd.org mentioned: Author: imp Date: Thu May 12 17:02:56 2011 New Revision: 221816 URL: http://svn.freebsd.org/changeset/base/221816 Log: Fix printf

svn commit: r221824 - head/lib/libprocstat

2011-05-12 Thread Stanislav Sedov
Author: stas Date: Thu May 12 22:21:39 2011 New Revision: 221824 URL: http://svn.freebsd.org/changeset/base/221824 Log: - Don't try to build NWFS support module if NCP/IPX is disabled in the build. - Rename ZFS definition to LIBPROCSTAT_ZFS to be consistent with NWFS and to prevent

svn commit: r221825 - head/release/powerpc

2011-05-12 Thread Nathan Whitehorn
Author: nwhitehorn Date: Thu May 12 22:31:13 2011 New Revision: 221825 URL: http://svn.freebsd.org/changeset/base/221825 Log: Fix pSeries/PAPR boot CD construction after actual testing. It seems that IBM SLOF is (a) case-sensitive and (b) accepts only booting files in certain subdirectories

svn commit: r221826 - head/sys/dev/bxe

2011-05-12 Thread David Christensen
Author: davidch Date: Thu May 12 23:26:53 2011 New Revision: 221826 URL: http://svn.freebsd.org/changeset/base/221826 Log: - Use bus_describe_intr() to describe interrupt usage. - Use bus_bind_intr() to bind interrupt to a CPU when RSS/TSS is used. - Use M_DONTWAIT for RSS/TSS buffer

svn commit: r221827 - head/sys/dev/xen/balloon

2011-05-12 Thread Alexander Motin
Author: mav Date: Fri May 13 03:40:16 2011 New Revision: 221827 URL: http://svn.freebsd.org/changeset/base/221827 Log: Fix msleep() usage in Xen balloon driver to not wake up on every HZ tick. Modified: head/sys/dev/xen/balloon/balloon.c Modified: head/sys/dev/xen/balloon/balloon.c

svn commit: r221829 - in head/sys: kern sys ufs/ffs

2011-05-12 Thread Matthew D Fleming
Author: mdf Date: Fri May 13 05:27:58 2011 New Revision: 221829 URL: http://svn.freebsd.org/changeset/base/221829 Log: Use a name instead of a magic number for kern_yield(9) when the priority should not change. Fetch the td_user_pri under the thread lock. This is probably not necessary