Re: svn commit: r263878 - head/sys/amd64/amd64

2014-03-28 Thread Konstantin Belousov
On Fri, Mar 28, 2014 at 01:23:06PM -0400, Ed Maste wrote: > On 28 March 2014 12:07, Konstantin Belousov wrote: > > Author: kib > > Date: Fri Mar 28 16:07:27 2014 > > New Revision: 263878 > > URL: http://svnweb.freebsd.org/changeset/base/263878 > > > >

svn commit: r263878 - head/sys/amd64/amd64

2014-03-28 Thread Konstantin Belousov
Author: kib Date: Fri Mar 28 16:07:27 2014 New Revision: 263878 URL: http://svnweb.freebsd.org/changeset/base/263878 Log: Several fixes for the PCID implementation: - When clearing a bit for a cpuid in pmap->pm_save, ensure that the cpuid is not set in pm_active. The pm_save indicates

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

2014-03-29 Thread Konstantin Belousov
Author: kib Date: Sat Mar 29 11:56:33 2014 New Revision: 263912 URL: http://svnweb.freebsd.org/changeset/base/263912 Log: Clear the kernel grab of the FPU state on fork. The pcb_save pointer is already correctly reset to the FPU user save area, only PCB_KERNFPU flag might leak from old thre

Re: svn commit: r264042 - in head: include lib/libc/gen lib/libc/include lib/libc/stdlib

2014-04-02 Thread Konstantin Belousov
On Wed, Apr 02, 2014 at 04:07:48PM +, David Chisnall wrote: > Modified: head/lib/libc/gen/Symbol.map > == > --- head/lib/libc/gen/Symbol.map Wed Apr 2 15:56:11 2014 > (r264041) > +++ head/lib/libc/gen/Symb

Re: svn commit: r264042 - in head: include lib/libc/gen lib/libc/include lib/libc/stdlib

2014-04-02 Thread Konstantin Belousov
On Wed, Apr 02, 2014 at 05:30:51PM +0100, David Chisnall wrote: > On 2 Apr 2014, at 17:18, Konstantin Belousov wrote: > > > This is completely wrong. You cannot modify FreeBSD 8.x namespace in > > 11.x HEAD time. > > That was an error, however we are using symbol versi

svn commit: r264134 - stable/10/sys/amd64/amd64

2014-04-04 Thread Konstantin Belousov
Author: kib Date: Fri Apr 4 19:17:33 2014 New Revision: 264134 URL: http://svnweb.freebsd.org/changeset/base/264134 Log: MFC r263878: Several fixes for the PCID implementation. Modified: stable/10/sys/amd64/amd64/mp_machdep.c stable/10/sys/amd64/amd64/pmap.c Directory Properties: stabl

svn commit: r264146 - in head/sys: kern sys

2014-04-05 Thread Konstantin Belousov
Author: kib Date: Sat Apr 5 14:09:16 2014 New Revision: 264146 URL: http://svnweb.freebsd.org/changeset/base/264146 Log: When KN_INFLUX is set on the knote due to kqueue_register() or kqueue_scan() unlocking the kqueue to call f_event, knote() or knote_fork() should not skip the knote. The

svn commit: r264147 - in stable/10/sys: amd64/amd64 i386/i386

2014-04-05 Thread Konstantin Belousov
Author: kib Date: Sat Apr 5 14:24:29 2014 New Revision: 264147 URL: http://svnweb.freebsd.org/changeset/base/264147 Log: MFC r263912: Clear the kernel grab of the FPU state on fork. Modified: stable/10/sys/amd64/amd64/vm_machdep.c stable/10/sys/i386/i386/vm_machdep.c Directory Properties

svn commit: r264148 - in stable/9/sys: amd64/amd64 i386/i386

2014-04-05 Thread Konstantin Belousov
Author: kib Date: Sat Apr 5 14:24:45 2014 New Revision: 264148 URL: http://svnweb.freebsd.org/changeset/base/264148 Log: MFC r263912: Clear the kernel grab of the FPU state on fork. Modified: stable/9/sys/amd64/amd64/vm_machdep.c stable/9/sys/i386/i386/vm_machdep.c Directory Properties:

svn commit: r264173 - head/sys/kern

2014-04-05 Thread Konstantin Belousov
Author: kib Date: Sat Apr 5 20:44:52 2014 New Revision: 264173 URL: http://svnweb.freebsd.org/changeset/base/264173 Log: Use realloc(9) instead of doing the reallocation inline. Submitted by: bde MFC after:1 week Modified: head/sys/kern/kern_linker.c Modified: head/sys/kern/kern_

svn commit: r264368 - in stable/10/sys: kern sys

2014-04-12 Thread Konstantin Belousov
Author: kib Date: Sat Apr 12 14:08:53 2014 New Revision: 264368 URL: http://svnweb.freebsd.org/changeset/base/264368 Log: MFC r264146: Fix a race between kqueue_register() and kqueue_scan() setting KN_INFLUX flag while knlist is not locked, which caused lost notifications from parallel kno

svn commit: r264369 - in stable/9/sys: kern sys

2014-04-12 Thread Konstantin Belousov
Author: kib Date: Sat Apr 12 14:09:35 2014 New Revision: 264369 URL: http://svnweb.freebsd.org/changeset/base/264369 Log: MFC r264146: Fix a race between kqueue_register() and kqueue_scan() setting KN_INFLUX flag while knlist is not locked, which caused lost notifications from parallel kno

