svn commit: r199243 - in head: . etc/etc.amd64 etc/etc.arm etc/etc.ia64 etc/etc.mips etc/etc.powerpc etc/etc.sparc64 etc/root share/skel sys/conf sys/dev/syscons tools/tools/nanobsd/gateworks/Files...

2009-11-12 Thread Ed Schouten
Author: ed Date: Fri Nov 13 05:54:55 2009 New Revision: 199243 URL: http://svn.freebsd.org/changeset/base/199243 Log: Switch the default terminal emulation style to xterm for most platforms. Right now syscons(4) uses a cons25-style terminal emulator. The disadvantages of that are: -

svn commit: r199242 - head/usr.bin/systat

2009-11-12 Thread Hajimu UMEMOTO
Author: ume Date: Fri Nov 13 03:59:44 2009 New Revision: 199242 URL: http://svn.freebsd.org/changeset/base/199242 Log: Use ncursesw to output the date field of vmstat display with multi-byte string, correctly. Modified: head/usr.bin/systat/Makefile head/usr.bin/systat/main.c Modified: he

svn commit: r199241 - head/sys/cddl/boot/zfs

2009-11-12 Thread Paul Saab
Author: ps Date: Fri Nov 13 02:50:50 2009 New Revision: 199241 URL: http://svn.freebsd.org/changeset/base/199241 Log: Correct another case of not doing 64bit math. This allows mine and other raidz2 volumes to boot. Submitted by: Matt Reimer Modified: head/sys/cddl/boot/zfs/zfssubr.c

svn commit: r199240 - head/sys/dev/cxgb

2009-11-12 Thread Navdeep Parhar
Author: np Date: Fri Nov 13 00:37:29 2009 New Revision: 199240 URL: http://svn.freebsd.org/changeset/base/199240 Log: Don't disable the XGMAC's tx on ifconfig down. It is unnecessary and can cause false backpressure in the chip. Fix a us/ms mixup while here. Modified: head/sys/dev/cxgb/

svn commit: r199239 - head/sys/dev/cxgb/common

2009-11-12 Thread Navdeep Parhar
Author: np Date: Fri Nov 13 00:34:28 2009 New Revision: 199239 URL: http://svn.freebsd.org/changeset/base/199239 Log: The 10GBASE-T card should use an IPG of 1. Also enable the check for low power startup on this card. Modified: head/sys/dev/cxgb/common/cxgb_aq100x.c head/sys/dev/cxgb/co

svn commit: r199238 - head/sys/dev/cxgb/common

2009-11-12 Thread Navdeep Parhar
Author: np Date: Fri Nov 13 00:31:51 2009 New Revision: 199238 URL: http://svn.freebsd.org/changeset/base/199238 Log: Make sure *some* edc is setup even for an unknown transceiver (assume it is optical). Modified: head/sys/dev/cxgb/common/cxgb_ael1002.c Modified: head/sys/dev/cxgb/common/c

svn commit: r199237 - head/sys/dev/cxgb

2009-11-12 Thread Navdeep Parhar
Author: np Date: Fri Nov 13 00:28:16 2009 New Revision: 199237 URL: http://svn.freebsd.org/changeset/base/199237 Log: sc->rev and is_offload(sc) will always be 0 during probe. Wait till attach to get correct values. Modified: head/sys/dev/cxgb/cxgb_main.c Modified: head/sys/dev/cxgb/cxgb_

svn commit: r199236 - head/usr.bin/gencat

2009-11-12 Thread Edwin Groothuis
Author: edwin Date: Thu Nov 12 21:51:01 2009 New Revision: 199236 URL: http://svn.freebsd.org/changeset/base/199236 Log: Although the file has "ex:ts=4", do some "" -> \t translations so that it is also nicely readable with ts=8. Modified: head/usr.bin/gencat/gencat.c Modified: head/us

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

2009-11-12 Thread Ed Schouten
* Kostik Belousov wrote: > Luckily, my co-worker has laptop that runs HEAD and exhibited the > problem. Patch below fixed the hang for him. Will be happy to get > confirmation that patch fixes the hung for other people who reported it. > > http://people.freebsd.org/~kib/misc/initcache.1.patch It

Re: svn commit: r198999 - head/sys/dev/msk

2009-11-12 Thread R.Mahmatkhanov
John Baldwin пишет: > On Saturday 07 November 2009 4:04:30 pm R.Mahmatkhanov wrote: >> John Baldwin пишет: >>> Author: jhb >>> Date: Fri Nov 6 20:07:16 2009 >>> New Revision: 198999 >>> URL: http://svn.freebsd.org/changeset/base/198999 >>> >>> Log: >>> Take a step towards removing if_watchdog/if

