svn commit: r351436 - head/sys/vm

2019-08-23 Thread Mark Johnston
Author: markj Date: Fri Aug 23 19:49:29 2019 New Revision: 351436 URL: https://svnweb.freebsd.org/changeset/base/351436 Log: Make vm_pqbatch_submit_page() externally visible. It will become useful for the page daemon to be able to directly create a batch queue entry for a page, and withou

svn commit: r351437 - head/sys/vm

2019-08-23 Thread Mark Johnston
Author: markj Date: Fri Aug 23 19:53:11 2019 New Revision: 351437 URL: https://svnweb.freebsd.org/changeset/base/351437 Log: Stop clearing page flags in vm_page_pqbatch_submit(). All existing callers guarantee that the page does not have a pre-existing dequeue pending. Thus, if the page

svn commit: r351496 - head/sys/vm

2019-08-25 Thread Mark Johnston
Author: markj Date: Sun Aug 25 21:14:46 2019 New Revision: 351496 URL: https://svnweb.freebsd.org/changeset/base/351496 Log: Handle UMA_ANYDOMAIN in kstack_import(). The kernel thread stack zone performs first-touch allocations by default, and must handle the case where the local memory d

svn commit: r351518 - head/sys/vm

2019-08-26 Thread Mark Johnston
Author: markj Date: Mon Aug 26 20:20:10 2019 New Revision: 351518 URL: https://svnweb.freebsd.org/changeset/base/351518 Log: Fix a few nits in vm_pqbatch_process_page(). - Don't bother masking off non-queue state flags when loading the page's atomic state, since it is only required for

svn commit: r351547 - head/sys/kern

2019-08-27 Thread Mark Johnston
Author: markj Date: Tue Aug 27 14:06:34 2019 New Revision: 351547 URL: https://svnweb.freebsd.org/changeset/base/351547 Log: Fix several logic issues in domainset_empty_vm(). - Don't add 1 to the result of DOMAINSET_FLS. - Do not modify domainsets containing only empty domains. - Always

svn commit: r351549 - head/sys/kern

2019-08-27 Thread Mark Johnston
Author: markj Date: Tue Aug 27 15:42:08 2019 New Revision: 351549 URL: https://svnweb.freebsd.org/changeset/base/351549 Log: Remove an extraneous + 1 in _domainset_create(). DOMAINSET_FLS, like our fls(), is 1-indexed. Reported by: alc MFC after:1 week Sponsored by: The FreeBS

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

2019-08-28 Thread Mark Johnston
Author: markj Date: Wed Aug 28 16:08:06 2019 New Revision: 351569 URL: https://svnweb.freebsd.org/changeset/base/351569 Log: Wire pages in vm_page_grab() when appropriate. uiomove_object_page() and exec_map_first_page() would previously wire a page after having grabbed it. Ask vm_page_gr

svn commit: r351573 - head/lib/libfetch

2019-08-28 Thread Mark Johnston
Author: markj Date: Wed Aug 28 17:01:28 2019 New Revision: 351573 URL: https://svnweb.freebsd.org/changeset/base/351573 Log: Document fetchReqHTTP(). Submitted by: Farhan Khan Reviewed by: 0mp MFC after:1 week Differential Revision:https://reviews.freebsd.org/D18788 Mod

svn commit: r351575 - in head/sys: cddl/contrib/opensolaris/uts/common/fs/zfs kern

2019-08-28 Thread Mark Johnston
Author: markj Date: Wed Aug 28 18:01:54 2019 New Revision: 351575 URL: https://svnweb.freebsd.org/changeset/base/351575 Log: Avoid direct accesses of the vm_page wire_count field. No functional change intended. Sponsored by: Netflix Modified: head/sys/cddl/contrib/opensolaris/uts/co

svn commit: r351587 - in head/usr.bin: bzip2 bzip2recover

2019-08-28 Thread Mark Johnston
Author: markj Date: Wed Aug 28 21:01:51 2019 New Revision: 351587 URL: https://svnweb.freebsd.org/changeset/base/351587 Log: Install all bzip2.1 MLINKs from the same place. Reported by: antoine MFC after:3 days Sponsored by: The FreeBSD Foundation Modified: head/usr.bin/bzip2/Ma

Re: svn commit: r350544 - head/usr.bin/bzip2recover

2019-08-28 Thread Mark Johnston
On Wed, Aug 28, 2019 at 10:54:13PM +0200, Antoine Brodin wrote: > On Sat, Aug 3, 2019 at 12:10 AM Mark Johnston wrote: > > > > Author: markj > > Date: Fri Aug 2 22:09:56 2019 > > New Revision: 350544 > > URL: https://svnweb.freebsd.org/changeset/base/350544 >

svn commit: r351613 - head/sys/fs/fuse

2019-08-29 Thread Mark Johnston
Author: markj Date: Thu Aug 29 22:13:15 2019 New Revision: 351613 URL: https://svnweb.freebsd.org/changeset/base/351613 Log: Remove unused VM page locking macros. They were orphaned by r292373. Reviewed by: asomers MFC after:1 week Sponsored by: Netflix Differential Revision

svn commit: r351624 - head/sys/dev/sound/midi

2019-08-30 Thread Mark Johnston
Author: markj Date: Fri Aug 30 15:40:31 2019 New Revision: 351624 URL: https://svnweb.freebsd.org/changeset/base/351624 Log: Properly check for an interrupted cv_wait_sig(). The returned error number may be EINTR or ERESTART depending on whether or not the signal is supposed to interrupt

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