svn commit: r264370 - stable/10/sys/kern

2014-04-12 Thread Konstantin Belousov
Author: kib Date: Sat Apr 12 14:18:25 2014 New Revision: 264370 URL: http://svnweb.freebsd.org/changeset/base/264370 Log: MFC r264173: Use realloc(9) instead of doing the reallocation inline. Modified: stable/10/sys/kern/kern_linker.c Directory Properties: stable/10/ (props changed) Mo

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

2014-04-12 Thread Konstantin Belousov
Author: kib Date: Sat Apr 12 14:18:48 2014 New Revision: 264371 URL: http://svnweb.freebsd.org/changeset/base/264371 Log: MFC r264173: Use realloc(9) instead of doing the reallocation inline. Modified: stable/9/sys/kern/kern_linker.c Directory Properties: stable/9/sys/ (props changed)

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

2014-04-13 Thread Konstantin Belousov
On Sun, Apr 13, 2014 at 09:23:16PM +, Christian Brueffer wrote: > Author: brueffer > Date: Sun Apr 13 21:23:15 2014 > New Revision: 264422 > URL: http://svnweb.freebsd.org/changeset/base/264422 > > Log: > Free buf after usage. > > CID:1199377 > Found with: Coverity Pre

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

2014-04-14 Thread Konstantin Belousov
On Sun, Apr 13, 2014 at 11:55:54PM +0200, Christian Brueffer wrote: > On 4/13/14 11:46 PM, Konstantin Belousov wrote: > > On Sun, Apr 13, 2014 at 09:23:16PM +, Christian Brueffer wrote: > >> Author: brueffer > >> Date: Sun Apr 13 21:23:15 2014 > >>

svn commit: r264481 - head/libexec/rtld-elf/amd64

2014-04-14 Thread Konstantin Belousov
Author: kib Date: Mon Apr 14 22:44:50 2014 New Revision: 264481 URL: http://svnweb.freebsd.org/changeset/base/264481 Log: Add dwarf annotations to the amd64 _rtld_bind_start to allow debuggers to unwind around the calls from PLT to binder. Sponsored by: The FreeBSD Foundation MFC after:

svn commit: r264620 - head/sys/kern

2014-04-17 Thread Konstantin Belousov
Author: kib Date: Thu Apr 17 18:13:23 2014 New Revision: 264620 URL: http://svnweb.freebsd.org/changeset/base/264620 Log: Fix typo. MFC after:3 days Modified: head/sys/kern/subr_fattime.c Modified: head/sys/kern/subr_fattime.c

svn commit: r264684 - stable/10/sys/kern

2014-04-19 Thread Konstantin Belousov
Author: kib Date: Sun Apr 20 01:37:30 2014 New Revision: 264684 URL: http://svnweb.freebsd.org/changeset/base/264684 Log: MFC r264620: Fix typo. Modified: stable/10/sys/kern/subr_fattime.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/kern/subr_fattime.c

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

2014-04-19 Thread Konstantin Belousov
Author: kib Date: Sun Apr 20 01:45:23 2014 New Revision: 264685 URL: http://svnweb.freebsd.org/changeset/base/264685 Log: MFC r264620: Fix typo. Modified: stable/9/sys/kern/subr_fattime.c Directory Properties: stable/9/sys/ (props changed) Modified: stable/9/sys/kern/subr_fattime.c ===

svn commit: r264718 - stable/10/libexec/rtld-elf/amd64

2014-04-20 Thread Konstantin Belousov
Author: kib Date: Mon Apr 21 02:55:27 2014 New Revision: 264718 URL: http://svnweb.freebsd.org/changeset/base/264718 Log: MFC r264481: Add dwarf annotations to the amd64 _rtld_bind_start to allow debuggers to unwind around the calls from PLT to binder. Modified: stable/10/libexec/rtld-elf

svn commit: r264719 - stable/9/libexec/rtld-elf/amd64

2014-04-20 Thread Konstantin Belousov
Author: kib Date: Mon Apr 21 02:55:46 2014 New Revision: 264719 URL: http://svnweb.freebsd.org/changeset/base/264719 Log: MFC r264481: Add dwarf annotations to the amd64 _rtld_bind_start to allow debuggers to unwind around the calls from PLT to binder. Modified: stable/9/libexec/rtld-elf/

svn commit: r265002 - head/sys/vm

2014-04-26 Thread Konstantin Belousov
Author: kib Date: Sun Apr 27 05:19:01 2014 New Revision: 265002 URL: http://svnweb.freebsd.org/changeset/base/265002 Log: When vm_fault_copy_entry() is called from vm_map_protect() for a wired entry and performs the upgrade of the entry permissions from read-only to read-write, we must allow

svn commit: r265003 - head/secure/usr.sbin/sshd

2014-04-26 Thread Konstantin Belousov
Author: kib Date: Sun Apr 27 05:28:14 2014 New Revision: 265003 URL: http://svnweb.freebsd.org/changeset/base/265003 Log: Fix order of libthr and libc in the global dso list for sshd, by explicitely linking main binary with -lpthread. Before, libthr appeared in the list due to dependency of

svn commit: r265004 - head/sys/amd64/amd64

2014-04-26 Thread Konstantin Belousov
Author: kib Date: Sun Apr 27 05:37:01 2014 New Revision: 265004 URL: http://svnweb.freebsd.org/changeset/base/265004 Log: Same as it was done in r263878 for invlrng_handler(), fix order of checks for special pcid values in invlpg_pcid_handler(). Forst check for special values, and only then

