svn commit: r209411 - stable/8/sys/cam/scsi

2010-06-21 Thread Matt Jacob
Author: mjacob Date: Tue Jun 22 04:38:41 2010 New Revision: 209411 URL: http://svn.freebsd.org/changeset/base/209411 Log: This is an MFC of 208918 One byte off for scsi_target_group cdb. Modified: stable/8/sys/cam/scsi/scsi_all.h Directory Properties: stable/8/sys/ (props changed)

svn commit: r209410 - stable/8/sys/cam/scsi

2010-06-21 Thread Matt Jacob
Author: mjacob Date: Tue Jun 22 04:37:05 2010 New Revision: 209410 URL: http://svn.freebsd.org/changeset/base/209410 Log: This is an MFC of 208905 Make additional definitions up to and including SPC-4. Add in definitions for REPORT and SET TARGET PORT GROUP commands (foundations for futur

svn commit: r209412 - stable/8/sys/cam/scsi

2010-06-21 Thread Matt Jacob
Author: mjacob Date: Tue Jun 22 04:40:50 2010 New Revision: 209412 URL: http://svn.freebsd.org/changeset/base/209412 Log: This is an MFC of 209188 For the target port groups structures, don't allocate the initial element. This makes things easier for target implementations to calculate ho

svn commit: r209409 - in stable/8/sys/fs: nfsclient nfsserver

2010-06-21 Thread Rick Macklem
Author: rmacklem Date: Tue Jun 22 01:30:46 2010 New Revision: 209409 URL: http://svn.freebsd.org/changeset/base/209409 Log: MFC: r209191 Add MODULE_DEPEND() macros to the experimental NFS client and server so that the modules will load when kernels are built with none of the NFS* configura

svn commit: r209408 - head/sbin/fsck_ffs

2010-06-21 Thread Xin LI
Author: delphij Date: Tue Jun 22 00:26:07 2010 New Revision: 209408 URL: http://svn.freebsd.org/changeset/base/209408 Log: Improve fsck robustness for SU+J cases: - Use err/errx only when the case is really fatal. For other cases, fall back to full fsck instead of quiting fsck. -

svn commit: r209407 - head/sys/vm

2010-06-21 Thread Alan Cox
Author: alc Date: Mon Jun 21 23:27:24 2010 New Revision: 209407 URL: http://svn.freebsd.org/changeset/base/209407 Log: Introduce vm_page_next() and vm_page_prev(), and use them in vm_pageout_clean(). When iterating over a range of pages, these functions can be cheaper than vm_page_lookup()

svn commit: r209406 - stable/7/contrib/cpio/src

2010-06-21 Thread Xin LI
Author: delphij Date: Mon Jun 21 22:54:47 2010 New Revision: 209406 URL: http://svn.freebsd.org/changeset/base/209406 Log: Fix a regression when dealing with tar(1) format files introduced with GNU cpio 2.8. This is a direct commit against stable/7 because the code have been removed on

svn commit: r209405 - stable/7/sys/dev/twa

2010-06-21 Thread Xin LI
Author: delphij Date: Mon Jun 21 22:20:52 2010 New Revision: 209405 URL: http://svn.freebsd.org/changeset/base/209405 Log: MFC r208969,209268: Driver update of twa(4) from LSI. Many thanks to LSI for continuing to support FreeBSD. 1) Timeout ioctl command timeouts. Do not

svn commit: r209404 - stable/8/sys/dev/twa

2010-06-21 Thread Xin LI
Author: delphij Date: Mon Jun 21 22:00:57 2010 New Revision: 209404 URL: http://svn.freebsd.org/changeset/base/209404 Log: MFC r208969,209268: Driver update of twa(4) from LSI. Many thanks to LSI for continuing to support FreeBSD. 1) Timeout ioctl command timeouts. Do not

Re: svn commit: r209371 - in head/sys: amd64/amd64 amd64/include conf dev/acpica i386/i386 i386/include isa kern pc98/cbus sys x86/isa x86/x86

