svn commit: r241987 - in head/sys/dev/usb: . controller

2012-10-24 Thread Hans Petter Selasky
Author: hselasky Date: Wed Oct 24 07:23:29 2012 New Revision: 241987 URL: http://svn.freebsd.org/changeset/base/241987 Log: Make several timing parameters of the USB enumeration sequence tuneable. Also update the port reset time from 250ms to 50ms. Some USB devices have a hard limit in hardw

svn commit: r241988 - head/sys/dev/sound/usb

2012-10-24 Thread Hans Petter Selasky
Author: hselasky Date: Wed Oct 24 08:00:01 2012 New Revision: 241988 URL: http://svn.freebsd.org/changeset/base/241988 Log: Fix USB audio specification compliance by filtering which descriptors can appear on which interface. This fixes detection of some USB audio adapters. Also increase the

svn commit: r241999 - head/usr.sbin/portsnap/portsnap

2012-10-24 Thread Eitan Adler
Author: eadler Date: Wed Oct 24 12:49:03 2012 New Revision: 241999 URL: http://svn.freebsd.org/changeset/base/241999 Log: Avoid changing IFS in a global context as this can sometimes cause errors later on. PR: bin/172715 Submitted by: Matthew D.Fuller (older version) Subm

svn commit: r242000 - head/share/misc

2012-10-24 Thread Simon J. Gerraty
Author: sjg Date: Wed Oct 24 14:06:47 2012 New Revision: 242000 URL: http://svn.freebsd.org/changeset/base/242000 Log: Add entry for sjg Approved by:marcel (mentor) Modified: head/share/misc/committers-src.dot Modified: head/share/misc/committers-src.dot

svn commit: r242004 - head/sys/conf

2012-10-24 Thread Warner Losh
Author: imp Date: Wed Oct 24 15:45:26 2012 New Revision: 242004 URL: http://svn.freebsd.org/changeset/base/242004 Log: Conform to the style of the rest of the file for hwpmc. Modified: head/sys/conf/files.mips Modified: head/sys/conf/files.mips ===

svn commit: r242005 - head/usr.sbin/lpr/common_source

2012-10-24 Thread Eitan Adler
Author: eadler Date: Wed Oct 24 16:03:05 2012 New Revision: 242005 URL: http://svn.freebsd.org/changeset/base/242005 Log: PRIV_START and PRIV_END were reversed. Submitted by: KAHO Toshikazu Approved by: secteam (simon) MFC after:3 days Modified: head/usr.sbin/lpr/common_source/

svn commit: r242006 - head/sys/conf

2012-10-24 Thread Warner Losh
Author: imp Date: Wed Oct 24 16:37:53 2012 New Revision: 242006 URL: http://svn.freebsd.org/changeset/base/242006 Log: Sort a few mis-sorted items. Modified: head/sys/conf/files Modified: head/sys/conf/files == --- h

svn commit: r242007 - head/contrib/llvm/lib/Analysis

2012-10-24 Thread Dimitry Andric
Author: dim Date: Wed Oct 24 16:39:49 2012 New Revision: 242007 URL: http://svn.freebsd.org/changeset/base/242007 Log: Pull in r165367 from upstream llvm trunk: Make sure always-inline functions get inlined. Without this change, when the estimated cost for inlining a function with

Re: svn commit: r241823 - in head: . etc etc/atf etc/mtree lib lib/atf lib/atf/libatf-c lib/atf/libatf-c++ libexec libexec/atf libexec/atf/atf-check share share/atf share/doc share/doc/atf share/examp

