Re: svn commit: r219700 - head/sys/x86/x86

2011-03-25 Thread Bruce Evans
On Thu, 24 Mar 2011, Warner Losh wrote: On 03/23/2011 06:34, John Baldwin wrote: On Thursday, March 17, 2011 5:06:09 pm Jung-uk Kim wrote: I really hate the idea of adjusting timecounter frequency from userland. I guess use ntpd(8) is not a good answer for some people. :-( Actually, that

svn commit: r219983 - head/sys/dev/usb/controller

2011-03-25 Thread Hans Petter Selasky
Author: hselasky Date: Fri Mar 25 10:11:21 2011 New Revision: 219983 URL: http://svn.freebsd.org/changeset/base/219983 Log: Fix initialisation order with regard to debug prints. Reported by: Luiz Otavio O Souza MFC after:14 days Approved by: thompsa (mentor) Modified:

svn commit: r219984 - head/sys/dev/ath/ath_hal/ar5416

2011-03-25 Thread Adrian Chadd
Author: adrian Date: Fri Mar 25 10:53:13 2011 New Revision: 219984 URL: http://svn.freebsd.org/changeset/base/219984 Log: I broke periodic adc calibrations - so restore them to working order. Modified: head/sys/dev/ath/ath_hal/ar5416/ar5416_cal.c Modified:

svn commit: r219985 - in head/sys/dev/ath: . ath_rate/sample

2011-03-25 Thread Adrian Chadd
Author: adrian Date: Fri Mar 25 10:55:25 2011 New Revision: 219985 URL: http://svn.freebsd.org/changeset/base/219985 Log: After discussing with Bernhard, the right way in net80211 to check the channel width is ni-ni_chw, which is set to the negotiated channel width. ni-ni_htflags is the

svn commit: r219986 - head/sys/compat/freebsd32

2011-03-25 Thread Konstantin Belousov
Author: kib Date: Fri Mar 25 10:57:57 2011 New Revision: 219986 URL: http://svn.freebsd.org/changeset/base/219986 Log: Fix file leakage in the freebsd32_ioctl routines. Code inspection shows freebsd32_ioctl calls fget for a fd and calls a subroutine to handle each specific ioctl. It is

svn commit: r219987 - head/sys/compat/freebsd32

2011-03-25 Thread Konstantin Belousov
Author: kib Date: Fri Mar 25 11:05:28 2011 New Revision: 219987 URL: http://svn.freebsd.org/changeset/base/219987 Log: Remove unneccessary panics, that can be easily triggered by user. The copyin() function handles NULL as well as any other pointer. MFC after:3 days Modified:

Re: svn commit: r219700 - head/sys/x86/x86

2011-03-25 Thread Peter Jeremy
On 2011-Mar-25 21:02:03 +1100, Bruce Evans b...@optusnet.com.au wrote: On Thu, 24 Mar 2011, Warner Losh wrote: ntpd requires that the time counter be within 128ppm of true. If the time counter guess is off by more than that, you lose: ntpd won't work. I suspect Warner may be confusing the

svn commit: r219988 - head/sys/compat/freebsd32

2011-03-25 Thread Konstantin Belousov
Author: kib Date: Fri Mar 25 11:43:49 2011 New Revision: 219988 URL: http://svn.freebsd.org/changeset/base/219988 Log: Fully emulate MDIOCLIST for compat32. MFC after:1 week Modified: head/sys/compat/freebsd32/freebsd32_ioctl.c Modified: head/sys/compat/freebsd32/freebsd32_ioctl.c

svn commit: r219989 - head/sys/compat/freebsd32

2011-03-25 Thread Konstantin Belousov
Author: kib Date: Fri Mar 25 11:52:31 2011 New Revision: 219989 URL: http://svn.freebsd.org/changeset/base/219989 Log: Implement compat32 MEMRANGE_GET and MEMRANGE_SET. This is needed to run 32bit Xorg server with VESA driver. Submitted by: John Wehle john feith com MFC after:1

svn commit: r219990 - stable/8/sys/dev/firewire

2011-03-25 Thread Marius Strobl
Author: marius Date: Fri Mar 25 12:46:08 2011 New Revision: 219990 URL: http://svn.freebsd.org/changeset/base/219990 Log: MFC: r219543 Allocate the DMA memory shared between the host and the controller as coherent. Modified: stable/8/sys/dev/firewire/fwohci.c

svn commit: r219991 - stable/8/sys/dev/sk

2011-03-25 Thread Marius Strobl
Author: marius Date: Fri Mar 25 12:47:01 2011 New Revision: 219991 URL: http://svn.freebsd.org/changeset/base/219991 Log: MFC: r219544 Allocate the DMA memory shared between the host and the controller as coherent. Modified: stable/8/sys/dev/sk/if_sk.c Directory Properties:

svn commit: r219992 - stable/8/sys/dev/stge

2011-03-25 Thread Marius Strobl
Author: marius Date: Fri Mar 25 12:48:06 2011 New Revision: 219992 URL: http://svn.freebsd.org/changeset/base/219992 Log: MFC: r219545 Allocate the DMA memory shared between the host and the controller as coherent. Modified: stable/8/sys/dev/stge/if_stge.c Directory Properties:

svn commit: r219993 - stable/8/sys/dev/xl

2011-03-25 Thread Marius Strobl
Author: marius Date: Fri Mar 25 12:48:56 2011 New Revision: 219993 URL: http://svn.freebsd.org/changeset/base/219993 Log: MFC: r219545 Allocate the DMA memory shared between the host and the controller as coherent. Modified: stable/8/sys/dev/xl/if_xl.c Directory Properties:

svn commit: r219994 - stable/8/sys/dev/ti

2011-03-25 Thread Marius Strobl
Author: marius Date: Fri Mar 25 12:50:50 2011 New Revision: 219994 URL: http://svn.freebsd.org/changeset/base/219994 Log: MFC: r219547 - Allocate the DMA memory shared between the host and the controller as coherent. - Constify the ti_devs table. - Don't bother to set if_mtu to

svn commit: r219995 - stable/8/sys/dev/sound/pcm

2011-03-25 Thread Marius Strobl
Author: marius Date: Fri Mar 25 12:53:09 2011 New Revision: 219995 URL: http://svn.freebsd.org/changeset/base/219995 Log: MFC: r219548 Allocate the sound buffer DMA memory coherent. While NetBSD typically also does this for sound drivers it's probably not necessary for all combinations

svn commit: r219996 - in stable/8: libexec/rtld-elf/sparc64 sys/sparc64/sparc64

2011-03-25 Thread Marius Strobl
Author: marius Date: Fri Mar 25 13:03:13 2011 New Revision: 219996 URL: http://svn.freebsd.org/changeset/base/219996 Log: MFC: r219340, r219531, r219533 - Add support for TLS relocations. - Emitt an error when encountering an unsupported and in case of the kernel also for unaligned

svn commit: r219997 - stable/8/sys/sparc64/pci

2011-03-25 Thread Marius Strobl
Author: marius Date: Fri Mar 25 13:08:19 2011 New Revision: 219997 URL: http://svn.freebsd.org/changeset/base/219997 Log: MFC: r219780 In case reading PCIR_MINGNT fails don't use it for calculating the latency. This is more or less a theoretical problem though as it typically indicates

svn commit: r219999 - in head/sys: kern sys

2011-03-25 Thread Konstantin Belousov
Author: kib Date: Fri Mar 25 14:00:36 2011 New Revision: 21 URL: http://svn.freebsd.org/changeset/base/21 Log: Add O_CLOEXEC flag to open(2) and fhopen(2). The new function fallocf(9), that is renamed falloc(9) with added flag argument, is provided to facilitate the merge to stable

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

2011-03-25 Thread Konstantin Belousov
Author: kib Date: Fri Mar 25 14:01:18 2011 New Revision: 22 URL: http://svn.freebsd.org/changeset/base/22 Log: Document O_CLOEXEC. Reviewed by: jhb MFC after:1 week Modified: head/lib/libc/sys/open.2 Modified: head/lib/libc/sys/open.2

svn commit: r220001 - head/sys/vm

2011-03-25 Thread Konstantin Belousov
Author: kib Date: Fri Mar 25 16:38:10 2011 New Revision: 220001 URL: http://svn.freebsd.org/changeset/base/220001 Log: Handle the corner case in vm_fault_quick_hold_pages(). If supplied length is zero, and user address is invalid, function might return -1, due to the truncation and

svn commit: r220002 - in stable/8/sys: ddb gdb kern

2011-03-25 Thread Matthew D Fleming
Author: mdf Date: Fri Mar 25 18:16:36 2011 New Revision: 220002 URL: http://svn.freebsd.org/changeset/base/220002 Log: MFC r218825. [The implementation change to kdb_sysctl_available() cannot be MFC'd as it requires a non-MFCable change (adding drains to sbuf)]. Modify kdb_trap() so

svn commit: r220003 - in stable/7/sys: ddb gdb kern

2011-03-25 Thread Matthew D Fleming
Author: mdf Date: Fri Mar 25 18:16:49 2011 New Revision: 220003 URL: http://svn.freebsd.org/changeset/base/220003 Log: MFC r218825. [The implementation change to kdb_sysctl_available() cannot be MFC'd as it requires a non-MFCable change (adding drains to sbuf)]. Modify kdb_trap() so

svn commit: r220004 - head/libexec/rtld-elf

2011-03-25 Thread Andriy Gapon
Author: avg Date: Fri Mar 25 18:23:10 2011 New Revision: 220004 URL: http://svn.freebsd.org/changeset/base/220004 Log: rtld: eliminate double call to close(2) that may occur in load_object The second close(2) call resulted in heisenbugs in some multi-threaded applications where e.g.

svn commit: r220007 - head/sbin/hastd

2011-03-25 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Mar 25 20:19:15 2011 New Revision: 220007 URL: http://svn.freebsd.org/changeset/base/220007 Log: Add mapsize to the header just before sending the packet. Before it could change later and we were sending invalid mapsize. Some time ago I added optimization where when

svn commit: r220008 - in stable/7: share/man/man9 sys/conf sys/kern sys/sys

2011-03-25 Thread Matthew D Fleming
Author: mdf Date: Fri Mar 25 20:51:20 2011 New Revision: 220008 URL: http://svn.freebsd.org/changeset/base/220008 Log: MFC r192908 (introduced before the stable/8 split from CURRENT): fail(9) support: Add support for kernel fault injection using KFAIL_POINT_* macros and fail_point_*

svn commit: r220010 - stable/7/sys/kern

2011-03-25 Thread Matthew D Fleming
Author: mdf Date: Fri Mar 25 22:00:43 2011 New Revision: 220010 URL: http://svn.freebsd.org/changeset/base/220010 Log: MFC r216058 and r216059: r216058: Use the SYSCTL_CHILDREN macro in kern_sysctl.c to help de-obfuscate the code. r216059: Slightly modify the logic in

svn commit: r220011 - in stable/8/sys: kern sys

2011-03-25 Thread Matthew D Fleming
Author: mdf Date: Fri Mar 25 22:11:39 2011 New Revision: 220011 URL: http://svn.freebsd.org/changeset/base/220011 Log: MFC r216060. This differs from the original commit in that it preserves the KBI size of struct sysctl_oid. Also, on stable/8 the compiler thinks that 'len' in

svn commit: r220012 - in stable/7/sys: kern sys

2011-03-25 Thread Matthew D Fleming
Author: mdf Date: Fri Mar 25 22:11:54 2011 New Revision: 220012 URL: http://svn.freebsd.org/changeset/base/220012 Log: MFC r216060. This differs from the original commit in that it preserves the KBI size of struct sysctl_oid. Also, on stable/8 the compiler thinks that 'len' in

svn commit: r220013 - stable/7/sys/sys

2011-03-25 Thread Matthew D Fleming
Author: mdf Date: Fri Mar 25 22:17:24 2011 New Revision: 220013 URL: http://svn.freebsd.org/changeset/base/220013 Log: Fix r220012 (MFC of r216060); the KBI of sysctl_oid was *supposed* to be preserved, but I was hasty. Modified: stable/7/sys/sys/sysctl.h Modified:

svn commit: r220014 - head/sys/fs/msdosfs

2011-03-25 Thread Konstantin Belousov
Author: kib Date: Fri Mar 25 22:31:28 2011 New Revision: 220014 URL: http://svn.freebsd.org/changeset/base/220014 Log: Report EBUSY instead of EROFS for attempt of deleting or renaming the root directory of msdosfs mount. The VFS code would handle deletion case itself too, assuming VV_ROOT

svn commit: r220015 - head/usr.sbin/newsyslog

2011-03-25 Thread Doug Barton
Author: dougb Date: Sat Mar 26 00:34:35 2011 New Revision: 220015 URL: http://svn.freebsd.org/changeset/base/220015 Log: Add an example for the use of the include entry to help others who are as slow as I am. Discussed with: gordon Modified:

svn commit: r220016 - in head/sys/ofed: drivers/net/mlx4 include/linux/mlx4

2011-03-25 Thread Jeff Roberson
Author: jeff Date: Sat Mar 26 00:54:01 2011 New Revision: 220016 URL: http://svn.freebsd.org/changeset/base/220016 Log: - Implement wake-on-lan support in mlxen. Modified: head/sys/ofed/drivers/net/mlx4/en_ethtool.c head/sys/ofed/drivers/net/mlx4/en_netdev.c

svn commit: r220017 - head/etc/periodic/daily

2011-03-25 Thread Doug Barton
Author: dougb Date: Sat Mar 26 01:24:55 2011 New Revision: 220017 URL: http://svn.freebsd.org/changeset/base/220017 Log: Add the svn:executable property to the scripts that are missing it Modified: Directory Properties: head/etc/periodic/daily/404.status-zfs (props changed)

Re: svn commit: r220015 - head/usr.sbin/newsyslog

2011-03-25 Thread Alexander Best
On Sat Mar 26 11, Doug Barton wrote: Author: dougb Date: Sat Mar 26 00:34:35 2011 New Revision: 220015 URL: http://svn.freebsd.org/changeset/base/220015 Log: Add an example for the use of the include entry to help others who are as slow as I am. shouldn't that be march 25th? ;)

svn commit: r220018 - in head/sys: amd64/amd64 i386/i386

2011-03-25 Thread Jung-uk Kim
Author: jkim Date: Sat Mar 26 02:02:07 2011 New Revision: 220018 URL: http://svn.freebsd.org/changeset/base/220018 Log: Improve CPU identifications of various IDT/Centaur/VIA, Rise and Transmeta CPUs. These CPUs need explicit MSR configuration to expose ceratin CPU capabilities (e.g.,

svn commit: r220020 - in head/etc: defaults periodic/daily

2011-03-25 Thread Doug Barton
Author: dougb Date: Sat Mar 26 03:01:48 2011 New Revision: 220020 URL: http://svn.freebsd.org/changeset/base/220020 Log: Add a daily period script to back up /var/db/pkg The final product contains work from the originator, and Florent Thoumie florent.thou...@gmail.com. The final