svn commit: r240423 - head/sys/kern

2012-09-12 Thread Attilio Rao
Author: attilio Date: Wed Sep 12 22:05:54 2012 New Revision: 240423 URL: http://svn.freebsd.org/changeset/base/240423 Log: Tweak the commit message in case of panic for sleeping from threads with TDP_NOSLEEPING on. The current message has no informations on the thread and wchan

svn commit: r240424 - head/sys/kern

2012-09-12 Thread Attilio Rao
Author: attilio Date: Wed Sep 12 22:10:53 2012 New Revision: 240424 URL: http://svn.freebsd.org/changeset/base/240424 Log: Improve check coverage about idle threads. Idle threads are not allowed to acquire any lock but spinlocks. Deny any attempt to do so by panicing at the locking

svn commit: r240244 - in head/sys: amd64/amd64 i386/i386 ia64/ia32 ia64/ia64 kern mips/mips powerpc/aim powerpc/booke sparc64/sparc64

2012-09-08 Thread Attilio Rao
Author: attilio Date: Sat Sep 8 18:27:11 2012 New Revision: 240244 URL: http://svn.freebsd.org/changeset/base/240244 Log: userret() already checks for td_locks when INVARIANTS is enabled, so there is no need to check if Giant is acquired after it. Reviewed by: kib MFC after:1

svn commit: r240245 - head/sys/kern

2012-09-08 Thread Attilio Rao
Author: attilio Date: Sat Sep 8 18:29:53 2012 New Revision: 240245 URL: http://svn.freebsd.org/changeset/base/240245 Log: Move PT_UPDATED_FLUSH() before td_locks check in order to have more coverage also in the XEN case. Reviewed by: kib MFC after:1 week Modified:

svn commit: r240246 - head/sys/kern

2012-09-08 Thread Attilio Rao
Author: attilio Date: Sat Sep 8 18:35:15 2012 New Revision: 240246 URL: http://svn.freebsd.org/changeset/base/240246 Log: Move the checks for td_pinned, td_critnest, TDP_NOFAULTING and TDP_NOSLEEPING leaking from syscallret() to userret() so that also trap handling is covered. Also, the

svn commit: r239923 - in head/sys: conf kern sys

2012-08-30 Thread Attilio Rao
Author: attilio Date: Thu Aug 30 21:22:47 2012 New Revision: 239923 URL: http://svn.freebsd.org/changeset/base/239923 Log: Post r222812 KTR_CPUMASK started being initialized only as a tunable handler and not more statically. Unfortunately, it seems that this is not ideal for new platform

Re: svn commit: r239571 - head/usr.sbin/pmcstat

2012-08-22 Thread Attilio Rao
On Wed, Aug 22, 2012 at 8:02 PM, Jim Harris jimhar...@freebsd.org wrote: Author: jimharris Date: Wed Aug 22 19:02:07 2012 New Revision: 239571 URL: http://svn.freebsd.org/changeset/base/239571 Log: Add -m option (for printing sampled PCs to a file) to pmcstat usage message. Pointy hat

Re: svn commit: r239040 - in head/sys: fs/nfsclient fs/nwfs fs/smbfs nfsclient vm

2012-08-04 Thread Attilio Rao
On Sat, Aug 4, 2012 at 7:16 PM, Konstantin Belousov k...@freebsd.org wrote: Author: kib Date: Sat Aug 4 18:16:43 2012 New Revision: 239040 URL: http://svn.freebsd.org/changeset/base/239040 Log: Reduce code duplication and exposure of direct access to struct vm_page oflags by providing

Re: svn commit: r238539 - head/sys/fs/smbfs

2012-07-16 Thread Attilio Rao
2012/7/16 Christian Brueffer bruef...@freebsd.org: Author: brueffer Date: Mon Jul 16 22:07:29 2012 New Revision: 238539 URL: http://svn.freebsd.org/changeset/base/238539 Log: Simply error handling by moving the allocation of np down to where it is actually used. While here, improve

svn commit: r238359 - head/sys/vm

2012-07-10 Thread Attilio Rao
Author: attilio Date: Wed Jul 11 01:04:59 2012 New Revision: 238359 URL: http://svn.freebsd.org/changeset/base/238359 Log: Document the object type movements, related to swp_pager_copy(), in vm_object_collapse() and vm_object_split(). In collabouration with: alc MFC after:3

svn commit: r238315 - head/sys/fs/ntfs

2012-07-09 Thread Attilio Rao
Author: attilio Date: Tue Jul 10 00:01:00 2012 New Revision: 238315 URL: http://svn.freebsd.org/changeset/base/238315 Log: - Remove the unused and not completed write support for NTFS. - Fix a bug where vfs_mountedfrom() is called also when the filesystem is not mounted successfully.

svn commit: r238320 - head/sys/fs/ntfs

2012-07-09 Thread Attilio Rao
Author: attilio Date: Tue Jul 10 00:23:25 2012 New Revision: 238320 URL: http://svn.freebsd.org/changeset/base/238320 Log: Remove a check on MNTK_UPDATE that is not really necessary as it is handled in a code snippet above. Modified: head/sys/fs/ntfs/ntfs_vfsops.c Modified:

Re: svn commit: r238118 - head/lib/libc/gen

2012-07-04 Thread Attilio Rao
2012/7/4 David Chisnall thera...@freebsd.org: On 4 Jul 2012, at 21:32, Andrey Chernov wrote: 1) /dev/urandom may not exist in jails/sandboxes while sysctls (or old way initialization) always exists. From the perspective of Capsicum sandboxes, a device node is better than a sysctl. The

