Re: svn commit: r237434 - in head/lib/libc: amd64/sys gen i386/sys include sys

2012-06-23 Thread Konstantin Belousov
On Sat, Jun 23, 2012 at 03:17:57PM +0200, Marius Strobl wrote: On Fri, Jun 22, 2012 at 10:48:17AM +0300, Konstantin Belousov wrote: On Fri, Jun 22, 2012 at 09:34:56AM +0200, Marius Strobl wrote: On Fri, Jun 22, 2012 at 07:13:31AM +, Konstantin Belousov wrote: Author: kib Date

svn commit: r237484 - head/sys/dev/agp

2012-06-23 Thread Konstantin Belousov
Author: kib Date: Sat Jun 23 15:36:32 2012 New Revision: 237484 URL: http://svn.freebsd.org/changeset/base/237484 Log: Correct device id for GPU on some server SandyBridge model. Submitted and tested by: Thomas Zander thomas.e.zander googlemail com MFC after:3 days Modified:

svn commit: r237659 - head/libexec/rtld-elf

2012-06-27 Thread Konstantin Belousov
Author: kib Date: Wed Jun 27 20:24:25 2012 New Revision: 237659 URL: http://svn.freebsd.org/changeset/base/237659 Log: Ensure that for the object which is a dependency for some filtee, relocations are performed before the object's initializer is called. When dlopen()ing an object, relocate

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

2012-06-27 Thread Konstantin Belousov
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 if present. MFC after:1 week Modified: head/lib/libc/gen/sysconf.c Modified:

svn commit: r237661 - head/tools/test/auxinfo

2012-06-27 Thread Konstantin Belousov
Author: kib Date: Wed Jun 27 20:34:29 2012 New Revision: 237661 URL: http://svn.freebsd.org/changeset/base/237661 Log: Add a test for number of CPUs configured/online. MFC after:1 week Modified: head/tools/test/auxinfo/auxinfo.c Modified: head/tools/test/auxinfo/auxinfo.c

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

2012-06-28 Thread Konstantin Belousov
On Thu, Jun 28, 2012 at 10:53:03AM +0800, David Xu wrote: On 2012/6/28 10:32, Attilio Rao wrote: 2012/6/28, David Xulistlog2...@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

svn commit: r237844 - head/usr.bin/killall

2012-06-30 Thread Konstantin Belousov
Author: kib Date: Sat Jun 30 16:20:01 2012 New Revision: 237844 URL: http://svn.freebsd.org/changeset/base/237844 Log: Initialize procs closer to the place were it is used. Free can properly handle NULL pointer (but keep free() call on the premise that the code might be reused). Show

svn commit: r237845 - head/usr.bin/killall

2012-06-30 Thread Konstantin Belousov
Author: kib Date: Sat Jun 30 16:21:51 2012 New Revision: 237845 URL: http://svn.freebsd.org/changeset/base/237845 Log: Only initialize array of mibs once. MFC after:3 days Modified: head/usr.bin/killall/killall.c Modified: head/usr.bin/killall/killall.c

svn commit: r237846 - head/usr.bin/killall

2012-06-30 Thread Konstantin Belousov
Author: kib Date: Sat Jun 30 16:23:08 2012 New Revision: 237846 URL: http://svn.freebsd.org/changeset/base/237846 Log: killall(1) does not use libkvm. MFC after:3 days Modified: head/usr.bin/killall/killall.c Modified: head/usr.bin/killall/killall.c

svn commit: r237847 - head/usr.bin/killall

2012-06-30 Thread Konstantin Belousov
Author: kib Date: Sat Jun 30 16:36:22 2012 New Revision: 237847 URL: http://svn.freebsd.org/changeset/base/237847 Log: Once in a month, when the moon is full, killall mistakenly considers living process as a zombie and refuses to kill it. The cause is that the code masks ki_stat with SZOMB

svn commit: r237848 - head/sys/sys

2012-06-30 Thread Konstantin Belousov
Author: kib Date: Sat Jun 30 17:01:28 2012 New Revision: 237848 URL: http://svn.freebsd.org/changeset/base/237848 Log: Remove stray blank line. MFC after:3 days Modified: head/sys/sys/proc.h Modified: head/sys/sys/proc.h

Re: svn commit: r237367 - head/sys/fs/nfsclient

2012-07-01 Thread Konstantin Belousov
On Sun, Jul 01, 2012 at 01:23:02PM +0200, Andreas Tobler wrote: On 21.06.12 11:26, Konstantin Belousov wrote: Author: kib Date: Thu Jun 21 09:26:06 2012 New Revision: 237367 URL: http://svn.freebsd.org/changeset/base/237367 Log: Enable deadlock avoidance code for NFS client. Hm

Re: svn commit: r237367 - head/sys/fs/nfsclient

2012-07-01 Thread Konstantin Belousov
On Sun, Jul 01, 2012 at 03:37:18PM +0200, Andreas Tobler wrote: On 01.07.12 14:04, Konstantin Belousov wrote: On Sun, Jul 01, 2012 at 01:23:02PM +0200, Andreas Tobler wrote: On 21.06.12 11:26, Konstantin Belousov wrote: Author: kib Date: Thu Jun 21 09:26:06 2012 New Revision: 237367 URL

