svn commit: r220649 - in head/sys/dev/cxgbe: . common

2011-04-14 Thread Navdeep Parhar
Author: np Date: Fri Apr 15 03:09:27 2011 New Revision: 220649 URL: http://svn.freebsd.org/changeset/base/220649 Log: Fix a couple of bad races that can occur when a cxgbe interface is taken down. The ingress queue lock was unused and has been removed as part of these changes. - An in-

svn commit: r220648 - in head/sys/fs: nfs nfsclient nfsserver

2011-04-14 Thread Rick Macklem
Author: rmacklem Date: Thu Apr 14 23:46:15 2011 New Revision: 220648 URL: http://svn.freebsd.org/changeset/base/220648 Log: Fix the experimental NFSv4 server so that it uses VOP_PATHCONF() to determine if a file system supports NFSv4 ACLs. Since VOP_PATHCONF() must be called with a locked vn

svn commit: r220647 - in head/sys: dev/acpica sys

2011-04-14 Thread Jung-uk Kim
Author: jkim Date: Thu Apr 14 22:17:39 2011 New Revision: 220647 URL: http://svn.freebsd.org/changeset/base/220647 Log: Add event handlers for (ACPI) suspend/resume events. Suspend event handlers are invoked right before device drivers go into sleep state and resume event handlers are invok

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

2011-04-14 Thread Jilles Tjoelker
Author: jilles Date: Thu Apr 14 22:06:11 2011 New Revision: 220646 URL: http://svn.freebsd.org/changeset/base/220646 Log: getfh(2): Add xrefs for fhopen(2), open(2), stat(2). MFC after:1 week Modified: head/lib/libc/sys/getfh.2 Modified: head/lib/libc/sys/getfh.2 ===

svn commit: r220645 - in head/sys/fs: nfs nfsclient nfsserver

2011-04-14 Thread Rick Macklem
Author: rmacklem Date: Thu Apr 14 21:49:52 2011 New Revision: 220645 URL: http://svn.freebsd.org/changeset/base/220645 Log: Modify the experimental NFSv4 server so that it handles crossing of server mount points properly. The functions nfsvno_fillattr() and nfsv4_fillattr() were modified to

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

2011-04-14 Thread John Baldwin
On Sunday, April 10, 2011 1:07:03 pm Konstantin Belousov wrote: > Author: kib > Date: Sun Apr 10 17:07:02 2011 > New Revision: 220526 > URL: http://svn.freebsd.org/changeset/base/220526 > > Log: > Some callers of proc_reparent() already have the parent process locked. > Detect the situation an

svn commit: r220644 - in head/sys/cam: . ata scsi

2011-04-14 Thread Alexander Motin
Author: mav Date: Thu Apr 14 21:25:32 2011 New Revision: 220644 URL: http://svn.freebsd.org/changeset/base/220644 Log: Make CAM report devices with ATA/SATA transport to devstat(9) as IDE. Modified: head/sys/cam/ata/ata_da.c head/sys/cam/cam_ccb.h head/sys/cam/scsi/scsi_cd.c head/sys/ca

Re: svn commit: r220618 - head/sys/cam/ata

2011-04-14 Thread Alexander Motin
On 14.04.2011 19:00, Jaakko Heinonen wrote: On 2011-04-14, Alexander Motin wrote: Fix typo in write_cache tunable name and move TUNABLE_INT_FETCH() out of the SIM lock to fix WITNESS warning. Thanks! Does this analogous patch for cd(4) and da(4) look good? Looks fine. I am not compl

svn commit: r220643 - head/sys/dev/cxgbe

2011-04-14 Thread Navdeep Parhar
Author: np Date: Thu Apr 14 20:06:23 2011 New Revision: 220643 URL: http://svn.freebsd.org/changeset/base/220643 Log: There is no need to request a tx credit flush if such a request is already pending. MFC after:3 days Modified: head/sys/dev/cxgbe/adapter.h head/sys/dev/cxgbe/t4_

svn commit: r220642 - head/sys/powerpc/aim

2011-04-14 Thread Andreas Tobler
Author: andreast Date: Thu Apr 14 19:37:31 2011 New Revision: 220642 URL: http://svn.freebsd.org/changeset/base/220642 Log: Adjust debugging string to match the actual function. Approved by: nwhitehorn (mentor) Modified: head/sys/powerpc/aim/mmu_oea64.c Modified: head/sys/powerpc/aim/mm

svn commit: r220641 - head/sys/x86/isa

2011-04-14 Thread Jung-uk Kim
Author: jkim Date: Thu Apr 14 19:11:45 2011 New Revision: 220641 URL: http://svn.freebsd.org/changeset/base/220641 Log: Use newly added rdtsc32() for DELAY(9) as well. Modified: head/sys/x86/isa/clock.c Modified: head/sys/x86/isa/clock.c ==

