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

2015-02-03 Thread Konstantin Belousov
Author: kib Date: Tue Feb 3 13:43:03 2015 New Revision: 278152 URL: https://svnweb.freebsd.org/changeset/base/278152 Log: Do not access gmbus_ports array past its end. Reported and tested by: hselasky Sponsored by: The FreeBSD Foundation Modified:

svn commit: r278209 - head/sys/kern

2015-02-04 Thread Konstantin Belousov
Author: kib Date: Wed Feb 4 14:49:47 2015 New Revision: 278209 URL: https://svnweb.freebsd.org/changeset/base/278209 Log: Add ddb command 'show clocksource' to display state of the per-cpu clock events. Sponsored by: The FreeBSD Foundation MFC after:1 week Modified:

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

2015-01-30 Thread Konstantin Belousov
Author: kib Date: Fri Jan 30 15:32:35 2015 New Revision: 277936 URL: https://svnweb.freebsd.org/changeset/base/277936 Log: Use powerof2(). Remove single-use variable. Submitted by: Conrad Meyer Differential Revision:https://reviews.freebsd.org/D1724 MFC after:1 week

Re: svn commit: r278323 - in head: etc/rc.d usr.sbin/jail

2015-02-07 Thread Konstantin Belousov
On Fri, Feb 06, 2015 at 09:23:47PM -0800, Garrett Cooper wrote: pgrep uses /proc to determine whether or not a process is running. If it?s not properly mounted or the jail isn?t started properly, that could cause the issues seen here. I know because I?ve tried running these tests before in an

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

2015-02-03 Thread Konstantin Belousov
Author: kib Date: Tue Feb 3 11:34:18 2015 New Revision: 278148 URL: https://svnweb.freebsd.org/changeset/base/278148 Log: Followup to r278147. Two more sign errors. Noted by: hps Sponsored by: The FreeBSD Foundation Modified: head/sys/dev/drm2/i915/intel_dp.c Modified:

svn commit: r278151 - head/sys/fs/tmpfs

2015-02-03 Thread Konstantin Belousov
Author: kib Date: Tue Feb 3 12:09:48 2015 New Revision: 278151 URL: https://svnweb.freebsd.org/changeset/base/278151 Log: Remove duplicated assignment. CID: 1267988 Sponsored by: The FreeBSD Foundation MFC after:2 weeks Modified: head/sys/fs/tmpfs/tmpfs_subr.c Modified:

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

2015-02-03 Thread Konstantin Belousov
Author: kib Date: Tue Feb 3 13:45:06 2015 New Revision: 278153 URL: https://svnweb.freebsd.org/changeset/base/278153 Log: If the vm_page_alloc_contig() failed in the ttm page allocators, do what other callers of vm_page_alloc_contig() do, retry after vm_pageout_grow_cache(). Sponsored

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

2015-02-05 Thread Konstantin Belousov
Author: kib Date: Thu Feb 5 13:00:27 2015 New Revision: 278257 URL: https://svnweb.freebsd.org/changeset/base/278257 Log: Partially revert r277922, avoid sleeping and do flush if we a awaken, instead of waiting for the FLUSH_* flags. Also, when requesting flush, do the wakeups

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

2015-02-06 Thread Konstantin Belousov
Author: kib Date: Fri Feb 6 12:18:38 2015 New Revision: 278313 URL: https://svnweb.freebsd.org/changeset/base/278313 Log: Fully initialize allocated memory for the new barrier. The b_destroying member was left uninitialized, which caused spurious EBUSY. PR: 197365 Noted by:

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

2015-02-03 Thread Konstantin Belousov
Author: kib Date: Tue Feb 3 10:46:07 2015 New Revision: 278147 URL: https://svnweb.freebsd.org/changeset/base/278147 Log: Fix sign for the error code returned from the driver-specific code. Noted by: hps Sponsored by: The FreeBSD Foundation Modified:

svn commit: r278145 - head/sys/kern

2015-02-03 Thread Konstantin Belousov
Author: kib Date: Tue Feb 3 10:29:40 2015 New Revision: 278145 URL: https://svnweb.freebsd.org/changeset/base/278145 Log: Fix use after free in pipe_dtor(). PIPE_NAMED flag must be tested before pipeclose() is called, since for !PIPE_NAMED case, when peer is already closed, the pipe pair

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

2015-02-03 Thread Konstantin Belousov
Author: kib Date: Tue Feb 3 10:30:41 2015 New Revision: 278146 URL: https://svnweb.freebsd.org/changeset/base/278146 Log: Do not attach to the unsupported chipsets, unless magic tunable is frobbed. Sponsored by: The FreeBSD Foundation Modified: head/sys/dev/drm2/i915/i915_drv.c

Re: svn commit: r278431 - head/sys/contrib/vchiq/interface/vchiq_arm

2015-02-09 Thread Konstantin Belousov
On Mon, Feb 09, 2015 at 05:00:49PM +1100, Bruce Evans wrote: On Mon, 9 Feb 2015, Oleksandr Tymoshenko wrote: Log: Do not mark shared structures as __packed, it leads to race condition If structure packed as __packed clang (and probably gcc) generates code that loads word fields

Re: svn commit: r277213 - in head: share/man/man9 sys/kern sys/ofed/include/linux sys/sys

2015-01-20 Thread Konstantin Belousov
On Tue, Jan 20, 2015 at 08:58:34AM +0100, Hans Petter Selasky wrote: On 01/20/15 08:51, Konstantin Belousov wrote: On Tue, Jan 20, 2015 at 05:30:25AM +0100, Hans Petter Selasky wrote: On 01/19/15 22:59, Adrian Chadd wrote: Hi, Would you please check what the results of this are with CPU