Re: svn commit: r237367 - head/sys/fs/nfsclient

2012-07-01 Thread Konstantin Belousov
On Sun, Jul 01, 2012 at 03:56:52PM +0200, Andreas Tobler wrote: On 01.07.12 15:41, Konstantin Belousov wrote: On Sun, Jul 01, 2012 at 03:37:18PM +0200, Andreas Tobler wrote: On 01.07.12 14:04, Konstantin Belousov wrote: On Sun, Jul 01, 2012 at 01:23:02PM +0200, Andreas Tobler wrote

Re: svn commit: r237367 - head/sys/fs/nfsclient

2012-07-01 Thread Konstantin Belousov
On Sun, Jul 01, 2012 at 08:33:09PM +0200, Andreas Tobler wrote: On 01.07.12 19:05, Konstantin Belousov wrote: On Sun, Jul 01, 2012 at 03:56:52PM +0200, Andreas Tobler wrote: On 01.07.12 15:41, Konstantin Belousov wrote: On Sun, Jul 01, 2012 at 03:37:18PM +0200, Andreas Tobler wrote

svn commit: r237987 - head/sys/fs/nfsclient

2012-07-02 Thread Konstantin Belousov
Author: kib Date: Mon Jul 2 09:53:08 2012 New Revision: 237987 URL: http://svn.freebsd.org/changeset/base/237987 Log: Do not override an error from uiomove() with (non-)error result from bwrite(). VFS needs to know about EFAULT from uiomove() and does not care much that partially filled

svn commit: r237988 - head/usr.bin/xinstall

2012-07-02 Thread Konstantin Belousov
Author: kib Date: Mon Jul 2 09:53:57 2012 New Revision: 237988 URL: http://svn.freebsd.org/changeset/base/237988 Log: Issue proper diagnostic on the short writes, also consider the case of write reporting 0 bytes as short write. Reported and tested by: adreast MFC after: 1

svn commit: r238029 - in head/sys: compat/linux fs/devfs kern sys ufs/ffs

2012-07-02 Thread Konstantin Belousov
Author: kib Date: Mon Jul 2 21:01:03 2012 New Revision: 238029 URL: http://svn.freebsd.org/changeset/base/238029 Log: Extend the KPI to lock and unlock f_offset member of struct file. It now fully encapsulates all accesses to f_offset, and extends f_offset locking to other consumers that

Re: svn commit: r238029 - in head/sys: compat/linux fs/devfs kern sys ufs/ffs

2012-07-03 Thread Konstantin Belousov
On Tue, Jul 03, 2012 at 11:07:36AM +0200, Pawel Jakub Dawidek wrote: On Mon, Jul 02, 2012 at 09:01:03PM +, Konstantin Belousov wrote: The already broken ABI emulations, including iBCS and SysV, are not converted (yet). Do people really use that? Why can't we axe those? Apparently

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

2012-07-04 Thread Konstantin Belousov
On Wed, Jul 04, 2012 at 07:51:25PM +, Pawel Jakub Dawidek wrote: Author: pjd Date: Wed Jul 4 19:51:25 2012 New Revision: 238118 URL: http://svn.freebsd.org/changeset/base/238118 Log: Prefer sysctl to open/read/close for obtaining random data. This method is more sandbox-friendly

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

2012-07-04 Thread Konstantin Belousov
On Wed, Jul 04, 2012 at 09:45:54PM +0100, Attilio Rao wrote: 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

Re: svn commit: r238172 - head/sys/dev/agp

2012-07-06 Thread Konstantin Belousov
On Fri, Jul 06, 2012 at 03:57:04PM +, Marcel Moolenaar wrote: Author: marcel Date: Fri Jul 6 15:57:03 2012 New Revision: 238172 URL: http://svn.freebsd.org/changeset/base/238172 Log: agp.c: Don't use Maxmem when the amount of memory is meant. Use realmem instead. Maxmem is not

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

2012-07-06 Thread Konstantin Belousov
Author: kib Date: Fri Jul 6 20:11:58 2012 New Revision: 238179 URL: http://svn.freebsd.org/changeset/base/238179 Log: Use assembler mnemonic instead of manually assembling, contination for r238142. Reviewed by: jhb MFC after:1 month Modified: head/sys/amd64/amd64/cpu_switch.S

svn commit: r238180 - head/sys/vm

2012-07-06 Thread Konstantin Belousov
Author: kib Date: Fri Jul 6 20:13:16 2012 New Revision: 238180 URL: http://svn.freebsd.org/changeset/base/238180 Log: Style. Reviewed by: alc (previous version) MFC after:1 week Modified: head/sys/vm/vm_pageout.c Modified: head/sys/vm/vm_pageout.c

svn commit: r238181 - head/sys/modules/em

2012-07-06 Thread Konstantin Belousov
Author: kib Date: Fri Jul 6 20:14:27 2012 New Revision: 238181 URL: http://svn.freebsd.org/changeset/base/238181 Log: Add a source file needed for module linking. MFC after: 4 days Modified: head/sys/modules/em/Makefile Modified: head/sys/modules/em/Makefile

Re: svn commit: r238182 - head/lib/libc/locale