Re: svn commit: r237660 - head/lib/libc/gen

2012-06-27 Thread Attilio Rao
2012/6/28, David Xu listlog2...@gmail.com: On 2012/6/28 4:32, Konstantin Belousov wrote: Author: kib Date: Wed Jun 27 20:32:45 2012 New Revision: 237660 URL: http://svn.freebsd.org/changeset/base/237660 Log: Optimize the handling of SC_NPROCESSORS_CONF, by using auxv AT_NCPU value

Re: svn commit: r237660 - head/lib/libc/gen

2012-06-27 Thread Attilio Rao
2012/6/28, David Xu listlog2...@gmail.com: On 2012/6/28 10:21, Attilio Rao wrote: 2012/6/28, David Xulistlog2...@gmail.com: On 2012/6/28 4:32, Konstantin Belousov wrote: Author: kib Date: Wed Jun 27 20:32:45 2012 New Revision: 237660 URL: http://svn.freebsd.org/changeset/base/237660 Log

svn commit: r237451 - head/sys/vm

2012-06-22 Thread Attilio Rao
Author: attilio Date: Fri Jun 22 18:34:11 2012 New Revision: 237451 URL: http://svn.freebsd.org/changeset/base/237451 Log: - Add a comment explaining the locking of the cached pages pool held by vm_objects. - Add flags for the per-object lock and free pages queue mutex lock. Use the

svn commit: r237172 - head/sys/vm

2012-06-16 Thread Attilio Rao
Author: attilio Date: Sat Jun 16 21:39:00 2012 New Revision: 237172 URL: http://svn.freebsd.org/changeset/base/237172 Log: Do a more targeted check on the page cache and avoid to check the cache pointer directly in vnode_pager_setsize() by using newly introduced vm_page_is_cached()

Re: svn commit: r236456 - in head/sys: amd64/include i386/include

2012-06-04 Thread Attilio Rao
2012/6/4 Konstantin Belousov kostik...@gmail.com: On Mon, Jun 04, 2012 at 12:00:27PM +0200, Tijl Coosemans wrote: On 02-06-2012 20:10, Konstantin Belousov wrote: Author: kib Date: Sat Jun  2 18:10:16 2012 New Revision: 236456 URL: http://svn.freebsd.org/changeset/base/236456 Log:  

Re: svn commit: r236456 - in head/sys: amd64/include i386/include

2012-06-04 Thread Attilio Rao
2012/6/4 Konstantin Belousov kostik...@gmail.com: On Mon, Jun 04, 2012 at 02:58:57PM +0100, Attilio Rao wrote: 2012/6/4 Konstantin Belousov kostik...@gmail.com: On Mon, Jun 04, 2012 at 12:00:27PM +0200, Tijl Coosemans wrote: On 02-06-2012 20:10, Konstantin Belousov wrote: Author: kib

Re: svn commit: r234482 - in head/sys: fs/msdosfs fs/nfsserver kern sys

2012-05-22 Thread Attilio Rao
2012/4/22 Pawel Jakub Dawidek p...@freebsd.org: On Fri, Apr 20, 2012 at 06:50:44AM +, Kirk McKusick wrote: Author: mckusick Date: Fri Apr 20 06:50:44 2012 New Revision: 234482 URL: http://svn.freebsd.org/changeset/base/234482 Log:   This change creates a new list of active vnodes

Re: svn commit: r235480 - in stable/9/sys: dev/usb geom geom/mountver i386/conf kern sys

2012-05-15 Thread Attilio Rao
2012/5/15 Konstantin Belousov kostik...@gmail.com: On Tue, May 15, 2012 at 11:08:37PM +0300, Andriy Gapon wrote: on 15/05/2012 21:27 Konstantin Belousov said the following: On Tue, May 15, 2012 at 05:21:47PM +, Andriy Gapon wrote: Author: avg Date: Tue May 15 17:21:46 2012 New Revision:

svn commit: r235260 - in stable/9/sys: amd64/amd64 amd64/include i386/conf i386/i386 i386/include kern pc98/pc98 sparc64/include sparc64/sparc64 x86/x86

2012-05-10 Thread Attilio Rao
Author: attilio Date: Fri May 11 04:10:23 2012 New Revision: 235260 URL: http://svn.freebsd.org/changeset/base/235260 Log: MFC r233961,234074,234105,234564,234723,234989,235231-235232: - Fix a bug in x86 and sparc64 where the intr cpu mask does only enables the BSP. - Remove the SMP

Re: svn commit: r234952 - in head/sys: kern sys

2012-05-03 Thread Attilio Rao
2012/5/3, Konstantin Belousov k...@freebsd.org: Author: kib Date: Thu May 3 10:38:02 2012 New Revision: 234952 URL: http://svn.freebsd.org/changeset/base/234952 Log: When callout_reset_on() cannot immediately migrate a callout since it is running on other cpu, the CALLOUT_PENDING flag

Re: svn commit: r234952 - in head/sys: kern sys

2012-05-03 Thread Attilio Rao
2012/5/3, Konstantin Belousov kostik...@gmail.com: On Thu, May 03, 2012 at 12:02:08PM +0100, Attilio Rao wrote: 2012/5/3, Konstantin Belousov k...@freebsd.org: Author: kib Date: Thu May 3 10:38:02 2012 New Revision: 234952 URL: http://svn.freebsd.org/changeset/base/234952 Log

Re: svn commit: r234952 - in head/sys: kern sys

