svn commit: r361032 - head/sys/vm

2020-05-14 Thread Mark Johnston
Author: markj Date: Thu May 14 16:06:54 2020 New Revision: 361032 URL: https://svnweb.freebsd.org/changeset/base/361032 Log: Allocate UMA per-CPU counters earlier. Otherwise anything counted before SI_SUB_VM_CONF is discarded. However, it is useful to be able to see stats from allocation

svn commit: r361033 - in head/sys: amd64/amd64 arm64/arm64 dev/acpica i386/i386 x86/acpica

2020-05-14 Thread Mark Johnston
Author: markj Date: Thu May 14 16:07:27 2020 New Revision: 361033 URL: https://svnweb.freebsd.org/changeset/base/361033 Log: Call acpi_pxm_set_proximity_info() slightly earlier on x86. This function is responsible for setting pc_domain in each pcpu structure. Call it from the main functi

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

2020-05-14 Thread Mark Johnston
Author: markj Date: Thu May 14 17:56:44 2020 New Revision: 361039 URL: https://svnweb.freebsd.org/changeset/base/361039 Log: Fix the i386 build after r361033. Reported by: Jenkins Modified: head/sys/i386/i386/mp_machdep.c Modified: head/sys/i386/i386/mp_machdep.c ==

Re: svn commit: r360918 - in head: . share/man/man4 sys/conf sys/dev/random sys/dev/ubsec sys/modules sys/modules/ubsec sys/sys

2020-05-15 Thread Mark Johnston
On Mon, May 11, 2020 at 08:30:29PM +, John Baldwin wrote: > Author: jhb > Date: Mon May 11 20:30:28 2020 > New Revision: 360918 > URL: https://svnweb.freebsd.org/changeset/base/360918 > > Log: > Remove ubsec(4). > > This driver was previously marked for deprecation in r360710. We still

svn commit: r361095 - in head/sys: net netpfil/pf

2020-05-15 Thread Mark Johnston
Author: markj Date: Sat May 16 00:28:12 2020 New Revision: 361095 URL: https://svnweb.freebsd.org/changeset/base/361095 Log: pf: Add a new zone for per-table entry counters. Right now we optionally allocate 8 counters per table entry, so in addition to memory consumed by counters, we requ

svn commit: r361253 - head

2020-05-19 Thread Mark Johnston
Author: markj Date: Tue May 19 13:54:33 2020 New Revision: 361253 URL: https://svnweb.freebsd.org/changeset/base/361253 Log: Belatedly add a RELNOTES entry for r347532. Modified: head/RELNOTES Modified: head/RELNOTES ===

svn commit: r361262 - head/sys/kern

2020-05-19 Thread Mark Johnston
Author: markj Date: Tue May 19 18:34:50 2020 New Revision: 361262 URL: https://svnweb.freebsd.org/changeset/base/361262 Log: Use the symbolic name for "modmetadata_set". MFC after:1 week Sponsored by: The FreeBSD Foundation Modified: head/sys/kern/kern_linker.c Modified: head/sys/

svn commit: r361263 - in head/sys: netinet sys

2020-05-19 Thread Mark Johnston
Author: markj Date: Tue May 19 18:35:08 2020 New Revision: 361263 URL: https://svnweb.freebsd.org/changeset/base/361263 Log: Define a module version for accept filter modules. Otherwise accept filters compiled into the kernel do not preempt preloaded accept filter modules. Then, the prel

svn commit: r361286 - in head/tests/sys: fifo kern/pipe

2020-05-20 Thread Mark Johnston
Author: markj Date: Wed May 20 17:48:18 2020 New Revision: 361286 URL: https://svnweb.freebsd.org/changeset/base/361286 Log: Avoid hard-coding pipe buffer sizes in the pipe and fifo kqueue tests. Fix some style issues in the modified tests while here. Reported by: Jenkins via lwhsu

svn commit: r361287 - in head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs: . sys

2020-05-20 Thread Mark Johnston
Author: markj Date: Wed May 20 18:29:23 2020 New Revision: 361287 URL: https://svnweb.freebsd.org/changeset/base/361287 Log: Don't block on the range lock in zfs_getpages(). After r358443 the vnode object lock no longer synchronizes concurrent zfs_getpages() and zfs_write() (which must up

Re: svn commit: r361287 - in head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs: . sys

2020-05-20 Thread Mark Johnston
On Wed, May 20, 2020 at 06:29:23PM +, Mark Johnston wrote: > Author: markj > Date: Wed May 20 18:29:23 2020 > New Revision: 361287 > URL: https://svnweb.freebsd.org/changeset/base/361287 > > Log: > Don't block on the range lock in zfs_getpages(). > > Aft

Re: svn commit: r361303 - in head: lib/libc/gen libexec/rtld-elf sys/sys

2020-05-21 Thread Mark Johnston
On Thu, May 21, 2020 at 04:41:52PM +0300, Konstantin Belousov wrote: > On Thu, May 21, 2020 at 03:02:07PM +0200, Antoine Brodin wrote: > > On Thu, May 21, 2020 at 12:08 AM Konstantin Belousov > > wrote: > > > > > > Author: kib > > > Date: Wed May 20 22:08:26 2020 > > > New Revision: 361303 > > >

Re: svn commit: r361303 - in head: lib/libc/gen libexec/rtld-elf sys/sys

2020-05-21 Thread Mark Johnston
On Thu, May 21, 2020 at 09:03:44AM -0700, John Baldwin wrote: > On 5/21/20 8:12 AM, Mark Johnston wrote: > > On Thu, May 21, 2020 at 04:41:52PM +0300, Konstantin Belousov wrote: > >> On Thu, May 21, 2020 at 03:02:07PM +0200, Antoine Brodin wrote: > >>> On Thu, May 2