2012-10-24 Thread Dimitry Andric
On 2012-10-23 11:05, Dimitry Andric wrote: On 2012-10-22 16:58, Jan Beich wrote: Dimitry Andric writes: On 2012-10-22 09:00, Jan Beich wrote: ... undefined reference to `std::__1::basic_ios >::clear(unsigned int)' clang++: error: linker command failed with exit code 1 (use -v to see invocati

svn commit: r242008 - head/sys/conf

2012-10-24 Thread Warner Losh
Author: imp Date: Wed Oct 24 16:53:02 2012 New Revision: 242008 URL: http://svn.freebsd.org/changeset/base/242008 Log: Move common fdt into files. Duplicate in files.powerpc the files shared with aim. Config is smart enough to cope with multiple lines of the same path with different options

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

2012-10-24 Thread Konstantin Belousov
Author: kib Date: Wed Oct 24 18:21:22 2012 New Revision: 242010 URL: http://svn.freebsd.org/changeset/base/242010 Log: Add missed sched_pin(). Submitted by: Svatopluk Kraus Reviewed by: alc MFC after:3 days Modified: head/sys/i386/i386/pmap.c Modified: head/sys/i386/i386/pmap.

svn commit: r242011 - head/sys/vm

2012-10-24 Thread Konstantin Belousov
Author: kib Date: Wed Oct 24 18:21:59 2012 New Revision: 242011 URL: http://svn.freebsd.org/changeset/base/242011 Log: Dirty the newly copied anonymous pages after the wired region is forked. Otherwise, pagedaemon might reclaim the page without saving its content into the swap file, resultin

svn commit: r242012 - head/sys/vm

2012-10-24 Thread Konstantin Belousov
Author: kib Date: Wed Oct 24 18:32:37 2012 New Revision: 242012 URL: http://svn.freebsd.org/changeset/base/242012 Log: Commit the actual text provided by Alan, instead of the wrong update in r242011. MFC after:1 week Modified: head/sys/vm/vm_fault.c Modified: head/sys/vm/vm_fault.

svn commit: r242013 - head/sys/net

2012-10-24 Thread Gleb Smirnoff
Author: glebius Date: Wed Oct 24 18:33:44 2012 New Revision: 242013 URL: http://svn.freebsd.org/changeset/base/242013 Log: Fix fallout from r240071. If destination interface lookup fails, we should broadcast a packet, not try to deliver it to NULL. Reported by: rpaulo Modified: head/s

svn commit: r242014 - head/sys/kern

2012-10-24 Thread Jim Harris
Author: jimharris Date: Wed Oct 24 18:36:41 2012 New Revision: 242014 URL: http://svn.freebsd.org/changeset/base/242014 Log: Pad tdq_lock to avoid false sharing with tdq_load and tdq_cpu_idle. This enables CPU searches (which read tdq_load) to operate independently of any contention on th

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

2012-10-24 Thread Adrian Chadd
On 24 October 2012 11:36, Jim Harris wrote: > Pad tdq_lock to avoid false sharing with tdq_load and tdq_cpu_idle. Ok, but.. > struct mtx tdq_lock; /* run queue lock. */ > + charpad[64 - sizeof(struct mtx)]; .. don't we have an existing compile ti

Re: svn commit: r242013 - head/sys/net

2012-10-24 Thread John Baldwin
On Wednesday, October 24, 2012 2:33:44 pm Gleb Smirnoff wrote: > Author: glebius > Date: Wed Oct 24 18:33:44 2012 > New Revision: 242013 > URL: http://svn.freebsd.org/changeset/base/242013 > > Log: > Fix fallout from r240071. If destination interface lookup fails, > we should broadcast a packe

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

2012-10-24 Thread John Baldwin
On Wednesday, October 24, 2012 2:36:41 pm Jim Harris wrote: > Author: jimharris > Date: Wed Oct 24 18:36:41 2012 > New Revision: 242014 > URL: http://svn.freebsd.org/changeset/base/242014 > > Log: > Pad tdq_lock to avoid false sharing with tdq_load and tdq_cpu_idle. > > This enables CPU sea

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

2012-10-24 Thread Jim Harris
On Wed, Oct 24, 2012 at 11:41 AM, Adrian Chadd wrote: > On 24 October 2012 11:36, Jim Harris wrote: > >> Pad tdq_lock to avoid false sharing with tdq_load and tdq_cpu_idle. > > Ok, but.. > > >> struct mtx tdq_lock; /* run queue lock. */ >> + charpad[

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

2012-10-24 Thread Jim Harris
On Wed, Oct 24, 2012 at 11:43 AM, John Baldwin wrote: > On Wednesday, October 24, 2012 2:36:41 pm Jim Harris wrote: >> Author: jimharris >> Date: Wed Oct 24 18:36:41 2012 >> New Revision: 242014 >> URL: http://svn.freebsd.org/changeset/base/242014 >> >> Log: >> Pad tdq_lock to avoid false sharin

Re: svn commit: r242013 - head/sys/net

2012-10-24 Thread Gleb Smirnoff
On Wed, Oct 24, 2012 at 02:42:33PM -0400, John Baldwin wrote: J> On Wednesday, October 24, 2012 2:33:44 pm Gleb Smirnoff wrote: J> > Author: glebius J> > Date: Wed Oct 24 18:33:44 2012 J> > New Revision: 242013 J> > URL: http://svn.freebsd.org/changeset/base/242013 J> > J> > Log: J> > Fix fallou

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

2012-10-24 Thread Attilio Rao
On Wed, Oct 24, 2012 at 8:00 PM, Jim Harris wrote: > On Wed, Oct 24, 2012 at 11:43 AM, John Baldwin wrote: >> On Wednesday, October 24, 2012 2:36:41 pm Jim Harris wrote: >>> Author: jimharris >>> Date: Wed Oct 24 18:36:41 2012 >>> New Revision: 242014 >>> URL: http://svn.freebsd.org/changeset/bas

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

2012-10-24 Thread Attilio Rao
On Wed, Oct 24, 2012 at 7:56 PM, Jim Harris wrote: > On Wed, Oct 24, 2012 at 11:41 AM, Adrian Chadd wrote: >> On 24 October 2012 11:36, Jim Harris wrote: >> >>> Pad tdq_lock to avoid false sharing with tdq_load and tdq_cpu_idle. >> >> Ok, but.. >> >> >>> struct mtx tdq_lock;

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

2012-10-24 Thread Jim Harris
On Wed, Oct 24, 2012 at 12:08 PM, Attilio Rao wrote: > On Wed, Oct 24, 2012 at 7:56 PM, Jim Harris wrote: >> On Wed, Oct 24, 2012 at 11:41 AM, Adrian Chadd wrote: >>> On 24 October 2012 11:36, Jim Harris wrote: >>> Pad tdq_lock to avoid false sharing with tdq_load and tdq_cpu_idle. >>> >

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

2012-10-24 Thread Andre Oppermann
On 24.10.2012 20:56, Jim Harris wrote: On Wed, Oct 24, 2012 at 11:41 AM, Adrian Chadd wrote: On 24 October 2012 11:36, Jim Harris wrote: Pad tdq_lock to avoid false sharing with tdq_load and tdq_cpu_idle. Ok, but.. struct mtx tdq_lock; /* run queue lock. *

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

2012-10-24 Thread Alexander Motin
On 24.10.2012 22:16, Andre Oppermann wrote: On 24.10.2012 20:56, Jim Harris wrote: On Wed, Oct 24, 2012 at 11:41 AM, Adrian Chadd wrote: On 24 October 2012 11:36, Jim Harris wrote: Pad tdq_lock to avoid false sharing with tdq_load and tdq_cpu_idle. Ok, but.. struct mtx

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

2012-10-24 Thread Jim Harris
On Wed, Oct 24, 2012 at 12:16 PM, Andre Oppermann wrote: > > > See also the discussion on svn-src-all regarding global struct mtx > alignment. > > Thank you for proving my point. ;) > > Let's go back and see how we can do this the sanest way. These are > the options I see at the moment: > > 1.

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

2012-10-24 Thread Attilio Rao
On Wed, Oct 24, 2012 at 8:16 PM, Andre Oppermann wrote: > On 24.10.2012 20:56, Jim Harris wrote: >> >> On Wed, Oct 24, 2012 at 11:41 AM, Adrian Chadd wrote: >>> >>> On 24 October 2012 11:36, Jim Harris wrote: >>> Pad tdq_lock to avoid false sharing with tdq_load and tdq_cpu_idle. >>> >>>

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

2012-10-24 Thread Jeff Roberson
On Wed, 24 Oct 2012, Attilio Rao wrote: On Wed, Oct 24, 2012 at 8:16 PM, Andre Oppermann wrote: On 24.10.2012 20:56, Jim Harris wrote: On Wed, Oct 24, 2012 at 11:41 AM, Adrian Chadd wrote: On 24 October 2012 11:36, Jim Harris wrote: Pad tdq_lock to avoid false sharing with tdq_load

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

2012-10-24 Thread Attilio Rao
On Wed, Oct 24, 2012 at 8:30 PM, Alexander Motin wrote: > On 24.10.2012 22:16, Andre Oppermann wrote: >> >> On 24.10.2012 20:56, Jim Harris wrote: >>> >>> On Wed, Oct 24, 2012 at 11:41 AM, Adrian Chadd >>> wrote: On 24 October 2012 11:36, Jim Harris wrote: >Pad tdq_lock to

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

2012-10-24 Thread Andre Oppermann
On 24.10.2012 21:49, Jim Harris wrote: On Wed, Oct 24, 2012 at 12:16 PM, Andre Oppermann wrote: See also the discussion on svn-src-all regarding global struct mtx alignment. Thank you for proving my point. ;) Let's go back and see how we can do this the sanest way. These are the options

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

2012-10-24 Thread Andre Oppermann
On 24.10.2012 21:06, Attilio Rao wrote: On Wed, Oct 24, 2012 at 8:00 PM, Jim Harris wrote: On Wed, Oct 24, 2012 at 11:43 AM, John Baldwin wrote: On Wednesday, October 24, 2012 2:36:41 pm Jim Harris wrote: Author: jimharris Date: Wed Oct 24 18:36:41 2012 New Revision: 242014 URL: http://svn.f

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

2012-10-24 Thread Attilio Rao
On Wed, Oct 24, 2012 at 9:25 PM, Andre Oppermann wrote: > On 24.10.2012 21:06, Attilio Rao wrote: >> >> On Wed, Oct 24, 2012 at 8:00 PM, Jim Harris wrote: >>> >>> On Wed, Oct 24, 2012 at 11:43 AM, John Baldwin wrote: On Wednesday, October 24, 2012 2:36:41 pm Jim Harris wrote: > >>>

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

2012-10-24 Thread Andre Oppermann
On 24.10.2012 21:30, Alexander Motin wrote: On 24.10.2012 22:16, Andre Oppermann wrote: On 24.10.2012 20:56, Jim Harris wrote: On Wed, Oct 24, 2012 at 11:41 AM, Adrian Chadd wrote: On 24 October 2012 11:36, Jim Harris wrote: Pad tdq_lock to avoid false sharing with tdq_load and tdq_cpu_

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

2012-10-24 Thread Andre Oppermann
On 24.10.2012 22:29, Attilio Rao wrote: On Wed, Oct 24, 2012 at 9:25 PM, Andre Oppermann wrote: On 24.10.2012 21:06, Attilio Rao wrote: As I've already said in another thread __align() doesn't work on object declaration, so what that won't pad it either if it is global or part of a struct. It

Re: svn commit: r241823 - in head: . etc etc/atf etc/mtree lib lib/atf lib/atf/libatf-c lib/atf/libatf-c++ libexec libexec/atf libexec/atf/atf-check share share/atf share/doc share/doc/atf share/examp

2012-10-24 Thread Jan Beich
Dimitry Andric writes: > On 2012-10-23 11:05, Dimitry Andric wrote: > >> On 2012-10-22 16:58, Jan Beich wrote: >>> Dimitry Andric writes: On 2012-10-22 09:00, Jan Beich wrote: >> ... > undefined reference to `std::__1::basic_ios std::__1::char_traits >::clear(unsigned int)' > cl

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