2012-05-03 Thread Attilio Rao
2012/5/3 Konstantin Belousov kostik...@gmail.com: On Thu, May 03, 2012 at 02:14:20PM +0100, Attilio Rao wrote: 2012/5/3, Konstantin Belousov kostik...@gmail.com: On Thu, May 03, 2012 at 12:02:08PM +0100, Attilio Rao wrote: 2012/5/3, Konstantin Belousov k...@freebsd.org: Author: kib

Re: svn commit: r234952 - in head/sys: kern sys

2012-05-03 Thread Attilio Rao
2012/5/3 Konstantin Belousov kostik...@gmail.com: On Thu, May 03, 2012 at 10:06:53PM +0100, Attilio Rao wrote: 2012/5/3 Konstantin Belousov kostik...@gmail.com: On Thu, May 03, 2012 at 02:14:20PM +0100, Attilio Rao wrote: 2012/5/3, Konstantin Belousov kostik...@gmail.com: On Thu, May 03

svn commit: r234989 - in head/sys: amd64/include i386/include x86/x86

2012-05-03 Thread Attilio Rao
Author: attilio Date: Thu May 3 21:44:01 2012 New Revision: 234989 URL: http://svn.freebsd.org/changeset/base/234989 Log: Revert part of r234723 by re-enabling the SMP protection for intr_bind() on x86. This has been requested by jhb and I strongly disagree with this, but as long as he

Re: svn commit: r234952 - in head/sys: kern sys

2012-05-03 Thread Attilio Rao
2012/5/3 Attilio Rao atti...@freebsd.org: 2012/5/3 Konstantin Belousov kostik...@gmail.com: On Thu, May 03, 2012 at 10:06:53PM +0100, Attilio Rao wrote: 2012/5/3 Konstantin Belousov kostik...@gmail.com: On Thu, May 03, 2012 at 02:14:20PM +0100, Attilio Rao wrote: 2012/5/3, Konstantin

Re: svn commit: r234723 - in head/sys: amd64/amd64 amd64/include i386/i386 i386/include pc98/pc98 sparc64/include sparc64/sparc64 x86/x86

2012-04-27 Thread Attilio Rao
2012/4/27, John Baldwin j...@freebsd.org: On Thursday, April 26, 2012 4:24:25 pm Attilio Rao wrote: Author: attilio Date: Thu Apr 26 20:24:25 2012 New Revision: 234723 URL: http://svn.freebsd.org/changeset/base/234723 Log: Clean up the intr* MD KPI from the SMP dependency, removing

Re: svn commit: r234723 - in head/sys: amd64/amd64 amd64/include i386/i386 i386/include pc98/pc98 sparc64/include sparc64/sparc64 x86/x86

2012-04-27 Thread Attilio Rao
2012/4/27, John Baldwin j...@freebsd.org: On Friday, April 27, 2012 9:55:41 am Attilio Rao wrote: 2012/4/27, John Baldwin j...@freebsd.org: On Thursday, April 26, 2012 4:24:25 pm Attilio Rao wrote: Author: attilio Date: Thu Apr 26 20:24:25 2012 New Revision: 234723 URL: http

Re: svn commit: r234723 - in head/sys: amd64/amd64 amd64/include i386/i386 i386/include pc98/pc98 sparc64/include sparc64/sparc64 x86/x86

2012-04-27 Thread Attilio Rao
2012/4/27, John Baldwin j...@freebsd.org: On Friday, April 27, 2012 10:23:14 am Attilio Rao wrote: 2012/4/27, John Baldwin j...@freebsd.org: On Friday, April 27, 2012 9:55:41 am Attilio Rao wrote: 2012/4/27, John Baldwin j...@freebsd.org: On Thursday, April 26, 2012 4:24:25 pm Attilio Rao

svn commit: r234723 - in head/sys: amd64/amd64 amd64/include i386/i386 i386/include pc98/pc98 sparc64/include sparc64/sparc64 x86/x86

2012-04-26 Thread Attilio Rao
Author: attilio Date: Thu Apr 26 20:24:25 2012 New Revision: 234723 URL: http://svn.freebsd.org/changeset/base/234723 Log: Clean up the intr* MD KPI from the SMP dependency, removing a cause of discrepancy between modules and kernel, but deal with SMP differences within the functions

Re: svn commit: r234400 - in head/sys: kern sys

2012-04-18 Thread Attilio Rao
2012/4/17, Kirk McKusick mckus...@freebsd.org: Author: mckusick Date: Tue Apr 17 21:46:59 2012 New Revision: 234400 URL: http://svn.freebsd.org/changeset/base/234400 Log: Drop export of vdestroy() function from kern/vfs_subr.c as it is used only as a helper function in that file.

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

2012-04-10 Thread Attilio Rao
Il 10 aprile 2012 12:41, Marius Strobl mar...@alchemy.franken.de ha scritto: On Tue, Apr 10, 2012 at 01:03:56AM +0100, Attilio Rao wrote: Il 10 aprile 2012 00:09, Marius Strobl mar...@alchemy.franken.de ha scritto: On Mon, Apr 09, 2012 at 10:41:19PM +, Attilio Rao wrote: Author

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

2012-04-10 Thread Attilio Rao
Il 10 aprile 2012 14:25, Marius Strobl mar...@alchemy.franken.de ha scritto: On Tue, Apr 10, 2012 at 01:55:31PM +0100, Attilio Rao wrote: Il 10 aprile 2012 12:41, Marius Strobl mar...@alchemy.franken.de ha scritto: On Tue, Apr 10, 2012 at 01:03:56AM +0100, Attilio Rao wrote: Il 10 aprile

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