Re: svn commit: r198848 - head/bin/ps

2009-11-12 Thread Bruce Evans
On Thu, 12 Nov 2009, M. Warner Losh wrote: I'd argue that as we get more and more cores that %CPU will need to change. If we change it like Bruce suggests, then when we have 1024 core/thread processors the 'pegged' thread shows up as 0.09% of the CPU and likely nothing else shows up at all sinc

Re: svn commit: r198848 - head/bin/ps

2009-11-12 Thread Julian Elischer
M. Warner Losh wrote: I'd argue that as we get more and more cores that %CPU will need to change. If we change it like Bruce suggests, then when we have 1024 core/thread processors the 'pegged' thread shows up as 0.09% of the CPU and likely nothing else shows up at all since the usages are dilut

svn commit: r199232 - head/sys/geom/part

2009-11-12 Thread Rui Paulo
Author: rpaulo Date: Thu Nov 12 19:30:49 2009 New Revision: 199232 URL: http://svn.freebsd.org/changeset/base/199232 Log: Add a missing check for Apple HFS partitions. MFC after:1 week Modified: head/sys/geom/part/g_part_gpt.c Modified: head/sys/geom/part/g_part_gpt.c ==

Re: svn commit: r199201 - in head: contrib/libpcap sbin/ifconfig share/man/man4 sys/kern sys/net sys/sys

2009-11-12 Thread Xin LI
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi guys, I've just reverted this changeset and will work to address all these problems you have raised. I'll post the new patchset to -net@ for review. Thanks for your comments! Cheers, - -- Xin LI http://www.delphij.net/ FreeBSD - The Power to

svn commit: r199231 - in head: contrib/libpcap sbin/ifconfig share/man/man4 sys/kern sys/net sys/sys

2009-11-12 Thread Xin LI
Author: delphij Date: Thu Nov 12 19:02:10 2009 New Revision: 199231 URL: http://svn.freebsd.org/changeset/base/199231 Log: Revert revision 199201 for now as it has introduced a kernel vulnerability and requires more polishing. Modified: head/contrib/libpcap/inet.c head/sbin/ifconfig/ifcon

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

2009-11-12 Thread Florian Smeets
On 11/12/09 3:55 PM, Kostik Belousov wrote: On Thu, Nov 12, 2009 at 12:33:40AM +0200, Kostik Belousov wrote: On Wed, Nov 11, 2009 at 10:56:51PM +0100, Ed Schouten wrote: Hi, * Jun Kuriyama wrote: Can you test with these patches? Testing on only one of both system is enough. "patch-1" force

Re: svn commit: r199201 - in head: contrib/libpcap sbin/ifconfig share/man/man4 sys/kern sys/net sys/sys

2009-11-12 Thread M. Warner Losh
In message: <20091112.105542.643508160@bsdimp.com> "M. Warner Losh" writes: : In message: : Antoine Brodin writes: : : On Wed, Nov 11, 2009 at 10:30 PM, Xin LI wrote: : : > Author: delphij : : > Date: Wed Nov 11 21:30:58 2009 : : > New Revision: 199201 : : > URL: htt

Re: svn commit: r198848 - head/bin/ps

2009-11-12 Thread M. Warner Losh
I'd argue that as we get more and more cores that %CPU will need to change. If we change it like Bruce suggests, then when we have 1024 core/thread processors the 'pegged' thread shows up as 0.09% of the CPU and likely nothing else shows up at all since the usages are diluted by a factor of 1024.

svn commit: r199230 - in head/sys/dev: dpms fb

2009-11-12 Thread Jung-uk Kim
Author: jkim Date: Thu Nov 12 18:16:35 2009 New Revision: 199230 URL: http://svn.freebsd.org/changeset/base/199230 Log: - Remove a redundant check for dpms(4). - Test a cheaper function first. Modified: head/sys/dev/dpms/dpms.c head/sys/dev/fb/vesa.c Modified: head/sys/dev/dpms/dpms.c ==

Re: svn commit: r199201 - in head: contrib/libpcap sbin/ifconfig share/man/man4 sys/kern sys/net sys/sys

2009-11-12 Thread M. Warner Losh
In message: Antoine Brodin writes: : On Wed, Nov 11, 2009 at 10:30 PM, Xin LI wrote: : > Author: delphij : > Date: Wed Nov 11 21:30:58 2009 : > New Revision: 199201 : > URL: http://svn.freebsd.org/changeset/base/199201 : > : > Log: : >  Add interface description capability as inspire