2019-08-30 Thread Mark Johnston
Author: markj Date: Fri Aug 30 19:35:44 2019 New Revision: 351628 URL: https://svnweb.freebsd.org/changeset/base/351628 Log: Update and clean up the UMA man page. - Fix warnings from igor and mandoc. - Provide a brief description of the separation between zones and their backend slab

svn commit: r351671 - head/usr.bin/cpuset

2019-09-01 Thread Mark Johnston
Author: markj Date: Sun Sep 1 21:20:31 2019 New Revision: 351671 URL: https://svnweb.freebsd.org/changeset/base/351671 Log: Fix an off-by-one bug in the CPU and domain ID parser. The "size" parameter is the size of the corresponding bit set, so the maximum CPU or domain index is size - 1

svn commit: r351672 - head/sys/kern

2019-09-01 Thread Mark Johnston
Author: markj Date: Sun Sep 1 21:38:08 2019 New Revision: 351672 URL: https://svnweb.freebsd.org/changeset/base/351672 Log: Restrict the input domain set in cpuset_setdomain(2) to all_domains. To permit larger values of MAXMEMDOM, which is currently 8 on amd64, cpuset_setdomain(2) accept

svn commit: r351673 - in head: lib/libmemstat share/man/man9 sys/cddl/compat/opensolaris/kern sys/kern sys/vm

2019-09-01 Thread Mark Johnston
Author: markj Date: Sun Sep 1 22:22:43 2019 New Revision: 351673 URL: https://svnweb.freebsd.org/changeset/base/351673 Log: Extend uma_reclaim() to permit different reclamation targets. The page daemon periodically invokes uma_reclaim() to reclaim cached items from each zone when the sys

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

2019-09-02 Thread Mark Johnston
On Mon, Sep 02, 2019 at 03:24:26PM +, Mateusz Guzik wrote: > Author: mjg > Date: Mon Sep 2 15:24:25 2019 > New Revision: 351702 > URL: https://svnweb.freebsd.org/changeset/base/351702 > > Log: > vfs: restore mp null check in vop_stdgetwritemount > > The initially read mount point can a

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

2019-09-02 Thread Mark Johnston
Author: markj Date: Mon Sep 2 21:54:08 2019 New Revision: 351727 URL: https://svnweb.freebsd.org/changeset/base/351727 Log: Replace PMAP_LARGEMAP_MAX_ADDRESS() with a more general predicate. No functional change intended. Reviewed by: kib MFC after:1 week Sponsored by: The Fr

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

2019-09-02 Thread Mark Johnston
Author: markj Date: Mon Sep 2 21:57:57 2019 New Revision: 351728 URL: https://svnweb.freebsd.org/changeset/base/351728 Log: Add a sysctl to dump kernel mappings and their properties on amd64. The sysctl is called vm.pmap.kernel_maps. It dumps address ranges and their corresponding prote

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

2019-09-02 Thread Mark Johnston
On Mon, Sep 02, 2019 at 09:54:09PM +, Mark Johnston wrote: > Author: markj > Date: Mon Sep 2 21:54:08 2019 > New Revision: 351727 > URL: https://svnweb.freebsd.org/changeset/base/351727 > > Log: > Replace PMAP_LARGEMAP_MAX_ADDRESS() with a more general predicate. &

svn commit: r351742 - in head/sys: amd64/amd64 amd64/include vm

2019-09-03 Thread Mark Johnston
Author: markj Date: Tue Sep 3 13:18:51 2019 New Revision: 351742 URL: https://svnweb.freebsd.org/changeset/base/351742 Log: Map the vm_page array into KVA on amd64. r351198 allows the kernel to use domain-local memory to back the vm_page array (up to 2MB boundaries) and reserves a separa

svn commit: r345594 - head/sys/conf

2019-09-03 Thread Mark Johnston
Author: markj Date: Wed Mar 27 19:34:19 2019 New Revision: 345594 URL: https://svnweb.freebsd.org/changeset/base/345594 Log: Stop using -fdebug-prefix-map to map the object directory. We were doing so as a workaround for the problem addressed by r345593, so it's no longer necessary.

svn commit: r345593 - head/contrib/elftoolchain/libdwarf

2019-09-03 Thread Mark Johnston
Author: markj Date: Wed Mar 27 19:32:21 2019 New Revision: 345593 URL: https://svnweb.freebsd.org/changeset/base/345593 Log: Prepend DW_AT_comp_dir to relative line number directory table entries. Relative directories may appear in the line number program for a CPU if files were included

svn commit: r345596 - in head/lib/libutil: . tests

2019-09-03 Thread Mark Johnston
Author: markj Date: Wed Mar 27 19:40:18 2019 New Revision: 345596 URL: https://svnweb.freebsd.org/changeset/base/345596 Log: Fix pidfile_open(3) to handle relative paths with multiple components. r322369's use of basename(3) was incorrect and worked by accident so long as the pidfile path

svn commit: r345739 - in head/sys: net netinet6

2019-09-03 Thread Mark Johnston
Author: markj Date: Sat Mar 30 18:00:44 2019 New Revision: 345739 URL: https://svnweb.freebsd.org/changeset/base/345739 Log: Do not perform DAD on stf(4) interfaces. stf(4) interfaces are not multicast-capable so they can't perform DAD. They also did not set IFF_DRV_RUNNING when an addres

svn commit: r346009 - in head: sys/kern tests/sys/kern