2012-04-09 Thread Attilio Rao
Il 09 aprile 2012 17:34, John Baldwin j...@freebsd.org ha scritto: On Monday, April 09, 2012 11:45:11 am Jaakko Heinonen wrote: Hi, On 2012-04-06, Justin T. Gibbs wrote:   Fix interrupt load balancing regression, introduced in revision   222813, that left all un-pinned interrupts assigned

svn commit: r234064 - in head/sys: cddl/contrib/opensolaris/uts/common/fs/zfs fs/tmpfs vm

2012-04-09 Thread Attilio Rao
Author: attilio Date: Mon Apr 9 17:05:18 2012 New Revision: 234064 URL: http://svn.freebsd.org/changeset/base/234064 Log: - Introduce a cache-miss optimization for consistency with other accesses of the cache member of vm_object objects. - Use novel vm_page_is_cached() for checks outside

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

2012-04-09 Thread Attilio Rao
Il 09 aprile 2012 18:14, John Baldwin j...@freebsd.org ha scritto: On Monday, April 09, 2012 12:58:07 pm Attilio Rao wrote: Il 09 aprile 2012 17:34, John Baldwin j...@freebsd.org ha scritto: On Monday, April 09, 2012 11:45:11 am Jaakko Heinonen wrote: Hi, On 2012-04-06, Justin T. Gibbs

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

2012-04-09 Thread Attilio Rao
Il 09 aprile 2012 19:35, John Baldwin j...@freebsd.org ha scritto: On Monday, April 09, 2012 1:59:13 pm Attilio Rao wrote: Il 09 aprile 2012 18:14, John Baldwin j...@freebsd.org ha scritto: On Monday, April 09, 2012 12:58:07 pm Attilio Rao wrote: Il 09 aprile 2012 17:34, John Baldwin j

svn commit: r234074 - in head/sys: amd64/amd64 i386/i386

2012-04-09 Thread Attilio Rao
Author: attilio Date: Mon Apr 9 22:41:19 2012 New Revision: 234074 URL: http://svn.freebsd.org/changeset/base/234074 Log: BSP is not added to the mask of valid target CPUs for interrupts in set_apic_interrupt_ids(). Besides, set_apic_interrupts_ids() is not called in the !SMP case too.

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

2012-04-09 Thread Attilio Rao
Il 10 aprile 2012 00:09, Marius Strobl mar...@alchemy.franken.de ha scritto: On Mon, Apr 09, 2012 at 10:41:19PM +, Attilio Rao wrote: Author: attilio Date: Mon Apr  9 22:41:19 2012 New Revision: 234074 URL: http://svn.freebsd.org/changeset/base/234074 Log:   BSP is not added

svn commit: r233960 - head/sys/vm

2012-04-06 Thread Attilio Rao
Author: attilio Date: Fri Apr 6 20:34:00 2012 New Revision: 233960 URL: http://svn.freebsd.org/changeset/base/233960 Log: Staticize vm_page_cache_remove(). Reviewed by: alc Modified: head/sys/vm/vm_page.c head/sys/vm/vm_page.h Modified: head/sys/vm/vm_page.c

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

2012-04-06 Thread Attilio Rao
Il 06 aprile 2012 22:19, Justin T. Gibbs gi...@freebsd.org ha scritto: Author: gibbs Date: Fri Apr  6 21:19:28 2012 New Revision: 233961 URL: http://svn.freebsd.org/changeset/base/233961 Log:  Fix interrupt load balancing regression, introduced in revision  222813, that left all un-pinned

svn commit: r232619 - in head: . sys/amd64/conf sys/arm/conf sys/i386/conf sys/ia64/conf sys/mips/conf sys/pc98/conf sys/powerpc/conf sys/sparc64/conf

2012-03-06 Thread Attilio Rao
Author: attilio Date: Tue Mar 6 20:01:25 2012 New Revision: 232619 URL: http://svn.freebsd.org/changeset/base/232619 Log: Disable the option VFS_ALLOW_NONMPSAFE by default on all the supported platforms. This will make every attempt to mount a non-mpsafe filesystem to the kernel

Re: svn commit: r231814 - in head/sys: kern sys

2012-02-17 Thread Attilio Rao
2012/2/17, Marcel Moolenaar mar...@xcllnt.net: On Feb 16, 2012, at 4:19 PM, Andriy Gapon wrote: on 17/02/2012 02:08 Kenneth D. Merry said the following: [snip] On Thu, Feb 16, 2012 at 11:13:09 +0200, Andriy Gapon wrote: [snip] For me personally the immediate benefits in the common

svn commit: r230799 - in stable/9/sys: dev/ppbus sys vm

2012-01-30 Thread Attilio Rao
Author: attilio Date: Tue Jan 31 01:45:20 2012 New Revision: 230799 URL: http://svn.freebsd.org/changeset/base/230799 Log: MFC r227758,227759,227788: Introduce macro stubs in the mutex and sxlock implementation that will be always defined and will allow consumers, willing to provide

svn commit: r230800 - stable/9/sys/dev/ppbus

2012-01-30 Thread Attilio Rao
Author: attilio Date: Tue Jan 31 01:51:30 2012 New Revision: 230800 URL: http://svn.freebsd.org/changeset/base/230800 Log: MFC r227814: - Use ppb_assert_locked() rather than using explicit mtx_assert call - Make ppbus code agnostic in regard of INVARIANTS option Modified:

svn commit: r230643 - in head/sys: dev/usb geom geom/mountver kern sys

2012-01-28 Thread Attilio Rao
Author: attilio Date: Sat Jan 28 14:00:21 2012 New Revision: 230643 URL: http://svn.freebsd.org/changeset/base/230643 Log: Avoid to check the same cache line/variable from all the locking primitives by breaking stop_scheduler into a per-thread variable. Also, store the new td_stopsched very