svn commit: r265100 - head/sys/vm

2014-04-29 Thread Konstantin Belousov
Author: kib Date: Tue Apr 29 18:42:37 2014 New Revision: 265100 URL: http://svnweb.freebsd.org/changeset/base/265100 Log: For the VM_PHYSSEG_DENSE case, checking the requested range to fall into the area backed by vm_page_array wrongly compared end with vm_page_array_size. It should be adju

svn commit: r265102 - head/sys/dev/drm2/i915

2014-04-29 Thread Konstantin Belousov
Author: kib Date: Tue Apr 29 19:02:34 2014 New Revision: 265102 URL: http://svnweb.freebsd.org/changeset/base/265102 Log: Fix two cases of recursive acquisitions of the vm object lock, only possible in rare failure situations. Sponsored by: The FreeBSD Foundation MFC after:1 week M

svn commit: r265275 - head/sys/fs/msdosfs

2014-05-03 Thread Konstantin Belousov
Author: kib Date: Sat May 3 16:11:55 2014 New Revision: 265275 URL: http://svnweb.freebsd.org/changeset/base/265275 Log: After r254627, the deupdate() started writing the directory entries to disk. That has a side effect of corrupting the "." entries names on rename, since the call to crea

svn commit: r265311 - stable/10/sys/vm

2014-05-04 Thread Konstantin Belousov
Author: kib Date: Sun May 4 07:19:37 2014 New Revision: 265311 URL: http://svnweb.freebsd.org/changeset/base/265311 Log: MFC r265002: Fix vm_fault_copy_entry() operation on upgrade; allow it to find the pages in the shadowed objects. Modified: stable/10/sys/vm/vm_fault.c Directory Proper

svn commit: r265312 - stable/10/sys/amd64/amd64

2014-05-04 Thread Konstantin Belousov
Author: kib Date: Sun May 4 07:22:51 2014 New Revision: 265312 URL: http://svnweb.freebsd.org/changeset/base/265312 Log: MFC r265004: Same as it was done in r263878 for invlrng_handler(), fix order of checks for special pcid values in invlpg_pcid_handler(). Modified: stable/10/sys/amd64/

svn commit: r265313 - stable/10/secure/usr.sbin/sshd

2014-05-04 Thread Konstantin Belousov
Author: kib Date: Sun May 4 07:28:26 2014 New Revision: 265313 URL: http://svnweb.freebsd.org/changeset/base/265313 Log: MFC r265003: Fix order of libthr and libc in the global dso list for sshd. Modified: stable/10/secure/usr.sbin/sshd/Makefile Directory Properties: stable/10/ (props

svn commit: r265314 - stable/9/secure/usr.sbin/sshd

2014-05-04 Thread Konstantin Belousov
Author: kib Date: Sun May 4 07:57:20 2014 New Revision: 265314 URL: http://svnweb.freebsd.org/changeset/base/265314 Log: MFC r265003: Fix order of libthr and libc in the global dso list for sshd. Modified: stable/9/secure/usr.sbin/sshd/Makefile Directory Properties: stable/9/secure/usr.s

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

2014-05-04 Thread Konstantin Belousov
Author: kib Date: Sun May 4 08:00:07 2014 New Revision: 265315 URL: http://svnweb.freebsd.org/changeset/base/265315 Log: MFC r265002: Fix vm_fault_copy_entry() operation on upgrade; allow it to find the pages in the shadowed objects. Modified: stable/9/sys/vm/vm_fault.c Directory Propert

svn commit: r265435 - stable/10/sys/vm

2014-05-06 Thread Konstantin Belousov
Author: kib Date: Tue May 6 12:20:07 2014 New Revision: 265435 URL: http://svnweb.freebsd.org/changeset/base/265435 Log: MFC r265100: Fix the comparision for the end of range in vm_phys_fictitious_reg_range(). Modified: stable/10/sys/vm/vm_phys.c Directory Properties: stable/10/ (props

svn commit: r265437 - stable/10/sys/dev/drm2/i915

2014-05-06 Thread Konstantin Belousov
Author: kib Date: Tue May 6 12:31:25 2014 New Revision: 265437 URL: http://svnweb.freebsd.org/changeset/base/265437 Log: MFC r265102: Fix two cases of recursive acquisitions of the vm object lock, only possible in rare failure situations. Modified: stable/10/sys/dev/drm2/i915/i915_gem.c

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

2014-05-06 Thread Konstantin Belousov
Author: kib Date: Tue May 6 12:35:19 2014 New Revision: 265438 URL: http://svnweb.freebsd.org/changeset/base/265438 Log: MFC r265100: Fix the comparision for the end of range in vm_phys_fictitious_reg_range(). Modified: stable/9/sys/vm/vm_phys.c Directory Properties: stable/9/sys/ (pro

svn commit: r265439 - stable/9/sys/dev/drm2/i915

2014-05-06 Thread Konstantin Belousov
Author: kib Date: Tue May 6 12:39:23 2014 New Revision: 265439 URL: http://svnweb.freebsd.org/changeset/base/265439 Log: MFC r265102: Fix one cases of recursive acquisitions of the vm object lock, only possible in rare failure situations. The second part of r265102 is not applicable to s

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

