svn commit: r212994 - head/sys/kern

2010-09-21 Thread Andriy Gapon
Author: avg Date: Wed Sep 22 06:45:07 2010 New Revision: 212994 URL: http://svn.freebsd.org/changeset/base/212994 Log: kdb_backtrace: use stack_print_ddb instead of stack_print This is a followup to r212964. stack_print call chain obtains linker sx lock and thus potentially may lead to

svn commit: r212993 - head/sys/dev/acpica

2010-09-21 Thread Andriy Gapon
Author: avg Date: Wed Sep 22 06:10:22 2010 New Revision: 212993 URL: http://svn.freebsd.org/changeset/base/212993 Log: acpi_attach: do not explicitly install default handlers for default address spaces There has been no need to do that starting with ACPICA 20040427 as AcpiEnableSubsyste

svn commit: r212992 - head/sys/kern

2010-09-21 Thread Alexander Motin
Author: mav Date: Wed Sep 22 05:32:37 2010 New Revision: 212992 URL: http://svn.freebsd.org/changeset/base/212992 Log: If kernel built with DEVICE_POLLING, keep one CPU always in active state to handle it. Modified: head/sys/kern/kern_clocksource.c Modified: head/sys/kern/kern_clocksource.

svn commit: r212991 - head/sys/cam

2010-09-21 Thread Alexander Motin
Author: mav Date: Wed Sep 22 05:17:18 2010 New Revision: 212991 URL: http://svn.freebsd.org/changeset/base/212991 Log: Decrease poll interval from 1000 to 100us. This significantly reduces kernel dump time, especially with minidump. Modified: head/sys/cam/cam_xpt.c Modified: head/sys/cam/c

svn commit: r212990 - head/tools/tools/nanobsd

2010-09-21 Thread Warner Losh
Author: imp Date: Wed Sep 22 04:48:39 2010 New Revision: 212990 URL: http://svn.freebsd.org/changeset/base/212990 Log: Make the labels match the device name that's mounted, not just the slice they are on. When NANO_LABEL is not defined, the fstab generates entries that specify /dev/ad0s1a.

Re: svn commit: r212959 - head/sbin/mount_unionfs

2010-09-21 Thread Doug Barton
On 9/21/2010 7:19 PM, Steve Kargl wrote: On Tue, Sep 21, 2010 at 07:16:28PM -0700, Doug Barton wrote: On 9/21/2010 7:14 PM, Alexey Dokuchaev wrote: On Tue, Sep 21, 2010 at 12:01:03PM -0700, Doug Barton wrote: You forgot to bump .Dd I thought it is required when manpages undergoes substantial

svn commit: r212989 - in head/sys/mips: include mips sibyte

2010-09-21 Thread Neel Natu
Author: neel Date: Wed Sep 22 02:26:07 2010 New Revision: 212989 URL: http://svn.freebsd.org/changeset/base/212989 Log: Enforce that 'pmap_kenter()' is only used to establish cacheable mappings. Mappings with other cacheability attributes can be established, if needed, by using 'pmap_kent

Re: svn commit: r212959 - head/sbin/mount_unionfs

2010-09-21 Thread Steve Kargl
On Tue, Sep 21, 2010 at 07:16:28PM -0700, Doug Barton wrote: > On 9/21/2010 7:14 PM, Alexey Dokuchaev wrote: > >On Tue, Sep 21, 2010 at 12:01:03PM -0700, Doug Barton wrote: > >>You forgot to bump .Dd > > > >I thought it is required when manpages undergoes substantial or at least > >functional chang

Re: svn commit: r212959 - head/sbin/mount_unionfs

2010-09-21 Thread Doug Barton
On 9/21/2010 7:14 PM, Alexey Dokuchaev wrote: On Tue, Sep 21, 2010 at 12:01:03PM -0700, Doug Barton wrote: You forgot to bump .Dd I thought it is required when manpages undergoes substantial or at least functional changes. Seriously? You people are so humor-deficient that you didn't recogniz

