svn commit: r345963 - in head/sys: amd64/vmm/io dev/pci

2019-04-05 Thread Konstantin Belousov
Author: kib Date: Fri Apr 5 19:25:26 2019 New Revision: 345963 URL: https://svnweb.freebsd.org/changeset/base/345963 Log: Implement resets for PCI buses and PCIe bridges. For PCI device (i.e. child of a PCI bus), reset tries FLR if implemented and worked, and falls to power reset otherwi

svn commit: r345964 - head/sys/dev/smartpqi

2019-04-05 Thread Konstantin Belousov
Author: kib Date: Fri Apr 5 19:27:51 2019 New Revision: 345964 URL: https://svnweb.freebsd.org/changeset/base/345964 Log: Remove single-use DEV_RESET() macro. It conflicts with the sys/bus.h DEV_XXX namespace. Reviewed by: imp (previous version), jhb (previous version) Sponsored by

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

2019-04-05 Thread Konstantin Belousov
Author: kib Date: Fri Apr 5 19:31:26 2019 New Revision: 345965 URL: https://svnweb.freebsd.org/changeset/base/345965 Log: Add DEV_RESET /dev/devctl2 ioctl. It performs BUS_RESET_CHILD() on the parental bus and the specified device. Reviewed by: imp (previous version), jhb (previous

svn commit: r345966 - in head: lib/libdevctl usr.sbin/devctl

2019-04-05 Thread Konstantin Belousov
Author: kib Date: Fri Apr 5 19:32:26 2019 New Revision: 345966 URL: https://svnweb.freebsd.org/changeset/base/345966 Log: Implement devctl(8) command 'reset', using DEV_RESET /dev/devctl2 ioctl. Reviewed by: imp (previous version), jhb (previous version) Sponsored by: Mellanox Technolog

svn commit: r345968 - head/usr.sbin/devctl

2019-04-05 Thread Konstantin Belousov
Author: kib Date: Fri Apr 5 20:12:19 2019 New Revision: 345968 URL: https://svnweb.freebsd.org/changeset/base/345968 Log: Fix gcc warning about shadowed global. Sponsored by: Mellanox Technologies MFC after:2 weeks Modified: head/usr.sbin/devctl/devctl.c Modified: head/usr.sbin/d

Re: svn commit: r345900 - head/sbin/fsck_msdosfs

2019-04-05 Thread Konstantin Belousov
On Fri, Apr 05, 2019 at 09:55:43PM +0200, Hans Petter Selasky wrote: > On 4/5/19 9:51 PM, Conrad Meyer wrote: > > static const u_char dot_name[11] = ". "; > > static const u_char dotdot_name[11] = ".. "; > > > > Seems more clear to me. > > Using this syntax will include a termina

svn commit: r345997 - head/sys/dev/pci

2019-04-07 Thread Konstantin Belousov
Author: kib Date: Sun Apr 7 08:58:09 2019 New Revision: 345997 URL: https://svnweb.freebsd.org/changeset/base/345997 Log: Give new home to the comment from ppt_pci_reset(), explaining a nuance of power reset. Noted by: sor...@cydem.org Sponsored by: Mellanox Technologies MFC afte

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

2019-04-08 Thread Konstantin Belousov
Author: kib Date: Mon Apr 8 15:20:05 2019 New Revision: 346031 URL: https://svnweb.freebsd.org/changeset/base/346031 Log: Handle races when remounting UFS volume from ro to rw. In particular, ensure that writers are not unleashed before SU structures are initialized. Also, correctly han

svn commit: r346038 - head/sbin/mount

2019-04-08 Thread Konstantin Belousov
Author: kib Date: Mon Apr 8 18:16:49 2019 New Revision: 346038 URL: https://svnweb.freebsd.org/changeset/base/346038 Log: Exercise some care before sending SIGHUP to mountd. Reviewed by: antoine, emaste, oshogbo Sponsored by: The FreeBSD Foundation MFC after:1 week Differential

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

2019-04-09 Thread Konstantin Belousov
Author: kib Date: Tue Apr 9 18:07:17 2019 New Revision: 346062 URL: https://svnweb.freebsd.org/changeset/base/346062 Log: pci_cfgreg.c: Use io port config access for early boot time. Some early PCIe chipsets are explicitly listed in the white-list to enable use of the MMIO config space a

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

2019-04-09 Thread Konstantin Belousov
Author: kib Date: Tue Apr 9 19:55:02 2019 New Revision: 346064 URL: https://svnweb.freebsd.org/changeset/base/346064 Log: Fix dirty buf exhaustion easily triggered with msdosfs. If truncate(2) is performed on msdosfs file, which extends the file by system-depended large amount, fs create

svn commit: r346065 - in head/sys: fs/fuse fs/msdosfs kern sys

2019-04-09 Thread Konstantin Belousov
Author: kib Date: Tue Apr 9 20:20:04 2019 New Revision: 346065 URL: https://svnweb.freebsd.org/changeset/base/346065 Log: Add vn_fsync_buf(). Provide a convenience function to avoid the hack with filling fake struct vop_fsync_args and then calling vop_stdfsync(). Sponsored by: The F

Re: svn commit: r346081 - head/cddl/usr.sbin/zfsd

2019-04-10 Thread Konstantin Belousov
On Wed, Apr 10, 2019 at 01:42:37PM +, Edward Tomasz Napierala wrote: > Author: trasz > Date: Wed Apr 10 13:42:37 2019 > New Revision: 346081 > URL: https://svnweb.freebsd.org/changeset/base/346081 > > Log: > Make zfsd(8) build obey CFLAGS. > > Reviewed by:imp > Obtained from:

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