2012-10-24 Thread Brett
> >>> As I've already said in another thread __align() doesn't work on > >>> object declaration, so what that won't pad it either if it is global > >>> or part of a struct. > >>> It is just implemented as __attribute__((aligned(X))): > >>> http://gcc.gnu.org/onlinedocs/gcc-3.2/gcc/Type-Attributes.h

svn commit: r242029 - head/sys/kern

2012-10-24 Thread Alfred Perlstein
Author: alfred Date: Thu Oct 25 01:46:20 2012 New Revision: 242029 URL: http://svn.freebsd.org/changeset/base/242029 Log: Allow autotune maxusers > 384 on 64 bit machines A default install on large memory machines with multiple 10gigE interfaces were not being given enough mbufs to do ful

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

2012-10-24 Thread Andre Oppermann
On 24.10.2012 22:55, Andre Oppermann wrote: On 24.10.2012 22:29, Attilio Rao wrote: On Wed, Oct 24, 2012 at 9:25 PM, Andre Oppermann wrote: On 24.10.2012 21:06, Attilio Rao wrote: As I've already said in another thread __align() doesn't work on object declaration, so what that won't pad it ei

svn commit: r242030 - head/usr.bin/netstat

2012-10-24 Thread Alfred Perlstein
Author: alfred Date: Thu Oct 25 02:12:05 2012 New Revision: 242030 URL: http://svn.freebsd.org/changeset/base/242030 Log: Show the number of times we block waiting for mbufs. Machines can stall out because mbufs are low, however sometimes we won't see "requests denied", instead we see use