Re: svn commit: r228433 - in head/sys: kern security/mac

2011-12-12 Thread Attilio Rao
2011/12/12 Andriy Gapon a...@freebsd.org: on 12/12/2011 12:15 Kostik Belousov said the following: On Mon, Dec 12, 2011 at 10:05:13AM +, Andriy Gapon wrote: Author: avg Date: Mon Dec 12 10:05:13 2011 New Revision: 228433 URL: http://svn.freebsd.org/changeset/base/228433 Log:   put

Re: svn commit: r228433 - in head/sys: kern security/mac

2011-12-12 Thread Attilio Rao
2011/12/12 Attilio Rao atti...@freebsd.org: 2011/12/12 Andriy Gapon a...@freebsd.org: on 12/12/2011 12:15 Kostik Belousov said the following: On Mon, Dec 12, 2011 at 10:05:13AM +, Andriy Gapon wrote: Author: avg Date: Mon Dec 12 10:05:13 2011 New Revision: 228433 URL: http

Re: svn commit: r228433 - in head/sys: kern security/mac

2011-12-12 Thread Attilio Rao
2011/12/12 Andriy Gapon a...@freebsd.org: on 12/12/2011 19:05 Attilio Rao said the following: More precisely, what do you think about the patch below? I just didn't revert the moving of systm.h under param.h because Bruce seems to prefer that. I'm starting test-compile right now, let me know

svn commit: r228448 - in head/sys: cddl/contrib/opensolaris/uts/common/dtrace security/mac sys

2011-12-12 Thread Attilio Rao
Author: attilio Date: Mon Dec 12 23:29:32 2011 New Revision: 228448 URL: http://svn.freebsd.org/changeset/base/228448 Log: Revert the approach for skipping lockstat_probe_func call when doing lock_success/lock_failure, introduced in r228424, by directly skipping in dtrace_probe. This

svn commit: r227888 - stable/9/sys/kern

2011-11-23 Thread Attilio Rao
Author: attilio Date: Wed Nov 23 15:37:03 2011 New Revision: 227888 URL: http://svn.freebsd.org/changeset/base/227888 Log: MFC r227058: Disable interrupt and preemption for smp_rendezvous() also in the UP/!SMP case. Sponsored by: Sandvine Incorporated Approved by: re (kib)

svn commit: r227889 - releng/9.0/sys/kern

2011-11-23 Thread Attilio Rao
Author: attilio Date: Wed Nov 23 15:41:55 2011 New Revision: 227889 URL: http://svn.freebsd.org/changeset/base/227889 Log: MFC r227058: Disable interrupt and preemption for smp_rendezvous() also in the UP/!SMP case. Sponsored by: Sandvine Incorporated Approved by: re (kib)

svn commit: r227891 - stable/8/sys/kern

2011-11-23 Thread Attilio Rao
Author: attilio Date: Wed Nov 23 16:02:36 2011 New Revision: 227891 URL: http://svn.freebsd.org/changeset/base/227891 Log: MFC r227058: Disable interrupt and preemption for smp_rendezvous() also in the UP/!SMP case. Sponsored by: Sandvine Incorporated Modified:

svn commit: r227814 - head/sys/dev/ppbus

2011-11-22 Thread Attilio Rao
Author: attilio Date: Tue Nov 22 11:35:24 2011 New Revision: 227814 URL: http://svn.freebsd.org/changeset/base/227814 Log: - Use ppb_assert_locked() rather than using explicit mtx_assert call - Make ppbus code agnostic in regard of INVARIANTS option MFC after:2 weeks Modified:

svn commit: r227788 - in head/sys: kern sys vm

2011-11-21 Thread Attilio Rao
Author: attilio Date: Mon Nov 21 12:59:52 2011 New Revision: 227788 URL: http://svn.freebsd.org/changeset/base/227788 Log: Introduce the same mutex-wise fix in r227758 for sx locks. The functions that offer file and line specifications are: - sx_assert_ - sx_downgrade_ - sx_slock_

svn commit: r227758 - in head/sys: amd64/conf dev/ppbus kern sys vm

2011-11-20 Thread Attilio Rao
Author: attilio Date: Sun Nov 20 16:33:09 2011 New Revision: 227758 URL: http://svn.freebsd.org/changeset/base/227758 Log: Introduce macro stubs in the mutex implementation that will be always defined and will allow consumers, willing to provide options, file and line to locking requests,

svn commit: r227759 - head/sys/amd64/conf

2011-11-20 Thread Attilio Rao
Author: attilio Date: Sun Nov 20 16:36:02 2011 New Revision: 227759 URL: http://svn.freebsd.org/changeset/base/227759 Log: Revert part of the r227758 which crept in. Pointy hat: attilio X-MFC:r227758 Modified: head/sys/amd64/conf/GENERIC Modified:

svn commit: r227333 - in head: . sys/amd64/conf sys/arm/conf sys/conf sys/i386/conf sys/ia64/conf sys/kern sys/mips/conf sys/pc98/conf sys/powerpc/conf sys/sparc64/conf

2011-11-08 Thread Attilio Rao
Author: attilio Date: Tue Nov 8 10:18:07 2011 New Revision: 227333 URL: http://svn.freebsd.org/changeset/base/227333 Log: Introduce the option VFS_ALLOW_NONMPSAFE and turn it on by default on all the architectures. The option allows to mount non-MPSAFE filesystem. Without it, the kernel

svn commit: r227058 - head/sys/kern