svn commit: r220640 - in head: share/man/man5 usr.bin/rctl

2011-04-14 Thread Edward Tomasz Napierala
Author: trasz Date: Thu Apr 14 18:37:27 2011 New Revision: 220640 URL: http://svn.freebsd.org/changeset/base/220640 Log: Add manual page for rctl.conf(5). Added: head/share/man/man5/rctl.conf.5 (contents, props changed) Modified: head/share/man/man5/Makefile head/usr.bin/rctl/rctl.8 Mo

svn commit: r220639 - head/sys/powerpc/aim

2011-04-14 Thread Andreas Tobler
Author: andreast Date: Thu Apr 14 18:26:50 2011 New Revision: 220639 URL: http://svn.freebsd.org/changeset/base/220639 Log: The macro MOEA_PVO_CHECK is empty and not used. It is a left over from the NetBSD import. Remove the definition and all its occurrences. Approved by: nwhitehorn (men

svn commit: r220638 - head/sys/powerpc/powerpc

2011-04-14 Thread Andreas Tobler
Author: andreast Date: Thu Apr 14 18:14:43 2011 New Revision: 220638 URL: http://svn.freebsd.org/changeset/base/220638 Log: Add stoppcbs[] arrays on powerpc(64) and have each CPU save its current context in the IPI_STOP handler. Similar as done on other architectures. Approved by: nwhit

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

2011-04-14 Thread Jung-uk Kim
On Thursday 14 April 2011 01:08 pm, Jung-uk Kim wrote: > Author: jkim > Date: Thu Apr 14 17:08:23 2011 > New Revision: 220632 > URL: http://svn.freebsd.org/changeset/base/220632 > > Log: > Use newly added rdtsc32() for the timecounter_get_t method. It only seems to make big difference in amd64,

svn commit: r220637 - head/sys/x86/x86

2011-04-14 Thread Jung-uk Kim
Author: jkim Date: Thu Apr 14 17:50:26 2011 New Revision: 220637 URL: http://svn.freebsd.org/changeset/base/220637 Log: Work around an emulator problem where virtual CPU advertises TSC is P-state invariant and APERF/MPERF MSRs exist but these MSRs never tick. When we calculate effective fre

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

2011-04-14 Thread Bernhard Schmidt
Author: bschmidt Date: Thu Apr 14 17:42:21 2011 New Revision: 220636 URL: http://svn.freebsd.org/changeset/base/220636 Log: Instead of trying to figure out which rxon.flags to clear, restart from scratch. Remove htole16() calls, rxon.chan is an uint8_t, ieee80211_chan2ieee() does return an i

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

2011-04-14 Thread Bernhard Schmidt
Author: bschmidt Date: Thu Apr 14 17:31:34 2011 New Revision: 220635 URL: http://svn.freebsd.org/changeset/base/220635 Log: iwn_cleanup() is just a wrapper around iwn_detach(), call it directly instead. Modified: head/sys/dev/iwn/if_iwn.c Modified: head/sys/dev/iwn/if_iwn.c ===

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

2011-04-14 Thread Bernhard Schmidt
Author: bschmidt Date: Thu Apr 14 17:26:13 2011 New Revision: 220634 URL: http://svn.freebsd.org/changeset/base/220634 Log: Reuse net80211 code: - IWN_TXOP_TO_US is equal to IEEE80211_TXOP_TO_US - use IEEE80211_DUR_TU - ieee80211_add_rates/ieee80211_add_xrates are public, use em - copied

Re: svn commit: r220584 - in head/sys: amd64/amd64 i386/i386

2011-04-14 Thread Dimitry Andric
On 2011-04-14 17:06, Jung-uk Kim wrote: ... I am going to test APERF& MPERF so that you don't need to do that from there. Please stay tuned. Can you please test the attached patch? Yes, this works fine. Please commit. ___ svn-src-head@freebsd.org

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

2011-04-14 Thread Bernhard Schmidt
Author: bschmidt Date: Thu Apr 14 17:19:33 2011 New Revision: 220633 URL: http://svn.freebsd.org/changeset/base/220633 Log: Remove IWN_FLAG_HAS_5GHZ and IWN_PCI_BAR0, both unused. Modified: head/sys/dev/iwn/if_iwn.c head/sys/dev/iwn/if_iwnreg.h head/sys/dev/iwn/if_iwnvar.h Modified: head

svn commit: r220632 - head/sys/x86/x86

2011-04-14 Thread Jung-uk Kim
Author: jkim Date: Thu Apr 14 17:08:23 2011 New Revision: 220632 URL: http://svn.freebsd.org/changeset/base/220632 Log: Use newly added rdtsc32() for the timecounter_get_t method. Modified: head/sys/x86/x86/tsc.c Modified: head/sys/x86/x86/tsc.c ==