2019-09-03 Thread Mark Johnston
Author: markj Date: Sun Apr 7 14:26:14 2019 New Revision: 346009 URL: https://svnweb.freebsd.org/changeset/base/346009 Log: Set the p_oppid field of orphans when exiting. Such processes will be reparented to the reaper when the current parent is done with them (i.e., ptrace detached), so

svn commit: r346011 - head/usr.sbin/bhyve

2019-09-03 Thread Mark Johnston
Author: markj Date: Sun Apr 7 14:30:17 2019 New Revision: 346011 URL: https://svnweb.freebsd.org/changeset/base/346011 Log: Stop compiling bhyve(8) with -O0. DEBUG_FLAGS is always added to CFLAGS. This setting appears to be accidental and came in with r243327. Reviewed by: anish,

svn commit: r346010 - head/usr.sbin/bhyve

2019-09-03 Thread Mark Johnston
Author: markj Date: Sun Apr 7 14:28:02 2019 New Revision: 346010 URL: https://svnweb.freebsd.org/changeset/base/346010 Log: Fix indentation. No functional change intended. Reviewed by: bcran, jhb, rgrimes MFC after:3 days Sponsored by: The FreeBSD Foundation Differential Re

svn commit: r346118 - in head/sys: netinet netinet6

2019-09-03 Thread Mark Johnston
Author: markj Date: Thu Apr 11 08:00:59 2019 New Revision: 346118 URL: https://svnweb.freebsd.org/changeset/base/346118 Log: Reinitialize multicast source filter structures after invalidation. When leaving a multicast group, a hole may be created in the inpcb's source filter and group mem

svn commit: r346440 - head/sys/modules/opensolaris

2019-09-03 Thread Mark Johnston
Author: markj Date: Sat Apr 20 11:34:53 2019 New Revision: 346440 URL: https://svnweb.freebsd.org/changeset/base/346440 Log: Export cpu_core from opensolaris.ko. It is referenced by dtrace*.ko. PR: 191462 Submitted by: me.free...@cgf.cx MFC after:1 week Modified: h

svn commit: r346543 - head/sys/vm

2019-09-03 Thread Mark Johnston
Author: markj Date: Mon Apr 22 11:23:35 2019 New Revision: 346543 URL: https://svnweb.freebsd.org/changeset/base/346543 Log: Disable vm map consistency checking by default on INVARIANTS kernels. The checks are too expensive for a general-purpose kernel. Enable the checks when DIAGNOSTIC

svn commit: r346550 - head/usr.sbin/bhyve

2019-09-03 Thread Mark Johnston
Author: markj Date: Mon Apr 22 13:57:52 2019 New Revision: 346550 URL: https://svnweb.freebsd.org/changeset/base/346550 Log: Use separate descriptors in bhyve's stdio uart backend. bhyve was previously using stdin for both reading and writing to the console, which made it difficult to red

svn commit: r346544 - head/sys/conf

2019-09-03 Thread Mark Johnston
Author: markj Date: Mon Apr 22 11:31:13 2019 New Revision: 346544 URL: https://svnweb.freebsd.org/changeset/base/346544 Log: Clarify the relationship between INVARIANTS and DIAGNOSTIC a bit. MFC after:1 week Sponsored by: The FreeBSD Foundation Modified: head/sys/conf/NOTES Modifi

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

2019-09-03 Thread Mark Johnston
Author: markj Date: Tue Sep 3 14:39:36 2019 New Revision: 351744 URL: https://svnweb.freebsd.org/changeset/base/351744 Log: Revert a portion of r351628 that I did not mean to commit. Reported by: mjg MFC with: r351628 Modified: head/share/man/man9/Makefile Modified: head/share/m

svn commit: r351743 - head/sys/vm

2019-09-03 Thread Mark Johnston
Author: markj Date: Tue Sep 3 14:29:58 2019 New Revision: 351743 URL: https://svnweb.freebsd.org/changeset/base/351743 Log: Add preliminary support for atomic updates of per-page queue state. Queue operations on a page use the page lock when updating the page to reflect the desired queue

Re: svn commit: r351673 - in head: lib/libmemstat share/man/man9 sys/cddl/compat/opensolaris/kern sys/kern sys/vm

2019-09-03 Thread Mark Johnston
On Tue, Sep 03, 2019 at 07:14:27PM +0300, Slawa Olhovchenkov wrote: > On Tue, Sep 03, 2019 at 10:02:59AM +0300, Andriy Gapon wrote: > > > On 02/09/2019 01:22, Mark Johnston wrote: > > > Author: markj > > > Date: Sun Sep 1 22:22:43 2019 > > >

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

2019-09-03 Thread Mark Johnston
Author: markj Date: Tue Sep 3 22:26:01 2019 New Revision: 351800 URL: https://svnweb.freebsd.org/changeset/base/351800 Log: Fix some nits in pmap_page_array_startup(). - Use ptoa() instead of the archaic ctob(). - Use pagezero() to zero a PDP page. - Remove PA_MIN_ADDRESS, orphaned by

Re: svn commit: r351673 - in head: lib/libmemstat share/man/man9 sys/cddl/compat/opensolaris/kern sys/kern sys/vm

2019-09-07 Thread Mark Johnston
On Wed, Sep 04, 2019 at 09:00:03AM +0300, Andriy Gapon wrote: > On 04/09/2019 01:01, Mark Johnston wrote: > > Slawa and I talked about this in the past. His complaint is that a > > large cache can take a significant amount of time to trim, and it > > manifests as a s