2011-11-03 Thread Attilio Rao
Author: attilio Date: Thu Nov 3 14:36:56 2011 New Revision: 227058 URL: http://svn.freebsd.org/changeset/base/227058 Log: Disable interrupt and preemption for smp_rendezvous() also in the UP/!SMP case. The callbacks may be relying on this feature and having 2 different ways to deal with

svn commit: r226894 - stable/9/sys/vm

2011-10-29 Thread Attilio Rao
Author: attilio Date: Sat Oct 29 06:13:44 2011 New Revision: 226894 URL: http://svn.freebsd.org/changeset/base/226894 Log: Include a missing opt_vm.h which doesn't let VM_NRESERVLEVEL switching correct utilization. Approved by: re (kib) Modified: stable/9/sys/vm/vm_phys.c Directory

svn commit: r226897 - stable/8/sys/vm

2011-10-29 Thread Attilio Rao
Author: attilio Date: Sat Oct 29 06:28:18 2011 New Revision: 226897 URL: http://svn.freebsd.org/changeset/base/226897 Log: MFC r226642: Include a missing opt_vm.h which doesn't let VM_NRESERVLEVEL switching correct utilization. Modified: stable/8/sys/vm/vm_phys.c Directory Properties:

svn commit: r226642 - head/sys/vm

2011-10-22 Thread Attilio Rao
Author: attilio Date: Sat Oct 22 22:00:35 2011 New Revision: 226642 URL: http://svn.freebsd.org/changeset/base/226642 Log: VN_NRESERVLEVEL is used in this file but opt_vm is not included thus the stub switch won't be correctly handled. Include opt_vm.h. Submitted by: jeff MFC after:

svn commit: r226254 - stable/9/sys/netinet

2011-10-11 Thread Attilio Rao
Author: attilio Date: Tue Oct 11 13:42:42 2011 New Revision: 226254 URL: http://svn.freebsd.org/changeset/base/226254 Log: MFC r226060: Skip TCP_SIGNATURE calculation for INP_TIMEWAIT case. Sponsored by: Sandvine Incorporated Approved by: re (kib) Modified:

svn commit: r226255 - stable/9/sys/kern

2011-10-11 Thread Attilio Rao
Author: attilio Date: Tue Oct 11 13:45:04 2011 New Revision: 226255 URL: http://svn.freebsd.org/changeset/base/226255 Log: Adaptive spinning for locking primitives, in read-mode, have some tuning SYSCTLs which are inappropriate for a daily use of the machine (mostly useful only by a

svn commit: r226260 - stable/8/sys/netinet

2011-10-11 Thread Attilio Rao
Author: attilio Date: Tue Oct 11 14:39:19 2011 New Revision: 226260 URL: http://svn.freebsd.org/changeset/base/226260 Log: MFC r226060: Skip TCP_SIGNATURE calculation for INP_TIMEWAIT case. Sponsored by: Sandvine Incorporated Modified: stable/8/sys/netinet/tcp_input.c Directory

svn commit: r226060 - head/sys/netinet

2011-10-06 Thread Attilio Rao
Author: attilio Date: Thu Oct 6 14:29:38 2011 New Revision: 226060 URL: http://svn.freebsd.org/changeset/base/226060 Log: For the INP_TIMEWAIT case, there is no valid tcpcb object tied to the inpcb object. Skip the TCP_SIGNATURE check in that case as it is consistent with the output path

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