Re: svn commit: r361303 - in head: lib/libc/gen libexec/rtld-elf sys/sys

2020-05-21 Thread Mark Johnston
On Thu, May 21, 2020 at 07:56:46PM +0300, Konstantin Belousov wrote: > On Thu, May 21, 2020 at 09:03:44AM -0700, John Baldwin wrote: > > On 5/21/20 8:12 AM, Mark Johnston wrote: > > > On Thu, May 21, 2020 at 04:41:52PM +0300, Konstantin Belousov wrote: > > >> On T

Re: svn commit: r361336 - head/sys/powerpc/aim

2020-05-21 Thread Mark Johnston
On Thu, May 21, 2020 at 03:53:17PM +, Brandon Bergren wrote: > Author: bdragon > Date: Thu May 21 15:53:16 2020 > New Revision: 361336 > URL: https://svnweb.freebsd.org/changeset/base/361336 > > Log: > [PowerPC] Fix kernel boot on powerpc > > Recent changes have caused the vmspace objec

Re: svn commit: r361303 - in head: lib/libc/gen libexec/rtld-elf sys/sys

2020-05-21 Thread Mark Johnston
On Thu, May 21, 2020 at 08:09:58PM +0300, Konstantin Belousov wrote: > On Thu, May 21, 2020 at 01:01:24PM -0400, Mark Johnston wrote: > > On Thu, May 21, 2020 at 07:56:46PM +0300, Konstantin Belousov wrote: > > > On Thu, May 21, 2020 at 09:03:44AM -0700, John Baldwin wrote: >

svn commit: r361338 - head/sys/sys

2020-05-21 Thread Mark Johnston
Author: markj Date: Thu May 21 18:38:41 2020 New Revision: 361338 URL: https://svnweb.freebsd.org/changeset/base/361338 Log: Fix ACCEPT_FILTER_DEFINE to pass the version to MODULE_VERSION. MFC with: r361263 Modified: head/sys/sys/socketvar.h Modified: head/sys/sys/socketvar.h ==

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

2020-05-21 Thread Mark Johnston
Author: markj Date: Fri May 22 01:18:55 2020 New Revision: 361352 URL: https://svnweb.freebsd.org/changeset/base/361352 Log: Fix the build after r361033 when ACPI is disabled. Reported by: Herbert J. Skuhra Modified: head/sys/amd64/amd64/mp_machdep.c head/sys/i386/i386/mp_machdep.c

Re: svn commit: r361352 - in head/sys: amd64/amd64 i386/i386

2020-05-22 Thread Mark Johnston
On Fri, May 22, 2020 at 06:10:59PM +0300, Konstantin Belousov wrote: > On Fri, May 22, 2020 at 01:18:55AM +0000, Mark Johnston wrote: > > Author: markj > > Date: Fri May 22 01:18:55 2020 > > New Revision: 361352 > > URL: https://svnweb.freebsd.org/changeset/base/361352

svn commit: r361595 - in head/sys: amd64/amd64 i386/i386 vm

2020-05-28 Thread Mark Johnston
Author: markj Date: Thu May 28 19:41:00 2020 New Revision: 361595 URL: https://svnweb.freebsd.org/changeset/base/361595 Log: Fix boot on systems where NUMA domain 0 is unpopulated. - Add vm_phys_early_add_seg(), complementing vm_phys_early_alloc(), to ensure that segments registered dur

svn commit: r361654 - head/usr.sbin/ctld

2020-05-30 Thread Mark Johnston
Author: markj Date: Sat May 30 19:11:41 2020 New Revision: 361654 URL: https://svnweb.freebsd.org/changeset/base/361654 Log: ctld: Fix a memory leak in uclparse_conf(). PR: 246596 Submitted by: Patryk MFC after:1 week Modified: head/usr.sbin/ctld/uclparse.c Modified:

svn commit: r361655 - head/usr.sbin/certctl

2020-05-30 Thread Mark Johnston
Author: markj Date: Sat May 30 19:15:29 2020 New Revision: 361655 URL: https://svnweb.freebsd.org/changeset/base/361655 Log: certctl.8: Correct the HISTORY section. certctl was merged to stable/12 after 12.1 was branched. PR: 246190 Reported by: Michael Osipov MFC after

svn commit: r361664 - head/sys/amd64/linux

2020-05-31 Thread Mark Johnston
Author: markj Date: Sun May 31 18:20:20 2020 New Revision: 361664 URL: https://svnweb.freebsd.org/changeset/base/361664 Log: Handle getcpu() calls in vsyscall emulation on amd64. linux_getcpu() has been implemented since r356241. PR: 246339 Submitted by: John Hay MFC aft

svn commit: r361694 - head/lib/libcasper/services/cap_fileargs

2020-06-01 Thread Mark Johnston
Author: markj Date: Mon Jun 1 15:32:13 2020 New Revision: 361694 URL: https://svnweb.freebsd.org/changeset/base/361694 Log: cap_fileargs: Fix a descriptor leak in the service process. The service handler for fileargs_open() tries to pre-open multiple files and pass descriptors for each b

svn commit: r361792 - in head: share/man/man4 sys/conf

2020-06-04 Thread Mark Johnston
Author: markj Date: Thu Jun 4 16:05:24 2020 New Revision: 361792 URL: https://svnweb.freebsd.org/changeset/base/361792 Log: Update vt(4) config option names to chase r303043. PR: 246080 Submitted by: David Marec MFC after:1 week Modified: head/share/man/man4/vt.4 he