Re: svn commit: r351673 - in head: lib/libmemstat share/man/man9 sys/cddl/compat/opensolaris/kern sys/kern sys/vm

2019-09-07 Thread Mark Johnston
On Wed, Sep 04, 2019 at 09:27:00AM +0300, Andriy Gapon wrote: > On 04/09/2019 01:01, Mark Johnston wrote: > > Some of the vm_lowmem eventhandlers probably shouldn't be called each > > time the page daemon scans the inactive queue (every 0.1s under memory > > pressur

Re: svn commit: r351673 - in head: lib/libmemstat share/man/man9 sys/cddl/compat/opensolaris/kern sys/kern sys/vm

2019-09-07 Thread Mark Johnston
On Wed, Sep 04, 2019 at 05:45:24PM +0300, Slawa Olhovchenkov wrote: > On Tue, Sep 03, 2019 at 06:01:06PM -0400, Mark Johnston wrote: > > > Mostly problem I am see at this > > > work -- very slowly vm_page_free(). May be currenly this is more > > > speedy... >

Re: svn commit: r351673 - in head: lib/libmemstat share/man/man9 sys/cddl/compat/opensolaris/kern sys/kern sys/vm

2019-09-08 Thread Mark Johnston
On Sat, Sep 07, 2019 at 06:31:10PM +0300, Slawa Olhovchenkov wrote: > On Sat, Sep 07, 2019 at 10:50:34AM -0400, Mark Johnston wrote: > > > On Wed, Sep 04, 2019 at 05:45:24PM +0300, Slawa Olhovchenkov wrote: > > > On Tue, Sep 03, 2019 at 06:01:06PM -0400, Mark Johnston wr

svn commit: r352110 - in head: share/man/man9 sys/amd64/amd64 sys/amd64/sgx sys/amd64/vmm sys/arm/arm sys/arm/nvidia/drm2 sys/arm64/arm64 sys/cddl/contrib/opensolaris/uts/common/fs/zfs sys/compat/l...

2019-09-09 Thread Mark Johnston
Author: markj Date: Mon Sep 9 21:32:42 2019 New Revision: 352110 URL: https://svnweb.freebsd.org/changeset/base/352110 Log: Change synchonization rules for vm_page reference counting. There are several mechanisms by which a vm_page reference is held, preventing the page from being freed

svn commit: r352256 - head/sys/kern

2019-09-12 Thread Mark Johnston
Author: markj Date: Thu Sep 12 16:47:38 2019 New Revision: 352256 URL: https://svnweb.freebsd.org/changeset/base/352256 Log: Remove a redundant NULL pointer check in cpuset_modify_domain(). cpuset_getroot() is guaranteed to return a non-NULL pointer. Reported by: Mark Millard MFC a

svn commit: r352406 - in head: share/man/man9 sys/amd64/amd64 sys/amd64/include sys/arm/arm sys/arm64/arm64 sys/cddl/contrib/opensolaris/uts/common/fs/zfs sys/dev/virtio/balloon sys/i386/i386 sys/m...

2019-09-16 Thread Mark Johnston
Author: markj Date: Mon Sep 16 15:03:12 2019 New Revision: 352406 URL: https://svnweb.freebsd.org/changeset/base/352406 Log: Fix a couple of nits in r352110. - Remove a dead variable from the amd64 pmap_extract_and_hold(). - Fix grammar in the vm_page_wire man page. Reported by: alc

svn commit: r352407 - in head: share/man/man9 sys/amd64/amd64 sys/amd64/include sys/arm/arm sys/arm64/arm64 sys/cddl/contrib/opensolaris/uts/common/fs/zfs sys/dev/virtio/balloon sys/i386/i386 sys/m...

2019-09-16 Thread Mark Johnston
Author: markj Date: Mon Sep 16 15:04:45 2019 New Revision: 352407 URL: https://svnweb.freebsd.org/changeset/base/352407 Log: Revert r352406, which contained changes I didn't intend to commit. Modified: head/share/man/man9/vm_page_wire.9 head/sys/amd64/amd64/pmap.c head/sys/amd64/include/p

svn commit: r352408 - in head: share/man/man9 sys/amd64/amd64

2019-09-16 Thread Mark Johnston
Author: markj Date: Mon Sep 16 15:06:19 2019 New Revision: 352408 URL: https://svnweb.freebsd.org/changeset/base/352408 Log: Fix a couple of nits in r352110. - Remove a dead variable from the amd64 pmap_extract_and_hold(). - Fix grammar in the vm_page_wire man page. Reported by: alc

svn commit: r352409 - head/sys/vm

2019-09-16 Thread Mark Johnston
Author: markj Date: Mon Sep 16 15:09:31 2019 New Revision: 352409 URL: https://svnweb.freebsd.org/changeset/base/352409 Log: Fix a page leak in vm_page_reclaim_run(). After r352110 the attempt to remove mappings of the page being replaced may fail if the page is wired. In this case we mu

svn commit: r352410 - head/sys/vm

2019-09-16 Thread Mark Johnston
Author: markj Date: Mon Sep 16 15:12:49 2019 New Revision: 352410 URL: https://svnweb.freebsd.org/changeset/base/352410 Log: Fix a race in vm_page_dequeue_deferred_free() after r352110. This function loaded the page's queue index before setting PGA_DEQUEUE. In this window the page daemon

svn commit: r352411 - head/sys/vm