2012-07-06 Thread Konstantin Belousov
On Fri, Jul 06, 2012 at 08:16:22PM +, David Chisnall wrote: Author: theraven Date: Fri Jul 6 20:16:22 2012 New Revision: 238182 URL: http://svn.freebsd.org/changeset/base/238182 Log: Restore the __collate_load_error global that was accidentally removed in the xlocale refactoring.

Re: svn commit: r238182 - head/lib/libc/locale

2012-07-06 Thread Konstantin Belousov
On Sat, Jul 07, 2012 at 12:15:29AM +0300, Konstantin Belousov wrote: On Fri, Jul 06, 2012 at 08:16:22PM +, David Chisnall wrote: Author: theraven Date: Fri Jul 6 20:16:22 2012 New Revision: 238182 URL: http://svn.freebsd.org/changeset/base/238182 Log: Restore

Re: svn commit: r238172 - head/sys/dev/agp

2012-07-07 Thread Konstantin Belousov
On Fri, Jul 06, 2012 at 06:11:56PM -0700, Marcel Moolenaar wrote: On Jul 6, 2012, at 11:12 AM, Konstantin Belousov wrote: agp_i810.c: While arguably the use of Maxmem can be considered correct, replace its use with realmem anyway. agp_i810.c is specific to amd64, i386 pc98, which

svn commit: r238212 - in head/sys: sys vm

2012-07-07 Thread Konstantin Belousov
Author: kib Date: Sat Jul 7 19:39:08 2012 New Revision: 238212 URL: http://svn.freebsd.org/changeset/base/238212 Log: Drop page queues mutex on each iteration of vm_pageout_scan over the inactive queue, unless busy page is found. Dropping the mutex often should allow the other lock

svn commit: r238258 - head/sys/vm

2012-07-08 Thread Konstantin Belousov
Author: kib Date: Sun Jul 8 18:04:26 2012 New Revision: 238258 URL: http://svn.freebsd.org/changeset/base/238258 Log: Avoid vm page queues lock leak after r238212. Reported and tested by: Michael Butler imb protected-networks net Reviewed by: alc Pointy hat to:kib MFC

Re: svn commit: r238328 - head/lib/libc/i386/gen

2012-07-10 Thread Konstantin Belousov
On Tue, Jul 10, 2012 at 01:47:12AM +, David Xu wrote: Author: davidxu Date: Tue Jul 10 01:47:11 2012 New Revision: 238328 URL: http://svn.freebsd.org/changeset/base/238328 Log: Executing CPUID with EAX set to 1 to actually get feature flags. PR: 169730 Modified:

svn commit: r238372 - head/sys/kern

2012-07-11 Thread Konstantin Belousov
Author: kib Date: Wed Jul 11 18:50:50 2012 New Revision: 238372 URL: http://svn.freebsd.org/changeset/base/238372 Log: Fix build for kernels with dtrace hooks. MFC after:1 month Modified: head/sys/kern/subr_devstat.c Modified: head/sys/kern/subr_devstat.c

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

2012-07-11 Thread Konstantin Belousov
On Wed, Jul 11, 2012 at 06:50:50PM +, Konstantin Belousov wrote: Author: kib Date: Wed Jul 11 18:50:50 2012 New Revision: 238372 URL: http://svn.freebsd.org/changeset/base/238372 Log: Fix build for kernels with dtrace hooks. Obviously, this should be read as 'without

svn commit: r238374 - head/tools/test/upsdl

2012-07-11 Thread Konstantin Belousov
Author: kib Date: Wed Jul 11 19:12:10 2012 New Revision: 238374 URL: http://svn.freebsd.org/changeset/base/238374 Log: Add a test program, written by Stephan Uphoff, which demonstrates the deadlock due to i/o performed over the buffers backed by file mappings. MFC after:2 weeks

svn commit: r238450 - in head/sys: amd64/amd64 amd64/include x86/include

2012-07-14 Thread Konstantin Belousov
Author: kib Date: Sat Jul 14 15:48:30 2012 New Revision: 238450 URL: http://svn.freebsd.org/changeset/base/238450 Log: Add support for the XSAVEOPT instruction use. Our XSAVE/XRSTOR usage mostly meets the guidelines set by the Intel SDM: 1. We use XRSTOR and XSAVE from the same CPL using

svn commit: r238471 - head/libexec/rtld-elf

2012-07-15 Thread Konstantin Belousov
Author: kib Date: Sun Jul 15 10:53:48 2012 New Revision: 238471 URL: http://svn.freebsd.org/changeset/base/238471 Log: Import the DragonFly BSD commit 4f0bc915b65fcf5a23214f6d221d65c80be68ad4 by John Marino dr...@marino.st, with the following (edited) commit message Date: Sat, 24 Mar 2012

svn commit: r238472 - in head/contrib/gcc/config: arm i386 ia64 mips rs6000 sparc

2012-07-15 Thread Konstantin Belousov
Author: kib Date: Sun Jul 15 10:54:10 2012 New Revision: 238472 URL: http://svn.freebsd.org/changeset/base/238472 Log: Pass --enable-new-dtags to the linker invocation by default. If desired, one can turn off the generation of post-ELF standard dtags by overriding it with

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