Re: svn commit: r212959 - head/sbin/mount_unionfs

2010-09-21 Thread Alexey Dokuchaev
On Tue, Sep 21, 2010 at 12:01:03PM -0700, Doug Barton wrote: > You forgot to bump .Dd I thought it is required when manpages undergoes substantial or at least functional changes. ./danfe ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/

svn commit: r212980 - in head: share/man/man4 sys/dev/usb sys/dev/usb/net

2010-09-21 Thread MIHIRA Sanpei Yoshiro
Author: sanpei Date: Tue Sep 21 22:42:14 2010 New Revision: 212980 URL: http://svn.freebsd.org/changeset/base/212980 Log: Add new device ids. Buffalo (Melco Inc.) LUA3-U2-AGT Logitec LAN-GTJ/U2A(usb/119981) PR: usb/119981 and me Submitted by: "Y.Okabe" , hiroo at oikumene.

svn commit: r212979 - in head: gnu/lib/libobjc sys/boot/i386/boot2 sys/boot/pc98/boot2

2010-09-21 Thread Dimitry Andric
Author: dim Date: Tue Sep 21 21:41:45 2010 New Revision: 212979 URL: http://svn.freebsd.org/changeset/base/212979 Log: When building world with clang, for gnu/lib/libobjc, sys/boot/i386/boot2 and sys/boot/pc98/boot2, do not simply assign 'gcc' to CC, since compile flags are sometimes passed

svn commit: r212978 - head/cddl/usr.sbin/plockstat

2010-09-21 Thread Christian Brueffer
Author: brueffer Date: Tue Sep 21 21:07:46 2010 New Revision: 212978 URL: http://svn.freebsd.org/changeset/base/212978 Log: Minor grammar fixes. Modified: head/cddl/usr.sbin/plockstat/plockstat.1 Modified: head/cddl/usr.sbin/plockstat/plockstat.1 =

Re: svn commit: r212976 - head/lib/libc/i386/gen

2010-09-21 Thread Rui Paulo
On 21 Sep 2010, at 21:23, Rui Paulo wrote: > Author: rpaulo > Date: Tue Sep 21 20:23:19 2010 > New Revision: 212976 > URL: http://svn.freebsd.org/changeset/base/212976 > > Log: > Workaround LLVM bug #4434: > > Reorder inline assembly arguments temp2, temp, value and texp to follow > the st(0)

svn commit: r212976 - head/lib/libc/i386/gen

2010-09-21 Thread Rui Paulo
Author: rpaulo Date: Tue Sep 21 20:23:19 2010 New Revision: 212976 URL: http://svn.freebsd.org/changeset/base/212976 Log: Workaround LLVM bug #4434: Reorder inline assembly arguments temp2, temp, value and texp to follow the st(0), st(1), etc. style. Also mark the temp2 variable as vola

svn commit: r212974 - head/sys/kern

2010-09-21 Thread John Baldwin
Author: jhb Date: Tue Sep 21 19:12:22 2010 New Revision: 212974 URL: http://svn.freebsd.org/changeset/base/212974 Log: Comment nit, set TDF_NEEDRESCHED after the comment describing why it is done rather than before. MFC after:1 week Modified: head/sys/kern/sched_ule.c Modified: he

Re: svn commit: r212959 - head/sbin/mount_unionfs

2010-09-21 Thread Doug Barton
You forgot to bump .Dd On 9/21/2010 1:25 AM, Ed Schouten wrote: Author: ed Date: Tue Sep 21 08:25:00 2010 New Revision: 212959 URL: http://svn.freebsd.org/changeset/base/212959 Log: Add a notice to the man page that batteries should be installed. Modified: head/sbin/mount_unionfs/mount_u

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

2010-09-21 Thread Matthew Jacob
FWIW, I think that this would be a *good* thing. One of the problems with panic is that you can't really reset the state of the world, so most kernel services are not reliable. Unfortunately, mechanisms for preserving forensics for debug require some kernel services. Seems to me you are backin