2013-06-15 Thread Konstantin Belousov
On Tue, Jun 04, 2013 at 06:14:49PM +1000, Bruce Evans wrote: > On Tue, 4 Jun 2013, Konstantin Belousov wrote: > > > On Mon, Jun 03, 2013 at 02:24:26AM -0700, Alfred Perlstein wrote: > >> On 6/3/13 12:55 AM, Konstantin Belousov wrote: > >>> On Sun, Jun 02,

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

2013-06-16 Thread Konstantin Belousov
Author: kib Date: Mon Jun 17 06:21:42 2013 New Revision: 251832 URL: http://svnweb.freebsd.org/changeset/base/251832 Log: MFC r251322: Instead of yielding, pause for 1 tick when donating the current thread time to the owner of the vnode lock while iterating over the free vnode list. Modif

svn commit: r251833 - stable/9/lib/libthr/thread

2013-06-17 Thread Konstantin Belousov
Author: kib Date: Mon Jun 17 07:11:17 2013 New Revision: 251833 URL: http://svnweb.freebsd.org/changeset/base/251833 Log: MFC r250013 (by davidxu): Remove extra code for SA_RESETHAND, it is not needed because kernel has already done this. Approved by: davidxu Modified: stable/9/lib/

svn commit: r251834 - stable/9/lib/libthr/thread

2013-06-17 Thread Konstantin Belousov
Author: kib Date: Mon Jun 17 07:12:34 2013 New Revision: 251834 URL: http://svnweb.freebsd.org/changeset/base/251834 Log: MFC r251284: Unify the code of check_deferred_signal() for all architectures. Modified: stable/9/lib/libthr/thread/thr_sig.c Directory Properties: stable/9/lib/libthr/

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

2013-06-18 Thread Konstantin Belousov
Author: kib Date: Tue Jun 18 19:03:27 2013 New Revision: 251957 URL: http://svnweb.freebsd.org/changeset/base/251957 Log: MFC r251285: Do not map the shared page COW. Modified: stable/9/sys/kern/kern_exec.c Directory Properties: stable/9/sys/ (props changed) Modified: stable/9/sys/kern

svn commit: r251959 - head/sys/dev/drm2/i915

2013-06-18 Thread Konstantin Belousov
Author: kib Date: Tue Jun 18 19:56:52 2013 New Revision: 251959 URL: http://svnweb.freebsd.org/changeset/base/251959 Log: Remove stray empty line. MFC after:3 days Modified: head/sys/dev/drm2/i915/i915_gem.c Modified: head/sys/dev/drm2/i915/i915_gem.c ===

svn commit: r251960 - head/sys/dev/drm2/i915

2013-06-18 Thread Konstantin Belousov
Author: kib Date: Tue Jun 18 20:02:52 2013 New Revision: 251960 URL: http://svnweb.freebsd.org/changeset/base/251960 Log: Since the gem pagefault handler relocks the vm object lock, other thread might fault on the same GTT offset meantime and instantiate the mapping. Recheck that the mgt de

svn commit: r251961 - in head/sys/dev: drm2/i915 syscons

2013-06-18 Thread Konstantin Belousov
Author: kib Date: Tue Jun 18 20:19:09 2013 New Revision: 251961 URL: http://svnweb.freebsd.org/changeset/base/251961 Log: On some generations of the Intel GPU, disabling of the VGA Display stops updating the vertical retrace indicator. The text mouse renderer in syscons is executing from th

svn commit: r251985 - head/lib/libthr/thread

2013-06-18 Thread Konstantin Belousov
Author: kib Date: Wed Jun 19 04:47:41 2013 New Revision: 251985 URL: http://svnweb.freebsd.org/changeset/base/251985 Log: The SUSv4tc1 requires that pthread_setcancelstate() shall be not a cancellation point. When enabling the cancellation, only process the pending cancellation for asynchro

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

2013-06-18 Thread Konstantin Belousov
Author: kib Date: Wed Jun 19 05:05:16 2013 New Revision: 251988 URL: http://svnweb.freebsd.org/changeset/base/251988 Log: Some clarifications and updates for the comments, mostly retrieved from Bruce Evans. Trim the trailing spaces. MFC after:1 week Modified: head/sys/amd64/amd64/

svn commit: r252032 - head/sys/amd64/include

2013-06-20 Thread Konstantin Belousov
Author: kib Date: Thu Jun 20 14:30:04 2013 New Revision: 252032 URL: http://svnweb.freebsd.org/changeset/base/252032 Log: Allow immediate operand. Sponsored by: The FreeBSD Foundation Modified: head/sys/amd64/include/counter.h Modified: head/sys/amd64/include/counter.h =

svn commit: r252054 - stable/9/sys/dev/drm2/i915

2013-06-20 Thread Konstantin Belousov
Author: kib Date: Fri Jun 21 06:28:55 2013 New Revision: 252054 URL: http://svnweb.freebsd.org/changeset/base/252054 Log: MFC r251959: Remove stray empty line. Modified: stable/9/sys/dev/drm2/i915/i915_gem.c Directory Properties: stable/9/sys/ (props changed) stable/9/sys/dev/ (prop

Re: svn commit: r252032 - head/sys/amd64/include

2013-06-20 Thread Konstantin Belousov
On Fri, Jun 21, 2013 at 12:15:24PM +1000, Lawrence Stewart wrote: > Hi Kostik, > > On 06/21/13 00:30, Konstantin Belousov wrote: > > Author: kib > > Date: Thu Jun 20 14:30:04 2013 > > New Revision: 252032 > > URL: http://svnweb.freebsd.org/changeset/base/252032 &g