2012-07-18 Thread Konstantin Belousov
Author: kib Date: Wed Jul 18 15:36:03 2012 New Revision: 238597 URL: http://svn.freebsd.org/changeset/base/238597 Log: Add stmxcsr. Submitted by: Ed Alley wea llnl gov PR: amd64/169927 MFC after:3 weeks Modified: head/sys/amd64/amd64/fpu.c Modified:

svn commit: r238598 - in head/sys/amd64: amd64 include

2012-07-18 Thread Konstantin Belousov
Author: kib Date: Wed Jul 18 15:43:47 2012 New Revision: 238598 URL: http://svn.freebsd.org/changeset/base/238598 Log: On AMD64, provide siginfo.si_code for floating point errors when error occurs using the SSE math processor. Update comments describing the handling of the exception status

svn commit: r238604 - head/sys/vm

2012-07-18 Thread Konstantin Belousov
Author: kib Date: Wed Jul 18 21:47:50 2012 New Revision: 238604 URL: http://svn.freebsd.org/changeset/base/238604 Log: Do not restart scan of the inactive queue when non-inactive page is found. Rather, we shall not find such pages on inactive queue at all. Requested and reviewed by:

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

2012-07-19 Thread Konstantin Belousov
Author: kib Date: Thu Jul 19 10:22:54 2012 New Revision: 238614 URL: http://svn.freebsd.org/changeset/base/238614 Log: Implement F_DUPFD_CLOEXEC command for fcntl(2), specified by SUSv4. PR: standards/169962 Submitted by: Jukka A. Ukkonen jau iki fi MFC after:1 week Modified:

svn commit: r238615 - head/lib/libc/sys

2012-07-19 Thread Konstantin Belousov
Author: kib Date: Thu Jul 19 10:23:59 2012 New Revision: 238615 URL: http://svn.freebsd.org/changeset/base/238615 Log: Document F_DUPFD_CLOEXEC. Also provide some wording changes for F_DUPFD to make it less confusing, at least for me. MFC after:1 week Modified:

svn commit: r238617 - head/sys/kern

2012-07-19 Thread Konstantin Belousov
Author: kib Date: Thu Jul 19 11:15:53 2012 New Revision: 238617 URL: http://svn.freebsd.org/changeset/base/238617 Log: Fix several reads beyond the mapped first page of the binary in the ELF parser. Specifically, do not allow note reader and interpreter path comparision in the brandelf code

svn commit: r238623 - in head/sys/amd64: amd64 include

2012-07-19 Thread Konstantin Belousov
Author: kib Date: Thu Jul 19 19:09:12 2012 New Revision: 238623 URL: http://svn.freebsd.org/changeset/base/238623 Log: Introduce curpcb magic variable, similar to curthread, which is MD amd64. It is implemented as __pure2 inline with non-volatile asm read from pcpu, which allows a compiler

svn commit: r238627 - head/sys/kern

2012-07-19 Thread Konstantin Belousov
Author: kib Date: Thu Jul 19 20:38:03 2012 New Revision: 238627 URL: http://svn.freebsd.org/changeset/base/238627 Log: Remove line which was accidentally kept in r238614. Submitted by: pjd Pointy hat to:kib MFC after:1 week Modified: head/sys/kern/kern_descrip.c

svn commit: r238667 - in head: lib/libc/sys sys/kern sys/sys

2012-07-21 Thread Konstantin Belousov
Author: kib Date: Sat Jul 21 13:02:11 2012 New Revision: 238667 URL: http://svn.freebsd.org/changeset/base/238667 Log: (Incomplete) fixes for symbols visibility issues and style in fcntl.h. Append '__' prefix to the tag of struct oflock, and put it under BSD namespace. Structure is

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

2012-07-21 Thread Konstantin Belousov
Author: kib Date: Sat Jul 21 13:05:34 2012 New Revision: 238668 URL: http://svn.freebsd.org/changeset/base/238668 Log: Stop clearing x87 exceptions in the #MF handler on amd64. If user code understands FPU hardware enough to catch SIGFPE and unmask exceptions in control word, then it may as

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

2012-07-21 Thread Konstantin Belousov
Author: kib Date: Sat Jul 21 13:06:37 2012 New Revision: 238669 URL: http://svn.freebsd.org/changeset/base/238669 Log: The PT_I386_{GET,SET}XMMREGS and PT_{GET,SET}XSTATE operate on the stopped threads. Implementation assumes that the thread's FPU context is spilled into the PCB due to

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

2012-07-21 Thread Konstantin Belousov
Author: kib Date: Sat Jul 21 13:47:37 2012 New Revision: 238670 URL: http://svn.freebsd.org/changeset/base/238670 Log: Stop caching curpcb in the local variable. Requested by: bde MFC after:1 week Modified: head/sys/amd64/amd64/fpu.c Modified: head/sys/amd64/amd64/fpu.c

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

2012-07-21 Thread Konstantin Belousov
Author: kib Date: Sat Jul 21 13:53:00 2012 New Revision: 238671 URL: http://svn.freebsd.org/changeset/base/238671 Log: Constently use 2-space sentence breaks. Submitted by: bde MFC after: 1 week Modified: head/sys/amd64/amd64/fpu.c Modified: head/sys/amd64/amd64/fpu.c

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