svn commit: r361793 - head/sbin/dhclient

2020-06-04 Thread Mark Johnston
Author: markj Date: Thu Jun 4 16:24:13 2020 New Revision: 361793 URL: https://svnweb.freebsd.org/changeset/base/361793 Log: dhclient: Fix a logic bug remove_protocol(). A logic bug in remove_protocol() meant that it would remove (leak) all structures in the list preceding the one intende

svn commit: r361844 - head/lib/librtld_db

2020-06-05 Thread Mark Johnston
Author: markj Date: Fri Jun 5 18:44:14 2020 New Revision: 361844 URL: https://svnweb.freebsd.org/changeset/base/361844 Log: librtld_db: Handle anonymous mappings below the first file mapping. r360979 erroneously assumed that the lowest mapping in an address space would be a file mapping,

svn commit: r361945 - head/sys/compat/linux

2020-06-08 Thread Mark Johnston
Author: markj Date: Mon Jun 8 22:29:52 2020 New Revision: 361945 URL: https://svnweb.freebsd.org/changeset/base/361945 Log: Stop computing a "sharedram" value when emulating Linux sysinfo(2). The previous code was computing an incorrect value in a very expensive manner. "sharedram" is s

svn commit: r362035 - head/sys/kern

2020-06-10 Thread Mark Johnston
Author: markj Date: Wed Jun 10 23:52:29 2020 New Revision: 362035 URL: https://svnweb.freebsd.org/changeset/base/362035 Log: Remove the FIRMWARE_MAX limit. The firmware module arbitrarily limits us to at most 50 images. It is possible to hit this limit on platforms that preload many firm

svn commit: r362036 - head/sys/compat/linux

2020-06-10 Thread Mark Johnston
Author: markj Date: Wed Jun 10 23:52:39 2020 New Revision: 362036 URL: https://svnweb.freebsd.org/changeset/base/362036 Log: Add a comment reflecting the commit log for r361945. Suggested by: alc Reviewed by: alc MFC with: r361945 Modified: head/sys/compat/linux/linux_misc.c Mo

svn commit: r362037 - head/sys/compat/linux

2020-06-10 Thread Mark Johnston
Author: markj Date: Wed Jun 10 23:52:50 2020 New Revision: 362037 URL: https://svnweb.freebsd.org/changeset/base/362037 Log: Fix a couple of nits in Linux sysinfo(2) emulation. - Use the same definition of free memory as Linux. - Rename the totalbig and freebig fields to match the corresp

svn commit: r362038 - head/sys/modules/ice_ddp

2020-06-10 Thread Mark Johnston
Author: markj Date: Thu Jun 11 00:36:35 2020 New Revision: 362038 URL: https://svnweb.freebsd.org/changeset/base/362038 Log: Hard-code the ice_ddp firmware version. Like every other firmware image in the tree, the makefile will need to be updated to point to the newest import. Review

svn commit: r324285 - head/sys/compat/linuxkpi/common/include/linux

2017-10-04 Thread Mark Johnston
Author: markj Date: Wed Oct 4 17:29:08 2017 New Revision: 324285 URL: https://svnweb.freebsd.org/changeset/base/324285 Log: Add get_random_{int,long} to the LinuxKPI. Fix some whitespace bugs while here. Reviewed by: hselasky MFC after:1 week Differential Revision:htt

svn commit: r324373 - head/cddl/contrib/opensolaris/lib/libdtrace/common

2017-10-06 Thread Mark Johnston
Author: markj Date: Fri Oct 6 18:29:00 2017 New Revision: 324373 URL: https://svnweb.freebsd.org/changeset/base/324373 Log: Avoid adding an extra "0x" prefix before pointer formats. MFC after:1 week Modified: head/cddl/contrib/opensolaris/lib/libdtrace/common/dt_dis.c head/cddl/co

svn commit: r324377 - in head: share/man/man9 sys/kern sys/sys

2017-10-06 Thread Mark Johnston
Author: markj Date: Fri Oct 6 21:52:28 2017 New Revision: 324377 URL: https://svnweb.freebsd.org/changeset/base/324377 Log: Let stack_create(9) take a malloc flags argument. Reviewed by: cem Sponsored by: Dell EMC Isilon Differential Revision:https://reviews.freebsd.org/D12614

svn commit: r324606 - head/sys/compat/linuxkpi/common/src

2017-10-13 Thread Mark Johnston
Author: markj Date: Fri Oct 13 19:27:33 2017 New Revision: 324606 URL: https://svnweb.freebsd.org/changeset/base/324606 Log: Make the PHOLD in linux_wait_event_common() unconditional. After some in-progress work is committed, this would otherwise be the only instance of #if(n)def NO_SWAPP

Re: svn commit: r324541 - in head: share/man/man9 sys/kern sys/sys

2017-10-14 Thread Mark Johnston
On Fri, Oct 13, 2017 at 10:36:26PM -0700, Matt Joras wrote: > On 10/13/2017 22:12, Ngie Cooper (yaneurabeya) wrote: > >> Modified: head/sys/kern/subr_unit.c > >> == > >> --- head/sys/kern/subr_unit.c Wed Oct 11 20:36:2

svn commit: r324704 - head/sys/kern

2017-10-17 Thread Mark Johnston
Author: markj Date: Tue Oct 17 19:41:45 2017 New Revision: 324704 URL: https://svnweb.freebsd.org/changeset/base/324704 Log: Fix a racy VI_DOOMED check in MNT_VNODE_FOREACH_ALL(). MNT_VNODE_FOREACH_ALL() is supposed to avoid returning doomed vnodes, but the VI_DOOMED check it used was don