Re: svn commit: r252032 - head/sys/amd64/include

2013-06-23 Thread Konstantin Belousov
On Sat, Jun 22, 2013 at 01:37:58PM +1000, Bruce Evans wrote: > On Sat, 22 Jun 2013, I wrote: > > > ... > > Here are considerably expanded tests, with noninline tests dropped. > > Summary of times on Athlon64: > > > > simple increment: 4-7 cycles (1) > > simple increme

Re: svn commit: r252032 - head/sys/amd64/include

2013-06-23 Thread Konstantin Belousov
On Sat, Jun 22, 2013 at 06:58:15PM +1000, Bruce Evans wrote: > So the i386 version be simply "addl; adcl" to memory. Each store in > this is atomic at the per-CPU level. If there is no carry, then the > separate stores are equivalent to adding separate nonnegative values and > the counter value i

Re: svn commit: r252032 - head/sys/amd64/include

2013-06-24 Thread Konstantin Belousov
On Sun, Jun 23, 2013 at 07:57:57PM +1000, Bruce Evans wrote: > The case that can't be fixed by rereading the counters is when fetching > code runs in between the stores. If the stores are on a another CPU > that is currently executing them, then we can keep checking that the > counters don't chang

Re: svn commit: r252032 - head/sys/amd64/include

2013-06-24 Thread Konstantin Belousov
On Tue, Jun 25, 2013 at 12:45:36PM +1000, Bruce Evans wrote: > On Mon, 24 Jun 2013, Konstantin Belousov wrote: > > > On Sun, Jun 23, 2013 at 07:57:57PM +1000, Bruce Evans wrote: > >> The case that can't be fixed by rereading the counters is when fetching > >> c

Re: svn commit: r252032 - head/sys/amd64/include

2013-06-25 Thread Konstantin Belousov
On Tue, Jun 25, 2013 at 08:14:41PM +1000, Bruce Evans wrote: > On Tue, 25 Jun 2013, Konstantin Belousov wrote: > > > Updates to the counter cannot be done from the interrupt context. > > This is fragile, however. It prevents using counters for things like > counting interr

svn commit: r252245 - stable/9/lib/libthr/thread

2013-06-25 Thread Konstantin Belousov
Author: kib Date: Wed Jun 26 05:49:29 2013 New Revision: 252245 URL: http://svnweb.freebsd.org/changeset/base/252245 Log: MFC r251985: When enabling the cancellation, only process the pending cancellation for asynchronous mode. Modified: stable/9/lib/libthr/thread/thr_cancel.c Directory P

svn commit: r252246 - in stable/9/sys: amd64/amd64 i386/i386

2013-06-25 Thread Konstantin Belousov
Author: kib Date: Wed Jun 26 05:54:37 2013 New Revision: 252246 URL: http://svnweb.freebsd.org/changeset/base/252246 Log: MFC r251988: Some clarifications and updates for the comments, mostly retrieved from Bruce Evans. Trim the trailing spaces. Modified: stable/9/sys/amd64/amd64/excepti

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

2013-06-27 Thread Konstantin Belousov
Author: kib Date: Thu Jun 27 07:27:08 2013 New Revision: 252292 URL: http://svnweb.freebsd.org/changeset/base/252292 Log: MFC r251684: Fix two issues with the spin loops in the umtx(2) implementation. - When looping, check for the pending suspension. - Add missed checks for the faults from

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

2013-06-27 Thread Konstantin Belousov
On Fri, Jun 28, 2013 at 03:03:46AM +0200, Mateusz Guzik wrote: > On Thu, Jun 27, 2013 at 07:14:04PM +, Mikolaj Golub wrote: > > Author: trociny > > Date: Thu Jun 27 19:14:03 2013 > > New Revision: 252313 > > URL: http://svnweb.freebsd.org/changeset/base/252313 > > > > Log: > > To avoid LOR,

Re: svn commit: r252376 - head/lib/libutil

2013-06-29 Thread Konstantin Belousov
On Sat, Jun 29, 2013 at 03:52:49PM +, Tim Kientzle wrote: > Author: kientzle > Date: Sat Jun 29 15:52:48 2013 > New Revision: 252376 > URL: http://svnweb.freebsd.org/changeset/base/252376 > > Log: > Fix -Wunsequenced warning What is this ? From the name of the warning, it sounds as if the pr

Re: svn commit: r252376 - head/lib/libutil

2013-06-29 Thread Konstantin Belousov
On Sat, Jun 29, 2013 at 09:42:49AM -0700, m...@freebsd.org wrote: > On Sat, Jun 29, 2013 at 9:36 AM, Tim Kientzle wrote: > > > > > On Jun 29, 2013, at 9:19 AM, Konstantin Belousov wrote: > > > > > On Sat, Jun 29, 2013 at 03:52:49PM +, Tim Kientzle wrote: &g

svn commit: r252434 - in head/sys: amd64/include arm/include i386/include ia64/include kern mips/include powerpc/include sparc64/include

2013-06-30 Thread Konstantin Belousov
Author: kib Date: Mon Jul 1 02:48:27 2013 New Revision: 252434 URL: http://svnweb.freebsd.org/changeset/base/252434 Log: Fix issues with zeroing and fetching the counters, on x86 and ppc64. Issues were noted by Bruce Evans and are present on all architectures. On i386, a counter fetch sh

svn commit: r252496 - stable/9/sys/dev/drm2/i915