2012-07-21 Thread Konstantin Belousov
Author: kib Date: Sat Jul 21 21:39:02 2012 New Revision: 238675 URL: http://svn.freebsd.org/changeset/base/238675 Log: MFamd64 r238669: Force clean FPU state in PCB user FPU save area for PT_I386_{GET,SET}XMMREGS. Reported by: bde MFC after:1 week Modified:

svn commit: r238676 - head/sys/i386/isa

2012-07-21 Thread Konstantin Belousov
Author: kib Date: Sat Jul 21 21:39:23 2012 New Revision: 238676 URL: http://svn.freebsd.org/changeset/base/238676 Log: MFamd64 r238597: Add stmxcsr. MFC after:3 weeks Modified: head/sys/i386/isa/npx.c Modified: head/sys/i386/isa/npx.c

svn commit: r238677 - head/sys/i386/isa

2012-07-21 Thread Konstantin Belousov
Author: kib Date: Sat Jul 21 21:49:05 2012 New Revision: 238677 URL: http://svn.freebsd.org/changeset/base/238677 Log: MFamd64 r238668: Stop clearing x87 exceptions in the #MF handler. Requested by: bde MFC after:1 week Modified: head/sys/i386/isa/npx.c Modified:

svn commit: r238678 - in head/sys/i386: i386 include isa

2012-07-21 Thread Konstantin Belousov
Author: kib Date: Sat Jul 21 21:52:48 2012 New Revision: 238678 URL: http://svn.freebsd.org/changeset/base/238678 Log: MFCamd64 r238598: Provide siginfo.si_code for floating point errors when error occurs using the SSE math processor. MFC after:3 weeks Modified:

svn commit: r238687 - in head/sys: compat/ia32 kern

2012-07-22 Thread Konstantin Belousov
Author: kib Date: Sun Jul 22 13:41:45 2012 New Revision: 238687 URL: http://svn.freebsd.org/changeset/base/238687 Log: Cosmetics: define FREEBSD32_MINUSER and AOUT32_MINUSER for struct sysentvec .sv_minuser. Also improve style. Submitted by: Oliver Pinter oliver.pin...@gmail.com MFC

svn commit: r238703 - head/sys/sys

2012-07-22 Thread Konstantin Belousov
Author: kib Date: Sun Jul 22 20:08:38 2012 New Revision: 238703 URL: http://svn.freebsd.org/changeset/base/238703 Log: Put struct ostat and struct nstat under #ifdef _KERNEL. The compatibility definitions are only needed for implementation of the syscalls, they cause namespace pollution and

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

2012-07-23 Thread Konstantin Belousov
Author: kib Date: Mon Jul 23 19:16:31 2012 New Revision: 238723 URL: http://svn.freebsd.org/changeset/base/238723 Log: Forcibly shut up clang warning about NULL pointer dereference. MFC after:3 weeks Modified: head/sys/amd64/include/pcpu.h Modified: head/sys/amd64/include/pcpu.h

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

2012-07-25 Thread Konstantin Belousov
On Wed, Jul 25, 2012 at 10:20:02AM +0300, Andriy Gapon wrote: on 25/07/2012 01:10 Jim Harris said the following: Author: jimharris Date: Tue Jul 24 22:10:11 2012 New Revision: 238755 URL: http://svn.freebsd.org/changeset/base/238755 Log: Add rmb() to tsc_read_##x to enforce

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

2012-07-25 Thread Konstantin Belousov
On Wed, Jul 25, 2012 at 03:29:34PM +0300, Andriy Gapon wrote: on 25/07/2012 13:21 Konstantin Belousov said the following: On Wed, Jul 25, 2012 at 10:20:02AM +0300, Andriy Gapon wrote: on 25/07/2012 01:10 Jim Harris said the following: Author: jimharris Date: Tue Jul 24 22:10:11 2012 New

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