Re: svn commit: r241916 - in head/sys: netinet netinet6

2012-10-24 Thread Rui Paulo
On 23 Oct 2012, at 11:43, Michael Tuexen wrote: > * My comment was regarding your list of formatting issues of the code. > Changing > the formatting would require changing the export script. > If someone "just" changes the FreeBSD sources and these changes are not > included > upstream, they

svn commit: r242031 - head/sys/conf

2012-10-24 Thread Warner Losh
Author: imp Date: Thu Oct 25 02:38:05 2012 New Revision: 242031 URL: http://svn.freebsd.org/changeset/base/242031 Log: We need ucmpdi2 for XLR and XLP when compiled in 32-bit mode. Include it here unconditionally while I figure out why "optional mips | mipsel" didn't work. Modified: head

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

2012-10-24 Thread Bruce Evans
On Wed, 24 Oct 2012, Attilio Rao wrote: On Wed, Oct 24, 2012 at 8:16 PM, Andre Oppermann wrote: ... Let's go back and see how we can do this the sanest way. These are the options I see at the moment: 1. sprinkle __aligned(CACHE_LINE_SIZE) all over the place This is wrong because it doesn'

svn commit: r242061 - head/sys/arm/conf

2012-10-24 Thread Tim Kientzle
Author: kientzle Date: Thu Oct 25 04:10:32 2012 New Revision: 242061 URL: http://svn.freebsd.org/changeset/base/242061 Log: Support boot loaders in the standard kernel. Modified: head/sys/arm/conf/RPI-B Modified: head/sys/arm/conf/RPI-B ===