2013-07-01 Thread Konstantin Belousov
Author: kib Date: Tue Jul 2 04:42:32 2013 New Revision: 252496 URL: http://svnweb.freebsd.org/changeset/base/252496 Log: MFC r251960: Since the gem pagefault handler relocks the vm object lock, other thread might fault on the same GTT offset meantime and instantiate the mapping. Recheck

svn commit: r252497 - in stable/9/sys/dev: drm2/i915 syscons

2013-07-01 Thread Konstantin Belousov
Author: kib Date: Tue Jul 2 04:45:51 2013 New Revision: 252497 URL: http://svnweb.freebsd.org/changeset/base/252497 Log: MFC r251961: Disable wait for the retrace if KMS is activated. Modified: stable/9/sys/dev/drm2/i915/intel_fb.c stable/9/sys/dev/syscons/scvgarndr.c Directory Propertie

svn commit: r252714 - head/sys/fs/nullfs

2013-07-04 Thread Konstantin Belousov
Author: kib Date: Thu Jul 4 19:01:18 2013 New Revision: 252714 URL: http://svnweb.freebsd.org/changeset/base/252714 Log: The tvp vnode on rename is usually unlinked. Drop the cached null vnode for tvp to allow the free of the lower vnode, if needed. PR: kern/180236 Tested by:smh

svn commit: r252864 - head/sys/dev/drm2/ttm

2013-07-05 Thread Konstantin Belousov
Author: kib Date: Sat Jul 6 04:46:42 2013 New Revision: 252864 URL: http://svnweb.freebsd.org/changeset/base/252864 Log: Remove unneeded page lock around vm_page_insert(). Submitted by: alc Modified: head/sys/dev/drm2/ttm/ttm_bo_vm.c Modified: head/sys/dev/drm2/ttm/ttm_bo_vm.c

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

2013-07-06 Thread Konstantin Belousov
Author: kib Date: Sat Jul 6 20:10:39 2013 New Revision: 252893 URL: http://svnweb.freebsd.org/changeset/base/252893 Log: MFC r226454 (by bz): Fix VNET build. Modified: stable/9/sys/netinet/tcp_input.c Directory Properties: stable/9/sys/ (props changed) Modified: stable/9/sys/netine

Re: svn commit: r252835 - stable/9/sys/netinet

2013-07-06 Thread Konstantin Belousov
On Sat, Jul 06, 2013 at 03:21:46PM -0400, Glen Barber wrote: > On Fri, Jul 05, 2013 at 08:11:27PM +, Andre Oppermann wrote: > > Author: andre > > Date: Fri Jul 5 20:11:27 2013 > > New Revision: 252835 > > URL: http://svnweb.freebsd.org/changeset/base/252835 > > > > Log: > > MFC r226433: > >

svn commit: r253094 - head/sys/dev/usb/controller

2013-07-09 Thread Konstantin Belousov
Author: kib Date: Tue Jul 9 12:55:01 2013 New Revision: 253094 URL: http://svnweb.freebsd.org/changeset/base/253094 Log: Use MSI for xhci(4), if supported. Reviewed by: jhb Tested by:dchagin Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/sys/dev/usb/

svn commit: r253095 - head/sys/vm

2013-07-09 Thread Konstantin Belousov
Author: kib Date: Tue Jul 9 13:22:30 2013 New Revision: 253095 URL: http://svnweb.freebsd.org/changeset/base/253095 Log: Fix typo in comment. MFC after:3 days Modified: head/sys/vm/swap_pager.c Modified: head/sys/vm/swap_pager.c =

svn commit: r253106 - in head/sys: geom/journal kern sys ufs/ffs

2013-07-09 Thread Konstantin Belousov
Author: kib Date: Tue Jul 9 20:49:32 2013 New Revision: 253106 URL: http://svnweb.freebsd.org/changeset/base/253106 Log: There are several code sequences like vfs_busy(mp); vfs_write_suspend(mp); which are problematic if other thread starts unmount between two calls. The un

svn commit: r253140 - head/sys/amd64/amd64

2013-07-10 Thread Konstantin Belousov
Author: kib Date: Wed Jul 10 09:24:03 2013 New Revision: 253140 URL: http://svnweb.freebsd.org/changeset/base/253140 Log: Clear m->object for the page taken from the delayed free list for reuse as the pv chink page in reclaim_pv_chunk(). Having non-NULL m->object is wrong for page not owned

svn commit: r253141 - head/sys/geom/journal

2013-07-10 Thread Konstantin Belousov
Author: kib Date: Wed Jul 10 10:11:43 2013 New Revision: 253141 URL: http://svnweb.freebsd.org/changeset/base/253141 Log: When panicing due to the gjournal overflow, print the geom metadata journal id. Requested by: Andreas Longwitz MFC after:1 week Modified: head/sys/geom/journ

svn commit: r253183 - stable/9/sys/fs/nullfs

2013-07-10 Thread Konstantin Belousov
Author: kib Date: Thu Jul 11 04:47:44 2013 New Revision: 253183 URL: http://svnweb.freebsd.org/changeset/base/253183 Log: MFC r252714: The tvp vnode on rename is usually unlinked. Drop the cached null vnode for tvp to allow the free of the lower vnode, if needed. PR: kern/180236 Mod

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

2013-07-10 Thread Konstantin Belousov
Author: kib Date: Thu Jul 11 05:10:36 2013 New Revision: 253185 URL: http://svnweb.freebsd.org/changeset/base/253185 Log: MFamd64 r253140: Clear m->object for the page taken from the delayed free list in pmap_pv_reclaim(). Noted by: alc Modified: head/sys/i386/i386/pmap.c Modifi

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