Re: svn commit: r277213 - in head: share/man/man9 sys/kern sys/ofed/include/linux sys/sys

2015-01-19 Thread Konstantin Belousov
On Tue, Jan 20, 2015 at 05:30:25AM +0100, Hans Petter Selasky wrote: On 01/19/15 22:59, Adrian Chadd wrote: Hi, Would you please check what the results of this are with CPU specific callwheels? I'm doing some 10+ gig traffic testing on -HEAD with RSS enabled (on ixgbe) and with this

Re: svn commit: r277213 - in head: share/man/man9 sys/kern sys/ofed/include/linux sys/sys

2015-01-20 Thread Konstantin Belousov
On Tue, Jan 20, 2015 at 10:37:52AM +0100, Hans Petter Selasky wrote: On 01/20/15 10:00, Konstantin Belousov wrote: On Tue, Jan 20, 2015 at 08:58:34AM +0100, Hans Petter Selasky wrote: On 01/20/15 08:51, Konstantin Belousov wrote: On Tue, Jan 20, 2015 at 05:30:25AM +0100, Hans Petter Selasky

svn commit: r277489 - head/sys/kern

2015-01-21 Thread Konstantin Belousov
Author: kib Date: Wed Jan 21 16:32:54 2015 New Revision: 277489 URL: https://svnweb.freebsd.org/changeset/base/277489 Log: Do not assert that the new pipepair mutex is not initialized. The backing memory contains garbage and might trigger the assertion. Reported and tested by: pho

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

2015-01-21 Thread Konstantin Belousov
Author: kib Date: Wed Jan 21 16:13:37 2015 New Revision: 277488 URL: https://svnweb.freebsd.org/changeset/base/277488 Log: Fix bug in r276630. Do not allow pthread_sigmask() to block SIGCANCEL. Reported and tested by: royger Sponsored by: The FreeBSD Foundation MFC after:3

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

2015-01-21 Thread Konstantin Belousov
Author: kib Date: Wed Jan 21 16:10:37 2015 New Revision: 277487 URL: https://svnweb.freebsd.org/changeset/base/277487 Log: An update for the i915 GPU driver, which brings the code up to Linux commit 4d93914ae3db4a897ead4b. Some related drm infrastructure changes are imported as needed.

Re: svn commit: r277213 - in head: share/man/man9 sys/kern sys/ofed/include/linux sys/sys

2015-01-22 Thread Konstantin Belousov
On Thu, Jan 22, 2015 at 08:14:26AM +0100, Hans Petter Selasky wrote: On 01/22/15 06:26, Warner Losh wrote: The code simply needs an update. It is not broken in any ways - right? If it is not broken, fixing it is not that urgent. Radically changing the performance characteristics is

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

2015-01-22 Thread Konstantin Belousov
On Wed, Jan 21, 2015 at 09:24:44PM +0300, Gleb Smirnoff wrote: On Wed, Jan 21, 2015 at 04:32:55PM +, Konstantin Belousov wrote: K Author: kib K Date: Wed Jan 21 16:32:54 2015 K New Revision: 277489 K URL: https://svnweb.freebsd.org/changeset/base/277489 K K Log: K Do not assert

Re: svn commit: r277421 - head/sys/powerpc/powerpc

2015-01-22 Thread Konstantin Belousov
On Wed, Jan 21, 2015 at 06:04:57PM -0700, Warner Losh wrote: On Jan 21, 2015, at 12:54 AM, Konstantin Belousov kostik...@gmail.com wrote: On Tue, Jan 20, 2015 at 07:59:08PM -0800, Nathan Whitehorn wrote: On 01/20/15 11:14, Konstantin Belousov wrote: On Tue, Jan 20, 2015 at 04:21

Re: svn commit: r277487 - in head/sys: dev/drm2 dev/drm2/i915 dev/drm2/radeon modules/drm2/i915kms

2015-01-22 Thread Konstantin Belousov
On Wed, Jan 21, 2015 at 01:45:47PM -0500, Shawn Webb wrote: On Wed, 2015-01-21 at 16:10 +, Konstantin Belousov wrote: Author: kib Date: Wed Jan 21 16:10:37 2015 New Revision: 277487 URL: https://svnweb.freebsd.org/changeset/base/277487 Log: An update for the i915 GPU driver

svn commit: r277390 - head/sys/fs/devfs

2015-01-19 Thread Konstantin Belousov
Author: kib Date: Mon Jan 19 17:24:52 2015 New Revision: 277390 URL: https://svnweb.freebsd.org/changeset/base/277390 Log: Ignore devfs directory entries for devices either being destroyed or delisted. The check is racy. Tested by:pho Sponsored by: The FreeBSD Foundation MFC

svn commit: r277391 - in head/sys: fs/devfs kern

2015-01-19 Thread Konstantin Belousov
Author: kib Date: Mon Jan 19 17:36:52 2015 New Revision: 277391 URL: https://svnweb.freebsd.org/changeset/base/277391 Log: Stop enforcing additional reference on all cdevs, which was introduced in r277199. Acquire the neccessary reference in delist_dev_locked() and inform destroy_devl()

svn commit: r277236 - head/sys/kern

2015-01-15 Thread Konstantin Belousov
Author: kib Date: Fri Jan 16 07:06:58 2015 New Revision: 277236 URL: https://svnweb.freebsd.org/changeset/base/277236 Log: For sigaction(2), ignore possible garbage in sa_flags for sa_handler == SIG_DFL or SIG_IGN. Sloppy code does not fully initialize struct sigaction for such cases, and