svn commit: r212972 - head/sys/dev/stge

2010-09-21 Thread Pyun YongHyeon
Author: yongari Date: Tue Sep 21 17:52:32 2010 New Revision: 212972 URL: http://svn.freebsd.org/changeset/base/212972 Log: Remove unnecessary controller reinitialization. PR: kern/87506 Modified: head/sys/dev/stge/if_stge.c Modified: head/sys/dev/stge/if_stge.c ===

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

2010-09-21 Thread John Baldwin
On Tuesday, September 21, 2010 12:53:56 pm Matthew Jacob wrote: > > > Err, I don't think _mtx_lock_sleep() is guarded in that fashion? I have an > > old patch to do that but have never committed it. If we want that we should > > probably change rwlocks and sxlocks to have also not block when pan

svn commit: r212971 - head/sys/dev/sf

2010-09-21 Thread Pyun YongHyeon
Author: yongari Date: Tue Sep 21 17:42:19 2010 New Revision: 212971 URL: http://svn.freebsd.org/changeset/base/212971 Log: Remove unnecessary controller reinitialization. StarFire controller does not require controller reinitialization to program perfect filters. While here, make driver imme

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

2010-09-21 Thread mdf
On Tue, Sep 21, 2010 at 9:50 AM, John Baldwin wrote: > On Tuesday, September 21, 2010 12:31:01 pm m...@freebsd.org wrote: >> On Tue, Sep 21, 2010 at 8:40 AM, Andriy Gapon wrote: >> > on 21/09/2010 18:27 Andriy Gapon said the following: >> >> on 21/09/2010 18:17 m...@freebsd.org said the following

svn commit: r212970 - head/sys/kern

2010-09-21 Thread Alexander Motin
Author: mav Date: Tue Sep 21 17:37:28 2010 New Revision: 212970 URL: http://svn.freebsd.org/changeset/base/212970 Log: If new callout scheduled to another CPU and we are using global timer, there is high probability that timer is already programmed by some other CPU. Especially by one that r

svn commit: r212969 - head/sys/dev/et

2010-09-21 Thread Pyun YongHyeon
Author: yongari Date: Tue Sep 21 17:31:14 2010 New Revision: 212969 URL: http://svn.freebsd.org/changeset/base/212969 Log: Make sure to clear IFF_DRV_RUNNING to reinitialize controller. While I'm here update if_oerrors counter when driver encounters watchdog timeout. Modified: head/sys/de

svn commit: r212968 - head/sys/dev/ae

2010-09-21 Thread Pyun YongHyeon
Author: yongari Date: Tue Sep 21 17:25:15 2010 New Revision: 212968 URL: http://svn.freebsd.org/changeset/base/212968 Log: Remove unnecessary controller reinitialization. PR: kern/87506 Modified: head/sys/dev/ae/if_ae.c Modified: head/sys/dev/ae/if_ae.c ===

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

2010-09-21 Thread Matthew Jacob
Absolutely. I have patches for RELENG_7, but have had trouble moving it to head. Seems to me you are backing into interesting territory here- getting a bit more like Solaris. If you *do* do this, then you really *do* need to stop all other CPUs when you panic, or else it's likely you'll doubl

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

2010-09-21 Thread Alexander Motin
Matthew Jacob wrote: > >> Err, I don't think _mtx_lock_sleep() is guarded in that fashion? I >> have an >> old patch to do that but have never committed it. If we want that we >> should >> probably change rwlocks and sxlocks to have also not block when >> panicstr is >> set. > > Seems to me you

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

2010-09-21 Thread Matthew Jacob
Err, I don't think _mtx_lock_sleep() is guarded in that fashion? I have an old patch to do that but have never committed it. If we want that we should probably change rwlocks and sxlocks to have also not block when panicstr is set. Seems to me you are backing into interesting territory here-

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