svn commit: r242062 - head/sys/arm/conf

2012-10-24 Thread Tim Kientzle
Author: kientzle Date: Thu Oct 25 04:12:33 2012 New Revision: 242062 URL: http://svn.freebsd.org/changeset/base/242062 Log: Everybody needs bpf. Modified: head/sys/arm/conf/PANDABOARD Modified: head/sys/arm/conf/PANDABOARD =

svn commit: r242063 - head/sys/arm/conf

2012-10-24 Thread Tim Kientzle
Author: kientzle Date: Thu Oct 25 04:14:42 2012 New Revision: 242063 URL: http://svn.freebsd.org/changeset/base/242063 Log: Support FreeBSD Boot loaders. Modified: head/sys/arm/conf/PANDABOARD Modified: head/sys/arm/conf/PANDABOARD

svn commit: r242064 - head/sys/conf

2012-10-24 Thread Warner Losh
Author: imp Date: Thu Oct 25 04:21:05 2012 New Revision: 242064 URL: http://svn.freebsd.org/changeset/base/242064 Log: List all the mips MACHINE_ARCH values in the options file to allow conditional inclusion based on the MACHINE_ARCH we're compiling for. Make ucmpdi2 conditional on mips or m

svn commit: r242066 - head/sys/conf

2012-10-24 Thread Warner Losh
Author: imp Date: Thu Oct 25 04:30:48 2012 New Revision: 242066 URL: http://svn.freebsd.org/changeset/base/242066 Log: Hoist the MI compat_freebsd32 files up into files from files.*. Modified: head/sys/conf/files head/sys/conf/files.amd64 head/sys/conf/files.ia64 head/sys/conf/files.mip