2019-04-11 Thread Konstantin Belousov
On Thu, Apr 11, 2019 at 08:59:14AM -0700, Conrad Meyer wrote: > Hi Edward, > > I have a question about this change below. > > On Thu, Apr 11, 2019 at 4:22 AM Edward Tomasz Napierala > wrote: > > > > Author: trasz > > Date: Thu Apr 11 11:21:45 2019 > > New Revision: 346120 > > URL: https://svnweb

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

2019-04-12 Thread Konstantin Belousov
On Fri, Apr 12, 2019 at 03:28:26PM +0100, Edward Napierala wrote: > On Thu, 11 Apr 2019 at 17:26, Conrad Meyer wrote: > > > > Hi Edward, > > > > I have a question about this change below. > > > > On Thu, Apr 11, 2019 at 4:22 AM Edward Tomasz Napierala > > wrote: > > > > > > Author: trasz > > > Da

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

2019-04-12 Thread Konstantin Belousov
On Fri, Apr 12, 2019 at 04:23:35PM +0100, Edward Napierala wrote: > On Fri, 12 Apr 2019 at 16:20, Konstantin Belousov wrote: > > > > On Fri, Apr 12, 2019 at 03:28:26PM +0100, Edward Napierala wrote: > > > On Thu, 11 Apr 2019 at 17:26, Conrad Meyer wrote: &

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

2019-04-12 Thread Konstantin Belousov
Author: kib Date: Fri Apr 12 17:11:50 2019 New Revision: 346157 URL: https://svnweb.freebsd.org/changeset/base/346157 Log: Ignore doomed vnodes in tmpfs_update_mtime(). Otherwise we might dereference NULL vp->v_data after VP_TO_TMPFS_NODE(). Reported and tested by: pho Sponso

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

2019-04-12 Thread Konstantin Belousov
Author: kib Date: Fri Apr 12 17:27:19 2019 New Revision: 346158 URL: https://svnweb.freebsd.org/changeset/base/346158 Log: Do not access mutex memory after unlock. PR: 237195 Reported by: free...@hurrikhan.eu Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: he

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

2019-04-14 Thread Konstantin Belousov
Author: kib Date: Sun Apr 14 18:04:53 2019 New Revision: 346216 URL: https://svnweb.freebsd.org/changeset/base/346216 Log: ld-elf.so: make LD_DEBUG always functional. This causes some increase of the dynamic linker size, but benefits of avoiding compiling private copy or the linker when d

svn commit: r346225 - in head: lib/libc/stdlib libexec/rtld-elf

2019-04-15 Thread Konstantin Belousov
Author: kib Date: Mon Apr 15 13:03:09 2019 New Revision: 346225 URL: https://svnweb.freebsd.org/changeset/base/346225 Log: Fix order of destructors between main binary and libraries. Since inits for the main binary are run from rtld (for some time), the rtld_exit atexit(3) handler, which

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

2019-04-16 Thread Konstantin Belousov
Author: kib Date: Tue Apr 16 19:46:02 2019 New Revision: 346294 URL: https://svnweb.freebsd.org/changeset/base/346294 Log: Fix initial x87 state after r345562. After the referenced commit, we did not set x87 and sse valid bits in the xstate_bv bitmask for initial fpu state (stored in memo

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

2019-04-18 Thread Konstantin Belousov
Author: kib Date: Thu Apr 18 14:02:33 2019 New Revision: 346350 URL: https://svnweb.freebsd.org/changeset/base/346350 Log: Reduce verbosity, do not announce details of irte programming by default. Sponsored by: Mellanox Technologies MFC after:1 week Modified: head/sys/x86/iommu/int

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

2019-04-18 Thread Konstantin Belousov
Author: kib Date: Thu Apr 18 14:03:59 2019 New Revision: 346351 URL: https://svnweb.freebsd.org/changeset/base/346351 Log: Remove witness warning. dmar_bus_dmamap_create() does not sleep. Sponsored by: Mellanox Technologies MFC after:1 week Modified: head/sys/x86/iommu/busdma_dmar.

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

2019-04-18 Thread Konstantin Belousov
Author: kib Date: Thu Apr 18 14:18:06 2019 New Revision: 346352 URL: https://svnweb.freebsd.org/changeset/base/346352 Log: Correct handling of RMRR during early enumeration stages. On some machines, DMAR contexts must be created before all devices under the scope of the corresponding DMAR

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

2019-04-18 Thread Konstantin Belousov
Author: kib Date: Thu Apr 18 15:31:03 2019 New Revision: 346355 URL: https://svnweb.freebsd.org/changeset/base/346355 Log: Use correct type name. Sponsored by: Mellanox Technologies MFC after:1 week Modified: head/sys/x86/iommu/intel_drv.c Modified: head/sys/x86/iommu/intel_drv.c

svn commit: r346596 - head/sys/netinet6

2019-04-23 Thread Konstantin Belousov
Author: kib Date: Tue Apr 23 12:23:44 2019 New Revision: 346596 URL: https://svnweb.freebsd.org/changeset/base/346596 Log: poib: assign link-local address according to RFC RFC 4391 specifies that the IB interface GID should be re-used as IPv6 link-local address. Since the code in in6_get

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