svn commit: r199229 - in head/sys: dev/fb dev/pci isa

2009-11-12 Thread Jung-uk Kim
Author: jkim Date: Thu Nov 12 17:56:56 2009 New Revision: 199229 URL: http://svn.freebsd.org/changeset/base/199229 Log: - Partially revert hackish r198964 and r199002. - Add a proxy driver vgapm to help vgapci to save/load VGA state. - Move device_set_desc() to the right place while we are h

Re: svn commit: r198848 - head/bin/ps

2009-11-12 Thread Dag-Erling Smørgrav
Bruce Evans writes: > Can you imagine NCPU hitting a power wall or other technical barrier at > not much larger than 64? Do you have any idea how many threads a modern GPU has? We're talking high three to low four digits per die... SGI built a 51,200-core single system image Itanium cluster for

svn commit: r199228 - head/sys/geom/part

2009-11-12 Thread Robert Noland
Author: rnoland Date: Thu Nov 12 16:28:39 2009 New Revision: 199228 URL: http://svn.freebsd.org/changeset/base/199228 Log: We need to allocate space for the header in the create path also. This fixes a null pointer dereference with "gpart create -s GPT" after the previous commit. Rep

Re: svn commit: r199201 - in head: contrib/libpcap sbin/ifconfig share/man/man4 sys/kern sys/net sys/sys

2009-11-12 Thread Dag-Erling Smørgrav
Robert Watson writes: > We care less about ifnet than we used to, because ifnet is now > allocated by the kernel rather than drivers. However, if we want to > take our KPI/KBI more seriously, then CTASSERTs on other "public" > kernel structures might well be a good idea. On the other hand, > CTA

Re: svn commit: r199201 - in head: contrib/libpcap sbin/ifconfig share/man/man4 sys/kern sys/net sys/sys

2009-11-12 Thread Brooks Davis
On Thu, Nov 12, 2009 at 03:21:40PM +, Robert Watson wrote: > > On Thu, 12 Nov 2009, Dag-Erling Sm??rgrav wrote: > >>> So there used to be four chars in a row here (between if_description and >>> if_cspare). Are you sure moving the pointer in between doesn't increase >>> the structure size?

Re: svn commit: r199201 - in head: contrib/libpcap sbin/ifconfig share/man/man4 sys/kern sys/net sys/sys

2009-11-12 Thread Philip Paeps
On 2009-11-11 21:30:58 (+), Xin LI wrote: > Log: > Add interface description capability as inspired by OpenBSD. In addition to the comments already made, I'd also like to note that it would make a lot of sense to announce changes in interface descriptions to the routing socket. That way, S

Re: svn commit: r198848 - head/bin/ps

2009-11-12 Thread Bruce Evans
On Thu, 12 Nov 2009, [utf-8] Dag-Erling Sm??rgrav wrote: Peter Jeremy writes: Actually, %4.0f works up to .5 %CPU because there's no '.' in the result. I think this is an excellent solution. And since FreeBSD currently has a hard limit of 64 CPUs, it's unlikely to be exceeded for a while

svn commit: r199227 - head/sys/kern

2009-11-12 Thread Attilio Rao
Author: attilio Date: Thu Nov 12 15:59:05 2009 New Revision: 199227 URL: http://svn.freebsd.org/changeset/base/199227 Log: Add the possibility for vfs.root.mountfrom tunable to accept a list of items rather than a single one. The list is a space separated collection of items defined as the c

Re: svn commit: r199201 - in head: contrib/libpcap sbin/ifconfig share/man/man4 sys/kern sys/net sys/sys

2009-11-12 Thread Robert Watson
On Thu, 12 Nov 2009, Dag-Erling Smørgrav wrote: So there used to be four chars in a row here (between if_description and if_cspare). Are you sure moving the pointer in between doesn't increase the structure size? I can guarantee you that it does. On i386, for instance, there are now three

Re: svn commit: r199201 - in head: contrib/libpcap sbin/ifconfig share/man/man4 sys/kern sys/net sys/sys

2009-11-12 Thread John Baldwin
On Wednesday 11 November 2009 4:30:58 pm Xin LI wrote: > Author: delphij > Date: Wed Nov 11 21:30:58 2009 > New Revision: 199201 > URL: http://svn.freebsd.org/changeset/base/199201 > > Log: > Add interface description capability as inspired by OpenBSD. > > MFC after: 3 months > > Modified

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