svn commit: r242067 - head/sys/arm/ti/cpsw

2012-10-24 Thread Tim Kientzle
Author: kientzle Date: Thu Oct 25 04:33:47 2012 New Revision: 242067 URL: http://svn.freebsd.org/changeset/base/242067 Log: Refer to headers locally. This makes it a lot easier to build this driver out-of-tree. Modified: head/sys/arm/ti/cpsw/if_cpsw.c Modified: head/sys/arm/ti/cpsw/if_cps

svn commit: r242068 - head/sys/arm/ti/cpsw

2012-10-24 Thread Tim Kientzle
Author: kientzle Date: Thu Oct 25 04:37:47 2012 New Revision: 242068 URL: http://svn.freebsd.org/changeset/base/242068 Log: Do proper padding of runt packets using code copied from bge(4). Reviewed by: gnn Modified: head/sys/arm/ti/cpsw/if_cpsw.c Modified: head/sys/arm/ti/cpsw/if_cpsw.

svn commit: r242069 - head/sys/conf

2012-10-24 Thread Warner Losh
Author: imp Date: Thu Oct 25 04:39:19 2012 New Revision: 242069 URL: http://svn.freebsd.org/changeset/base/242069 Log: Remove redunant geom_bsd and geom_mbr definitions. They are in files. Modified: head/sys/conf/files.arm Modified: head/sys/conf/files.arm ==

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

2012-10-24 Thread Bruce Evans
On Thu, 25 Oct 2012, Andre Oppermann wrote: ... I spoke too soon. Attilio is completely right in his assessment. It does work when done on the struct definition: struct mtx { ... } __aligned(CACHE_LINE_SIZE); /* works including .bss alignment & padding */ When creating a struct (in

svn commit: r242070 - head/sys/conf

2012-10-24 Thread Warner Losh
Author: imp Date: Thu Oct 25 04:44:17 2012 New Revision: 242070 URL: http://svn.freebsd.org/changeset/base/242070 Log: Restore r184194 | marcel | 2008-10-22 20:16:38 -0600 (Wed, 22 Oct 2008) | 11 lines which made geom_bsd and geom_mbr optional. They are redundant with the DEFAULTS BSD and

svn commit: r242071 - head/sys/conf

2012-10-24 Thread Warner Losh
Author: imp Date: Thu Oct 25 04:46:58 2012 New Revision: 242071 URL: http://svn.freebsd.org/changeset/base/242071 Log: This file is somewhat obsolete (last updated in 1995) list of #if code in the kernel. Retire it rather than catch up with the last 17 years. Deleted: head/sys/conf/defines

svn commit: r242072 - head/sys/conf

2012-10-24 Thread Warner Losh
Author: imp Date: Thu Oct 25 04:55:04 2012 New Revision: 242072 URL: http://svn.freebsd.org/changeset/base/242072 Log: Remove the links: target. It too is homelessly outdated since it relies on the outdated defines list. It likely hasn't been useful in 15 years, and certainly not in the la

Re: svn commit: r241886 - head/lib/msun/src

2012-10-24 Thread Bruce Evans
On Mon, 22 Oct 2012, Warner Losh wrote: Log: Revert r241755 Thanks. Bruce ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

svn commit: r242073 - head/sys/conf

2012-10-24 Thread Warner Losh
Author: imp Date: Thu Oct 25 05:22:25 2012 New Revision: 242073 URL: http://svn.freebsd.org/changeset/base/242073 Log: Sort and remove a few long-obsolete comments. Modified: head/sys/conf/files.arm Modified: head/sys/conf/files.arm ===