2013-07-10 Thread Konstantin Belousov
Author: kib Date: Thu Jul 11 05:15:30 2013 New Revision: 253186 URL: http://svnweb.freebsd.org/changeset/base/253186 Log: Explicitely panic instead of possibly doing undefined things when ptelist KVA is exhausted. Currently this cannot happen, the added panic serves as assert. Discusse

svn commit: r253187 - head/sys/kern

2013-07-10 Thread Konstantin Belousov
Author: kib Date: Thu Jul 11 05:36:26 2013 New Revision: 253187 URL: http://svnweb.freebsd.org/changeset/base/253187 Log: Do not invalidate page of the B_NOCACHE buffer or buffer after an I/O error if any user wired mappings exist. Doing the invalidation destroys the user wiring. The c

svn commit: r253188 - head/sys/vm

2013-07-10 Thread Konstantin Belousov
Author: kib Date: Thu Jul 11 05:38:39 2013 New Revision: 253188 URL: http://svnweb.freebsd.org/changeset/base/253188 Log: In the vm_page_set_invalid() function, do not assert that the page is not busy, since its only caller brelse() can legitimately call it on busy page. This happens for VO

svn commit: r253189 - head/sys/vm

2013-07-10 Thread Konstantin Belousov
Author: kib Date: Thu Jul 11 05:47:26 2013 New Revision: 253189 URL: http://svnweb.freebsd.org/changeset/base/253189 Log: Never remove user-wired pages from an object when doing msync(MS_INVALIDATE). The vm_fault_copy_entry() requires that object range which corresponds to the user-wired vm

svn commit: r253190 - head/sys/vm

2013-07-10 Thread Konstantin Belousov
Author: kib Date: Thu Jul 11 05:55:08 2013 New Revision: 253190 URL: http://svnweb.freebsd.org/changeset/base/253190 Log: The mlockall() or VM_MAP_WIRE_HOLESOK does not interact properly with parallel creation of the map entries, e.g. by mmap() or stack growing. It also breaks when other ent

svn commit: r253191 - head/sys/vm

2013-07-10 Thread Konstantin Belousov
Author: kib Date: Thu Jul 11 05:58:28 2013 New Revision: 253191 URL: http://svnweb.freebsd.org/changeset/base/253191 Log: The vm_fault() should not be allowed to proceed on the map entry which is being wired now. The entry wired count is changed to non-zero in advance, before the map lock i

svn commit: r253221 - head/sys/vm

2013-07-11 Thread Konstantin Belousov
Author: kib Date: Thu Jul 11 20:33:57 2013 New Revision: 253221 URL: http://svnweb.freebsd.org/changeset/base/253221 Log: When swap pager allocates metadata in the pagedaemon context, allow it to drain the reserve. This was broken in r243040, causing deadlock. Note that VM_WAIT call in case

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

2013-07-12 Thread Konstantin Belousov
Author: kib Date: Fri Jul 12 10:02:47 2013 New Revision: 253257 URL: http://svnweb.freebsd.org/changeset/base/253257 Log: MFC r253095: Fix typo in comment. Approved by: re (hrs) Modified: stable/9/sys/vm/swap_pager.c Directory Properties: stable/9/sys/ (props changed) Modified: s

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

2013-07-12 Thread Konstantin Belousov
Author: kib Date: Fri Jul 12 10:07:48 2013 New Revision: 253259 URL: http://svnweb.freebsd.org/changeset/base/253259 Log: MFC r251282: When auto-sizing the buffer cache, limit the amount of physical memory used as the estimation of size, to 16GB. This provides around 100K of buffer header

svn commit: r253280 - head/sys/ufs/ffs

2013-07-12 Thread Konstantin Belousov
Author: kib Date: Fri Jul 12 18:52:33 2013 New Revision: 253280 URL: http://svnweb.freebsd.org/changeset/base/253280 Log: Only copy as much bytes as there in superblock, instead of the full block copy, when copying the superblock into the snapshot. UFS1 does not align superblock on the bloc

svn commit: r253325 - head/sys/kern

2013-07-13 Thread Konstantin Belousov
Author: kib Date: Sat Jul 13 19:32:50 2013 New Revision: 253325 URL: http://svnweb.freebsd.org/changeset/base/253325 Log: Allow to call clock_gettime() on the clock id for zombie process. Reported by: Petr Salinger PR: threads/180496 Sponsored by: The FreeBSD Foundation Modified:

svn commit: r253326 - head/sys/kern

2013-07-13 Thread Konstantin Belousov
Author: kib Date: Sat Jul 13 19:34:34 2013 New Revision: 253326 URL: http://svnweb.freebsd.org/changeset/base/253326 Log: There is no need to count waiters for the runningbufspace. Sponsored by: The FreeBSD Foundation Modified: head/sys/kern/vfs_bio.c Modified: head/sys/kern/vfs_bio.c =

svn commit: r253327 - head/sys/kern

2013-07-13 Thread Konstantin Belousov
Author: kib Date: Sat Jul 13 19:36:18 2013 New Revision: 253327 URL: http://svnweb.freebsd.org/changeset/base/253327 Log: Assert that runningbufspace does not underflow. Sponsored by: The FreeBSD Foundation Modified: head/sys/kern/vfs_bio.c Modified: head/sys/kern/vfs_bio.c

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