svn commit: r324722 - in head/sys: amd64/amd64 arm/arm arm64/arm64 i386/i386 kern mips/mips sparc64/sparc64 sys

2017-10-18 Thread Mark Johnston
Author: markj Date: Wed Oct 18 15:38:05 2017 New Revision: 324722 URL: https://svnweb.freebsd.org/changeset/base/324722 Log: Move kernel dump offset tracking into MI code. All of the kernel dump implementations keep track of the current offset ("dumplo") within the dump device. However, e

svn commit: r324804 - head/sys/kern

2017-10-20 Thread Mark Johnston
Author: markj Date: Fri Oct 20 14:56:13 2017 New Revision: 324804 URL: https://svnweb.freebsd.org/changeset/base/324804 Log: Avoid the nbp lookup in the final loop iteration in flushbuflist(). The end of the loop must re-lookup the next buf since the bufobj lock is dropped in the loop bod

svn commit: r324809 - head/sys/vm

2017-10-20 Thread Mark Johnston
Author: markj Date: Fri Oct 20 21:13:19 2017 New Revision: 324809 URL: https://svnweb.freebsd.org/changeset/base/324809 Log: Free the right address range if kmem_back() fails in memguard_alloc(). MFC after:1 week Sponsored by: Dell EMC Isilon Modified: head/sys/vm/memguard.c Modif

svn commit: r324864 - head/cddl/contrib/opensolaris/lib/libctf/common

2017-10-22 Thread Mark Johnston
Author: markj Date: Sun Oct 22 18:32:28 2017 New Revision: 324864 URL: https://svnweb.freebsd.org/changeset/base/324864 Log: MFV r323105 (partial): 8300 fix man page issues found by mandoc 1.14.1 illumos/illumos-gate@72d3dbb9ab4481606cb93caca98ba3b3a8eb6ce2 https://github.com/illumos/ill

svn commit: r324865 - head/cddl/contrib/opensolaris/lib/libctf/common

2017-10-22 Thread Mark Johnston
Author: markj Date: Sun Oct 22 19:17:25 2017 New Revision: 324865 URL: https://svnweb.freebsd.org/changeset/base/324865 Log: Address some miscellaneous issues in the CTF man page. - Fix a number of typos. - Replace some illumos-specific references. - Note that a type definition of kind

svn commit: r324868 - head/sys/fs/pseudofs

2017-10-22 Thread Mark Johnston
Author: markj Date: Sun Oct 22 20:22:11 2017 New Revision: 324868 URL: https://svnweb.freebsd.org/changeset/base/324868 Log: Delete declarations of struct pfs_bitmap, removed in r143841. MFC after:1 week Modified: head/sys/fs/pseudofs/pseudofs.h Modified: head/sys/fs/pseudofs/pseudo

svn commit: r324920 - in head/sys: amd64/amd64 arm/arm arm64/arm64 i386/i386

2017-10-23 Thread Mark Johnston
Author: markj Date: Mon Oct 23 15:34:05 2017 New Revision: 324920 URL: https://svnweb.freebsd.org/changeset/base/324920 Log: Fix the VM_NRESERVLEVEL == 0 build. Add VM_NRESERVLEVEL guards in the pmaps that implement transparent superpage promotion using reservations. Reviewed by: al

svn commit: r324923 - head/sys/sys

2017-10-23 Thread Mark Johnston
Author: markj Date: Mon Oct 23 16:02:48 2017 New Revision: 324923 URL: https://svnweb.freebsd.org/changeset/base/324923 Log: Remove resource_set_*() declarations from sys/bus.h. The corresponding definitions were removed in r78135. PR: 223189 Submitted by: marc.priggeme...@

svn commit: r324965 - in head: etc/defaults etc/rc.d sbin/dumpon sbin/savecore share/man/man5 sys/dev/null sys/geom sys/kern sys/sys

2017-10-24 Thread Mark Johnston
Author: markj Date: Wed Oct 25 00:51:00 2017 New Revision: 324965 URL: https://svnweb.freebsd.org/changeset/base/324965 Log: Add support for compressed kernel dumps. When using a kernel built with the GZIO config option, dumpon -z can be used to configure gzip compression using the in-ker

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

2017-10-25 Thread Mark Johnston
Author: markj Date: Wed Oct 25 17:20:18 2017 New Revision: 324992 URL: https://svnweb.freebsd.org/changeset/base/324992 Log: Make drain_output() use bufobj_wwait(). No functional change intended. Reviewed by: kib MFC after:1 week Differential Revision:https://reviews.f

svn commit: r325044 - head/sys/geom/mirror

2017-10-27 Thread Mark Johnston
Author: markj Date: Fri Oct 27 17:05:14 2017 New Revision: 325044 URL: https://svnweb.freebsd.org/changeset/base/325044 Log: Fix a lock leak in g_mirror_destroy(). g_mirror_destroy() is supposed to unlock the softc before indicating success, but it wasn't doing so if the caller raced with

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

2017-10-27 Thread Mark Johnston
Author: markj Date: Sat Oct 28 02:51:27 2017 New Revision: 325051 URL: https://svnweb.freebsd.org/changeset/base/325051 Log: Remove a stale and incorrect comment. MFC after:1 week Sponsored by: Dell EMC Isilon Modified: head/sys/ufs/ffs/ffs_softdep.c Modified: head/sys/ufs/ffs/ffs

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