2010-06-21 Thread Kostik Belousov
On Tue, Jun 22, 2010 at 12:12:44AM +0300, Alexander Motin wrote: > Kostik Belousov wrote: > > Witness patch worked for me, and I can boot multiuser in the qemu-hosted > > system with hint.hpet.0.clock=0. Does the same hint should work for > > amd64 ? > > Yes. > > > The issue is no longer critical

svn commit: r209403 - head/sys/kern

2010-06-21 Thread Alexander Motin
Author: mav Date: Mon Jun 21 21:15:51 2010 New Revision: 209403 URL: http://svn.freebsd.org/changeset/base/209403 Log: "time lock" is no longer a spin-lock since r209371. Reported by: kib@ Modified: head/sys/kern/subr_witness.c Modified: head/sys/kern/subr_witness.c ===

Re: svn commit: r209371 - in head/sys: amd64/amd64 amd64/include conf dev/acpica i386/i386 i386/include isa kern pc98/cbus sys x86/isa x86/x86

2010-06-21 Thread Alexander Motin
Kostik Belousov wrote: > Witness patch worked for me, and I can boot multiuser in the qemu-hosted > system with hint.hpet.0.clock=0. Does the same hint should work for > amd64 ? Yes. > The issue is no longer critical for me due to hint, below is the dmesg > you asked for. Thanks. It is not verbo

Re: svn commit: r209371 - in head/sys: amd64/amd64 amd64/include conf dev/acpica i386/i386 i386/include isa kern pc98/cbus sys x86/isa x86/x86

2010-06-21 Thread Kostik Belousov
On Mon, Jun 21, 2010 at 11:46:11PM +0300, Alexander Motin wrote: > Kostik Belousov wrote: > > On Mon, Jun 21, 2010 at 11:09:05PM +0300, Alexander Motin wrote: > >> Alexander Motin wrote: > >>> Kostik Belousov wrote: > On Sun, Jun 20, 2010 at 09:33:29PM +, Alexander Motin wrote: > > Aut

Re: svn commit: r209371 - in head/sys: amd64/amd64 amd64/include conf dev/acpica i386/i386 i386/include isa kern pc98/cbus sys x86/isa x86/x86

2010-06-21 Thread Alexander Motin
Kostik Belousov wrote: > On Mon, Jun 21, 2010 at 11:09:05PM +0300, Alexander Motin wrote: >> Alexander Motin wrote: >>> Kostik Belousov wrote: On Sun, Jun 20, 2010 at 09:33:29PM +, Alexander Motin wrote: > Author: mav > Date: Sun Jun 20 21:33:29 2010 > New Revision: 209371

Re: svn commit: r209388 - in head/sbin/geom: class/part core misc

2010-06-21 Thread Marcel Moolenaar
On Jun 21, 2010, at 1:24 AM, Andrey V. Elsukov wrote: > Author: ae > Date: Mon Jun 21 08:24:50 2010 > New Revision: 209388 > URL: http://svn.freebsd.org/changeset/base/209388 > > Log: > Remove G_TYPE_ASCLBA type and replace it with G_TYPE_STRING in gpart. *snip* > PR: bin/146277 > Re

Re: svn commit: r209371 - in head/sys: amd64/amd64 amd64/include conf dev/acpica i386/i386 i386/include isa kern pc98/cbus sys x86/isa x86/x86

2010-06-21 Thread Alexander Motin
John Baldwin wrote: > On Monday 21 June 2010 4:08:33 pm Alexander Motin wrote: >> Kostik Belousov wrote: >>> On Sun, Jun 20, 2010 at 09:33:29PM +, Alexander Motin wrote: Author: mav Date: Sun Jun 20 21:33:29 2010 New Revision: 209371 URL: http://svn.freebsd.org/changeset/bas