2011-10-04 Thread Attilio Rao
2011/10/3 Bruce Evans b...@optusnet.com.au: On Mon, 26 Sep 2011, Attilio Rao wrote: 2011/9/4 Bruce Evans b...@optusnet.com.au: On Sun, 4 Sep 2011, Attilio Rao wrote: Also please notice that intr enable/disable happens in the wrong way as it is done via the MD (x86 specific likely

svn commit: r225933 - stable/8/sys/dev/coretemp

2011-10-03 Thread Attilio Rao
Author: attilio Date: Mon Oct 3 10:23:28 2011 New Revision: 225933 URL: http://svn.freebsd.org/changeset/base/225933 Log: MFC r225662: Cleanup #PROCHOT sticky assertion. Sponsored by: Sandvine Incorporated Modified: stable/8/sys/dev/coretemp/coretemp.c Directory Properties:

svn commit: r225936 - in head/sys: amd64/amd64 i386/i386

2011-10-03 Thread Attilio Rao
Author: attilio Date: Mon Oct 3 14:23:00 2011 New Revision: 225936 URL: http://svn.freebsd.org/changeset/base/225936 Log: Add some improvements in the idle table callbacks: - Replace instances of manual assembly instruction hlt call with halt() function calling. - In cpu_idle_mwait()

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

2011-09-27 Thread Attilio Rao
2011/9/27 Alexander Motin m...@freebsd.org: Author: mav Date: Tue Sep 27 09:30:20 2011 New Revision: 225788 URL: http://svn.freebsd.org/changeset/base/225788 Log:  Fix interrupt counters dumping on SW_WATCHDOG fire. Thanks, avg@ just submitted this patch to me too and I was going to commit

svn commit: r225794 - head/sys/kern

2011-09-27 Thread Attilio Rao
Author: attilio Date: Tue Sep 27 13:42:11 2011 New Revision: 225794 URL: http://svn.freebsd.org/changeset/base/225794 Log: Revert r225372: wdog_kern_pat() acquires eventhandler mutex, thus it cannot work in kernel context (from where kdb_trap() runs). The right way to fix this is both

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

2011-09-27 Thread Attilio Rao
2011/9/27 Attilio Rao atti...@freebsd.org: Author: attilio Date: Tue Sep 27 13:42:11 2011 New Revision: 225794 URL: http://svn.freebsd.org/changeset/base/225794 Log:  Revert r225372:  wdog_kern_pat() acquires eventhandler mutex, thus it cannot work in  kernel context (from where kdb_trap

svn commit: r225796 - stable/8/sys/kern

2011-09-27 Thread Attilio Rao
Author: attilio Date: Tue Sep 27 13:50:30 2011 New Revision: 225796 URL: http://svn.freebsd.org/changeset/base/225796 Log: MFC r225794: Backout r225372 MFC. Modified: stable/8/sys/kern/subr_kdb.c Directory Properties: stable/8/sys/ (props changed) stable/8/sys/amd64/include/xen/

svn commit: r225797 - stable/9/sys/kern

2011-09-27 Thread Attilio Rao
Author: attilio Date: Tue Sep 27 14:00:32 2011 New Revision: 225797 URL: http://svn.freebsd.org/changeset/base/225797 Log: Backout r225372. Eventhandler mutex cannot be acquired in kernel context. Sponsored by: Sandvine Incorporated Approved by: re (kib) Modified:

svn commit: r225760 - stable/8/sys/sparc64/sparc64

2011-09-26 Thread Attilio Rao
Author: attilio Date: Mon Sep 26 10:12:16 2011 New Revision: 225760 URL: http://svn.freebsd.org/changeset/base/225760 Log: MFC r225675: Initialize the pmap lock for the kernel pmap when it is really appropriate. Modified: stable/8/sys/sparc64/sparc64/machdep.c

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

2011-09-26 Thread Attilio Rao
2011/9/4 Bruce Evans b...@optusnet.com.au: On Sun, 4 Sep 2011, Attilio Rao wrote: Also please notice that intr enable/disable happens in the wrong way as it is done via the MD (x86 specific likely) interface. This is wrong for 2 reasons: No, intr_disable() is MI.  It is also used by witness

svn commit: r225728 - stable/8/sys/kern

2011-09-22 Thread Attilio Rao
Author: attilio Date: Thu Sep 22 11:07:11 2011 New Revision: 225728 URL: http://svn.freebsd.org/changeset/base/225728 Log: MFC r225516: Return ENOSPC rather than ENXIO when dump_write() cannot proceed in order to correctl deal with consumers. Sponsored by: Sandvine Incorporated

svn commit: r225662 - head/sys/dev/coretemp

2011-09-19 Thread Attilio Rao
Author: attilio Date: Mon Sep 19 10:58:30 2011 New Revision: 225662 URL: http://svn.freebsd.org/changeset/base/225662 Log: #PROCHOT assertion is sticky after reading the MSR (accordingly with Intel manuals) it must be cleared by writing a 0. Fix that. Sponsored by: Sandvine

svn commit: r225663 - in stable/8/sys: conf kern sys

2011-09-19 Thread Attilio Rao
Author: attilio Date: Mon Sep 19 11:08:31 2011 New Revision: 225663 URL: http://svn.freebsd.org/changeset/base/225663 Log: MFC r225448: Improve busy buffers diagnostic on shutdown path. Modified: stable/8/sys/conf/NOTES stable/8/sys/conf/options stable/8/sys/kern/kern_shutdown.c

svn commit: r225675 - head/sys/sparc64/sparc64

2011-09-19 Thread Attilio Rao
Author: attilio Date: Mon Sep 19 18:29:15 2011 New Revision: 225675 URL: http://svn.freebsd.org/changeset/base/225675 Log: It is safe to initialize locks even on early boot (and it is the same thing all the other architectures already do) thus just initialize kernel_pmap in

svn commit: r225585 - in stable/8: share/man/man9 sys/i386/acpica sys/kern sys/net sys/security/audit sys/sys

2011-09-15 Thread Attilio Rao
Author: attilio Date: Thu Sep 15 12:27:26 2011 New Revision: 225585 URL: http://svn.freebsd.org/changeset/base/225585 Log: MFC r225177,225181: Introduce and use seldrain() function for dealing with fast selrecord/selinfo destruction. Sponsored by: Sandvine Incorporated Modified:

svn commit: r225551 - stable/8/sys/dev/aac

2011-09-14 Thread Attilio Rao
Author: attilio Date: Wed Sep 14 10:27:23 2011 New Revision: 225551 URL: http://svn.freebsd.org/changeset/base/225551 Log: MFC r222951: Fix races in handling flags at detach time for FIBs. Sponsored by: Sandvine Incorporated Modified: stable/8/sys/dev/aac/aac.c

svn commit: r225507 - stable/8/sys/kern

2011-09-12 Thread Attilio Rao
Author: attilio Date: Mon Sep 12 11:18:54 2011 New Revision: 225507 URL: http://svn.freebsd.org/changeset/base/225507 Log: MFC r225372: Disable the watchdog while a KDB backend is running and kick it again just before to return KDB context. Sponsored by: Sandvine Incorporated

svn commit: r225516 - head/sys/kern

2011-09-12 Thread Attilio Rao
Author: attilio Date: Mon Sep 12 20:39:31 2011 New Revision: 225516 URL: http://svn.freebsd.org/changeset/base/225516 Log: dump_write() returns ENXIO if the dump is trying to be written outside of the device boundry. While this is generally ok, the problem is that all the consumers handle

svn commit: r225448 - in head/sys: conf kern sys

2011-09-08 Thread Attilio Rao
Author: attilio Date: Thu Sep 8 12:56:26 2011 New Revision: 225448 URL: http://svn.freebsd.org/changeset/base/225448 Log: Improve the informations reported in case of busy buffers during the shutdown: - Axe out the SHOW_BUSYBUFS option and uses a tunable for selectively enable/disable it,

svn commit: r225372 - head/sys/kern

2011-09-04 Thread Attilio Rao
Author: attilio Date: Sun Sep 4 13:07:02 2011 New Revision: 225372 URL: http://svn.freebsd.org/changeset/base/225372 Log: Interrupts are disabled/enabled when entering and exiting the KDB context. While this is generally good, it brings along a serie of problems, like clocks going off sync

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

2011-09-04 Thread Attilio Rao
2011/9/4 Attilio Rao atti...@freebsd.org: Author: attilio Date: Sun Sep  4 13:07:02 2011 New Revision: 225372 URL: http://svn.freebsd.org/changeset/base/225372 Log:  Interrupts are disabled/enabled when entering and exiting the KDB context.  While this is generally good, it brings along

svn commit: r225288 - stable/8/sys/kern

2011-08-31 Thread Attilio Rao
Author: attilio Date: Wed Aug 31 09:14:56 2011 New Revision: 225288 URL: http://svn.freebsd.org/changeset/base/225288 Log: MFC r225057: Fix a race that can happen when switching spinlocks in callout_cpu_switch() and curthread is preempted. Modified: stable/8/sys/kern/kern_timeout.c

svn commit: r225177 - in head: share/man/man9 sys/kern sys/net sys/security/audit sys/sys sys/x86/acpica

2011-08-25 Thread Attilio Rao
Author: attilio Date: Thu Aug 25 15:51:54 2011 New Revision: 225177 URL: http://svn.freebsd.org/changeset/base/225177 Log: Fix a deficiency in the selinfo interface: If a selinfo object is recorded (via selrecord()) and then it is quickly destroyed, with the waiters missing the opportunity

svn commit: r225181 - head/share/man/man9

2011-08-25 Thread Attilio Rao
Author: attilio Date: Thu Aug 25 17:42:27 2011 New Revision: 225181 URL: http://svn.freebsd.org/changeset/base/225181 Log: Fix an error in the generation of the manpage after r225177. Sponsored by: Sandvine Incorporated Submitted by: jkim Approved by: re (bz) MFC after:3 weeks

svn commit: r225057 - head/sys/kern

2011-08-21 Thread Attilio Rao
Author: attilio Date: Sun Aug 21 10:52:50 2011 New Revision: 225057 URL: http://svn.freebsd.org/changeset/base/225057 Log: callout_cpu_switch() allows preemption when dropping the outcoming callout cpu lock (and after having dropped it). If the newly scheduled thread wants to acquire the

svn commit: r225009 - head/sys/dev/coretemp

2011-08-19 Thread Attilio Rao
Author: attilio Date: Fri Aug 19 13:31:48 2011 New Revision: 225009 URL: http://svn.freebsd.org/changeset/base/225009 Log: Bump the maximum coretemp limit (for CPU temperature) to 110. Several cores with temp in the range 101-105 have been found in the past. Sponsored by: Sandvine

svn commit: r224845 - head/sys/mips/mips

2011-08-13 Thread Attilio Rao
Author: attilio Date: Sat Aug 13 17:17:04 2011 New Revision: 224845 URL: http://svn.freebsd.org/changeset/base/224845 Log: Fix a typo in cb_dumpdata() about wrongly calling wdog_kern_pat(). Submitted by: Andrew Boyer aboyer at averesystems dot com Approved by: re (kib) Modified:

svn commit: r224736 - head/sys/dev/ichsmb

2011-08-09 Thread Attilio Rao
Author: attilio Date: Tue Aug 9 16:42:31 2011 New Revision: 224736 URL: http://svn.freebsd.org/changeset/base/224736 Log: Add the PCI ID for the PCH DH89xxCC on ichsmb as got from Linux counterpart. Sponsored by: Sandvine Incorporated Reviewed by: emaste, rstone Approved by: re (bz)

svn commit: r224745 - head/sys/dev/ichsmb

2011-08-09 Thread Attilio Rao
Author: attilio Date: Tue Aug 9 20:55:54 2011 New Revision: 224745 URL: http://svn.freebsd.org/changeset/base/224745 Log: Revert r224736 as the introduced value was already present. Reported by: tinderbox, pluknet Approved by: re (kib) Modified: head/sys/dev/ichsmb/ichsmb_pci.c

svn commit: r224698 - head/usr.sbin/pmcstat

2011-08-07 Thread Attilio Rao
Author: attilio Date: Sun Aug 7 18:37:05 2011 New Revision: 224698 URL: http://svn.freebsd.org/changeset/base/224698 Log: Convert pmcstat about using cpuset_t rather than relying on plain 32 bit ints. That fixes a first bug where pmcstat wasn't using the old cpumask_t interface and now

svn commit: r224612 - in head/sys: arm/arm arm/sa11x0 mips/mips

2011-08-02 Thread Attilio Rao
Author: attilio Date: Tue Aug 2 17:49:27 2011 New Revision: 224612 URL: http://svn.freebsd.org/changeset/base/224612 Log: Fix for arm and mips case the size of storage for sintrcnt/sintrnames. It seems that info as is not much precise on what expect by pseudo-op .word, by the way. No

Re: svn commit: r224551 - head/sys/powerpc/booke

2011-07-31 Thread Attilio Rao
I actually submitted a better fix which does use .int. I wasn't sure BETA1 was out, so I'm going to send a formal request now. Attilio 2011/7/31 Marcel Moolenaar mar...@freebsd.org: Author: marcel Date: Sun Jul 31 18:26:47 2011 New Revision: 224551 URL:

<    1   2   3   4   5   6   7   >