2019-09-16 Thread Mark Johnston
Author: markj Date: Mon Sep 16 15:16:48 2019 New Revision: 352411 URL: https://svnweb.freebsd.org/changeset/base/352411 Log: Assert that the refcount value is not VPRC_BLOCKED in vm_page_drop(). VPRC_BLOCKED is a refcount flag used to indicate that a thread is tearing down mappings of a p

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

2019-09-23 Thread Mark Johnston
Author: markj Date: Mon Sep 23 14:11:59 2019 New Revision: 352622 URL: https://svnweb.freebsd.org/changeset/base/352622 Log: Set NX in mappings created by pmap_kenter() and pmap_kenter_attr(). There does not appear to be any existing need for such mappings to be executable. Reviewed

svn commit: r352623 - in head/sys: amd64/amd64 kern

2019-09-23 Thread Mark Johnston
Author: markj Date: Mon Sep 23 14:14:43 2019 New Revision: 352623 URL: https://svnweb.freebsd.org/changeset/base/352623 Log: Use elf_relocaddr() when handling R_X86_64_RELATIVE relocations. This is required for DPCPU and VNET data variable definitions to work when KLDs are linked as DSOs.

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

2019-09-23 Thread Mark Johnston
Author: markj Date: Mon Sep 23 14:19:41 2019 New Revision: 352624 URL: https://svnweb.freebsd.org/changeset/base/352624 Log: Set NX on some non-leaf direct map page table entries. The direct map is never used for execution of code, so we might as well set NX in the direct map's PML4Es. A

svn commit: r352625 - head/sys/dev/jme

2019-09-23 Thread Mark Johnston
Author: markj Date: Mon Sep 23 14:29:05 2019 New Revision: 352625 URL: https://svnweb.freebsd.org/changeset/base/352625 Log: Revert r316820. Despite appearing correct, r316820 breaks packet rx/tx for jme(4) interfaces. With 12.1 approaching, let's just revert the commit for now. PR:

svn commit: r352626 - head/sys/dev/jme

2019-09-23 Thread Mark Johnston
Author: markj Date: Mon Sep 23 14:34:23 2019 New Revision: 352626 URL: https://svnweb.freebsd.org/changeset/base/352626 Log: Fix a harmless typo. MFC after:1 week Modified: head/sys/dev/jme/if_jme.c Modified: head/sys/dev/jme/if_jme.c

svn commit: r352627 - in head/sys/cddl/dev/dtrace: amd64 i386

2019-09-23 Thread Mark Johnston
Author: markj Date: Mon Sep 23 15:08:17 2019 New Revision: 352627 URL: https://svnweb.freebsd.org/changeset/base/352627 Log: Implement x86 dtrace_invop_(un)init() in C. There is no reason for these routines to be written in assembly. In the ports of DTrace to other platforms, they are al

Re: svn commit: r352623 - in head/sys: amd64/amd64 kern

2019-09-23 Thread Mark Johnston
On Mon, Sep 23, 2019 at 11:28:52AM -0700, Conrad Meyer wrote: > Hi Mark, > > On Mon, Sep 23, 2019 at 7:14 AM Mark Johnston wrote: > > > > Author: markj > > Date: Mon Sep 23 14:14:43 2019 > > New Revision: 352623 > > URL: https://svnweb.freebsd.org/chang

Re: svn commit: r352623 - in head/sys: amd64/amd64 kern

2019-09-23 Thread Mark Johnston
On Mon, Sep 23, 2019 at 10:13:14PM +0200, Warner Losh wrote: > On Mon, Sep 23, 2019, 9:06 PM Mark Johnston wrote: > > > On Mon, Sep 23, 2019 at 11:28:52AM -0700, Conrad Meyer wrote: > > > Hi Mark, > > > > > > On Mon, Sep 23, 2019 at 7:14 AM Mark Johnsto

svn commit: r352634 - head/sbin/ping6

2019-09-23 Thread Mark Johnston
Author: markj Date: Mon Sep 23 22:20:11 2019 New Revision: 352634 URL: https://svnweb.freebsd.org/changeset/base/352634 Log: ping6: Use caph_rights_limit(3) for STDIN_FILENO Update some error messages while here. Reported by: olivier MFC after:3 days Modified: head/sbin/ping6

svn commit: r352688 - in head/sys: amd64/amd64 arm/arm arm64/arm64 dev/agp i386/i386 mips/mips powerpc/booke riscv/riscv vm x86/iommu

2019-09-25 Thread Mark Johnston
Author: markj Date: Wed Sep 25 16:11:35 2019 New Revision: 352688 URL: https://svnweb.freebsd.org/changeset/base/352688 Log: Complete the removal of the "wire_count" field from struct vm_page. Convert all remaining references to that field to "ref_count" and update comments accordingly.

svn commit: r352690 - head/sys/vm

2019-09-25 Thread Mark Johnston
Author: markj Date: Wed Sep 25 17:08:35 2019 New Revision: 352690 URL: https://svnweb.freebsd.org/changeset/base/352690 Log: Add some counters for per-VM page events. For now, just count batched page queue state operations. vm.stats.page.queue_ops counts the number of batch entries that

svn commit: r352748 - head/sys/kern

2019-09-26 Thread Mark Johnston
Author: markj Date: Thu Sep 26 15:35:35 2019 New Revision: 352748 URL: https://svnweb.freebsd.org/changeset/base/352748 Log: Fix handling of invalid pages in exec_map_first_page(). exec_map_first_page() would unconditionally free an unbacked, invalid page from the executable image. Howev

svn commit: r352800 - head/sys/vm