2009-11-12 Thread Nathan Whitehorn
Author: nwhitehorn Date: Thu Nov 12 15:19:09 2009 New Revision: 199226 URL: http://svn.freebsd.org/changeset/base/199226 Log: Provide a real fix to the too-many-translations problem when booting from CD on 64-bit hardware to replace existing band-aids. This occurred when the preloaded mdroot

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

2009-11-12 Thread Kostik Belousov
On Thu, Nov 12, 2009 at 12:33:40AM +0200, Kostik Belousov wrote: > On Wed, Nov 11, 2009 at 10:56:51PM +0100, Ed Schouten wrote: > > Hi, > > > > * Jun Kuriyama wrote: > > > Can you test with these patches? Testing on only one of both system > > > is enough. "patch-1" forces disabling CLFLUSH fea

Re: svn commit: r198848 - head/bin/ps

2009-11-12 Thread Dag-Erling Smørgrav
Peter Jeremy writes: > Actually, %4.0f works up to .5 %CPU because there's no '.' in the > result. I think this is an excellent solution. And since FreeBSD > currently has a hard limit of 64 CPUs, it's unlikely to be exceeded > for a while. ...if by "a while" you mean "a year or two", becau

svn commit: r199225 - head/sys/netinet6

2009-11-12 Thread Hajimu UMEMOTO
Author: ume Date: Thu Nov 12 14:48:36 2009 New Revision: 199225 URL: http://svn.freebsd.org/changeset/base/199225 Log: - We are not guaranteed that we're not dropping a reference that we did not add. Call LLE_REMREF() only when callout_stop() actually canceled a pending callout. - cal

Re: svn commit: r199201 - in head: contrib/libpcap sbin/ifconfig share/man/man4 sys/kern sys/net sys/sys