Re: svn commit: r209371 - in head/sys: amd64/amd64 amd64/include conf dev/acpica i386/i386 i386/include isa kern pc98/cbus sys x86/isa x86/x86

2010-06-21 Thread Kostik Belousov
On Mon, Jun 21, 2010 at 11:09:05PM +0300, Alexander Motin wrote: > Alexander Motin wrote: > > Kostik Belousov wrote: > >> On Sun, Jun 20, 2010 at 09:33:29PM +, Alexander Motin wrote: > >>> Author: mav > >>> Date: Sun Jun 20 21:33:29 2010 > >>> New Revision: 209371 > >>> URL: http://svn.freebsd.

Re: svn commit: r209402 - head/sys/dev/acpica

2010-06-21 Thread Marcel Moolenaar
On Jun 21, 2010, at 1:27 PM, Alexander Motin wrote: > Author: mav > Date: Mon Jun 21 20:27:32 2010 > New Revision: 209402 > URL: http://svn.freebsd.org/changeset/base/209402 > > Log: > Fix ia64 build broken by r209371. > ia64, same as amd64 has ACPI and always has APIC. Thanks ;-) -- Marcel

Re: svn commit: r209371 - in head/sys: amd64/amd64 amd64/include conf dev/acpica i386/i386 i386/include isa kern pc98/cbus sys x86/isa x86/x86

2010-06-21 Thread John Baldwin
On Monday 21 June 2010 4:08:33 pm Alexander Motin wrote: > Kostik Belousov wrote: > > On Sun, Jun 20, 2010 at 09:33:29PM +, Alexander Motin wrote: > >> Author: mav > >> Date: Sun Jun 20 21:33:29 2010 > >> New Revision: 209371 > >> URL: http://svn.freebsd.org/changeset/base/209371 > >> > >> Log:

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

2010-06-21 Thread Alexander Motin
Author: mav Date: Mon Jun 21 20:27:32 2010 New Revision: 209402 URL: http://svn.freebsd.org/changeset/base/209402 Log: Fix ia64 build broken by r209371. ia64, same as amd64 has ACPI and always has APIC. Submitted by: jhb@ Modified: head/sys/dev/acpica/acpi_hpet.c Modified: head/sys/de

Re: svn commit: r209371 - in head/sys: amd64/amd64 amd64/include conf dev/acpica i386/i386 i386/include isa kern pc98/cbus sys x86/isa x86/x86

2010-06-21 Thread Pawel Worach
On Jun 21, 2010, at 21:58, Kostik Belousov wrote: > On Sun, Jun 20, 2010 at 09:33:29PM +, Alexander Motin wrote: >> Author: mav >> Date: Sun Jun 20 21:33:29 2010 >> New Revision: 209371 >> URL: http://svn.freebsd.org/changeset/base/209371 >> >> Log: >> Implement new event timers infrastructu

Re: svn commit: r209371 - in head/sys: amd64/amd64 amd64/include conf dev/acpica i386/i386 i386/include isa kern pc98/cbus sys x86/isa x86/x86

2010-06-21 Thread Alexander Motin
Alexander Motin wrote: > Kostik Belousov wrote: >> On Sun, Jun 20, 2010 at 09:33:29PM +, Alexander Motin wrote: >>> Author: mav >>> Date: Sun Jun 20 21:33:29 2010 >>> New Revision: 209371 >>> URL: http://svn.freebsd.org/changeset/base/209371 >>> >>> Log: >>> Implement new event timers infrast

Re: svn commit: r209371 - in head/sys: amd64/amd64 amd64/include conf dev/acpica i386/i386 i386/include isa kern pc98/cbus sys x86/isa x86/x86

2010-06-21 Thread Alexander Motin
Kostik Belousov wrote: > On Sun, Jun 20, 2010 at 09:33:29PM +, Alexander Motin wrote: >> Author: mav >> Date: Sun Jun 20 21:33:29 2010 >> New Revision: 209371 >> URL: http://svn.freebsd.org/changeset/base/209371 >> >> Log: >> Implement new event timers infrastructure. It provides unified APIs