svn commit: r220631 - in head/sys: amd64/include i386/include

2011-04-14 Thread Jung-uk Kim
Author: jkim Date: Thu Apr 14 16:53:32 2011 New Revision: 220631 URL: http://svn.freebsd.org/changeset/base/220631 Log: Add a function rdtsc32() to read lower 32 bits from TSC and discard upper 32 bits. Some times compiler inserts unnecessary instructions to preserve unused upper 32 bits ev

svn commit: r220630 - head/gnu/usr.bin/cc/include

2011-04-14 Thread Dimitry Andric
Author: dim Date: Thu Apr 14 16:45:16 2011 New Revision: 220630 URL: http://svn.freebsd.org/changeset/base/220630 Log: In r219639, SSSE3 instruction set support was backported to our gcc. Therefore, we also need to install the new tmmintrin.h header containing the related intrinsic functi

svn commit: r220629 - in head/sys: amd64/include i386/include

2011-04-14 Thread Jung-uk Kim
Author: jkim Date: Thu Apr 14 16:19:41 2011 New Revision: 220629 URL: http://svn.freebsd.org/changeset/base/220629 Log: Consistently use __volatile as the rest of this file. Modified: head/sys/amd64/include/cpufunc.h head/sys/i386/include/cpufunc.h Modified: head/sys/amd64/include/cpufunc.

svn commit: r220628 - head/sys/amd64/include

2011-04-14 Thread Jung-uk Kim
Author: jkim Date: Thu Apr 14 16:14:35 2011 New Revision: 220628 URL: http://svn.freebsd.org/changeset/base/220628 Log: Prefer C99 standard integers to reduce diff from i386 version. Modified: head/sys/amd64/include/cpufunc.h Modified: head/sys/amd64/include/cpufunc.h ===

svn commit: r220627 - head/sys/i386/include

2011-04-14 Thread Jung-uk Kim
Author: jkim Date: Thu Apr 14 16:02:52 2011 New Revision: 220627 URL: http://svn.freebsd.org/changeset/base/220627 Log: Consistently use C99 standard integers as the rest of this file. Modified: head/sys/i386/include/cpufunc.h Modified: head/sys/i386/include/cpufunc.h ===

Re: svn commit: r220618 - head/sys/cam/ata

2011-04-14 Thread Jaakko Heinonen
On 2011-04-14, Alexander Motin wrote: > Fix typo in write_cache tunable name and move TUNABLE_INT_FETCH() out of > the SIM lock to fix WITNESS warning. Thanks! Does this analogous patch for cd(4) and da(4) look good? I am not completely sure if it's safe to move setting of minimum_cmd_size in

svn commit: r220626 - head

2011-04-14 Thread Nathan Whitehorn
Author: nwhitehorn Date: Thu Apr 14 15:44:44 2011 New Revision: 220626 URL: http://svn.freebsd.org/changeset/base/220626 Log: Provide a (belated) UPDATING note related to the new release-building process so that fewer people will be caught unaware. Requested by: emaste Modified: head/U

svn commit: r220624 - in head/lib/libedit: . edit/readline

2011-04-14 Thread David E. O'Brien
Author: obrien Date: Thu Apr 14 15:42:15 2011 New Revision: 220624 URL: http://svn.freebsd.org/changeset/base/220624 Log: Add $FreeBSD$'s. Modified: head/lib/libedit/chartype.h head/lib/libedit/edit/readline/readline.h Modified: head/lib/libedit/chartype.h =

Re: svn commit: r220584 - in head/sys: amd64/amd64 i386/i386

2011-04-14 Thread Jung-uk Kim
On Thursday 14 April 2011 10:44 am, Jung-uk Kim wrote: > On Thursday 14 April 2011 06:49 am, Dimitry Andric wrote: > > On 2011-04-14 00:27, Jung-uk Kim wrote: > > ... > > > > >> will still read 0 from MSR_MPERF, leading to a division by > > >> zero. Maybe just fallback to the second method in the '

svn commit: r220622 - head/sys/kern

2011-04-14 Thread Gleb Smirnoff
Author: glebius Date: Thu Apr 14 14:54:22 2011 New Revision: 220622 URL: http://svn.freebsd.org/changeset/base/220622 Log: Revert r194662, since it breaks ng_ksocket(4) and may break other socket consumers with alternate sb_upcall. PR: kern/154676 Submitted by: Arnaud Lacombe

Re: svn commit: r220584 - in head/sys: amd64/amd64 i386/i386