2017-10-27 Thread Mark Johnston
Author: markj Date: Sat Oct 28 02:48:37 2017 New Revision: 325050 URL: https://svnweb.freebsd.org/changeset/base/325050 Log: Remove workqueue items after updating the workqueue tail pointer. When QUEUE_MACRO_DEBUG_TRASH is configured, the queue linkage fields are trashed upon removal of t

svn commit: r325528 - head/sys/vm

2017-11-07 Thread Mark Johnston
Author: markj Date: Wed Nov 8 01:53:03 2017 New Revision: 325528 URL: https://svnweb.freebsd.org/changeset/base/325528 Log: Correct the type of foff. No functional change intended. Github PR:124 Submitted by: Wuyang Chung MFC after:1 week Modified: head/sys/vm/vm_mmap.

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

2017-11-07 Thread Mark Johnston
On Wed, Nov 08, 2017 at 01:53:03AM +, Mark Johnston wrote: > Author: markj > Date: Wed Nov 8 01:53:03 2017 > New Revision: 325528 > URL: https://svnweb.freebsd.org/changeset/base/325528 > > Log: > Correct the type of foff. > > No functional change intended

svn commit: r325561 - head/sys/vm

2017-11-08 Thread Mark Johnston
Author: markj Date: Wed Nov 8 19:55:17 2017 New Revision: 325561 URL: https://svnweb.freebsd.org/changeset/base/325561 Log: Allow various page daemon parameters to be set from loader.conf. MFC after:1 week Modified: head/sys/vm/vm_pageout.c Modified: head/sys/vm/vm_pageout.c ==

Re: svn commit: r325721 - in head/sys: kern sys

2017-11-11 Thread Mark Johnston
On Sat, Nov 11, 2017 at 06:04:40PM +, Mateusz Guzik wrote: > Author: mjg > Date: Sat Nov 11 18:04:39 2017 > New Revision: 325721 > URL: https://svnweb.freebsd.org/changeset/base/325721 > > Log: > Add pfind_any > > It looks for both regular and zombie processes. This avoids allproc > re

svn commit: r325886 - head/cddl/contrib/opensolaris/lib/libdtrace/common

2017-11-15 Thread Mark Johnston
Author: markj Date: Thu Nov 16 07:14:29 2017 New Revision: 325886 URL: https://svnweb.freebsd.org/changeset/base/325886 Log: Take r313504 into account when recomputing the string table length. When we encounter a USDT probe in a weak symbol, we emit an alias for the probe function symbol.

svn commit: r325887 - in head/sys/cddl: compat/opensolaris/kern contrib/opensolaris/uts/intel/dtrace

2017-11-15 Thread Mark Johnston
Author: markj Date: Thu Nov 16 07:25:12 2017 New Revision: 325887 URL: https://svnweb.freebsd.org/changeset/base/325887 Log: Avoid holding the process in uread() and uwrite(). In general, higher-level code will atomically verify that the process is not exiting and hold the process. In one

svn commit: r326055 - head/sys/vm

2017-11-21 Thread Mark Johnston
Author: markj Date: Tue Nov 21 13:17:40 2017 New Revision: 326055 URL: https://svnweb.freebsd.org/changeset/base/326055 Log: Allow for fictitious physical pages in vm_page_scan_contig(). Some drm2 drivers will set PG_FICTITIOUS in physical pages in order to satisfy the OBJT_MGTDEVICE obje

svn commit: r326060 - in head: share/man/man9 sys/kern sys/sys

2017-11-21 Thread Mark Johnston
Author: markj Date: Tue Nov 21 14:59:23 2017 New Revision: 326060 URL: https://svnweb.freebsd.org/changeset/base/326060 Log: Clean up the SYSINIT_FLAGS definitions for rwlock(9) and rmlock(9). Avoid duplication in their macro definitions, and document them. No functional change intended.

svn commit: r326061 - head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pid

2017-11-21 Thread Mark Johnston
Author: markj Date: Tue Nov 21 15:03:38 2017 New Revision: 326061 URL: https://svnweb.freebsd.org/changeset/base/326061 Log: Don't assume that we can resolve "main" in the ksh executable. MFC after:1 week Modified: head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pid/err.D_P

svn commit: r326063 - head/cddl/usr.sbin/dtrace/tests/tools

2017-11-21 Thread Mark Johnston
Author: markj Date: Tue Nov 21 16:00:18 2017 New Revision: 326063 URL: https://svnweb.freebsd.org/changeset/base/326063 Log: Annotate usdt/tst.eliminate.ksh as EXFAIL. It appears to depend on some behaviour specific to the Sun link editor. MFC after:1 week Modified: head/cddl/us

svn commit: r326064 - in head/lib/libproc: . tests