2019-04-25 Thread Konstantin Belousov
On Thu, Apr 25, 2019 at 07:38:21AM +0200, Wojciech Macek wrote: > Intel does not reorder reads against the condition "if" here. I know for > sure that ARM does, but therestill might be some other architectures that > also suffers such behavior - I just don't have any means to verify. > I remember t

Re: svn commit: r346687 - head/sys/compat/linuxkpi/common/src

2019-04-25 Thread Konstantin Belousov
On Thu, Apr 25, 2019 at 06:13:56PM +, Tycho Nightingale wrote: > Author: tychon > Date: Thu Apr 25 18:13:55 2019 > New Revision: 346687 > URL: https://svnweb.freebsd.org/changeset/base/346687 > > Log: > LinuxKPI buildfix for ppc64 after r346645. > > Proposed by:hselasky > Spon

Re: svn commit: r346687 - head/sys/compat/linuxkpi/common/src

2019-04-25 Thread Konstantin Belousov
On Thu, Apr 25, 2019 at 02:56:36PM -0400, Tycho Nightingale wrote: > > > > On Apr 25, 2019, at 2:50 PM, John Baldwin wrote: > > > > On 4/25/19 11:43 AM, Konstantin Belousov wrote: > >> On Thu, Apr 25, 2019 at 06:13:56PM +, Tycho Nightingale wrote: > &g

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

2019-04-26 Thread Konstantin Belousov
On Fri, Apr 26, 2019 at 02:04:56AM -0400, Mark Johnston wrote: > On Thu, Apr 25, 2019 at 11:22:22AM +0300, Konstantin Belousov wrote: > > On Thu, Apr 25, 2019 at 07:38:21AM +0200, Wojciech Macek wrote: > > > Intel does not reorder reads against the condition "if" here

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

2019-04-26 Thread Konstantin Belousov
On Fri, Apr 26, 2019 at 08:04:29PM +1000, Bruce Evans wrote: > On Fri, 26 Apr 2019, Mark Johnston wrote: > > > On Fri, Apr 26, 2019 at 10:38:36AM +0300, Konstantin Belousov wrote: > >> On Fri, Apr 26, 2019 at 02:04:56AM -0400, Mark Johnston wrote: > >>> On Thu,

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

2019-04-28 Thread Konstantin Belousov
Author: kib Date: Sun Apr 28 18:45:44 2019 New Revision: 346851 URL: https://svnweb.freebsd.org/changeset/base/346851 Log: Remove witness warning, same as r346351 for busdma_dmar. bounce_bus_dmamap_create() does not sleep either. Sponsored by: Mellanox Technologies MFC after:1 we

svn commit: r346990 - head/sys/vm

2019-05-01 Thread Konstantin Belousov
Author: kib Date: Wed May 1 13:15:06 2019 New Revision: 346990 URL: https://svnweb.freebsd.org/changeset/base/346990 Log: Fix another race between vm_map_protect() and vm_map_wire(). vm_map_wire() increments entry->wire_count, after that it drops the map lock both for faulting in the ent

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

2019-05-02 Thread Konstantin Belousov
Author: kib Date: Thu May 2 15:03:16 2019 New Revision: 347019 URL: https://svnweb.freebsd.org/changeset/base/347019 Log: Cleanup for rtld_malloc.c. - Remove dead and most likely rotten MALLOC_DEBUG, MSTAT, and RCHECK options. - Remove unused headers. - Remove one case of undefined beh

svn commit: r347133 - head/sys/arm64/arm64

2019-05-04 Thread Konstantin Belousov
Author: kib Date: Sat May 4 19:40:30 2019 New Revision: 347133 URL: https://svnweb.freebsd.org/changeset/base/347133 Log: arm64: Properly restore PAN when done with userspace access in casueword. Approved by: andrew Sponsored by: The FreeBSD Foundation MFC after:1 week Modified:

svn commit: r347148 - head/sys/kern

2019-05-05 Thread Konstantin Belousov
Author: kib Date: Sun May 5 11:04:01 2019 New Revision: 347148 URL: https://svnweb.freebsd.org/changeset/base/347148 Log: imgact_elf: do not relock the text vnode if possible. We unlock the vnode around malloc(M_WAITOK), to make it possible for pagedaemon to flush vnode pages for us. In

svn commit: r347150 - head/sys/vm

2019-05-05 Thread Konstantin Belousov
Author: kib Date: Sun May 5 11:06:19 2019 New Revision: 347150 URL: https://svnweb.freebsd.org/changeset/base/347150 Log: Do not collapse objects with OBJ_NOSPLIT backing swap object. NOSPLIT swap objects are not anonymous, they are used by tmpfs regular files and POSIX shared memory. F

svn commit: r347151 - in head: libexec/rtld-elf sys/compat/linux sys/fs/deadfs sys/fs/nfsclient sys/fs/nullfs sys/fs/unionfs sys/kern sys/sys sys/ufs/ufs sys/vm

2019-05-05 Thread Konstantin Belousov
Author: kib Date: Sun May 5 11:20:43 2019 New Revision: 347151 URL: https://svnweb.freebsd.org/changeset/base/347151 Log: Switch to use shared vnode locks for text files during image activation. kern_execve() locks text vnode exclusive to be able to set and clear VV_TEXT flag. VV_TEXT is

svn commit: r347180 - head/sys/vm