Re: svn commit: r209371 - in head/sys: amd64/amd64 amd64/include conf dev/acpica i386/i386 i386/include isa kern pc98/cbus sys x86/isa x86/x86

2010-06-21 Thread Kostik Belousov
On Sun, Jun 20, 2010 at 09:33:29PM +, Alexander Motin wrote: > Author: mav > Date: Sun Jun 20 21:33:29 2010 > New Revision: 209371 > URL: http://svn.freebsd.org/changeset/base/209371 > > Log: > Implement new event timers infrastructure. It provides unified APIs for > writing event timer dr

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

2010-06-21 Thread Alexander Motin
Author: mav Date: Mon Jun 21 19:53:47 2010 New Revision: 209401 URL: http://svn.freebsd.org/changeset/base/209401 Log: Fix i386 LINT build broken by r209371. There appeared such legacy thing as APM, that somehow breaking RTC. Modified: head/sys/x86/isa/atrtc.c Modified: head/sys/x86/isa/at

svn commit: r209400 - head/lib

2010-06-21 Thread Ed Schouten
Author: ed Date: Mon Jun 21 19:44:29 2010 New Revision: 209400 URL: http://svn.freebsd.org/changeset/base/209400 Log: Don't build Clang libs during lib32 build. This should massively reduce the buildworld time on amd64. Pointy hat to:me Modified: head/lib/Makefile Modified:

Re: svn commit: r209358 - head/cddl/contrib/opensolaris/lib/libdtrace/common

2010-06-21 Thread Alexander Kabaev
On Tue, 22 Jun 2010 04:30:12 +1000 (EST) Bruce Evans wrote: > On Mon, 21 Jun 2010, Alexander Kabaev wrote: > > > On Tue, 22 Jun 2010 03:22:40 +1000 (EST) > > Bruce Evans wrote: > > > > > > DTrace _does_ try to unput EOF though and apparently gets away with > > it on Solaris, so while yor versi

Re: svn commit: r209358 - head/cddl/contrib/opensolaris/lib/libdtrace/common

2010-06-21 Thread M. Warner Losh
In message: <20100621133340.75017...@kan.dnsalias.net> Alexander Kabaev writes: : DTrace _does_ try to unput EOF though and apparently gets away with it : on Solaris, so while yor version is correct, it is also useless. Then DTrace can't possibly work on ARM. Warner _

Re: svn commit: r209358 - head/cddl/contrib/opensolaris/lib/libdtrace/common

2010-06-21 Thread Bruce Evans
On Mon, 21 Jun 2010, Alexander Kabaev wrote: On Tue, 22 Jun 2010 03:22:40 +1000 (EST) Bruce Evans wrote: On Sun, 20 Jun 2010, Marcel Moolenaar wrote: ... #undef unput -#define unput(c) \ - if (c != EOF) yyunput( c, yytext_ptr ) +#define unput(c) \

Re: svn commit: r209358 - head/cddl/contrib/opensolaris/lib/libdtrace/common

2010-06-21 Thread Marcel Moolenaar
On Jun 21, 2010, at 10:22 AM, Bruce Evans wrote: > On Sun, 20 Jun 2010, Marcel Moolenaar wrote: > >> Log: >> Unbreak platforms with char unsigned by default. Oddly enough, GCC isn't >> satisfied with a simple cast to int in the check against EOF, so the fix >> is a bit involved by actually havin

svn commit: r209399 - head/usr.sbin/mptutil

2010-06-21 Thread Sean Bruno
Author: sbruno Date: Mon Jun 21 18:01:57 2010 New Revision: 209399 URL: http://svn.freebsd.org/changeset/base/209399 Log: Syntax, commas and stuff. Comments from jhb. PR: bin/147572 MFC after:2 weeks Modified: head/usr.sbin/mptutil/mptutil.8 Modified: head/usr.sbin/mptu