2017-11-21 Thread Mark Johnston
proc_sym.c == --- head/lib/libproc/proc_sym.c Tue Nov 21 16:00:18 2017(r326063) +++ head/lib/libproc/proc_sym.c Tue Nov 21 16:03:21 2017(r326064) @@ -1,5 +1,5 @@ /*- - * Copyright (c) 2016 Mark Johnston + * Copyright (c) 2016

svn commit: r326093 - head/sys/netinet

2017-11-22 Thread Mark Johnston
Author: markj Date: Wed Nov 22 14:13:40 2017 New Revision: 326093 URL: https://svnweb.freebsd.org/changeset/base/326093 Log: Use the right variable for the IP header parameter to tcp:::send. This addresses a regression from r311225. MFC after:1 week Modified: head/sys/netinet/tc

svn commit: r326096 - head/cddl/usr.sbin/dtrace/tests/tools

2017-11-22 Thread Mark Johnston
Author: markj Date: Wed Nov 22 15:54:52 2017 New Revision: 326096 URL: https://svnweb.freebsd.org/changeset/base/326096 Log: Annotate pragma/err.invalidlibdep.ksh as EXFAIL. The test creates a D library with a "depends_on library" pragma referencing a non-existent library, and expects com

svn commit: r326132 - head/sys/geom/mirror

2017-11-23 Thread Mark Johnston
Author: markj Date: Thu Nov 23 14:07:52 2017 New Revision: 326132 URL: https://svnweb.freebsd.org/changeset/base/326132 Log: Allow kern.geom.mirror.debug to be negative. A negative value can be used to suppress all prints from the gmirror kernel code, which can be useful when attempting t

svn commit: r326134 - head/sys/cddl/contrib/opensolaris/uts/common/dtrace

2017-11-23 Thread Mark Johnston
Author: markj Date: Thu Nov 23 14:29:07 2017 New Revision: 326134 URL: https://svnweb.freebsd.org/changeset/base/326134 Log: Duplicate helpers after disabling inherited tracepoints during a fork. We may create probes in the nascent child process, so we first need to ensure that any inheri

Re: svn commit: r326169 - in head: . contrib/ofed lib/libc/locale share/mk sys/amd64/amd64 sys/amd64/conf sys/conf sys/contrib/rdma/krping sys/dev/cxgbe sys/dev/cxgbe/common sys/dev/cxgbe/iw_cxgbe sys

2017-11-24 Thread Mark Johnston
On Fri, Nov 24, 2017 at 02:50:28PM +, Hans Petter Selasky wrote: > Author: hselasky > Date: Fri Nov 24 14:50:28 2017 > New Revision: 326169 > URL: https://svnweb.freebsd.org/changeset/base/326169 > > Log: > RoCE/infiniband upgrade to Linux v4.9 for kernel and userspace. Nice! > > This

Re: svn commit: r326169 - in head: . contrib/ofed lib/libc/locale share/mk sys/amd64/amd64 sys/amd64/conf sys/conf sys/contrib/rdma/krping sys/dev/cxgbe sys/dev/cxgbe/common sys/dev/cxgbe/iw_cxgbe sys

2017-11-24 Thread Mark Johnston
On Fri, Nov 24, 2017 at 06:09:25PM +0100, Hans Petter Selasky wrote: > On 11/24/17 16:00, Mark Johnston wrote: > > Are there non-trivial interoperability issues between mthca and the > > updated OFED stack? If so, could you describe them? If not, I would > > strongly prefe

Re: svn commit: r326169 - in head: . contrib/ofed lib/libc/locale share/mk sys/amd64/amd64 sys/amd64/conf sys/conf sys/contrib/rdma/krping sys/dev/cxgbe sys/dev/cxgbe/common sys/dev/cxgbe/iw_cxgbe sys

2017-11-24 Thread Mark Johnston
On Fri, Nov 24, 2017 at 06:29:25PM +0100, Hans Petter Selasky wrote: > On 11/24/17 18:22, Mark Johnston wrote: > > On Fri, Nov 24, 2017 at 06:09:25PM +0100, Hans Petter Selasky wrote: > >> On 11/24/17 16:00, Mark Johnston wrote: > >>> Are there non-trivial interoperab

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

2017-11-24 Thread Mark Johnston
Author: markj Date: Fri Nov 24 17:57:00 2017 New Revision: 326173 URL: https://svnweb.freebsd.org/changeset/base/326173 Log: Fix typos. MFC after:3 days Modified: head/share/man/man4/dtrace_lockstat.4 Modified: head/share/man/man4/dtrace_lockstat.4 ==

svn commit: r326175 - head/sys/kern

2017-11-24 Thread Mark Johnston
Author: markj Date: Fri Nov 24 19:02:06 2017 New Revision: 326175 URL: https://svnweb.freebsd.org/changeset/base/326175 Log: Add a missing lockstat:::sx-downgrade probe. We were returning without firing the probe when the lock had no shared waiters. MFC after:1 week Modified:

svn commit: r326176 - head/sys/kern

2017-11-24 Thread Mark Johnston
Author: markj Date: Fri Nov 24 19:04:31 2017 New Revision: 326176 URL: https://svnweb.freebsd.org/changeset/base/326176 Log: Have lockstat:::sx-release fire only after the lock state has changed. MFC after:1 week Modified: head/sys/kern/kern_sx.c Modified: head/sys/kern/kern_sx.c ==

svn commit: r326177 - head/cddl/contrib/opensolaris/lib/libdtrace/common

2017-11-24 Thread Mark Johnston
Author: markj Date: Fri Nov 24 19:05:45 2017 New Revision: 326177 URL: https://svnweb.freebsd.org/changeset/base/326177 Log: Fix the type signature for sx(9) DTrace subroutines. MFC after:1 week Modified: head/cddl/contrib/opensolaris/lib/libdtrace/common/dt_open.c Modified: head/cd

svn commit: r326178 - head/sys/modules/dtrace/dtrace_test

2017-11-24 Thread Mark Johnston
Author: markj Date: Fri Nov 24 19:08:54 2017 New Revision: 326178 URL: https://svnweb.freebsd.org/changeset/base/326178 Log: Don't redefine _KERNEL. MFC after:1 week Modified: head/sys/modules/dtrace/dtrace_test/Makefile Modified: head/sys/modules/dtrace/dtrace_test/Makefile ===

svn commit: r326181 - in head/cddl: contrib/opensolaris/cmd/dtrace/test/tst/common/uctf usr.sbin/dtrace/tests/common/probes usr.sbin/dtrace/tests/common/speculation usr.sbin/dtrace/tests/common/uct...

2017-11-24 Thread Mark Johnston
Author: markj Date: Fri Nov 24 19:57:13 2017 New Revision: 326181 URL: https://svnweb.freebsd.org/changeset/base/326181 Log: Compile one of the uctf test programs with -m32. The err.user64mode.ksh test expects it to run as a 32-bit process. MFC after:1 week Modified: head/cddl/

svn commit: r326234 - head/sys/vm

2017-11-26 Thread Mark Johnston
Author: markj Date: Sun Nov 26 19:16:45 2017 New Revision: 326234 URL: https://svnweb.freebsd.org/changeset/base/326234 Log: Remove unneeded initializations from vm_phys_init_page(). The page allocator always initializes the aflags and oflags fields. Reviewed by: alc, kib MFC after:

svn commit: r326235 - head/sys/vm

2017-11-26 Thread Mark Johnston
Author: markj Date: Sun Nov 26 19:17:55 2017 New Revision: 326235 URL: https://svnweb.freebsd.org/changeset/base/326235 Log: Move vm_phys_init_page() to vm_page.c. Suggested by: kib Reviewed by: alc, kib MFC after:1 week Differential Revision:https://reviews.freebsd.org/D

svn commit: r326284 - head/sys/vm

2017-11-27 Thread Mark Johnston
Author: markj Date: Mon Nov 27 17:46:38 2017 New Revision: 326284 URL: https://svnweb.freebsd.org/changeset/base/326284 Log: Avoid unnecessary lookups when initializing the vm_page array. This gives a marginal improvement in the vm_page_array initialization time. Also garbage-collect the

svn commit: r326285 - in head/cddl: contrib/opensolaris/cmd/dtrace/test/tst/common/uctf usr.sbin/dtrace/tests/common/probes usr.sbin/dtrace/tests/common/speculation usr.sbin/dtrace/tests/common/uct...

2017-11-27 Thread Mark Johnston
Author: markj Date: Mon Nov 27 17:54:17 2017 New Revision: 326285 URL: https://svnweb.freebsd.org/changeset/base/326285 Log: Revert r326181 for now. We can't link an executable using -m32 until the lib32 phase of a buildworld, though the build works fine when executing make from cddl/us

svn commit: r326286 - head/sys/cddl/dev/dtrace

2017-11-27 Thread Mark Johnston
Author: markj Date: Mon Nov 27 18:42:23 2017 New Revision: 326286 URL: https://svnweb.freebsd.org/changeset/base/326286 Log: Don't use pcpu_find() to determine if a CPU ID is valid. This addresses assertion failures after r326218. MFC after:1 week Modified: head/sys/cddl/dev/dtr

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

2020-02-05 Thread Mark Johnston
Author: markj Date: Wed Feb 5 16:09:02 2020 New Revision: 357573 URL: https://svnweb.freebsd.org/changeset/base/357573 Log: Fix map locking in the CLEAR_PKRU sysarch(2) handler. Reported and tested by: pho MFC after:1 week Sponsored by: The FreeBSD Foundation Modified: hea

svn commit: r357574 - head/sys/kern

2020-02-05 Thread Mark Johnston
Author: markj Date: Wed Feb 5 16:09:21 2020 New Revision: 357574 URL: https://svnweb.freebsd.org/changeset/base/357574 Log: Avoid releasing object PIP in vn_sendfile() if no pages were grabbed. sendfile(2) optionally takes a set of headers that get prepended to the file data. If the req

svn commit: r357575 - head/lib/libc/net

2020-02-05 Thread Mark Johnston
Author: markj Date: Wed Feb 5 16:09:44 2020 New Revision: 357575 URL: https://svnweb.freebsd.org/changeset/base/357575 Log: Improve validation of the sockaddr length in iruserok_sa(). Negative numbers are not valid sockaddr lengths. PR: 243747 Submitted by: Andrew Reiter

svn commit: r357576 - head/lib/libc/rpc

2020-02-05 Thread Mark Johnston
Author: markj Date: Wed Feb 5 16:10:09 2020 New Revision: 357576 URL: https://svnweb.freebsd.org/changeset/base/357576 Log: Fix a use of an uninitialized pointer in xdr_rpcbs_rmtcalllist(). This appears to have been introduced in r173763. Also fix the confusing indentation that probably

svn commit: r357586 - in head/sys/modules/dtrace: dtrace fasttrap

2020-02-05 Thread Mark Johnston
Author: markj Date: Wed Feb 5 19:08:45 2020 New Revision: 357586 URL: https://svnweb.freebsd.org/changeset/base/357586 Log: Stop compiling dtrace modules with -DSMP. I believe this is left over from when dtrace was being ported and developed out-of-tree. Now it just ensures that dtrace.

svn commit: r357585 - in head/sys: amd64/include arm/include arm64/include i386/include powerpc/include riscv/include

2020-02-05 Thread Mark Johnston
Author: markj Date: Wed Feb 5 19:08:21 2020 New Revision: 357585 URL: https://svnweb.freebsd.org/changeset/base/357585 Log: Define MAXCPU consistently between the kernel and KLDs. This reverts r177661. The change is no longer very useful since out-of-tree KLDs will be built to target SM

svn commit: r357598 - head/sys/conf

2020-02-05 Thread Mark Johnston
Author: markj Date: Wed Feb 5 20:57:45 2020 New Revision: 357598 URL: https://svnweb.freebsd.org/changeset/base/357598 Log: Define SMP for standalone module builds. Suggested and reviewed by:kevans Differential Revision:https://reviews.freebsd.org/D23519 Modified: head/sys

Re: svn commit: r356818 - in head/sys/geom: . concat eli gate journal linux_lvm mirror nop part raid raid3 shsec stripe

2020-02-06 Thread Mark Johnston
On Fri, Jan 17, 2020 at 01:15:55AM +, Warner Losh wrote: > Author: imp > Date: Fri Jan 17 01:15:55 2020 > New Revision: 356818 > URL: https://svnweb.freebsd.org/changeset/base/356818 > > Log: > Pass BIO_SPEEDUP through all the geom layers > > While some geom layers pass unknown commands

svn commit: r357642 - in head/sys/modules: ix ixv lio oce vmm

2020-02-06 Thread Mark Johnston
Author: markj Date: Thu Feb 6 21:01:19 2020 New Revision: 357642 URL: https://svnweb.freebsd.org/changeset/base/357642 Log: Remove more manual additions of -DSMP. Since r357598 this should no longer be necessary. Modified: head/sys/modules/ix/Makefile head/sys/modules/ixv/Makefile h

svn commit: r357776 - head/sys/vm

2020-02-11 Thread Mark Johnston
Author: markj Date: Tue Feb 11 20:06:33 2020 New Revision: 357776 URL: https://svnweb.freebsd.org/changeset/base/357776 Log: Reduce lock hold time in keg_drain(). Maintain a count of free slabs in the per-domain keg structure and use that to clear the free slab list in constant time for m

svn commit: r357777 - head/lib/libmemstat

2020-02-11 Thread Mark Johnston
Author: markj Date: Tue Feb 11 20:15:49 2020 New Revision: 35 URL: https://svnweb.freebsd.org/changeset/base/35 Log: libmemstat: Catch up with r357776. Reported by: O. Hartmann Modified: head/lib/libmemstat/memstat_uma.c Modified: head/lib/libmemstat/memstat_uma.c

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

2020-02-11 Thread Mark Johnston
On Tue, Feb 11, 2020 at 09:12:18PM +0100, O. Hartmann wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Am Tue, 11 Feb 2020 20:06:33 +0000 (UTC) > Mark Johnston schrieb: > > > Author: markj > > Date: Tue Feb 11 20:06:33 2020 > >

svn commit: r357892 - head/sys/vm

2020-02-13 Thread Mark Johnston
Author: markj Date: Thu Feb 13 23:15:21 2020 New Revision: 357892 URL: https://svnweb.freebsd.org/changeset/base/357892 Log: Update the zone-global count of cached items in bucket_cache_reclaim(). This was missed in r351673. The count is used to enfore cache limits, which are rarely used

svn commit: r357893 - head/sys/vm

2020-02-13 Thread Mark Johnston
Author: markj Date: Thu Feb 13 23:18:35 2020 New Revision: 357893 URL: https://svnweb.freebsd.org/changeset/base/357893 Log: Fix handling of WAITFAIL in vm_page_grab() and vm_page_grab_pages(). After sleeping through a memory shortage, we must return NULL rather than retry. Discussed

svn commit: r358024 - head/sys/vm

2020-02-17 Thread Mark Johnston
Author: markj Date: Mon Feb 17 15:09:40 2020 New Revision: 358024 URL: https://svnweb.freebsd.org/changeset/base/358024 Log: Fix object locking races in swapoff(2). swap_pager_swapoff_object()'s goal is to allocate pages for all valid swap blocks belonging to the object, for which there i

svn commit: r358025 - head/sys/vm

2020-02-17 Thread Mark Johnston
Author: markj Date: Mon Feb 17 15:10:41 2020 New Revision: 358025 URL: https://svnweb.freebsd.org/changeset/base/358025 Log: Fix a swap block allocation race. putpages' allocation of swap blocks is done under the global sw_dev lock. Previously it would drop that lock before inserting the

svn commit: r358026 - in head: lib/libkvm sys/vm

2020-02-17 Thread Mark Johnston
Author: markj Date: Mon Feb 17 15:11:07 2020 New Revision: 358026 URL: https://svnweb.freebsd.org/changeset/base/358026 Log: Remove swblk_t. It was used only to store the bounds of each swap device. However, since swblk_t is a signed 32-bit int and daddr_t is a signed 64-bit int, swp_p

svn commit: r358249 - head/sys/vm

2020-02-22 Thread Mark Johnston
Author: markj Date: Sat Feb 22 17:44:28 2020 New Revision: 358249 URL: https://svnweb.freebsd.org/changeset/base/358249 Log: Constify uma_zcache_create() and uma_zsecond_create()'s "name" argument. It is already internally handled as a pointer to a const string, in particular by uma_zcrea

svn commit: r358261 - head/sys/vm

2020-02-23 Thread Mark Johnston
Author: markj Date: Sun Feb 23 17:59:51 2020 New Revision: 358261 URL: https://svnweb.freebsd.org/changeset/base/358261 Log: Allow swap_pager_putpages() to allocate one block at a time. The minimum allocation size of 4 blocks is an old policy that came with the "new" swap pager in r42957.

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

2020-02-28 Thread Mark Johnston
e is newly added) +++ head/sys/sys/_blockcount.h Fri Feb 28 16:05:18 2020(r358432) @@ -0,0 +1,52 @@ +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * + * Copyright (c) 2020 The FreeBSD Foundation + * + * This software was developed by Mark Johnston under sponsorship from + * the Fr

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