Re: svn commit: r277199 - in head/sys: fs/devfs kern

2015-01-16 Thread Konstantin Belousov
On Thu, Jan 15, 2015 at 01:14:39PM +0100, Hans Petter Selasky wrote: On 01/15/15 12:51, Konstantin Belousov wrote: On Thu, Jan 15, 2015 at 11:49:09AM +0100, Hans Petter Selasky wrote: I see no leakage in that case either! Because these cases come through destroy_dev

Re: svn commit: r277199 - in head/sys: fs/devfs kern

2015-01-14 Thread Konstantin Belousov
On Wed, Jan 14, 2015 at 10:07:13PM +, Hans Petter Selasky wrote: Author: hselasky Date: Wed Jan 14 22:07:13 2015 New Revision: 277199 URL: https://svnweb.freebsd.org/changeset/base/277199 Log: Avoid race with dev_rel() when using the recently added delist_dev() function. Make sure

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

2015-01-15 Thread Konstantin Belousov
Author: kib Date: Thu Jan 15 10:43:58 2015 New Revision: 277211 URL: https://svnweb.freebsd.org/changeset/base/277211 Log: fcntl F_O{GET,SET}LK take pointer as the arg, handle them properly for compat32. Reported and tested by: Alex Tutubalin l...@lexa.ru Sponsored by: The

Re: svn commit: r277199 - in head/sys: fs/devfs kern

2015-01-15 Thread Konstantin Belousov
On Thu, Jan 15, 2015 at 08:41:31AM +0100, Hans Petter Selasky wrote: On 01/15/15 04:31, Konstantin Belousov wrote: On Wed, Jan 14, 2015 at 10:07:13PM +, Hans Petter Selasky wrote: Author: hselasky Date: Wed Jan 14 22:07:13 2015 New Revision: 277199 URL: https://svnweb.freebsd.org

Re: svn commit: r277199 - in head/sys: fs/devfs kern

2015-01-15 Thread Konstantin Belousov
On Thu, Jan 15, 2015 at 11:49:09AM +0100, Hans Petter Selasky wrote: On 01/15/15 10:38, Konstantin Belousov wrote: On Thu, Jan 15, 2015 at 08:41:31AM +0100, Hans Petter Selasky wrote: On 01/15/15 04:31, Konstantin Belousov wrote: On Wed, Jan 14, 2015 at 10:07:13PM +, Hans Petter Selasky

Re: svn commit: r277213 - in head: share/man/man9 sys/kern sys/ofed/include/linux sys/sys

2015-01-21 Thread Konstantin Belousov
On Wed, Jan 21, 2015 at 09:32:11AM +0100, Hans Petter Selasky wrote: On 01/21/15 00:53, Sean Bruno wrote: Unkown to me. Nor am I aware of anyone else who ever hit our panics either. Our environment, and the failure, was only seen in the Intel 10GE space (ixgbe). This is an artifact of

Re: svn commit: r277213 - in head: share/man/man9 sys/kern sys/ofed/include/linux sys/sys

2015-01-21 Thread Konstantin Belousov
On Tue, Jan 20, 2015 at 04:37:44PM -0800, K. Macy wrote: I would pick stability over performance any day. However, it _seems_ to me, and maybe I simply don't understand some key details, that the fix consisted of largely single-threading the callout system. And as I say I may simply not

Re: svn commit: r277421 - head/sys/powerpc/powerpc

2015-01-20 Thread Konstantin Belousov
On Tue, Jan 20, 2015 at 07:59:08PM -0800, Nathan Whitehorn wrote: On 01/20/15 11:14, Konstantin Belousov wrote: On Tue, Jan 20, 2015 at 04:21:59PM +, Nathan Whitehorn wrote: Author: nwhitehorn Date: Tue Jan 20 16:21:59 2015 New Revision: 277421 URL: https://svnweb.freebsd.org

Re: svn commit: r277421 - head/sys/powerpc/powerpc

2015-01-20 Thread Konstantin Belousov
On Tue, Jan 20, 2015 at 04:21:59PM +, Nathan Whitehorn wrote: Author: nwhitehorn Date: Tue Jan 20 16:21:59 2015 New Revision: 277421 URL: https://svnweb.freebsd.org/changeset/base/277421 Log: There does not seem to be any reason to acquire GIANT here. Follow amd64 in removing it.

svn commit: r277321 - in head/sys: fs/fifofs kern sys

2015-01-18 Thread Konstantin Belousov
Author: kib Date: Sun Jan 18 15:03:26 2015 New Revision: 277321 URL: https://svnweb.freebsd.org/changeset/base/277321 Log: Make SIGSTOP working for sleeps done while waiting for fifo readers or writers in open(2), when the fifo is located on an NFS mount. Reported by: bde Sponsored

svn commit: r277322 - in head: lib/libc/sys sys/compat/freebsd32 sys/kern sys/sys

2015-01-18 Thread Konstantin Belousov
Author: kib Date: Sun Jan 18 15:13:11 2015 New Revision: 277322 URL: https://svnweb.freebsd.org/changeset/base/277322 Log: Add procctl(2) PROC_TRACE_CTL command to enable or disable debugger attachment to the process. Note that the command is not intended to be a security measure, rather

Re: svn commit: r277199 - in head/sys: fs/devfs kern

2015-01-18 Thread Konstantin Belousov
On Fri, Jan 16, 2015 at 10:00:11AM +0100, Hans Petter Selasky wrote: Hi Konstantin, On 01/16/15 09:03, Konstantin Belousov wrote: My opinion is that you should have tried to handle the issue at the driver level, instead of making this devfs issue. I.e., if you already have cdev node