2013-07-13 Thread Konstantin Belousov
Author: kib Date: Sat Jul 13 19:42:52 2013 New Revision: 253328 URL: http://svnweb.freebsd.org/changeset/base/253328 Log: Create a proper stack frame for i386 version of bcopy(), despite the function is leaf. The frame allows ddb to not loose the direct caller of bcopy() in backtrace.

svn commit: r253352 - head/sys/amd64/amd64

2013-07-14 Thread Konstantin Belousov
Author: kib Date: Mon Jul 15 06:30:57 2013 New Revision: 253352 URL: http://svnweb.freebsd.org/changeset/base/253352 Log: MFi386: add ddb "show sysregs" command. Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/sys/amd64/amd64/machdep.c Modified: head/sys/amd64

svn commit: r253379 - stable/9/sys/dev/usb/controller

2013-07-15 Thread Konstantin Belousov
Author: kib Date: Tue Jul 16 06:50:22 2013 New Revision: 253379 URL: http://svnweb.freebsd.org/changeset/base/253379 Log: MFC r253094: Use MSI for xhci(4), if supported. Approved by: re (delphij) Modified: stable/9/sys/dev/usb/controller/xhci.h stable/9/sys/dev/usb/controller/xhci_p

svn commit: r253398 - head/sys/dev/usb/controller

2013-07-16 Thread Konstantin Belousov
Author: kib Date: Tue Jul 16 20:14:23 2013 New Revision: 253398 URL: http://svnweb.freebsd.org/changeset/base/253398 Log: Add a tunable to force disable MSI use for xhci(4). Requested and tested by: delphij Sponsored by: The FreeBSD Foundation MFC after:3 days Modified: head

svn commit: r253415 - stable/9/sys/geom/journal

2013-07-17 Thread Konstantin Belousov
Author: kib Date: Wed Jul 17 10:35:57 2013 New Revision: 253415 URL: http://svnweb.freebsd.org/changeset/base/253415 Log: MFC r253141: When panicing due to the gjournal overflow, print the geom metadata journal id. Approved by: re (rodrigc) Modified: stable/9/sys/geom/journal/g_jour

svn commit: r253416 - stable/8/sys/geom/journal

2013-07-17 Thread Konstantin Belousov
Author: kib Date: Wed Jul 17 10:53:11 2013 New Revision: 253416 URL: http://svnweb.freebsd.org/changeset/base/253416 Log: MFC r253141: When panicing due to the gjournal overflow, print the geom metadata journal id. Modified: stable/8/sys/geom/journal/g_journal.c Directory Properties: st

svn commit: r253417 - head/sys/kern

2013-07-17 Thread Konstantin Belousov
Author: kib Date: Wed Jul 17 10:56:21 2013 New Revision: 253417 URL: http://svnweb.freebsd.org/changeset/base/253417 Log: Clear the vnode knotes before destroying vpollinfo. Reported and tested by: Patrick Lamaiziere Sponsored by: The FreeBSD Foundation MFC after:2 weeks Mod

Re: svn commit: r253451 - in head/contrib/binutils: binutils include/elf

2013-07-18 Thread Konstantin Belousov
On Thu, Jul 18, 2013 at 05:25:50PM +, Ed Maste wrote: > Author: emaste > Date: Thu Jul 18 17:25:50 2013 > New Revision: 253451 > URL: http://svnweb.freebsd.org/changeset/base/253451 > > Log: > Handle FreeBSD-specific ELF notes > > Add a function to return the specific type, when the not

svn commit: r253464 - stable/9/sys/dev/usb/controller

2013-07-18 Thread Konstantin Belousov
Author: kib Date: Fri Jul 19 05:28:47 2013 New Revision: 253464 URL: http://svnweb.freebsd.org/changeset/base/253464 Log: MFC r253398: Add a tunable to force disable MSI use for xhci(4). Approved by: re (delphij) Modified: stable/9/sys/dev/usb/controller/xhci_pci.c Directory Propertie

svn commit: r253465 - stable/9/sys/ufs/ffs

2013-07-18 Thread Konstantin Belousov
Author: kib Date: Fri Jul 19 05:32:08 2013 New Revision: 253465 URL: http://svnweb.freebsd.org/changeset/base/253465 Log: MFC r253280: Only copy as much bytes as there in superblock, instead of the full block copy, when copying the superblock into the snapshot. UFS1 does not align superbl

svn commit: r253494 - in head/sys: compat/freebsd32 kern sys

2013-07-20 Thread Konstantin Belousov
Author: kib Date: Sat Jul 20 13:39:41 2013 New Revision: 253494 URL: http://svnweb.freebsd.org/changeset/base/253494 Log: id_t is 64bit, provide the compat32 wrapper for clock_getcpuclockid2(2). Reported and tested by: Petr Salinger PR: threads/180652 Sponsored by: The FreeBSD

svn commit: r253495 - head/sys/compat/freebsd32

2013-07-20 Thread Konstantin Belousov
Author: kib Date: Sat Jul 20 13:40:03 2013 New Revision: 253495 URL: http://svnweb.freebsd.org/changeset/base/253495 Log: Regenerate Modified: head/sys/compat/freebsd32/freebsd32_proto.h head/sys/compat/freebsd32/freebsd32_syscall.h head/sys/compat/freebsd32/freebsd32_syscalls.c head/sy

<    4   5   6   7   8   9   10   11   12   13   >