2009-11-12 Thread Dag-Erling Smørgrav
Ed Schouten writes: > Xin LI writes: > > @@ -198,6 +198,7 @@ struct ifnet { > > void*if_pf_kif; > > void*if_lagg; /* lagg glue */ > > u_char if_alloctype; /* if_type at time of allocation */ > > + struct sbuf *if_description;/* interface descript

svn commit: r199224 - stable/7/sys/compat/linux

2009-11-12 Thread Alexander Leidinger
Author: netchild Date: Thu Nov 12 14:27:09 2009 New Revision: 199224 URL: http://svn.freebsd.org/changeset/base/199224 Log: MFC r198945: Fix typo in kernel message. The fix is based upon the patch in the PR. PR: kern/140279 Submitted by: Alexander Best Modified:

Re: svn commit: r199208 - in head/sys: conf libkern netinet netinet/libalias

2009-11-12 Thread Attilio Rao
2009/11/12 Navdeep Parhar : > This seems to break kernel builds. Throwing away the private > inet_aton implementation inside krping.c will probably fix it. > > /usr/src/sys/modules/rdma/krping/../../../contrib/rdma/krping/krping.c:117: > error: static declaration of 'inet_aton' follows non-static

svn commit: r199223 - head/sys/contrib/rdma/krping

2009-11-12 Thread Attilio Rao
Author: attilio Date: Thu Nov 12 14:22:12 2009 New Revision: 199223 URL: http://svn.freebsd.org/changeset/base/199223 Log: Remove the explicit definition of inet_aton() as it was introduced as a general function in r199208. Reported by: np Sponsored by: Sandvine Incorporated MFC:

Re: svn commit: r198848 - head/bin/ps

2009-11-12 Thread Robert Watson
On Fri, 13 Nov 2009, Bruce Evans wrote: Just print %CPU in %4.0f format when it is >= 99.5 (or whatever rounds to 100.0). This works up to 999.5 %CPU. Actually, %4.0f works up to .5 %CPU because there's no '.' in the result. I think this is an excellent solution. And since FreeBSD cu

Re: svn commit: r198848 - head/bin/ps

2009-11-12 Thread Bruce Evans
On Thu, 12 Nov 2009, Peter Jeremy wrote: On 2009-Nov-11 23:22:36 +1100, Bruce Evans wrote: On Fri, 6 Nov 2009, Xin LI wrote: Will it sound reasonable to divide pcpu by ncpu and cap the number at 100? I don't like that. It would break scripts even more than units changes. It is hard for use

Re: svn commit: r199201 - in head: contrib/libpcap sbin/ifconfig share/man/man4 sys/kern sys/net sys/sys

2009-11-12 Thread Robert Watson
On Wed, 11 Nov 2009, Xin LI wrote: Author: delphij Date: Wed Nov 11 21:30:58 2009 New Revision: 199201 URL: http://svn.freebsd.org/changeset/base/199201 Log: Add interface description capability as inspired by OpenBSD. Patches like this keep being proposed and rejected, so I was a bit surpr

Re: svn commit: r199201 - in head: contrib/libpcap sbin/ifconfig share/man/man4 sys/kern sys/net sys/sys

2009-11-12 Thread Ed Schouten
Hi, * Xin LI wrote: > Modified: head/sys/net/if_var.h > == > --- head/sys/net/if_var.h Wed Nov 11 21:18:27 2009(r199200) > +++ head/sys/net/if_var.h Wed Nov 11 21:30:58 2009(r199201) > @@ -198,6 +1

svn commit: r199222 - stable/8/sys/compat/linux

2009-11-12 Thread Alexander Leidinger
Author: netchild Date: Thu Nov 12 13:09:36 2009 New Revision: 199222 URL: http://svn.freebsd.org/changeset/base/199222 Log: MFC r198945: Fix typo in kernel message. The fix is based upon the patch in the PR. PR: kern/140279 Submitted by: Alexander Best Modified:

svn commit: r199221 - head/lib/libc/net

2009-11-12 Thread Hajimu UMEMOTO
Author: ume Date: Thu Nov 12 11:54:12 2009 New Revision: 199221 URL: http://svn.freebsd.org/changeset/base/199221 Log: Add missing IEEE1394 support dropped during merge from NetBSD. Modified: head/lib/libc/net/getnameinfo.c Modified: head/lib/libc/net/getnameinfo.c ==

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

2009-11-12 Thread Bjoern A. Zeeb
On Mon, 9 Nov 2009, Jun Kuriyama wrote: Hi, Author: kuriyama Date: Mon Nov 9 02:54:16 2009 New Revision: 199067 URL: http://svn.freebsd.org/changeset/base/199067 Log: - Add hw.clflush_disable loader tunable to avoid panic (trap 9) at map_invalidate_cache_range() even if CPU is not Intel.

svn commit: r199220 - head/sys/pc98/cbus

2009-11-12 Thread Takahashi Yoshihiro
Author: nyan Date: Thu Nov 12 11:27:07 2009 New Revision: 199220 URL: http://svn.freebsd.org/changeset/base/199220 Log: MFi386: revision 199104 Make isa_dma functions MPSAFE by introducing its own private lock. Modified: head/sys/pc98/cbus/cbus_dma.c Modified: head/sys/pc98/cbus/cbus_

svn commit: r199219 - head/sys/i386/i386

2009-11-12 Thread Takahashi Yoshihiro
Author: nyan Date: Thu Nov 12 10:59:00 2009 New Revision: 199219 URL: http://svn.freebsd.org/changeset/base/199219 Log: Fix cpu model for PODP5V83. It is P24T, not P54T. Also remove redundant 'Overdrive' word. Pointed out by: SATOU Tomokazu (tomo1770 at maple ocn ne jp) MFC after

svn commit: r199218 - stable/8/share/zoneinfo

2009-11-12 Thread Edwin Groothuis
Author: edwin Date: Thu Nov 12 10:44:29 2009 New Revision: 199218 URL: http://svn.freebsd.org/changeset/base/199218 Log: MFC of r199107, tzdata2009r: - Three Australian stations in Antarctica have changed their time zone: Casey moved from UTC+8 to UTC+11 Davis moved from UTC+7 to UT

svn commit: r199217 - stable/7/share/zoneinfo

2009-11-12 Thread Edwin Groothuis
Author: edwin Date: Thu Nov 12 10:44:25 2009 New Revision: 199217 URL: http://svn.freebsd.org/changeset/base/199217 Log: MFC of r199107, tzdata2009r: - Three Australian stations in Antarctica have changed their time zone: Casey moved from UTC+8 to UTC+11 Davis moved from UTC+7 to UT

svn commit: r199216 - stable/6/share/zoneinfo

2009-11-12 Thread Edwin Groothuis
Author: edwin Date: Thu Nov 12 10:44:18 2009 New Revision: 199216 URL: http://svn.freebsd.org/changeset/base/199216 Log: MFC of r199107, tzdata2009r: - Three Australian stations in Antarctica have changed their time zone: Casey moved from UTC+8 to UTC+11 Davis moved from UTC+7 to UT