Re: svn commit: r277199 - in head/sys: fs/devfs kern

2015-01-18 Thread Konstantin Belousov
On Sun, Jan 18, 2015 at 12:08:26PM +0100, Hans Petter Selasky wrote: Hi Konstantin, On 01/18/15 11:54, Konstantin Belousov wrote: On Fri, Jan 16, 2015 at 10:00:11AM +0100, Hans Petter Selasky wrote: Hi Konstantin, On 01/16/15 09:03, Konstantin Belousov wrote: My opinion is that you

Re: svn commit: r278473 - in head/sys: amd64/amd64 amd64/include amd64/vmm contrib/dev/acpica/include i386/i386 i386/include x86/acpica x86/include x86/x86 x86/xen

2015-02-11 Thread Konstantin Belousov
On Wed, Feb 11, 2015 at 10:20:03AM -0500, John Baldwin wrote: On Wednesday, February 11, 2015 10:32:00 AM Konstantin Belousov wrote: On Wed, Feb 11, 2015 at 12:43:39AM +, Rui Paulo wrote: On Feb 09, 2015, at 01:01 PM, Konstantin Belousov k...@freebsd.org wrote: Author: kib

svn commit: r278605 - head/sys/x86/iommu

2015-02-11 Thread Konstantin Belousov
Author: kib Date: Wed Feb 11 23:28:28 2015 New Revision: 278605 URL: https://svnweb.freebsd.org/changeset/base/278605 Log: vm_page_lookup() accepts read-locked object. Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/sys/x86/iommu/intel_utils.c Modified:

svn commit: r278606 - head/sys/x86/iommu