2012-07-25 Thread Konstantin Belousov
On Wed, Jul 25, 2012 at 08:29:57AM -0700, Jim Harris wrote: On Wed, Jul 25, 2012 at 6:37 AM, Konstantin Belousov kostik...@gmail.com wrote: -/* rmb is required here because rdtsc is not a serializing instruction. */ +/* + * RDTSC is not a serializing instruction, so we need to drain

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

2012-07-25 Thread Konstantin Belousov
On Thu, Jul 26, 2012 at 12:15:54AM +1000, Bruce Evans wrote: On Wed, 25 Jul 2012, Konstantin Belousov wrote: On Wed, Jul 25, 2012 at 10:20:02AM +0300, Andriy Gapon wrote: on 25/07/2012 01:10 Jim Harris said the following: Author: jimharris Date: Tue Jul 24 22:10:11 2012 New Revision

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

2012-07-25 Thread Konstantin Belousov
On Wed, Jul 25, 2012 at 01:27:48PM -0400, Jung-uk Kim wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2012-07-25 10:44:04 -0400, Bruce Evans wrote: On Wed, 25 Jul 2012, Andriy Gapon wrote: on 25/07/2012 13:21 Konstantin Belousov said the following: ... diff --git a/sys/x86

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

2012-07-25 Thread Konstantin Belousov
On Wed, Jul 25, 2012 at 11:00:41AM -0700, Jim Harris wrote: On Wed, Jul 25, 2012 at 10:32 AM, Konstantin Belousov kostik...@gmail.com wrote: I also asked Jim to test whether the cause the TSC sync test failure is the lack of synchronization between gathering data and tasting it, but ut

svn commit: r238791 - head/sys/vm

2012-07-26 Thread Konstantin Belousov
Author: kib Date: Thu Jul 26 09:06:48 2012 New Revision: 238791 URL: http://svn.freebsd.org/changeset/base/238791 Log: Do not requeue held page or page for which locking failed, just leave them alone. Process the act_count updates for the held pages in the vm_pageout loop over the

svn commit: r238792 - in head/sys/i386: i386 include isa

2012-07-26 Thread Konstantin Belousov
Author: kib Date: Thu Jul 26 09:11:37 2012 New Revision: 238792 URL: http://svn.freebsd.org/changeset/base/238792 Log: MFamd64 r238623: Introduce curpcb magic variable. Requested and reviewed by:bde MFC after:3 weeks Modified: head/sys/i386/i386/machdep.c

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

2012-07-26 Thread Konstantin Belousov
is documented by AMD as forces all older instructions to retire before reading the time-stamp counter. Intel says essentially the same. [Replying to other mail in-place, the thread goes wild] On Thu, Jul 26, 2012 at 04:25:01PM +1000, Bruce Evans wrote: On Wed, 25 Jul 2012, Konstantin Belousov wrote

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

2012-07-26 Thread Konstantin Belousov
On Thu, Jul 26, 2012 at 10:30:51PM +1000, Bruce Evans wrote: On Thu, 26 Jul 2012, Konstantin Belousov wrote: On Thu, Jul 26, 2012 at 05:35:23PM +1000, Bruce Evans wrote: In fact, there is always a full documented serialization instruction for syscalls, except maybe in FreeBSD-1 compat code

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

2012-07-27 Thread Konstantin Belousov
On Thu, Jul 26, 2012 at 12:44:43PM -0600, Peter Grehan wrote: Yes, CPUID or LFENCE is enough to fix the failure. CPUID causes an unconditional exit in VT-x/SVM so it would be best to avoid that if possible. The only place where the use of CPUID in tsc patch seems to be reasonable is at the

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

2012-07-27 Thread Konstantin Belousov
Author: kib Date: Fri Jul 27 10:41:10 2012 New Revision: 238834 URL: http://svn.freebsd.org/changeset/base/238834 Log: Add F_DUP2FD_CLOEXEC. Apparently Solaris 11 already did this. Submitted by: Jukka A. Ukkonen jau iki fi PR: standards/169962 MFC after:1 week Modified:

svn commit: r238835 - head/lib/libc/sys

2012-07-27 Thread Konstantin Belousov
Author: kib Date: Fri Jul 27 10:41:53 2012 New Revision: 238835 URL: http://svn.freebsd.org/changeset/base/238835 Log: Document F_DUP2FD_CLOEXEC. MFC after:1 week Modified: head/lib/libc/sys/fcntl.2 Modified: head/lib/libc/sys/fcntl.2

Re: svn commit: r238828 - head/sys/sys

2012-07-27 Thread Konstantin Belousov
On Fri, Jul 27, 2012 at 09:16:48AM +, Gleb Smirnoff wrote: Author: glebius Date: Fri Jul 27 09:16:48 2012 New Revision: 238828 URL: http://svn.freebsd.org/changeset/base/238828 Log: Add assertion for refcount overflow. Submitted by: Andrey Zonov andrey zonov.org

Re: svn commit: r238828 - head/sys/sys

2012-07-27 Thread Konstantin Belousov
On Fri, Jul 27, 2012 at 10:32:55PM +1000, Bruce Evans wrote: On Fri, 27 Jul 2012, Gleb Smirnoff wrote: On Fri, Jul 27, 2012 at 02:12:37PM +0300, Konstantin Belousov wrote: K On Fri, Jul 27, 2012 at 09:16:48AM +, Gleb Smirnoff wrote: K ... K Log: KAdd assertion for refcount

svn commit: r238914 - in head/sys: amd64/amd64 i386/isa

2012-07-30 Thread Konstantin Belousov
Author: kib Date: Mon Jul 30 19:26:02 2012 New Revision: 238914 URL: http://svn.freebsd.org/changeset/base/238914 Log: Change (unused) prototype for stmxcsr() to match reality. Noted by: jhb MFC after:1 week Modified: head/sys/amd64/amd64/fpu.c head/sys/i386/isa/npx.c

svn commit: r238972 - in head/sys: amd64/include i386/include

2012-08-01 Thread Konstantin Belousov
Author: kib Date: Wed Aug 1 17:24:53 2012 New Revision: 238972 URL: http://svn.freebsd.org/changeset/base/238972 Log: Add lfence(). MFC after:1 week Modified: head/sys/amd64/include/cpufunc.h head/sys/i386/include/cpufunc.h Modified: head/sys/amd64/include/cpufunc.h

svn commit: r238973 - head/sys/x86/x86

2012-08-01 Thread Konstantin Belousov
Author: kib Date: Wed Aug 1 17:26:22 2012 New Revision: 238973 URL: http://svn.freebsd.org/changeset/base/238973 Log: diff --git a/sys/x86/x86/tsc.c b/sys/x86/x86/tsc.c index c253a96..3d8bd30 100644 --- a/sys/x86/x86/tsc.c +++ b/sys/x86/x86/tsc.c @@ -82,7 +82,11 @@ static void

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

2012-08-01 Thread Konstantin Belousov
On Wed, Aug 01, 2012 at 05:26:22PM +, Konstantin Belousov wrote: Author: kib Date: Wed Aug 1 17:26:22 2012 New Revision: 238973 URL: http://svn.freebsd.org/changeset/base/238973 Log: diff --git a/sys/x86/x86/tsc.c b/sys/x86/x86/tsc.c index c253a96..3d8bd30 100644 --- a/sys/x86

svn commit: r238975 - head/sys/x86/x86

2012-08-01 Thread Konstantin Belousov
Author: kib Date: Wed Aug 1 17:34:43 2012 New Revision: 238975 URL: http://svn.freebsd.org/changeset/base/238975 Log: Do a trivial reformatting of the comment, to record the proper commit message for r238973: Rdtsc instruction is not synchronized, it seems on some Intel cores it can

svn commit: r238984 - head/sbin/fsck_ffs

2012-08-02 Thread Konstantin Belousov
Author: kib Date: Thu Aug 2 10:39:54 2012 New Revision: 238984 URL: http://svn.freebsd.org/changeset/base/238984 Log: fsck_ffs shall accept the configured journal size, and not refuse to operate on it if journal size is greater then SUJ_MAX. The later constant is only to select maximal

svn commit: r239038 - head/sys/dev/md

2012-08-04 Thread Konstantin Belousov
Author: kib Date: Sat Aug 4 18:10:04 2012 New Revision: 239038 URL: http://svn.freebsd.org/changeset/base/239038 Log: Remove verbose unused commented out debugging printf. MFC after:1 week Reviewed by: alc Modified: head/sys/dev/md/md.c Modified: head/sys/dev/md/md.c

svn commit: r239039 - head/sys/fs/nfs

2012-08-04 Thread Konstantin Belousov
Author: kib Date: Sat Aug 4 18:12:54 2012 New Revision: 239039 URL: http://svn.freebsd.org/changeset/base/239039 Log: The header uma_int.h is internal uma header, unused by this source file. Do not include it needlessly. Reviewed by: alc MFC after:1 week Modified:

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

2012-08-04 Thread Konstantin Belousov
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 helper function vm_page_readahead_finish(), which handles completed reads for

Re: svn commit: r239077 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2012-08-05 Thread Konstantin Belousov
On Sun, Aug 05, 2012 at 08:19:28PM +, Marius Strobl wrote: Author: marius Date: Sun Aug 5 20:19:27 2012 New Revision: 239077 URL: http://svn.freebsd.org/changeset/base/239077 Log: Include vm/vm_param.h for PA_LOCK_COUNT in order to fix kernel build with options ZFS after r239065.

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

2012-08-07 Thread Konstantin Belousov
Author: kib Date: Tue Aug 7 08:36:10 2012 New Revision: 239125 URL: http://svn.freebsd.org/changeset/base/239125 Log: Do not apply errata 721 workaround when under hypervisor, since typical hypervisor does not implement access to the required MSR, causing #GP on boot. Reported and

svn commit: r239135 - head/sys/kern

2012-08-07 Thread Konstantin Belousov
Author: kib Date: Wed Aug 8 00:20:30 2012 New Revision: 239135 URL: http://svn.freebsd.org/changeset/base/239135 Log: Always initialize pl_event. Submitted by: Andrey Zonov and...@zonov.org MFC after:3 days Modified: head/sys/kern/sys_process.c Modified:

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

2012-08-14 Thread Konstantin Belousov
Author: kib Date: Tue Aug 14 11:45:47 2012 New Revision: 239246 URL: http://svn.freebsd.org/changeset/base/239246 Log: Do not leave invalid pages in the object after the short read for a network file systems (not only NFS proper). Short reads cause pages other then the requested one, which

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

2012-08-14 Thread Konstantin Belousov
Author: kib Date: Tue Aug 14 12:09:09 2012 New Revision: 239248 URL: http://svn.freebsd.org/changeset/base/239248 Log: Implement the old mmap syscall for compat32, when COMPAT_43 option is enabled. The syscall is used by FreeBSD 1.1.5.1 dynamic linker. MFC after:1 week Modified:

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

2012-08-14 Thread Konstantin Belousov
Author: kib Date: Tue Aug 14 12:09:36 2012 New Revision: 239249 URL: http://svn.freebsd.org/changeset/base/239249 Log: Regenerate. Modified: head/sys/compat/freebsd32/freebsd32_proto.h head/sys/compat/freebsd32/freebsd32_syscall.h head/sys/compat/freebsd32/freebsd32_syscalls.c

svn commit: r239251 - head/sys/amd64/ia32

2012-08-14 Thread Konstantin Belousov
Author: kib Date: Tue Aug 14 12:13:27 2012 New Revision: 239251 URL: http://svn.freebsd.org/changeset/base/239251 Log: Real hardware, as opposed to QEMU, does not allow to have a call gate in long mode which transfers control to 32bit code segment. Unbreak the lcall $7,$0 implementation on

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

2012-08-14 Thread Konstantin Belousov
Author: kib Date: Tue Aug 14 12:15:01 2012 New Revision: 239252 URL: http://svn.freebsd.org/changeset/base/239252 Log: Add a hackish debugging facility to provide a bit of information about reason for generated trap. The dump of basic signal information and 8 bytes of the faulting

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

2012-08-15 Thread Konstantin Belousov
Author: kib Date: Wed Aug 15 15:17:56 2012 New Revision: 239296 URL: http://svn.freebsd.org/changeset/base/239296 Log: Provide 32bit compat for truncate(2) and ftruncate(2). MFC after:1 week Modified: head/sys/compat/freebsd32/syscalls.master Modified:

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

2012-08-15 Thread Konstantin Belousov
Author: kib Date: Wed Aug 15 15:18:20 2012 New Revision: 239297 URL: http://svn.freebsd.org/changeset/base/239297 Log: Regenerate. Modified: head/sys/compat/freebsd32/freebsd32_proto.h head/sys/compat/freebsd32/freebsd32_syscall.h head/sys/compat/freebsd32/freebsd32_syscalls.c

svn commit: r239300 - head/sys/dev/ath/ath_rate/sample

2012-08-15 Thread Konstantin Belousov
Author: kib Date: Wed Aug 15 15:53:27 2012 New Revision: 239300 URL: http://svn.freebsd.org/changeset/base/239300 Log: Fix build Modified: head/sys/dev/ath/ath_rate/sample/sample.c Modified: head/sys/dev/ath/ath_rate/sample/sample.c

svn commit: r239301 - in head/sys: kern nlm sys

2012-08-15 Thread Konstantin Belousov
Author: kib Date: Wed Aug 15 15:56:21 2012 New Revision: 239301 URL: http://svn.freebsd.org/changeset/base/239301 Log: Add a sysctl kern.pid_max, which limits the maximum pid the system is allowed to allocate, and corresponding tunable with the same name. Note that existing processes with

svn commit: r239302 - head/share/man/man4

2012-08-15 Thread Konstantin Belousov
added) +++ head/share/man/man4/aout.4 Wed Aug 15 16:01:45 2012(r239302) @@ -0,0 +1,145 @@ +.\ Copyright (c) 2012 Konstantin Belousov k...@freebsd.org +.\ +.\ Redistribution and use in source and binary forms, with or without +.\ modification, are permitted provided that the following

svn commit: r239306 - head/share/man/man4

2012-08-15 Thread Konstantin Belousov
Author: kib Date: Wed Aug 15 18:00:52 2012 New Revision: 239306 URL: http://svn.freebsd.org/changeset/base/239306 Log: Small tweaks: - fix macro argument - wrap long line - be more explicit about old pid_t type. MFC after:1 week Modified: head/share/man/man4/aout.4 Modified:

Re: svn commit: r239318 - head/sys/nfs

2012-08-16 Thread Konstantin Belousov
On Thu, Aug 16, 2012 at 12:51:50AM +, Oleksandr Tymoshenko wrote: Author: gonzo Date: Thu Aug 16 00:51:50 2012 New Revision: 239318 URL: http://svn.freebsd.org/changeset/base/239318 Log: Merge somewhat modified r230399 from projects/armv6: Add timeout to wait for network

svn commit: r239328 - in head/sys: kern nlm

2012-08-16 Thread Konstantin Belousov
Author: kib Date: Thu Aug 16 13:01:56 2012 New Revision: 239328 URL: http://svn.freebsd.org/changeset/base/239328 Log: Fix grammar. Submitted by: jh MFC after:1 week Modified: head/sys/kern/init_main.c head/sys/kern/kern_thread.c head/sys/nlm/nlm_advlock.c Modified:

svn commit: r239329 - head/sys/kern

2012-08-16 Thread Konstantin Belousov
Author: kib Date: Thu Aug 16 13:04:21 2012 New Revision: 239329 URL: http://svn.freebsd.org/changeset/base/239329 Log: As a safety measure, disable lowering pid_max too much. Requested by: Peter Jeremy pe...@rulingia.com MFC after:1 week Modified: head/sys/kern/kern_mib.c

svn commit: r239374 - head/sys/kern

2012-08-18 Thread Konstantin Belousov
Author: kib Date: Sat Aug 18 18:17:10 2012 New Revision: 239374 URL: http://svn.freebsd.org/changeset/base/239374 Log: Deliver SIGSYS to the guilty thread, not to the process. MFC after:1 week Modified: head/sys/kern/kern_sig.c Modified: head/sys/kern/kern_sig.c

svn commit: r239375 - in head/sys: dev/drm2 dev/drm2/i915 modules/drm2/drm2 modules/drm2/i915kms

2012-08-18 Thread Konstantin Belousov
Author: kib Date: Sat Aug 18 18:26:25 2012 New Revision: 239375 URL: http://svn.freebsd.org/changeset/base/239375 Log: Add drm and i915 ioctl translations for 32 bit process on 64 bit host. Submitted by: meowth...@gmail.com MFC after:2 weeks Added: head/sys/dev/drm2/drm_ioc32.c

<    1   2   3   4   5   6   7   8   9   10   >