2019-09-27 Thread Mark Johnston
Author: markj Date: Fri Sep 27 16:41:34 2019 New Revision: 352800 URL: https://svnweb.freebsd.org/changeset/base/352800 Log: Fix object locking in vm_object_unwire() after r352174. Now, vm_page_busy_sleep() expects the page's object to be locked. vm_object_unwire() does some unusual lazy

svn commit: r352802 - head/sys/vm

2019-09-27 Thread Mark Johnston
Author: markj Date: Fri Sep 27 16:46:08 2019 New Revision: 352802 URL: https://svnweb.freebsd.org/changeset/base/352802 Log: Fix a race in vm_page_swapqueue(). vm_page_swapqueue() atomically transitions a page between queues. To do so, it must hold the page queue lock for the old queue.

svn commit: r352823 - in head/sys: amd64/vmm/amd amd64/vmm/intel dev/qlnx/qlnxe

2019-09-27 Thread Mark Johnston
Author: markj Date: Fri Sep 27 21:04:33 2019 New Revision: 352823 URL: https://svnweb.freebsd.org/changeset/base/352823 Log: Correct the scope of several global variables. They are accessed from multiple compilation units. No functional change intended. MFC after:1 week Sponso

svn commit: r352826 - in head/sys: arm64/arm64 arm64/include riscv/include riscv/riscv

2019-09-27 Thread Mark Johnston
Author: markj Date: Fri Sep 27 23:37:01 2019 New Revision: 352826 URL: https://svnweb.freebsd.org/changeset/base/352826 Log: Implement pmap_page_is_mapped() correctly on arm64 and riscv. We must also check for large mappings. pmap_page_is_mapped() is mostly used in assertions, so the pro

svn commit: r352829 - head/sys/kern

2019-09-27 Thread Mark Johnston
Author: markj Date: Sat Sep 28 01:42:59 2019 New Revision: 352829 URL: https://svnweb.freebsd.org/changeset/base/352829 Log: Fix some problems with the SPARSE_MAPPING option in the kernel linker. - Ensure that the end of the mapping passed to vm_page_wire() is page-aligned. vm_page_wir

svn commit: r352906 - in head/sys: dev/vmware/vmxnet3 net

2019-09-30 Thread Mark Johnston
Author: markj Date: Mon Sep 30 15:59:07 2019 New Revision: 352906 URL: https://svnweb.freebsd.org/changeset/base/352906 Log: Add IFLIB_SINGLE_IRQ_RX_ONLY. As of r347221 the iflib legacy interrupt mode setup assumes that drivers perform both receive and transmit processing from the interru

svn commit: r352907 - head/contrib/elftoolchain/cxxfilt

2019-09-30 Thread Mark Johnston
Author: markj Date: Mon Sep 30 16:10:42 2019 New Revision: 352907 URL: https://svnweb.freebsd.org/changeset/base/352907 Log: Capsicumize c++filt(1). Reviewed by: emaste Discussed with: oshogbo Sponsored by: The FreeBSD Foundation Differential Revision:https://reviews.fr

svn commit: r352908 - head/contrib/elftoolchain/nm

2019-09-30 Thread Mark Johnston
Author: markj Date: Mon Sep 30 17:26:42 2019 New Revision: 352908 URL: https://svnweb.freebsd.org/changeset/base/352908 Log: nm: Adjust argc and argv in get_opt(). This refactoring makes it slightly easier to capsicumize nm(1). Discussed with: emaste MFC after:1 week Spon

svn commit: r352909 - in head: contrib/elftoolchain/nm usr.bin/nm

2019-09-30 Thread Mark Johnston
Author: markj Date: Mon Sep 30 17:27:59 2019 New Revision: 352909 URL: https://svnweb.freebsd.org/changeset/base/352909 Log: Capsicumize nm(1). Reviewed by: emaste Sponsored by: The FreeBSD Foundation Differential Revision:https://reviews.freebsd.org/D21107 Modified: head/co

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

2019-09-30 Thread Mark Johnston
Author: markj Date: Mon Sep 30 20:39:25 2019 New Revision: 352916 URL: https://svnweb.freebsd.org/changeset/base/352916 Log: Remove more identifiers orphaned by r351742. Reviewed by: alc, kib Differential Revision:https://reviews.freebsd.org/D21642 Modified: head/sys/amd64/inc

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

2019-05-25 Thread Mark Johnston
Author: markj Date: Sat May 25 23:36:20 2019 New Revision: 348283 URL: https://svnweb.freebsd.org/changeset/base/348283 Log: Remove pmap_pid_dump() from the i386 pmap. It has not been compilable in a long time and doesn't seem very useful. Suggested by: kib MFC after:1 week Modi

Re: svn commit: r348300 - head/sys/ufs/ffs

2019-05-27 Thread Mark Johnston
On Mon, May 27, 2019 at 06:22:44AM +, Kirk McKusick wrote: > Author: mckusick > Date: Mon May 27 06:22:43 2019 > New Revision: 348300 > URL: https://svnweb.freebsd.org/changeset/base/348300 > > Log: > Add function name and line number debugging information to softupdates > worklist structu

svn commit: r348430 - head/contrib/elftoolchain/elfcopy

2019-05-30 Thread Mark Johnston
Author: markj Date: Thu May 30 15:26:39 2019 New Revision: 348430 URL: https://svnweb.freebsd.org/changeset/base/348430 Log: elfcopy: Remove an unneeded memset. Reviewed by: emaste, trasz MFC after:1 week Sponsored by: The FreeBSD Foundation Differential Revision:https://