2010-09-21 Thread John Baldwin
On Tuesday, September 21, 2010 12:31:01 pm m...@freebsd.org wrote: > On Tue, Sep 21, 2010 at 8:40 AM, Andriy Gapon wrote: > > on 21/09/2010 18:27 Andriy Gapon said the following: > >> on 21/09/2010 18:17 m...@freebsd.org said the following: > >>> > >>> I'd recommend using stack_print_ddb(), as tha

svn commit: r212967 - head/sys/kern

2010-09-21 Thread Alexander Motin
Author: mav Date: Tue Sep 21 16:50:24 2010 New Revision: 212967 URL: http://svn.freebsd.org/changeset/base/212967 Log: Remember last kern.eventtimer.periodic value, explicitly set by user. If timer capabilities forcing us to change periodicity mode, try to restore it back later, as soon as n

svn commit: r212966 - head/sys/fs/devfs

2010-09-21 Thread Jaakko Heinonen
Author: jh Date: Tue Sep 21 16:49:02 2010 New Revision: 212966 URL: http://svn.freebsd.org/changeset/base/212966 Log: Modify devfs_fqpn() for future use in devfs path reference counting code: - Accept devfs_mount and devfs_dirent as the arguments instead of a vnode. This generalizes t

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

2010-09-21 Thread mdf
On Tue, Sep 21, 2010 at 9:36 AM, Andriy Gapon wrote: > on 21/09/2010 19:31 m...@freebsd.org said the following: >> I keep forgetting, but actually _mtx_lock_sleep() will just return if >> panicstr is set.  _mtx_assert() is similarly guarded, so actually it >> should be mostly okay. > > But this do

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

2010-09-21 Thread Andriy Gapon
on 21/09/2010 19:31 m...@freebsd.org said the following: > I keep forgetting, but actually _mtx_lock_sleep() will just return if > panicstr is set. _mtx_assert() is similarly guarded, so actually it > should be mostly okay. But this doesn't seem to be the case for sx lock which is wrapped under

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

2010-09-21 Thread mdf
On Tue, Sep 21, 2010 at 8:40 AM, Andriy Gapon wrote: > on 21/09/2010 18:27 Andriy Gapon said the following: >> on 21/09/2010 18:17 m...@freebsd.org said the following: >>> >>> I'd recommend using stack_print_ddb(), as that avoids any locking >>> which may hang depending on how the kernel panic'd.

svn commit: r212965 - in head: lib/libc/sys sys/kern sys/sys

2010-09-21 Thread Alan Cox
Author: alc Date: Tue Sep 21 16:24:51 2010 New Revision: 212965 URL: http://svn.freebsd.org/changeset/base/212965 Log: Fix exec_imgact_shell()'s handling of two error cases: (1) Previously, if the first line of a script exceeded MAXSHELLCMDLEN characters, then exec_imgact_shell() silently tr

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

2010-09-21 Thread Attilio Rao
2010/9/21 Andriy Gapon : > on 21/09/2010 18:17 m...@freebsd.org said the following: >> I'd recommend using stack_print_ddb(), as that avoids any locking >> which may hang depending on how the kernel panic'd. > > How does the following look to you? > I hope I haven't freed too much from under DDB. >

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

2010-09-21 Thread Andriy Gapon
on 21/09/2010 18:17 m...@freebsd.org said the following: > I'd recommend using stack_print_ddb(), as that avoids any locking > which may hang depending on how the kernel panic'd. How does the following look to you? I hope I haven't freed too much from under DDB. The patch compiles fine with STACK

Re: svn commit: r209510 - head

2010-09-21 Thread M. Warner Losh
In message: <20100920.230006.634347869592887498@bsdimp.com> "M. Warner Losh" writes: : In message: : Andrew Thompson writes: : : On 25 June 2010 04:32, Warner Losh wrote: : : > Author: imp : : > Date: Thu Jun 24 16:32:20 2010 : : > New Revision: 209510 : : > URL: htt

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