Re: svn commit: r209358 - head/cddl/contrib/opensolaris/lib/libdtrace/common

2010-06-21 Thread Alexander Kabaev
On Tue, 22 Jun 2010 03:22:40 +1000 (EST) Bruce Evans wrote: > On Sun, 20 Jun 2010, Marcel Moolenaar wrote: > > > Log: > > Unbreak platforms with char unsigned by default. Oddly enough, GCC > > isn't satisfied with a simple cast to int in the check against EOF, > > so the fix is a bit involved b

Re: svn commit: r209358 - head/cddl/contrib/opensolaris/lib/libdtrace/common

2010-06-21 Thread Bruce Evans
On Sun, 20 Jun 2010, Marcel Moolenaar wrote: Log: Unbreak platforms with char unsigned by default. Oddly enough, GCC isn't satisfied with a simple cast to int in the check against EOF, so the fix is a bit involved by actually having to go through a temporary variable. Perhaps that is becaus

svn commit: r209394 - stable/7/lib/libelf

2010-06-21 Thread Kai Wang
Author: kaiw Date: Mon Jun 21 13:52:31 2010 New Revision: 209394 URL: http://svn.freebsd.org/changeset/base/209394 Log: MFC r209122: * Improve compatibility with existing application code by permitting the use of `elf_getbase()` on non-archive members. This change is needed fo

svn commit: r209393 - stable/8/lib/libelf

2010-06-21 Thread Kai Wang
Author: kaiw Date: Mon Jun 21 13:47:29 2010 New Revision: 209393 URL: http://svn.freebsd.org/changeset/base/209393 Log: MFC r209122: * Improve compatibility with existing application code by permitting the use of `elf_getbase()` on non-archive members. This change is needed fo

svn commit: r209392 - head/sbin/geom/misc

2010-06-21 Thread Andrey V. Elsukov
Author: ae Date: Mon Jun 21 12:50:54 2010 New Revision: 209392 URL: http://svn.freebsd.org/changeset/base/209392 Log: Check for overflow before it occurs. Also add check for negative numbers. Suggested by: ache Approved by: kib (mentor) Modified: head/sbin/geom/misc/subr.c Modified

Re: svn commit: r209388 - in head/sbin/geom: class/part core misc

2010-06-21 Thread Andrey Chernov
On Mon, Jun 21, 2010 at 08:24:51AM +, Andrey V. Elsukov wrote: > +done: > + if (mult * unit < mult || number * mult * unit < number) > + return (ERANGE); A general rule is: don't check for overflow when it already occurs, since result can be any, including valid ones. Redo it t

svn commit: r209390 - head/sys/kern

2010-06-21 Thread Ed Schouten
Author: ed Date: Mon Jun 21 09:55:56 2010 New Revision: 209390 URL: http://svn.freebsd.org/changeset/base/209390 Log: Use ISO C99 integer types in sys/kern where possible. There are only about 100 occurences of the BSD-specific u_int*_t datatypes in sys/kern. The ISO C99 integer types are

svn commit: r209389 - head/sys/kern

2010-06-21 Thread Konstantin Belousov
Author: kib Date: Mon Jun 21 09:51:25 2010 New Revision: 209389 URL: http://svn.freebsd.org/changeset/base/209389 Log: Do not report a stack garbage as the old value for debug.ncores sysctl. Reported by: brucec Modified: head/sys/kern/kern_sig.c Modified: head/sys/kern/kern_sig.c =

svn commit: r209388 - in head/sbin/geom: class/part core misc

2010-06-21 Thread Andrey V. Elsukov
Author: ae Date: Mon Jun 21 08:24:50 2010 New Revision: 209388 URL: http://svn.freebsd.org/changeset/base/209388 Log: Remove G_TYPE_ASCLBA type and replace it with G_TYPE_STRING in gpart. Move code that converts params from humanized numbers to sectors count to subr.c and adjust comment. A