svn commit: r348431 - head/contrib/elftoolchain/elfcopy

2019-05-30 Thread Mark Johnston
Author: markj Date: Thu May 30 15:28:48 2019 New Revision: 348431 URL: https://svnweb.freebsd.org/changeset/base/348431 Log: elfcopy: Optimize for insertions at the end of the section list. This is the common case when strip(1) is creating the output file. The change provides a significan

svn commit: r348443 - head/contrib/elftoolchain/readelf

2019-05-30 Thread Mark Johnston
Author: markj Date: Thu May 30 18:54:34 2019 New Revision: 348443 URL: https://svnweb.freebsd.org/changeset/base/348443 Log: readelf: Make -t imply -S, for compatibility with GNU binutils. Reported by: jhb Reviewed by: emaste MFC after:1 week Sponsored by: The FreeBSD Foundation

svn commit: r348444 - head/lib/libelftc

2019-05-30 Thread Mark Johnston
Author: markj Date: Thu May 30 19:18:01 2019 New Revision: 348444 URL: https://svnweb.freebsd.org/changeset/base/348444 Log: libelftc: Add MLINKS. Reviewed by: emaste MFC after:1 week Sponsored by: The FreeBSD Foundation Differential Revision:https://reviews.freebsd.org/D

svn commit: r348457 - head/sys/vm

2019-05-31 Thread Mark Johnston
Author: markj Date: Fri May 31 14:59:40 2019 New Revision: 348457 URL: https://svnweb.freebsd.org/changeset/base/348457 Log: Remove a redundant vm_page_remove() call. vm_page_free_prep() removes the page from its object. No functional change intended. Reviewed by: alc, kib MFC af

svn commit: r348459 - in head: sbin/devd sys/dev/acpica

2019-05-31 Thread Mark Johnston
Author: markj Date: Fri May 31 15:44:33 2019 New Revision: 348459 URL: https://svnweb.freebsd.org/changeset/base/348459 Log: acpi_dock(4): Notify devd(8) on dock status change. PR: 238138 Submitted by: Muhammad Kaisar Arkhan MFC after:2 weeks Modified: head/sbin/devd/d

svn commit: r348473 - head/sys/netinet/netdump

2019-05-31 Thread Mark Johnston
Author: markj Date: Fri May 31 18:29:12 2019 New Revision: 348473 URL: https://svnweb.freebsd.org/changeset/base/348473 Log: netdump: Buffer pages to avoid calling netdump_send() on each 4KB write. netdump waits for acknowledgement from the server for each write. When dumping page table

svn commit: r348502 - head/sys/vm

2019-06-01 Thread Mark Johnston
Author: markj Date: Sun Jun 2 01:00:17 2019 New Revision: 348502 URL: https://svnweb.freebsd.org/changeset/base/348502 Log: Add a vm_page_wired() predicate. Use it instead of accessing the wire_count field directly. No functional change intended. Reviewed by: alc, kib MFC after:

svn commit: r348545 - head/lib/libutil

2019-06-03 Thread Mark Johnston
Author: markj Date: Mon Jun 3 16:47:00 2019 New Revision: 348545 URL: https://svnweb.freebsd.org/changeset/base/348545 Log: Typo. MFC after:3 days Sponsored by: The FreeBSD Foundation Modified: head/lib/libutil/pw_util.3 Modified: head/lib/libutil/pw_util.3 ==

svn commit: r348547 - head/usr.sbin/rpc.yppasswdd

2019-06-03 Thread Mark Johnston
Author: markj Date: Mon Jun 3 16:51:07 2019 New Revision: 348547 URL: https://svnweb.freebsd.org/changeset/base/348547 Log: rpc.yppasswdd: Fix dirname(3) usage after r305952. PR: 234972 Submitted by: Edward Fuhr (original) MFC after:3 days Modified: head/usr.sbin/rpc.

Re: svn commit: r348532 - in head: . etc

2019-06-03 Thread Mark Johnston
On Mon, Jun 03, 2019 at 03:12:45PM +, Maxim Sobolev wrote: > Author: sobomax > Date: Mon Jun 3 15:12:44 2019 > New Revision: 348532 > URL: https://svnweb.freebsd.org/changeset/base/348532 > > Log: > Leave mtree hardcoded for now. Reverting partially 348521 and also > the followup stopgap

svn commit: r348652 - head/contrib/elftoolchain/libelf

2019-06-04 Thread Mark Johnston
Author: markj Date: Tue Jun 4 18:26:29 2019 New Revision: 348652 URL: https://svnweb.freebsd.org/changeset/base/348652 Log: libelf: Use a red-black tree to manage the section list. The tree is indexed by section number. This speeds up elf_getscn() and its callers, which previously had t

svn commit: r348654 - head/contrib/elftoolchain/elfcopy

2019-06-04 Thread Mark Johnston
Author: markj Date: Tue Jun 4 18:29:08 2019 New Revision: 348654 URL: https://svnweb.freebsd.org/changeset/base/348654 Log: elfcopy: Use elf_getscn() instead of iterating over all sections. When removing a section, we would loop over all sections looking for a corresponding relocation se

svn commit: r348655 - head/contrib/elftoolchain/libelftc

2019-06-04 Thread Mark Johnston
Author: markj Date: Tue Jun 4 18:31:08 2019 New Revision: 348655 URL: https://svnweb.freebsd.org/changeset/base/348655 Log: libelftc: Fix some minor style bugs. Reviewed by: emaste MFC after:1 week Sponsored by: The FreeBSD Foundation Differential Revision:https://review