2011-04-14 Thread Jung-uk Kim
On Thursday 14 April 2011 06:49 am, Dimitry Andric wrote: > On 2011-04-14 00:27, Jung-uk Kim wrote: > ... > > >> will still read 0 from MSR_MPERF, leading to a division by zero. > >> Maybe just fallback to the second method in the 'else' branch > >> then? > > > > That means your VM has broken CPUID

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

2011-04-14 Thread Sergey Kandaurov
Author: pluknet Date: Thu Apr 14 14:25:47 2011 New Revision: 220621 URL: http://svn.freebsd.org/changeset/base/220621 Log: Remove stale M_ZOMBIE malloc type. This type is unused since embedding p_ru into struct proc. MFC after:1 week Modified: head/sys/kern/kern_exit.c head/sys/s

Re: svn commit: r220584 - in head/sys: amd64/amd64 i386/i386

2011-04-14 Thread Dimitry Andric
On 2011-04-14 00:27, Jung-uk Kim wrote: ... will still read 0 from MSR_MPERF, leading to a division by zero. Maybe just fallback to the second method in the 'else' branch then? That means your VM has broken CPUID support. To get there, it has to meet two conditions, i.e., TSC is invariant and

svn commit: r220620 - head/sys/netinet

2011-04-14 Thread Edward Tomasz Napierala
Author: trasz Date: Thu Apr 14 10:40:57 2011 New Revision: 220620 URL: http://svn.freebsd.org/changeset/base/220620 Log: Refactor udp_input(), moving calls to u_tun_func() into udp_append(). Obtained from: Wheel Systems Sp. z o.o. Reviewed by: bz@ Modified: head/sys/netinet/udp_usrreq

Re: svn commit: r220584 - in head/sys: amd64/amd64 i386/i386

2011-04-14 Thread Ivan Voras
On 14 April 2011 00:27, Jung-uk Kim wrote: > > That means your VM has broken CPUID support.  To get there, it has to > meet two conditions, i.e., TSC is invariant and it has APERF/MPERF > MSRs.  A simple workaround is setting "machdep.disable_tsc=1" > tuanable from loader but your VM is the real

svn commit: r220619 - head/sys/netinet

2011-04-14 Thread Bjoern A. Zeeb
Author: bz Date: Thu Apr 14 09:47:09 2011 New Revision: 220619 URL: http://svn.freebsd.org/changeset/base/220619 Log: The mbuf_frag_size always was and is file local and not queried from base user space tools via kvm. Mark it static. MFC after:3 days Modified: head/sys/netinet/ip_

svn commit: r220618 - head/sys/cam/ata

2011-04-14 Thread Alexander Motin
Author: mav Date: Thu Apr 14 09:11:50 2011 New Revision: 220618 URL: http://svn.freebsd.org/changeset/base/220618 Log: Fix typo in write_cache tunable name and move TUNABLE_INT_FETCH() out of the SIM lock to fix WITNESS warning. Reported by: jh Modified: head/sys/cam/ata/ata_da.c Mod

svn commit: r220617 - in head: lib/libc/gen sbin/reboot share/man/man4 share/man/man5

2011-04-14 Thread Sergey Kandaurov
Author: pluknet Date: Thu Apr 14 08:53:04 2011 New Revision: 220617 URL: http://svn.freebsd.org/changeset/base/220617 Log: Remove vestiges of disklabel(5). Reviewed by: uqs MFC after:5 days Modified: head/lib/libc/gen/getdiskbyname.3 head/sbin/reboot/boot_i386.8 head/share/man

svn commit: r220616 - head/sys/cam/ata

2011-04-14 Thread Alexander Motin
Author: mav Date: Thu Apr 14 08:17:45 2011 New Revision: 220616 URL: http://svn.freebsd.org/changeset/base/220616 Log: Properly log few more ATA commands used by the kernel. Modified: head/sys/cam/ata/ata_all.c Modified: head/sys/cam/ata/ata_all.c

svn commit: r220615 - head/sys/dev/mvs

2011-04-14 Thread Alexander Motin
Author: mav Date: Thu Apr 14 07:49:45 2011 New Revision: 220615 URL: http://svn.freebsd.org/changeset/base/220615 Log: Refactor hard-reset implementation in mvs(4). Instead of spinning in a tight loop for up to 15 seconds, polling for device readiness while it spins up, return reset compl

svn commit: r220614 - head/sys/dev/ipmi

2011-04-14 Thread Ruslan Ermilov
Author: ru Date: Thu Apr 14 07:14:22 2011 New Revision: 220614 URL: http://svn.freebsd.org/changeset/base/220614 Log: Fixed firmware revision decoding: - the major is 7-bit binary encoded - the minor is BCD encoded PR: kern/151586 MFC after:3 days Modified: head/sys/d