2015-02-11 Thread Konstantin Belousov
by Konstantin Belousov k...@freebsd.org @@ -79,6 +79,47 @@ typedef struct dmar_pte { #defineDMAR_PTE_ADDR_MASK 0xff000 /* Address Mask */ #defineDMAR_PTE_TM (1ULL 62)/* Transient Mapping */ +typedef struct dmar_irte { + uint64_t irte1; + uint64_t

svn commit: r278523 - in head: sys/kern usr.sbin/mountd

2015-02-10 Thread Konstantin Belousov
Author: kib Date: Tue Feb 10 18:00:32 2015 New Revision: 278523 URL: https://svnweb.freebsd.org/changeset/base/278523 Log: Mountd iterating over the mount points may race with the parallel unmount, which causes error from nmount(2) call when performing MNT_DELEXPORT over the directory which

Re: svn commit: r278473 - in head/sys: amd64/amd64 amd64/include amd64/vmm contrib/dev/acpica/include i386/i386 i386/include x86/acpica x86/include x86/x86 x86/xen

2015-02-16 Thread Konstantin Belousov
On Mon, Feb 16, 2015 at 03:21:04PM +0100, Koop Mast wrote: On 9-2-2015 22:00, Konstantin Belousov wrote: Author: kib Date: Mon Feb 9 21:00:56 2015 New Revision: 278473 URL: https://svnweb.freebsd.org/changeset/base/278473 Log: Add x2APIC support. Enable it by default if CPU

svn commit: r278954 - head/sys/x86/acpica

2015-02-18 Thread Konstantin Belousov
Author: kib Date: Wed Feb 18 10:51:48 2015 New Revision: 278954 URL: https://svnweb.freebsd.org/changeset/base/278954 Log: Fix UP build. Sponsored by: The FreeBSD Foundation MFC after:2 months Modified: head/sys/x86/acpica/acpi_wakeup.c Modified: head/sys/x86/acpica/acpi_wakeup.c

svn commit: r278963 - head/sys/kern

2015-02-18 Thread Konstantin Belousov
Author: kib Date: Wed Feb 18 18:12:06 2015 New Revision: 278963 URL: https://svnweb.freebsd.org/changeset/base/278963 Log: If malloc() sleeps, Giant is dropped. Recheck for another thread doing our work. Remove unneeded check for failed M_WAITOK allocation. Reviewed by: alc

svn commit: r278794 - head/sys/kern

2015-02-15 Thread Konstantin Belousov
Author: kib Date: Sun Feb 15 08:43:19 2015 New Revision: 278794 URL: https://svnweb.freebsd.org/changeset/base/278794 Log: Return with the process locked, caller expects p still locked after the call. Reported and tested by: bapt Sponsored by: The FreeBSD Foundation MFC after:

svn commit: r278869 - in head/sys: amd64/amd64 i386/i386 x86/acpica x86/x86

2015-02-16 Thread Konstantin Belousov
Author: kib Date: Mon Feb 16 21:56:19 2015 New Revision: 278869 URL: https://svnweb.freebsd.org/changeset/base/278869 Log: Initialize x2APIC mode on the resume path before accessing LAPIC. Remove unneeded disable of LAPIC in the native_lapic_xapic_mode(). We attempt to send wakeup IPI

svn commit: r278871 - head/sys/dev/acpica

2015-02-16 Thread Konstantin Belousov
Author: kib Date: Mon Feb 16 22:18:43 2015 New Revision: 278871 URL: https://svnweb.freebsd.org/changeset/base/278871 Log: Array cannot be NULL, remove always true comparision. ACPI spec identifies the tested condition for _PRT as BYTE value of 0, so the remaining part of the conditionals

Re: svn commit: r278889 - head/lib/libc/include

2015-02-19 Thread Konstantin Belousov
On Thu, Feb 19, 2015 at 11:58:48AM +1100, Bruce Evans wrote: On Wed, 18 Feb 2015, Bryan Drewery wrote: On 2/17/2015 2:54 AM, Konstantin Belousov wrote: ... Log: Restore the extern qualifier on __cleanup. ... Modified: head/lib/libc/include/libc_private.h

svn commit: r279007 - head/sys/netinet

2015-02-19 Thread Konstantin Belousov
Author: kib Date: Thu Feb 19 15:41:23 2015 New Revision: 279007 URL: https://svnweb.freebsd.org/changeset/base/279007 Log: Fix build with KTR after r278978. Modified: head/sys/netinet/in_mcast.c Modified: head/sys/netinet/in_mcast.c

svn commit: r278889 - head/lib/libc/include

2015-02-17 Thread Konstantin Belousov
Author: kib Date: Tue Feb 17 08:54:03 2015 New Revision: 278889 URL: https://svnweb.freebsd.org/changeset/base/278889 Log: Restore the extern qualifier on __cleanup. Sponsored by: The FreeBSD Foundation MFC after:3 days Modified: head/lib/libc/include/libc_private.h Modified:

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

2015-01-27 Thread Konstantin Belousov
by -.An Bruce M Simpson Aq Mt b...@spc.org . +This manual page was first written by +.An Bruce M Simpson Aq Mt b...@spc.org +and then rewritten by +.An Alan Cox Aq Mt a...@freebsd.org +and +.An Konstantin Belousov Aq Mt k...@freebsd.org . ___ svn-src-head

svn commit: r277794 - head/sys/ufs/ufs

2015-01-27 Thread Konstantin Belousov
Author: kib Date: Tue Jan 27 10:32:49 2015 New Revision: 277794 URL: https://svnweb.freebsd.org/changeset/base/277794 Log: The sys_quotactl() contract demands that the mount point is vfs_unbusy()ed when the cmd is Q_QUOTAON, regardless of other input parameters or error return.

svn commit: r277827 - head/sys/fs/tmpfs

2015-01-28 Thread Konstantin Belousov
Author: kib Date: Wed Jan 28 10:25:35 2015 New Revision: 277827 URL: https://svnweb.freebsd.org/changeset/base/277827 Log: tmpfs does not use UVM on FreeBSD. Sponsored by: The FreeBSD Foundation MFC after:3 days Modified: head/sys/fs/tmpfs/tmpfs_vfsops.c Modified:

svn commit: r277828 - in head/sys: fs/tmpfs vm

2015-01-28 Thread Konstantin Belousov
Author: kib Date: Wed Jan 28 10:37:23 2015 New Revision: 277828 URL: https://svnweb.freebsd.org/changeset/base/277828 Log: Update mtime for tmpfs files modified through memory mapping. Similar to UFS, perform updates during syncer scans, which in particular means that tmpfs now performs

Re: svn commit: r277828 - in head/sys: fs/tmpfs vm

2015-01-28 Thread Konstantin Belousov
On Wed, Jan 28, 2015 at 09:41:06AM -0800, Don Lewis wrote: On 28 Jan, Konstantin Belousov wrote: Author: kib Date: Wed Jan 28 10:37:23 2015 New Revision: 277828 URL: https://svnweb.freebsd.org/changeset/base/277828 Log: Update mtime for tmpfs files modified through memory mapping

Re: svn commit: r277796 - in head/sys: dev/acpica dev/syscons dev/vt sys

2015-01-28 Thread Konstantin Belousov
On Wed, Jan 28, 2015 at 03:53:34PM +0200, Andriy Gapon wrote: On 27/01/2015 19:47, Konstantin Belousov wrote: On Tue, Jan 27, 2015 at 05:33:19PM +, Andriy Gapon wrote: +EVENTHANDLER_INVOKE(power_suspend_early); +stop_all_proc(); It also makes sense to call syncer_suspend

svn commit: r278000 - head/sys/fs/tmpfs

2015-01-31 Thread Konstantin Belousov
Author: kib Date: Sat Jan 31 21:31:53 2015 New Revision: 278000 URL: https://svnweb.freebsd.org/changeset/base/278000 Log: Update directory times immediately after an entry is created or removed. Postponing it until tmpfs_getattr() is called causes discordant values reported for file times

svn commit: r278001 - in head/sys: amd64/amd64 amd64/ia32 arm/arm i386/i386 mips/mips powerpc/powerpc sparc64/sparc64 sys

2015-01-31 Thread Konstantin Belousov
Author: kib Date: Sat Jan 31 21:43:46 2015 New Revision: 278001 URL: https://svnweb.freebsd.org/changeset/base/278001 Log: Do not qualify the mcontext_t *mcp argument for set_mcontext(9) as const. On x86, even after the machine context is supposedly read into the struct ucontext, lazy FPU

Re: svn commit: r277643 - in head/sys: arm/arm dev/mem i386/i386 mips/mips sparc64/sparc64

2015-01-25 Thread Konstantin Belousov
On Sun, Jan 25, 2015 at 10:07:00AM -0700, Warner Losh wrote: On Jan 24, 2015, at 8:51 AM, Konstantin Belousov kostik...@gmail.com wrote: On Sat, Jan 24, 2015 at 05:42:40PM +0200, Konstantin Belousov wrote: On Sat, Jan 24, 2015 at 07:56:37AM -0700, Ian Lepore wrote: On Sat, 2015-01

Re: svn commit: r277694 - head/sys/amd64/conf

2015-01-25 Thread Konstantin Belousov
On Sun, Jan 25, 2015 at 03:49:27PM +0100, Dag-Erling Sm??rgrav wrote: Sergey Kandaurov pluk...@freebsd.org writes: Dag-Erling Sm??rgrav d...@freebsd.org writes: Log: Remove ISA NICs. Anyone still using these on amd64 can build their own kernel. If so, what about i386? (I'd

svn commit: r277646 - head/sys/vm

2015-01-24 Thread Konstantin Belousov
Author: kib Date: Sat Jan 24 15:33:42 2015 New Revision: 277646 URL: https://svnweb.freebsd.org/changeset/base/277646 Log: Avoid calling vmspace_free() while owning the process lock. Freeing of an vm space may require obtaining sleepable locks. Hold the process to keep the pointer valid,

Re: svn commit: r277643 - in head/sys: arm/arm dev/mem i386/i386 mips/mips sparc64/sparc64

2015-01-24 Thread Konstantin Belousov
On Sat, Jan 24, 2015 at 07:56:37AM -0700, Ian Lepore wrote: On Sat, 2015-01-24 at 12:51 +, Konstantin Belousov wrote: Author: kib Date: Sat Jan 24 12:51:15 2015 New Revision: 277643 URL: https://svnweb.freebsd.org/changeset/base/277643 Log: Remove Giant from /dev/mem and /dev

Re: svn commit: r277643 - in head/sys: arm/arm dev/mem i386/i386 mips/mips sparc64/sparc64

2015-01-24 Thread Konstantin Belousov
On Sat, Jan 24, 2015 at 05:42:40PM +0200, Konstantin Belousov wrote: On Sat, Jan 24, 2015 at 07:56:37AM -0700, Ian Lepore wrote: On Sat, 2015-01-24 at 12:51 +, Konstantin Belousov wrote: Author: kib Date: Sat Jan 24 12:51:15 2015 New Revision: 277643 URL: https

svn commit: r277743 - head/sys/arm/arm

2015-01-26 Thread Konstantin Belousov
Author: kib Date: Mon Jan 26 10:11:55 2015 New Revision: 277743 URL: https://svnweb.freebsd.org/changeset/base/277743 Log: Ensure that _tmppt KVA is used exclusively by providing exclusive sx lock around the mapping and uiomove(). Before r277643, it was partially protected by Giant (but

svn commit: r277643 - in head/sys: arm/arm dev/mem i386/i386 mips/mips sparc64/sparc64

2015-01-24 Thread Konstantin Belousov
Author: kib Date: Sat Jan 24 12:51:15 2015 New Revision: 277643 URL: https://svnweb.freebsd.org/changeset/base/277643 Log: Remove Giant from /dev/mem and /dev/kmem. It is definitely not needed for i386, and from the code inspection, nothing in the arm/mips/sparc64 implementations depends

Re: svn commit: r277796 - in head/sys: dev/acpica dev/syscons dev/vt sys

2015-01-27 Thread Konstantin Belousov
On Tue, Jan 27, 2015 at 05:33:19PM +, Andriy Gapon wrote: Author: avg Date: Tue Jan 27 17:33:18 2015 New Revision: 277796 URL: https://svnweb.freebsd.org/changeset/base/277796 Log: hook userland threads suspend + resume into acpi suspend code Also, split power_suspend into

svn commit: r277969 - head/sys/fs/tmpfs

2015-01-31 Thread Konstantin Belousov
Author: kib Date: Sat Jan 31 12:27:18 2015 New Revision: 277969 URL: https://svnweb.freebsd.org/changeset/base/277969 Log: POSIX states that write(2) shall mark for update the last data modification and last file status change timestamps of the file. Currently, tmpfs only modifies ctime

svn commit: r277970 - head/sys/kern

2015-01-31 Thread Konstantin Belousov
Author: kib Date: Sat Jan 31 12:27:40 2015 New Revision: 277970 URL: https://svnweb.freebsd.org/changeset/base/277970 Log: The dependency chain for priority-inheritance mutexes could be subverted by userspace into cycle. Both umtx_propagate_priority() and umtx_repropagate_priority() would

svn commit: r277972 - head/sys/fs/tmpfs

2015-01-31 Thread Konstantin Belousov
Author: kib Date: Sat Jan 31 12:58:04 2015 New Revision: 277972 URL: https://svnweb.freebsd.org/changeset/base/277972 Log: Remove single-use boolean. Sponsored by: The FreeBSD Foundation MFC after:2 weeks Modified: head/sys/fs/tmpfs/tmpfs_vnops.c Modified:

svn commit: r276948 - head/sys/x86/iommu

2015-01-10 Thread Konstantin Belousov
Author: kib Date: Sat Jan 10 22:57:08 2015 New Revision: 276948 URL: https://svnweb.freebsd.org/changeset/base/276948 Log: Print rid when announcing DMAR context creation. Print sid when fault occurs. This allows to connect dots in case the requester is calculated erronously.

svn commit: r276949 - head/sys/x86/iommu

2015-01-10 Thread Konstantin Belousov
Author: kib Date: Sat Jan 10 23:12:49 2015 New Revision: 276949 URL: https://svnweb.freebsd.org/changeset/base/276949 Log: Fix calculation of requester for PCI device behind PCIe/PCI bridge. In my case on the test machine, I have hierarchy of pcib2 (PCIe port on host bridge with PCIe

svn commit: r277023 - head/sys/x86/iommu

2015-01-11 Thread Konstantin Belousov
Author: kib Date: Sun Jan 11 20:27:15 2015 New Revision: 277023 URL: https://svnweb.freebsd.org/changeset/base/277023 Log: Right now, for non-coherent DMARs, page table update code flushes the cache for whole page containing modified pte, and more, only last page in the series of the

Re: svn commit: r276962 - head/lib/liblzma

2015-01-11 Thread Konstantin Belousov
On Sun, Jan 11, 2015 at 09:25:02AM +, Baptiste Daroussin wrote: Author: bapt Date: Sun Jan 11 09:25:01 2015 New Revision: 276962 URL: https://svnweb.freebsd.org/changeset/base/276962 Log: Do not regenerate and install liblzma.pc when only build libraries aka do not regenerate

svn commit: r277032 - in head/lib: libc/compat-43 libc/gen libc/include libc/sys libthr/thread

2015-01-11 Thread Konstantin Belousov
Author: kib Date: Sun Jan 11 22:16:31 2015 New Revision: 277032 URL: https://svnweb.freebsd.org/changeset/base/277032 Log: Reduce the size of the interposing table and amount of cancellation-handling code in the libthr. Translate some syscalls into their more generic counterpart, and

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

2015-01-11 Thread Konstantin Belousov
Author: kib Date: Mon Jan 12 07:50:55 2015 New Revision: 277052 URL: https://svnweb.freebsd.org/changeset/base/277052 Log: Revert r276600: PHYS_TO_DMAP_RAW() and DMAP_TO_PHYS_RAW() are no longer used, remove them. Reviewed by: alc Sponsored by: The FreeBSD Foundation MFC after:1

svn commit: r277055 - in head/sys: amd64/amd64 kern sys vm

2015-01-12 Thread Konstantin Belousov
Author: kib Date: Mon Jan 12 08:58:07 2015 New Revision: 277055 URL: https://svnweb.freebsd.org/changeset/base/277055 Log: Revert r263475: TDP_DEVMEMIO no longer needed, since amd64 /dev/kmem does not access kernel mappings directly. Reviewed by: alc Sponsored by: The FreeBSD

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

2015-01-11 Thread Konstantin Belousov
Author: kib Date: Mon Jan 12 07:48:22 2015 New Revision: 277051 URL: https://svnweb.freebsd.org/changeset/base/277051 Log: Fix several issues with /dev/mem and /dev/kmem devices on amd64. For /dev/mem, when requested physical address is not accessible by the direct map, do temporal

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

2015-01-11 Thread Konstantin Belousov
Author: kib Date: Mon Jan 12 07:36:25 2015 New Revision: 277047 URL: https://svnweb.freebsd.org/changeset/base/277047 Log: For x86, read MAXPHYADDR, defined in SDM vol 3 4.1.4 Enumeration of Paging Features by CPUID as CPUID.8008H:EAX[7:0], into variable cpu_maxphyaddr. Reviewed by:

svn commit: r276867 - head/sys/x86/iommu

2015-01-08 Thread Konstantin Belousov
Author: kib Date: Fri Jan 9 02:10:44 2015 New Revision: 276867 URL: https://svnweb.freebsd.org/changeset/base/276867 Log: Fix DMAR context allocations for the devices behind PCIe-PCI bridges after dmar driver was converted to use rids. The bus component to calculate context page must be

svn commit: r277100 - head/sys/dev/ahci

2015-01-12 Thread Konstantin Belousov
Author: kib Date: Tue Jan 13 00:11:56 2015 New Revision: 277100 URL: https://svnweb.freebsd.org/changeset/base/277100 Log: Add quirk to override default BAR(5) rid for AHCI. Use it for Cavium AHCI. Submitted by: Michaе┌ Stanek Reviewed by: imp (previous version) MFC after:1 week

Re: svn commit: r277100 - head/sys/dev/ahci

2015-01-13 Thread Konstantin Belousov
On Tue, Jan 13, 2015 at 01:21:00AM +, Steven Hartland wrote: Looks like this missed the addition of the new quirk to AHCI_Q_BIT_STRING. Thank you for noting. See the patch below. Is anything else amiss ? Index: sys/dev/ahci/ahci.h

svn commit: r277126 - head/sys/dev/ahci

2015-01-13 Thread Konstantin Belousov
Author: kib Date: Tue Jan 13 09:50:15 2015 New Revision: 277126 URL: https://svnweb.freebsd.org/changeset/base/277126 Log: Complete r277100: add AHCI_Q_ABAR0 tp AHCI_Q_BIT_STRING. Noted and reviewed by:smh MFC after:6 days Modified: head/sys/dev/ahci/ahci.h Modified:

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

2015-02-10 Thread Konstantin Belousov
On Tue, Feb 10, 2015 at 04:34:40AM +, Rui Paulo wrote: Author: rpaulo Date: Tue Feb 10 04:34:39 2015 New Revision: 278494 URL: https://svnweb.freebsd.org/changeset/base/278494 Log: Sanitise the coredump file names sent to devd. While there, add a sysctl to turn this feature

Re: svn commit: r278479 - in head: etc sys/kern

2015-02-10 Thread Konstantin Belousov
On Mon, Feb 09, 2015 at 06:35:55PM -0800, Rui Paulo wrote: On Feb 9, 2015, at 15:28, Konstantin Belousov kostik...@gmail.com wrote: Arguably, there should be a knob, probably sysctl, to turn the functionality off. I definitely do not want this on crash boxes used for userspace debugging

svn commit: r278751 - in head/lib: libc/gen libc/include libc/sys libthr/thread

2015-02-14 Thread Konstantin Belousov
Author: kib Date: Sat Feb 14 11:47:40 2015 New Revision: 278751 URL: https://svnweb.freebsd.org/changeset/base/278751 Log: Properly interpose libc spinlocks, was missed in r276630. In particular, stdio locking was affected. Reported and tested by: Matthew D. Fuller

Re: svn commit: r278473 - in head/sys: amd64/amd64 amd64/include amd64/vmm contrib/dev/acpica/include i386/i386 i386/include x86/acpica x86/include x86/x86 x86/xen

2015-02-11 Thread Konstantin Belousov
On Wed, Feb 11, 2015 at 12:43:39AM +, Rui Paulo wrote: On Feb 09, 2015, at 01:01 PM, Konstantin Belousov k...@freebsd.org wrote: Author: kib Date: Mon Feb 9 21:00:56 2015 New Revision: 278473 URL: https://svnweb.freebsd.org/changeset/base/278473 Log: Add x2APIC support. Enable

svn commit: r278473 - in head/sys: amd64/amd64 amd64/include amd64/vmm contrib/dev/acpica/include i386/i386 i386/include x86/acpica x86/include x86/x86 x86/xen

2015-02-09 Thread Konstantin Belousov
Author: kib Date: Mon Feb 9 21:00:56 2015 New Revision: 278473 URL: https://svnweb.freebsd.org/changeset/base/278473 Log: Add x2APIC support. Enable it by default if CPU is capable. The hw.x2apic_enable tunable allows disabling it from the loader prompt. To closely repeat effects of

Re: svn commit: r278431 - head/sys/contrib/vchiq/interface/vchiq_arm

2015-02-09 Thread Konstantin Belousov
On Mon, Feb 09, 2015 at 08:51:02PM +1100, Bruce Evans wrote: On Mon, 9 Feb 2015, Konstantin Belousov wrote: On Mon, Feb 09, 2015 at 05:00:49PM +1100, Bruce Evans wrote: On Mon, 9 Feb 2015, Oleksandr Tymoshenko wrote: ... I think the full bugs only occur when arch has strict alignment

Re: svn commit: r278479 - in head: etc sys/kern

2015-02-09 Thread Konstantin Belousov
On Mon, Feb 09, 2015 at 11:13:51PM +, Rui Paulo wrote: Author: rpaulo Date: Mon Feb 9 23:13:50 2015 New Revision: 278479 URL: https://svnweb.freebsd.org/changeset/base/278479 Log: Notify devd(8) when a process crashed. This change implements a notification (via devctl) to

svn commit: r278627 - head/lib/libthr

2015-02-12 Thread Konstantin Belousov
Author: kib Date: Thu Feb 12 17:16:54 2015 New Revision: 278627 URL: https://svnweb.freebsd.org/changeset/base/278627 Log: Update libthr(3) man page to reflect the work done to support dlopen. Noted and reviewed by:bdrewery Sponsored by: The FreeBSD Foundation MFC after:1

svn commit: r278749 - in head/sys/x86: acpica include

2015-02-14 Thread Konstantin Belousov
Author: kib Date: Sat Feb 14 09:00:12 2015 New Revision: 278749 URL: https://svnweb.freebsd.org/changeset/base/278749 Log: Detect whether x2APIC on VMWare is usable without interrupt redirection support. Older versions of the hypervisor mis-interpret the cpuid format in ioapic registers

svn commit: r278795 - head/sys/kern

2015-02-15 Thread Konstantin Belousov
Author: kib Date: Sun Feb 15 08:44:30 2015 New Revision: 278795 URL: https://svnweb.freebsd.org/changeset/base/278795 Log: Reparenting done by debugger attach can leave reaper without direct children. Handle the situation instead asserting that it is impossible. Reported and tested

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

2015-01-03 Thread Konstantin Belousov
Author: kib Date: Sun Jan 4 00:33:41 2015 New Revision: 276646 URL: https://svnweb.freebsd.org/changeset/base/276646 Log: Do not erronously export 'openat' symbol from rtld. The symbol leaked after r276630 since lib/libc/sys/openat.c defines versions for openat using .symver (version

svn commit: r276681 - in head/lib: libc/include libc/sys libthr/thread

2015-01-04 Thread Konstantin Belousov
Author: kib Date: Mon Jan 5 01:06:54 2015 New Revision: 276681 URL: https://svnweb.freebsd.org/changeset/base/276681 Log: Avoid calling internal libc function through PLT or accessing data though GOT, by staticizing and hiding. Add setter for __error_selector to hide it as well.

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

2015-01-08 Thread Konstantin Belousov
On Thu, Jan 08, 2015 at 01:27:44AM +, Craig Rodrigues wrote: @@ -43,11 +43,11 @@ .Sh DESCRIPTION The .Fn sleep -function suspends execution of the calling process until either +function suspends execution of the calling thread until either .Fa seconds -seconds have elapsed or a

Re: svn commit: r280220 - head/usr.bin/ldd

2015-03-18 Thread Konstantin Belousov
On Wed, Mar 18, 2015 at 10:33:45AM -0400, John Baldwin wrote: On Wednesday, March 18, 2015 01:59:05 PM Andrew Turner wrote: Author: andrew Date: Wed Mar 18 13:59:04 2015 New Revision: 280220 URL: https://svnweb.freebsd.org/changeset/base/280220 Log: Allowus to exclude a.out

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

2015-03-22 Thread Konstantin Belousov
Author: kib Date: Sun Mar 22 09:09:26 2015 New Revision: 280342 URL: https://svnweb.freebsd.org/changeset/base/280342 Log: msdosfs: mark unused compat-mount fields The magic number MSDOSFS_ARGSMAGIC, which used to distinguish old vs new msdosfs mount arguments, has not been used since

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

2015-03-22 Thread Konstantin Belousov
On Sun, Mar 22, 2015 at 09:41:53AM +1100, Bruce Evans wrote: On Sat, 21 Mar 2015, John Baldwin wrote: On 3/21/15 12:35 PM, Konstantin Belousov wrote: X static int X popcnt_pc_map_elem(uint64_t elem) X { X int count; X X /* X * This simple method of counting the one bits

  1   2   3   4   5   6   7   8   9   10   >