2010-09-21 Thread Attilio Rao
2010/9/21 Andriy Gapon : > on 21/09/2010 18:27 Andriy Gapon said the following: >> on 21/09/2010 18:17 m...@freebsd.org said the following: >>> >>> I'd recommend using stack_print_ddb(), as that avoids any locking >>> which may hang depending on how the kernel panic'd. >> >> It seems that stack_pri

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

2010-09-21 Thread Andriy Gapon
on 21/09/2010 18:27 Andriy Gapon said the following: > on 21/09/2010 18:17 m...@freebsd.org said the following: >> >> I'd recommend using stack_print_ddb(), as that avoids any locking >> which may hang depending on how the kernel panic'd. > > It seems that stack_print_ddb() depends on DDB? But th

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

2010-09-21 Thread Andriy Gapon
on 21/09/2010 18:17 m...@freebsd.org said the following: > On Tue, Sep 21, 2010 at 8:07 AM, Andriy Gapon wrote: >> Author: avg >> Date: Tue Sep 21 15:07:44 2010 >> New Revision: 212964 >> URL: http://svn.freebsd.org/changeset/base/212964 >> >> Log: >> kdb_backtrace: stack(9)-based code to print b

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

2010-09-21 Thread mdf
On Tue, Sep 21, 2010 at 8:07 AM, Andriy Gapon wrote: > Author: avg > Date: Tue Sep 21 15:07:44 2010 > New Revision: 212964 > URL: http://svn.freebsd.org/changeset/base/212964 > > Log: >  kdb_backtrace: stack(9)-based code to print backtrace without any backend > >  The idea is to add KDB and KDB_T

svn commit: r212964 - head/sys/kern

2010-09-21 Thread Andriy Gapon
Author: avg Date: Tue Sep 21 15:07:44 2010 New Revision: 212964 URL: http://svn.freebsd.org/changeset/base/212964 Log: kdb_backtrace: stack(9)-based code to print backtrace without any backend The idea is to add KDB and KDB_TRACE options to GENERIC kernels on stable branches, so that at l

svn commit: r212963 - stable/7/gnu/lib/libstdc++

2010-09-21 Thread Tijl Coosemans
Author: tijl Date: Tue Sep 21 12:57:43 2010 New Revision: 212963 URL: http://svn.freebsd.org/changeset/base/212963 Log: MFC r212286: GCC defines built-ins for atomic instructions found on i486 and higher. Because FreeBSD no longer supports the 80386 cpu all code targeting FreeBSD/i386 n

svn commit: r212962 - stable/8/gnu/lib/libstdc++

2010-09-21 Thread Tijl Coosemans
Author: tijl Date: Tue Sep 21 12:55:20 2010 New Revision: 212962 URL: http://svn.freebsd.org/changeset/base/212962 Log: MFC r212286: GCC defines built-ins for atomic instructions found on i486 and higher. Because FreeBSD no longer supports the 80386 cpu all code targeting FreeBSD/i386 n

Re: svn commit: r212886 - head/sbin/growfs

2010-09-21 Thread Bruce Evans
On Tue, 21 Sep 2010, Brian Somers wrote: On Mon, 20 Sep 2010 16:55:57 +1000 (EST) Bruce Evans wrote: On Mon, 20 Sep 2010, Marcel Moolenaar wrote: Log: Unbreak the build on strong-aligned architectures (arm, ia64). Casting from (char *) to (struct ufs1_dinode *) changes the alignment requ

Re: svn commit: r212886 - head/sbin/growfs

2010-09-21 Thread Brian Somers
On Mon, 20 Sep 2010 16:55:57 +1000 (EST) Bruce Evans wrote: > On Mon, 20 Sep 2010, Marcel Moolenaar wrote: > > > Log: > > Unbreak the build on strong-aligned architectures (arm, ia64). > > Casting from (char *) to (struct ufs1_dinode *) changes the > > alignment requirement of the pointer and

svn commit: r212961 - in head/crypto/openssl/crypto: . rc5