2019-05-06 Thread Konstantin Belousov
Author: kib Date: Mon May 6 08:46:11 2019 New Revision: 347180 URL: https://svnweb.freebsd.org/changeset/base/347180 Log: Noted by: alc Reviewed by: alc, markj (previous version) Sponsored by: The FreeBSD Foundation MFC after:6 days Modified: head/sys/vm/vm_object.c Modified:

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

2019-05-06 Thread Konstantin Belousov
Author: kib Date: Mon May 6 08:49:43 2019 New Revision: 347181 URL: https://svnweb.freebsd.org/changeset/base/347181 Log: Do not flush NFS node from NFS VOP_SET_TEXT(). The more appropriate place to do the flushing is VOP_OPEN(). This was uncovered because VOP_SET_TEXT() is now called w

Re: svn commit: r347151 - in head: libexec/rtld-elf sys/compat/linux sys/fs/deadfs sys/fs/nfsclient sys/fs/nullfs sys/fs/unionfs sys/kern sys/sys sys/ufs/ufs sys/vm

2019-05-06 Thread Konstantin Belousov
On Mon, May 06, 2019 at 06:56:41PM +1000, Peter Jeremy wrote: > On 2019-May-05 11:20:44 +0000, Konstantin Belousov wrote: > >Log: > > Switch to use shared vnode locks for text files during image activation. > > This seems to have broken diskless booting on my Rock64 (aarch

Re: svn commit: r347180 - head/sys/vm

2019-05-06 Thread Konstantin Belousov
On Mon, May 06, 2019 at 08:46:12AM +, Konstantin Belousov wrote: > Author: kib > Date: Mon May 6 08:46:11 2019 > New Revision: 347180 > URL: https://svnweb.freebsd.org/changeset/base/347180 > The commit message should include some text like this: Include OBJT_DEFAULT objects

svn commit: r347216 - head/sys/x86/include

2019-05-06 Thread Konstantin Belousov
Author: kib Date: Tue May 7 01:18:57 2019 New Revision: 347216 URL: https://svnweb.freebsd.org/changeset/base/347216 Log: amd64: fix BUS_SPACE_MAXSIZE to 64bit max value. Reviewed by: jhb, tychon (previous version) Sponsored by: The FreeBSD Foundation MFC after:2 weeks Different

Re: svn commit: r347229 - in head: lib/libsbuf lib/libsbuf/tests share/man/man9 sys/kern sys/sys

2019-05-07 Thread Konstantin Belousov
On Tue, May 07, 2019 at 05:47:20PM +, Conrad Meyer wrote: > Author: cem > Date: Tue May 7 17:47:20 2019 > New Revision: 347229 > URL: https://svnweb.freebsd.org/changeset/base/347229 > > Log: > device_printf: Use sbuf for more coherent prints on SMP > > device_printf does multiple call

svn commit: r347368 - head/sys/dev/cpuctl

2019-05-08 Thread Konstantin Belousov
Author: kib Date: Wed May 8 20:01:09 2019 New Revision: 347368 URL: https://svnweb.freebsd.org/changeset/base/347368 Log: x86: Put other CPUs into tight loop when updating Intel microcode from loaded OS. This should prevent at least some theoretical issues whith code execution on HT si

svn commit: r347566 - in head/sys: amd64/amd64 amd64/include dev/cpuctl i386/i386 i386/include x86/include x86/x86

2019-05-14 Thread Konstantin Belousov
Tue May 14 17:02:20 2019 (r347566) @@ -1,8 +1,13 @@ /*- + * Copyright (c) 2018-2019 The FreeBSD Foundation * Copyright (c) 2003 Peter Wemm. * Copyright (c) 1993 The Regents of the University of California. * All rights reserved. * + * Portions of this software were developed by + * K

Re: svn commit: r347566 - in head/sys: amd64/amd64 amd64/include dev/cpuctl i386/i386 i386/include x86/include x86/x86

2019-05-15 Thread Konstantin Belousov
On Wed, May 15, 2019 at 08:54:04AM +0300, Dmitry Chagin wrote: > вт, 14 мая 2019 г. в 20:02, Konstantin Belousov : > > > Author: kib > > Date: Tue May 14 17:02:20 2019 > > New Revision: 347566 > > URL: https://svnweb.freebsd.org/changeset/base/347566 >

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

2019-05-15 Thread Konstantin Belousov
Author: kib Date: Wed May 15 17:55:41 2019 New Revision: 347625 URL: https://svnweb.freebsd.org/changeset/base/347625 Log: Properly announce MD_CLEAR. Submitted by: Petr Lampa MFC after:3 days Modified: head/sys/x86/x86/identcpu.c Modified: head/sys/x86/x86/identcpu.c ===

Re: svn commit: r347566 - in head/sys: amd64/amd64 amd64/include dev/cpuctl i386/i386 i386/include x86/include x86/x86

2019-05-15 Thread Konstantin Belousov
On Wed, May 15, 2019 at 08:31:23PM +0300, Dmitry Chagin wrote: > ср, 15 мая 2019 г. в 11:10, Konstantin Belousov : > > > On Wed, May 15, 2019 at 08:54:04AM +0300, Dmitry Chagin wrote: > > > вт, 14 мая 2019 г. в 20:02, Konstantin Belousov : > > > > > > >

svn commit: r347689 - head/sys/arm64/arm64

2019-05-16 Thread Konstantin Belousov
Author: kib Date: Thu May 16 13:00:35 2019 New Revision: 347689 URL: https://svnweb.freebsd.org/changeset/base/347689 Log: arm64: bzero buffer for ucontext in freebsd32_swapcontext(). This change is the same as r340994 for amd64. PR: 237922 Submitted by: Young MFC after:3 da

svn commit: r347690 - head/sys/kern

2019-05-16 Thread Konstantin Belousov
Author: kib Date: Thu May 16 13:03:54 2019 New Revision: 347690 URL: https://svnweb.freebsd.org/changeset/base/347690 Log: imgact_elf.c: Add comment explaining the malloc/VOP_UNLOCK() dance from r347148. Requested by: alc Sponsored by: The FreeBSD Foundation MFC after:3 days Modi

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

2019-05-16 Thread Konstantin Belousov
Author: kib Date: Thu May 16 13:07:26 2019 New Revision: 347692 URL: https://svnweb.freebsd.org/changeset/base/347692 Log: Remove more dead definitions from rtld_malloc.c after r347019. Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/libexec/rtld-elf/rtld_mallo

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

2019-05-16 Thread Konstantin Belousov
Author: kib Date: Thu May 16 13:13:33 2019 New Revision: 347693 URL: https://svnweb.freebsd.org/changeset/base/347693 Log: rtld_malloc.c: cleanup morepages(). Use roundup2() and rounddown2() instead of inlining them. Get rid of the fd local variable, use literal -1 for the mmap argument.

svn commit: r347694 - head/sys/kern

2019-05-16 Thread Konstantin Belousov
Author: kib Date: Thu May 16 13:17:57 2019 New Revision: 347694 URL: https://svnweb.freebsd.org/changeset/base/347694 Log: subr_turnstile: Extract some common code to a helper. Code walks the list of contested turnstiles to calculate the priority to unlend. Reviewed by: markj Tes

svn commit: r347695 - in head/sys: amd64/amd64 amd64/include kern

2019-05-16 Thread Konstantin Belousov
Author: kib Date: Thu May 16 13:28:48 2019 New Revision: 347695 URL: https://svnweb.freebsd.org/changeset/base/347695 Log: amd64 pmap: rework delayed invalidation, removing global mutex. For machines having cmpxcgh16b instruction, i.e. everything but very early Athlons, provide lockless i

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

2019-05-16 Thread Konstantin Belousov
Author: kib Date: Thu May 16 13:40:54 2019 New Revision: 347696 URL: https://svnweb.freebsd.org/changeset/base/347696 Log: amd64 pmap: Rename DI functions. pmap_delayed_invl_started -> pmap_delayed_invl_start pmap_delayed_invl_finished -> pmap_delayed_invl_finish Requested by: markj

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

2019-05-16 Thread Konstantin Belousov
Author: kib Date: Thu May 16 14:29:09 2019 New Revision: 347697 URL: https://svnweb.freebsd.org/changeset/base/347697 Log: amd64 pmap: Add tunable vm.pmap.di_locked to set DI mode. This is done mostly for debugging in field. Also added the sysctl of the same name to report used mode.

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

2019-05-16 Thread Konstantin Belousov
Author: kib Date: Thu May 16 14:33:32 2019 New Revision: 347698 URL: https://svnweb.freebsd.org/changeset/base/347698 Log: amd64 pmap: sysctl vm.pmap.pcid_save_cnt should be read-only. Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/sys/amd64/amd64/pmap.c Modi

svn commit: r347895 - in head: lib/libc/amd64/sys lib/libc/x86/gen lib/libc/x86/sys sys/amd64/amd64 sys/amd64/linux sys/amd64/linux32 sys/arm64/include sys/cddl/dev/dtrace/amd64 sys/dev/random sys/...

2019-05-16 Thread Konstantin Belousov
Author: kib Date: Thu May 16 22:20:54 2019 New Revision: 347895 URL: https://svnweb.freebsd.org/changeset/base/347895 Log: Remove resolver_qual from DEFINE_IFUNC/DEFINE_UIFUNC macros. In all practical situations, the resolver visibility is static. Requested by: markj Sponsored by: Th

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

2019-05-17 Thread Konstantin Belousov
Author: kib Date: Fri May 17 17:11:01 2019 New Revision: 347931 URL: https://svnweb.freebsd.org/changeset/base/347931 Log: Free microcode memory later. With lockless DI, pmap_remove() requires operational thread lock, which is initialized at SI_SUB_RUN_QUEUE for thread0. Move it even l

svn commit: r347946 - head/sys/kern

2019-05-17 Thread Konstantin Belousov
Author: kib Date: Fri May 17 21:18:11 2019 New Revision: 347946 URL: https://svnweb.freebsd.org/changeset/base/347946 Log: Grammar fixes for r347690. Submitted by: alc MFC after:3 days Modified: head/sys/kern/imgact_elf.c Modified: head/sys/kern/imgact_elf.c ==

Re: svn commit: r347695 - in head/sys: amd64/amd64 amd64/include kern

2019-05-18 Thread Konstantin Belousov
On Sat, May 18, 2019 at 11:35:29AM +0300, Dmitry Chagin wrote: > чт, 16 мая 2019 г. в 16:29, Konstantin Belousov : > > > Author: kib > > Date: Thu May 16 13:28:48 2019 > > New Revision: 347695 > > URL: https://svnweb.freebsd.org/changeset/base/347695 > > >

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

2019-05-18 Thread Konstantin Belousov
Author: kib Date: Sat May 18 16:19:31 2019 New Revision: 347957 URL: https://svnweb.freebsd.org/changeset/base/347957 Log: Make lock-less delayed invalidation operational very early. Apparently, there is more code trying to call pmap_remove() early, mostly to free preloaded memory. Inste

svn commit: r347968 - head/sys/kern

2019-05-19 Thread Konstantin Belousov
Author: kib Date: Sun May 19 09:18:09 2019 New Revision: 347968 URL: https://svnweb.freebsd.org/changeset/base/347968 Log: Fix rw->ro remount when there is a text vnode mapping. Reported and tested by: hrs Sponsored by: The FreeBSD Foundation MFC after:16 days Modified: hea

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

2019-05-19 Thread Konstantin Belousov
understand your description. If you mean does this commit has any relevance to the issue of remounting ro->rw, it should not. It only affects rw->ro remounts, when you have a binary executed from the mount point. > > Thanks, > Hiro > > On Sun, 19 May 2019 09:18:10 +

svn commit: r348052 - head/sys/kern

2019-05-21 Thread Konstantin Belousov
Author: kib Date: Tue May 21 15:12:13 2019 New Revision: 348052 URL: https://svnweb.freebsd.org/changeset/base/348052 Log: NDFREE(): Fix unlocking for LOCKPARENT|LOCKLEAF and ndp->ni_dvp == ndp->ni_vp. NDFREE() calculates unlock_dvp after ndp->ni_vp is unlocked and zeroed out. This makes

svn commit: r348075 - in head/sys: amd64/amd64 i386/i386 x86/x86

2019-05-21 Thread Konstantin Belousov
Author: kib Date: Tue May 21 22:56:21 2019 New Revision: 348075 URL: https://svnweb.freebsd.org/changeset/base/348075 Log: Do not call hw_mds_recalculate() from initializecpu(). If MDS mitigation is enabled by the tunable but MDS microcode is not early-loaded, software mitigation is selec

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

2019-05-21 Thread Konstantin Belousov
On Tue, May 21, 2019 at 09:35:37PM +, Conrad Meyer wrote: > Author: cem > Date: Tue May 21 21:35:37 2019 > New Revision: 348070 > URL: https://svnweb.freebsd.org/changeset/base/348070 > > Log: > sys/lockmgr.h: Update #error to point at correct _lock.h > > After r347984, these macros liv

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

2019-05-23 Thread Konstantin Belousov
Author: kib Date: Thu May 23 12:25:03 2019 New Revision: 348156 URL: https://svnweb.freebsd.org/changeset/base/348156 Log: Make pack_kinfo() available for external callers. Reviewed by: jilles, tmunro Sponsored by: The FreeBSD Foundation MFC after:1 week Differential revision:

svn commit: r348157 - head/sys/kern

2019-05-23 Thread Konstantin Belousov
Author: kib Date: Thu May 23 12:27:45 2019 New Revision: 348157 URL: https://svnweb.freebsd.org/changeset/base/348157 Log: Report ref count of the backing object as st_nlink for posix shm fd. Unless there are transient references to the object, the ref count is equal to the number of the

svn commit: r348158 - head/sys/kern

2019-05-23 Thread Konstantin Belousov
Author: kib Date: Thu May 23 12:35:40 2019 New Revision: 348158 URL: https://svnweb.freebsd.org/changeset/base/348158 Log: Add a kern.ipc.posix_shm_list sysctl. The sysctl provides the listing on named linked posix shared memory segments existing in the system. Reuse shm_fill_kinfo()

svn commit: r348167 - in head/usr.bin: . posixshmcontrol

2019-05-23 Thread Konstantin Belousov
+1,480 @@ +/*- + * Copyright (c) 2019 The FreeBSD Foundation + * + * This software was developed by Konstantin Belousov + * under sponsorship from the FreeBSD Foundation. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the

Re: svn commit: r348167 - in head/usr.bin: . posixshmcontrol

2019-05-23 Thread Konstantin Belousov
On Thu, May 23, 2019 at 07:40:26AM -0700, Rodney W. Grimes wrote: > > Author: kib > > Date: Thu May 23 14:33:01 2019 > > New Revision: 348167 > > URL: https://svnweb.freebsd.org/changeset/base/348167 > > > > Log: > > Add posixshmcontrol(1), an utility to manipulate posix shared memory > > segme

svn commit: r348168 - head/usr.bin/posixshmcontrol

2019-05-23 Thread Konstantin Belousov
Author: kib Date: Thu May 23 15:00:15 2019 New Revision: 348168 URL: https://svnweb.freebsd.org/changeset/base/348168 Log: Use int for the getopt() result. Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/usr.bin/posixshmcontrol/posixshmcontrol.c Modified: head

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

2019-05-24 Thread Konstantin Belousov
Author: kib Date: Fri May 24 17:19:06 2019 New Revision: 348246 URL: https://svnweb.freebsd.org/changeset/base/348246 Log: Fix a corner case in demotion of kernel mappings. It is possible for the kernel mapping to be created with superpage by directly installing pde using pmap_enter_2mpag

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

2019-05-24 Thread Konstantin Belousov
Author: kib Date: Fri May 24 23:26:17 2019 New Revision: 348257 URL: https://svnweb.freebsd.org/changeset/base/348257 Log: Add PG_PS_PDP_FRAME symbol. Similar to PG_FRAME and PG_PS_FRAME, it denotes the mask of the physical address component of 1G superpage PDP entry. Reviewed by: a

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

2019-05-24 Thread Konstantin Belousov
Author: kib Date: Fri May 24 23:28:11 2019 New Revision: 348258 URL: https://svnweb.freebsd.org/changeset/base/348258 Log: Fix too loose assert in pmap_large_unmap(). The upper bound for the valid address from the large map used LARGEMAP_MAX_ADDRESS instead of LARGEMAP_MIN_ADDRESS. Provi

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

2019-05-24 Thread Konstantin Belousov
On Fri, May 24, 2019 at 11:28:11PM +, Konstantin Belousov wrote: > Author: kib > Date: Fri May 24 23:28:11 2019 > New Revision: 348258 > URL: https://svnweb.freebsd.org/changeset/base/348258 > > Log: > Fix too loose assert in pmap_large_unmap(). > > Th

svn commit: r315237 - head/sys/kern

2017-03-14 Thread Konstantin Belousov
Author: kib Date: Tue Mar 14 08:45:52 2017 New Revision: 315237 URL: https://svnweb.freebsd.org/changeset/base/315237 Log: Hide kev_iovlen() definition under #ifdef KTRACE, fixing build of kernel configs without KTRACE. Reported by: rpokala Sponsored by: The FreeBSD Foundation MFC af

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

2017-03-14 Thread Konstantin Belousov
Author: kib Date: Tue Mar 14 09:25:01 2017 New Revision: 315238 URL: https://svnweb.freebsd.org/changeset/base/315238 Log: Use designated initializers for kevent_copyops. Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/sys/compat/freebsd32/freebsd32_misc.c he

svn commit: r315281 - in head/sys: dev/drm dev/drm2 kern vm

2017-03-14 Thread Konstantin Belousov
Author: kib Date: Tue Mar 14 19:39:17 2017 New Revision: 315281 URL: https://svnweb.freebsd.org/changeset/base/315281 Log: Use atop() instead of OFF_TO_IDX() for convertion of addresses or addresses offsets, as intended. Suggested and reviewed by:alc Sponsored by: The FreeBSD Founda

svn commit: r315331 - in head/libexec/rtld-elf: . aarch64 amd64 arm i386 mips powerpc powerpc64 riscv sparc64

2017-03-15 Thread Konstantin Belousov
Author: kib Date: Wed Mar 15 21:11:57 2017 New Revision: 315331 URL: https://svnweb.freebsd.org/changeset/base/315331 Log: Implement LD_BIND_NOT knob for rtld. From the manpage: When set to a nonempty string, prevents modifications of the PLT slots when doing bindings. As result, each

Re: svn commit: r315331 - in head/libexec/rtld-elf: . aarch64 amd64 arm i386 mips powerpc powerpc64 riscv sparc64

2017-03-15 Thread Konstantin Belousov
On Wed, Mar 15, 2017 at 05:19:54PM -0400, Shawn Webb wrote: > On Wed, Mar 15, 2017 at 09:11:58PM +0000, Konstantin Belousov wrote: > > Author: kib > > Date: Wed Mar 15 21:11:57 2017 > > New Revision: 315331 > > URL: https://svnweb.freebsd.org/changeset/base/315331 &g

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

2017-03-15 Thread Konstantin Belousov
Author: kib Date: Wed Mar 15 23:47:19 2017 New Revision: 315337 URL: https://svnweb.freebsd.org/changeset/base/315337 Log: Disable LD_BIND_NOT for setugid processes. Requested by: jilles Sponsored by: The FreeBSD Foundation MFC after:2 weeks Modified: head/libexec/rtld-elf/rtld.c

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

2017-03-15 Thread Konstantin Belousov
On Wed, Mar 15, 2017 at 12:21:00PM -0700, John Baldwin wrote: > On Wednesday, March 15, 2017 06:23:32 PM John Baldwin wrote: > > Author: jhb > > Date: Wed Mar 15 18:23:32 2017 > > New Revision: 315323 > > URL: https://svnweb.freebsd.org/changeset/base/315323 > > > > Log: > > Use UMA_ALIGN_PTR in

svn commit: r315453 - head/sys/kern

2017-03-17 Thread Konstantin Belousov
Author: kib Date: Fri Mar 17 13:37:37 2017 New Revision: 315453 URL: https://svnweb.freebsd.org/changeset/base/315453 Log: When clearing altsigstack settings on exec, do it to the right thread. Diagnosed by: smh Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head

svn commit: r315552 - head/sys/vm

2017-03-19 Thread Konstantin Belousov
Author: kib Date: Sun Mar 19 14:42:16 2017 New Revision: 315552 URL: https://svnweb.freebsd.org/changeset/base/315552 Log: Fix off-by-one in the vm_fault_populate() code. When re-calculating the last inclusive page index after the pager call, -1 was erronously ommitted. If the pager exte

svn commit: r315586 - head/sys/dev/cpuctl

2017-03-19 Thread Konstantin Belousov
Author: kib Date: Sun Mar 19 21:24:07 2017 New Revision: 315586 URL: https://svnweb.freebsd.org/changeset/base/315586 Log: Style. Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/sys/dev/cpuctl/cpuctl.c Modified: head/sys/dev/cpuctl/cpuctl.c ===

svn commit: r315588 - head/sys/dev/cpuctl

2017-03-19 Thread Konstantin Belousov
Author: kib Date: Sun Mar 19 21:25:27 2017 New Revision: 315588 URL: https://svnweb.freebsd.org/changeset/base/315588 Log: Update the list of cpudev ioctls which require write access. Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/sys/dev/cpuctl/cpuctl.c Modi

Re: svn commit: r315701 - in head/sys: amd64/cloudabi32 amd64/cloudabi64 arm/cloudabi32 arm64/cloudabi64 i386/cloudabi32

2017-03-22 Thread Konstantin Belousov
On Wed, Mar 22, 2017 at 07:05:27AM +, Ed Schouten wrote: > Author: ed > Date: Wed Mar 22 07:05:27 2017 > New Revision: 315701 > URL: https://svnweb.freebsd.org/changeset/base/315701 > > Log: > Set the interpreter path to /nonexistent. > > CloudABI executables are statically linked and d

Re: svn commit: r315701 - in head/sys: amd64/cloudabi32 amd64/cloudabi64 arm/cloudabi32 arm64/cloudabi64 i386/cloudabi32

2017-03-22 Thread Konstantin Belousov
On Wed, Mar 22, 2017 at 11:02:58AM +0200, Konstantin Belousov wrote: > On Wed, Mar 22, 2017 at 07:05:27AM +, Ed Schouten wrote: > > Author: ed > > Date: Wed Mar 22 07:05:27 2017 > > New Revision: 315701 > > URL: https://svnweb.freebsd.org/changeset/base/315701

svn commit: r315749 - head/sys/kern

2017-03-22 Thread Konstantin Belousov
Author: kib Date: Wed Mar 22 22:06:48 2017 New Revision: 315749 URL: https://svnweb.freebsd.org/changeset/base/315749 Log: Adjust r314851 to not require every brand to specify interpreter path. Reported and tested by: ed Sponsored by: The FreeBSD Foundation MFC after:1 week M

svn commit: r315753 - in head/sys: amd64/cloudabi32 amd64/cloudabi64 arm/cloudabi32 arm64/cloudabi64 i386/cloudabi32 kern sys

2017-03-22 Thread Konstantin Belousov
Author: kib Date: Wed Mar 22 22:23:01 2017 New Revision: 315753 URL: https://svnweb.freebsd.org/changeset/base/315753 Log: Add a flag BI_BRAND_ONLY_STATIC to specify that the brand only matches static binaries. Interpretation of the 'static' there is that the binary must not specify an

svn commit: r315754 - in head/sys: amd64/cloudabi32 amd64/cloudabi64 arm/cloudabi32 arm64/cloudabi64 i386/cloudabi32 kern sys

2017-03-22 Thread Konstantin Belousov
Author: kib Date: Wed Mar 22 22:28:13 2017 New Revision: 315754 URL: https://svnweb.freebsd.org/changeset/base/315754 Log: Update r315753 with the proper flag name. Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/sys/amd64/cloudabi32/cloudabi32_sysvec.c head/

Re: svn commit: r315701 - in head/sys: amd64/cloudabi32 amd64/cloudabi64 arm/cloudabi32 arm64/cloudabi64 i386/cloudabi32

2017-03-22 Thread Konstantin Belousov
On Wed, Mar 22, 2017 at 03:16:24PM +0100, Ed Schouten wrote: > Similarly, I seem to remember CloudABI's brandinfos set compat_3_brand > for a similar reason: it seems to be required by imgact_elf.c. Would > we also want to change that? Could you please try this ? diff --git a/sys/amd64/cloudabi32

Re: svn commit: r315701 - in head/sys: amd64/cloudabi32 amd64/cloudabi64 arm/cloudabi32 arm64/cloudabi64 i386/cloudabi32

2017-03-23 Thread Konstantin Belousov
On Thu, Mar 23, 2017 at 08:43:20AM +0100, Ed Schouten wrote: > Hi Kostik, > > 2017-03-23 0:00 GMT+01:00 Konstantin Belousov : > > On Wed, Mar 22, 2017 at 03:16:24PM +0100, Ed Schouten wrote: > >> Similarly, I seem to remember CloudABI's brandinfos set compat_3_brand

Re: svn commit: r315701 - in head/sys: amd64/cloudabi32 amd64/cloudabi64 arm/cloudabi32 arm64/cloudabi64 i386/cloudabi32

2017-03-23 Thread Konstantin Belousov
On Thu, Mar 23, 2017 at 08:43:20AM +0100, Ed Schouten wrote: > Thanks! I just gave the patch a try, but the comparison added to > imgact_elf.c now causes the brandinfo to be skipped entirely. Attached > is a patch that does work for me. > > Index: sys/kern/imgact_elf.c > ==

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

2017-03-25 Thread Konstantin Belousov
Author: kib Date: Sat Mar 25 10:42:10 2017 New Revision: 315932 URL: https://svnweb.freebsd.org/changeset/base/315932 Log: Slight cleanup of the comment. Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/sys/x86/iommu/intel_dmar.h Modified: head/sys/x86/iommu/in

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

2017-03-25 Thread Konstantin Belousov
Author: kib Date: Sat Mar 25 10:45:16 2017 New Revision: 315933 URL: https://svnweb.freebsd.org/changeset/base/315933 Log: Do not create RMRR entries for identity-mapped domains. It does not make sense since identity mapping already provides the required mapping for RMRR ranges. More, si

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

2017-03-25 Thread Konstantin Belousov
Author: kib Date: Sat Mar 25 10:47:35 2017 New Revision: 315934 URL: https://svnweb.freebsd.org/changeset/base/315934 Log: Avoid leaking allocated but unused context after creation race. As noted in the comment, nothing special needs to be done to destroy the unneeded context after the al

<    15   16   17   18   19   20   21   22   23   24   >