svn commit: r348657 - head/contrib/elftoolchain/elfcopy

2019-06-04 Thread Mark Johnston
Author: markj Date: Tue Jun 4 18:34:05 2019 New Revision: 348657 URL: https://svnweb.freebsd.org/changeset/base/348657 Log: elfcopy: Use libelftc's string table routines to build .shstrtab. This replaces some hand-rolled routines and is substantially faster since libelftc uses a hash tab

svn commit: r348660 - head/sys/vm

2019-06-04 Thread Mark Johnston
Author: markj Date: Tue Jun 4 18:38:27 2019 New Revision: 348660 URL: https://svnweb.freebsd.org/changeset/base/348660 Log: Remove an outdated header comment for vm_page.c. The listed rules were incomplete and outdated. There is a much more comprehensive comment in vm_page.h. Revie

svn commit: r348742 - in head/sys: amd64/amd64 cddl/contrib/opensolaris/uts/common/dtrace i386/i386

2019-06-06 Thread Mark Johnston
Author: markj Date: Thu Jun 6 16:03:25 2019 New Revision: 348742 URL: https://svnweb.freebsd.org/changeset/base/348742 Log: Fix a race between fasttrap and the user breakpoint handler. When disabling the last enabled userspace probe, fasttrap clears the function pointers which hook in to

svn commit: r348743 - in head/sys/compat/linuxkpi/common: include/linux src

2019-06-06 Thread Mark Johnston
Author: markj Date: Thu Jun 6 16:09:19 2019 New Revision: 348743 URL: https://svnweb.freebsd.org/changeset/base/348743 Log: Make the linuxkpi's alloc_pages() consistently return wired pages. Previously it did this only on platforms without a direct map. This also more closely matches Li

svn commit: r348745 - head/sys/net

2019-06-06 Thread Mark Johnston
Author: markj Date: Thu Jun 6 16:22:29 2019 New Revision: 348745 URL: https://svnweb.freebsd.org/changeset/base/348745 Log: Conditionalize an in_epoch() call on INVARIANTS. Its result is only used to determine whether to perform further INVARIANTS-only checks. Remove a stale comment whi

svn commit: r348746 - head/sys/vm

2019-06-06 Thread Mark Johnston
Author: markj Date: Thu Jun 6 16:23:44 2019 New Revision: 348746 URL: https://svnweb.freebsd.org/changeset/base/348746 Log: Remove the volatile qualifer from uma_kmem_total. No functional change intended. Reviewed by: alc, dougm, kib MFC after:1 week Sponsored by: The FreeBSD

svn commit: r348747 - head/sys/vm

2019-06-06 Thread Mark Johnston
Author: markj Date: Thu Jun 6 16:26:58 2019 New Revision: 348747 URL: https://svnweb.freebsd.org/changeset/base/348747 Log: Add sysctls for uma_kmem_{limit,total}. Reviewed by: alc, dougm, kib MFC after:1 week Sponsored by: The FreeBSD Foundation Differential Revision:ht

svn commit: r348751 - head/sys/net

2019-06-06 Thread Mark Johnston
Author: markj Date: Thu Jun 6 17:20:35 2019 New Revision: 348751 URL: https://svnweb.freebsd.org/changeset/base/348751 Log: Restore the comment removed in r348745. LAGG_RLOCK() enters an epoch section, so the comment wasn't stale. Reported by: jhb MFC with: r348745 Modified:

Re: svn commit: r348745 - head/sys/net

2019-06-06 Thread Mark Johnston
On Thu, Jun 06, 2019 at 10:13:13AM -0700, John Baldwin wrote: > On 6/6/19 9:22 AM, Mark Johnston wrote: > > Author: markj > > Date: Thu Jun 6 16:22:29 2019 > > New Revision: 348745 > > URL: https://svnweb.freebsd.org/changeset/base/348745 > > > > Log: >

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

2019-06-06 Thread Mark Johnston
On Thu, Jun 06, 2019 at 12:04:52PM -0600, Alan Somers wrote: > On Thu, Jun 6, 2019 at 12:01 PM John Baldwin wrote: > > > > On 6/6/19 10:39 AM, Alan Somers wrote: > > > On Thu, Jun 6, 2019 at 11:35 AM Rodney W. Grimes > > > wrote: > > >> > > >>> Author: asomers > > >>> Date: Thu Jun 6 15:04:50 20

svn commit: r348782 - head/share/examples/bhyve

2019-06-07 Thread Mark Johnston
Author: markj Date: Fri Jun 7 17:54:26 2019 New Revision: 348782 URL: https://svnweb.freebsd.org/changeset/base/348782 Log: vmrun: Add a missing close-paren to the usage message. MFC after:3 days Sponsored by: The FreeBSD Foundation Modified: head/share/examples/bhyve/vmrun.sh Mo

svn commit: r348785 - in head/sys: amd64/amd64 arm/arm arm/nvidia/drm2 compat/linuxkpi/common/src dev/drm2/ttm dev/ti dev/xen/gntdev i386/i386 mips/mips riscv/riscv vm

2019-06-07 Thread Mark Johnston
Author: markj Date: Fri Jun 7 18:23:29 2019 New Revision: 348785 URL: https://svnweb.freebsd.org/changeset/base/348785 Log: Replace uses of vm_page_unwire(m, PQ_NONE) with vm_page_unwire_noq(m). These calls are not the same in general: the former will dequeue the page if it is enqueued,

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