2010-09-21 Thread Rui Paulo
Author: rpaulo Date: Tue Sep 21 10:22:29 2010 New Revision: 212961 URL: http://svn.freebsd.org/changeset/base/212961 Log: Bring in OpenSSL checkin 19821: Make inline assembler clang-friendly [from HEAD]. openssl/crypto/md32_common.h 1.45.2.1 -> 1.45.2.2 openssl/crypto/rc5/

svn commit: r212960 - stable/8/sys/sys

2010-09-21 Thread Konstantin Belousov
Author: kib Date: Tue Sep 21 09:33:44 2010 New Revision: 212960 URL: http://svn.freebsd.org/changeset/base/212960 Log: MFC r212618: Rename the field to not confuse readers. The bytes are actually used. Modified: stable/8/sys/sys/mount.h Directory Properties: stable/8/sys/ (props changed

svn commit: r212959 - head/sbin/mount_unionfs

2010-09-21 Thread Ed Schouten
Author: ed Date: Tue Sep 21 08:25:00 2010 New Revision: 212959 URL: http://svn.freebsd.org/changeset/base/212959 Log: Add a notice to the man page that batteries should be installed. Modified: head/sbin/mount_unionfs/mount_unionfs.8 Modified: head/sbin/mount_unionfs/mount_unionfs.8 =

svn commit: r212958 - head/sys/kern

2010-09-21 Thread Alexander Motin
Author: mav Date: Tue Sep 21 08:02:02 2010 New Revision: 212958 URL: http://svn.freebsd.org/changeset/base/212958 Log: Until hardclock() and respectively tc_windup() called first time, system is running on "dummy" time counter. But to function properly in one-shot mode, event timer managemen

svn commit: r212957 - in head/sys/mips/rmi: . dev/nlge

2010-09-21 Thread Jayachandran C.
Author: jchandra Date: Tue Sep 21 07:58:47 2010 New Revision: 212957 URL: http://svn.freebsd.org/changeset/base/212957 Log: n32 fixes for nlge. Use correct define (__mips_n64) for n64 compilation and use correct parameter type for xlr_paddr_lw() in n32. Modified: head/sys/mips/rmi/dev/

svn commit: r212956 - stable/7/sbin/dhclient

2010-09-21 Thread Brian Somers
Author: brian Date: Tue Sep 21 07:44:40 2010 New Revision: 212956 URL: http://svn.freebsd.org/changeset/base/212956 Log: MFC r212253: Document how to use dhclient-{enter,exit}-hooks. PR: 149351 Modified: stable/7/sbin/dhclient/dhclient-script.8 Directory Properties: stable/7/

svn commit: r212955 - stable/8/sbin/dhclient

2010-09-21 Thread Brian Somers
Author: brian Date: Tue Sep 21 07:43:56 2010 New Revision: 212955 URL: http://svn.freebsd.org/changeset/base/212955 Log: MFC r212253: Document how to use dhclient-{enter,exit}-hooks. PR: 149351 Modified: stable/8/sbin/dhclient/dhclient-script.8 Directory Properties: stable/8/

svn commit: r212954 - head/sys/conf

2010-09-21 Thread Andrew Thompson
Author: thompsa Date: Tue Sep 21 07:03:53 2010 New Revision: 212954 URL: http://svn.freebsd.org/changeset/base/212954 Log: Fix the path to the sys dir when cross compiling after r209510. Reviewed by: imp Modified: head/sys/conf/newvers.sh Modified: head/sys/conf/newvers.sh

svn commit: r212953 - stable/8/sys/fs/tmpfs

2010-09-21 Thread Ed Schouten
Author: ed Date: Tue Sep 21 07:01:00 2010 New Revision: 212953 URL: http://svn.freebsd.org/changeset/base/212953 Log: MFC r211598: Add support for whiteouts on tmpfs. Right now unionfs only allows filesystems to be mounted on top of another if it supports whiteouts. Even though