svn commit: r352832 - head/sys/powerpc/booke

2019-09-27 Thread Justin Hibbits
Author: jhibbits Date: Sat Sep 28 03:33:07 2019 New Revision: 352832 URL: https://svnweb.freebsd.org/changeset/base/352832 Log: powerpc/booke64: Align initial stack setting to match that of aim64's Clang9/LLD9 appears to get quite confused with the instruction stream used to obtain the tm

svn commit: r352831 - head/sys/contrib/ncsw/Peripherals/BM

2019-09-27 Thread Justin Hibbits
Author: jhibbits Date: Sat Sep 28 02:49:46 2019 New Revision: 352831 URL: https://svnweb.freebsd.org/changeset/base/352831 Log: dpaa(4): Fix memcpy size for threshold copy in NCSW contrib On 64-bit platforms uintptr_t makes the copy twice as large as it should be. This code isn't actually

svn commit: r352830 - stable/12/sys/kern

2019-09-27 Thread Alexander Motin
Author: mav Date: Sat Sep 28 02:15:23 2019 New Revision: 352830 URL: https://svnweb.freebsd.org/changeset/base/352830 Log: MFC r352579: Allocate callout wheel from the respective memory domain. Modified: stable/12/sys/kern/kern_timeout.c Directory Properties: stable/12/ (props changed) M

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: r352828 - stable/12/usr.sbin/pciconf

2019-09-27 Thread Alexander Motin
Author: mav Date: Sat Sep 28 01:31:33 2019 New Revision: 352828 URL: https://svnweb.freebsd.org/changeset/base/352828 Log: MFC r351422: Report Clock Power Management support and status. Since we already report ASPM, why not to go further. Modified: stable/12/usr.sbin/pciconf/cap.c Direct

Re: svn commit: r352795 - head/lib/libc/sys

2019-09-27 Thread Mateusz Guzik
On 9/27/19, Warner Losh wrote: > On Fri, Sep 27, 2019 at 2:38 PM Mateusz Guzik wrote: > >> On 9/27/19, Konstantin Belousov wrote: >> > On Fri, Sep 27, 2019 at 08:32:20PM +0200, Mateusz Guzik wrote: >> >> On 9/27/19, Warner Losh wrote: >> >> > Document varadic args as int, since you can't have

svn commit: r352827 - stable/12/sys/dev/ioat

2019-09-27 Thread Alexander Motin
Author: mav Date: Sat Sep 28 00:59:39 2019 New Revision: 352827 URL: https://svnweb.freebsd.org/changeset/base/352827 Log: MFC r352544: Improve ioat(4) NUMA-awareness. Allocate ioat->ring memory from the device domain. Schedule ioat->poll_timer to the first CPU of the device domain.

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: r352824 - stable/12/sys/conf

2019-09-27 Thread Li-Wen Hsu
Author: lwhsu Date: Fri Sep 27 22:11:50 2019 New Revision: 352824 URL: https://svnweb.freebsd.org/changeset/base/352824 Log: MFC r352635: Clean LINT* kernel configurations for arm* Sponsored by: The FreeBSD Foundation Modified: stable/12/sys/conf/makeLINT.mk Directory Properties:

Re: svn commit: r352795 - head/lib/libc/sys

2019-09-27 Thread Warner Losh
On Fri, Sep 27, 2019 at 2:38 PM Mateusz Guzik wrote: > On 9/27/19, Konstantin Belousov wrote: > > On Fri, Sep 27, 2019 at 08:32:20PM +0200, Mateusz Guzik wrote: > >> On 9/27/19, Warner Losh wrote: > >> > Document varadic args as int, since you can't have short varadic > args > >> > (they are

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: r352821 - head/tools/tools/nanobsd

2019-09-27 Thread Warner Losh
Author: imp Date: Fri Sep 27 20:56:44 2019 New Revision: 352821 URL: https://svnweb.freebsd.org/changeset/base/352821 Log: Push and pop xtrace correctly for run_early_customize run_early_customize is run as a shell list, not as a subshell, so that the side effects of setting variables ca

svn commit: r352822 - head/tools/tools/nanobsd

2019-09-27 Thread Warner Losh
Author: imp Date: Fri Sep 27 20:56:49 2019 New Revision: 352822 URL: https://svnweb.freebsd.org/changeset/base/352822 Log: Use set -o xtrace in preference to set -x for consistency with the rest of nanobsd.sh. Modified: head/tools/tools/nanobsd/defaults.sh Modified: head/tools/tools/nanobs

svn commit: r352820 - head/tools/tools/nanobsd

2019-09-27 Thread Warner Losh
Author: imp Date: Fri Sep 27 20:56:31 2019 New Revision: 352820 URL: https://svnweb.freebsd.org/changeset/base/352820 Log: Remove workaround for building on FreeBSD hosts prior to FreeBSD 10. rm -x was introduced in the FreeBSD 10 time frame. 4 years ago I added a function to cope with bu

svn commit: r352819 - head/usr.bin/top

2019-09-27 Thread Dimitry Andric
Author: dim Date: Fri Sep 27 20:53:31 2019 New Revision: 352819 URL: https://svnweb.freebsd.org/changeset/base/352819 Log: Allow entering fractional delays in top(1) interactive mode. This uses the same logic as with the -s option, first validating the entered value, then storing the resu

Re: svn commit: r352795 - head/lib/libc/sys

2019-09-27 Thread Mateusz Guzik
On 9/27/19, Konstantin Belousov wrote: > On Fri, Sep 27, 2019 at 08:32:20PM +0200, Mateusz Guzik wrote: >> On 9/27/19, Warner Losh wrote: >> > Document varadic args as int, since you can't have short varadic args >> > (they are >> > promoted to ints). >> > >> > - `mode_t` is `uint16_t` (`sy

Re: svn commit: r352795 - head/lib/libc/sys

2019-09-27 Thread Bruce Evans
On Fri, 27 Sep 2019, Konstantin Belousov wrote: On Fri, Sep 27, 2019 at 08:32:20PM +0200, Mateusz Guzik wrote: On 9/27/19, Warner Losh wrote: Author: imp Date: Fri Sep 27 16:11:47 2019 New Revision: 352795 URL: https://svnweb.freebsd.org/changeset/base/352795 Log: Document varadic args as

svn commit: r352818 - head/usr.bin/top

2019-09-27 Thread Dimitry Andric
Author: dim Date: Fri Sep 27 20:20:21 2019 New Revision: 352818 URL: https://svnweb.freebsd.org/changeset/base/352818 Log: Make fractional delays for top(1) work for interactive mode. In r334906, the -s option was changed to allow fractional times, but this only functioned correctly for b

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

2019-09-27 Thread Andrew Gallatin
Author: gallatin Date: Fri Sep 27 20:08:19 2019 New Revision: 352816 URL: https://svnweb.freebsd.org/changeset/base/352816 Log: kTLS: Fix a bug where we would not encrypt anon data inplace. Software Kernel TLS needs to allocate a new destination crypto buffer when encrypting data from the

svn commit: r352815 - head/tools/tools/controlelf

2019-09-27 Thread Ed Maste
Author: emaste Date: Fri Sep 27 19:26:52 2019 New Revision: 352815 URL: https://svnweb.freebsd.org/changeset/base/352815 Log: controlelf: update man page Some minor corrections, clarifications or rewording. Modified: head/tools/tools/controlelf/controlelf.1 Modified: head/tools/tools/co

svn commit: r352814 - in head/sys: kern net opencrypto sys

2019-09-27 Thread Andrew Gallatin
Author: gallatin Date: Fri Sep 27 19:17:40 2019 New Revision: 352814 URL: https://svnweb.freebsd.org/changeset/base/352814 Log: kTLS support for TLS 1.3 TLS 1.3 requires a few changes because 1.3 pretends to be 1.2 with a record type of application data. The "real" record type is then i

svn commit: r352813 - head/sys/kern

2019-09-27 Thread Mateusz Guzik
Author: mjg Date: Fri Sep 27 19:14:03 2019 New Revision: 352813 URL: https://svnweb.freebsd.org/changeset/base/352813 Log: cache: decrease ncnegfactor to 5 The current mechanism is bogus in several ways: - the limit is a percentage of total entries added, which means negative entries ge

svn commit: r352812 - head/sys/kern

2019-09-27 Thread Mateusz Guzik
Author: mjg Date: Fri Sep 27 19:13:22 2019 New Revision: 352812 URL: https://svnweb.freebsd.org/changeset/base/352812 Log: cache: stop requeuing negative entries on the hot list Turns out it does not improve hit ratio, but it does come with a cost induces stemming from dirtying hit entrie

svn commit: r352811 - head/sys/kern

2019-09-27 Thread Mateusz Guzik
Author: mjg Date: Fri Sep 27 19:12:43 2019 New Revision: 352811 URL: https://svnweb.freebsd.org/changeset/base/352811 Log: cache: make negative list shrinking a little bit concurrent Continue protecting demotion from the hotlist and selection of the target list with the ncneg_shrink_lock

svn commit: r352810 - head/sys/kern

2019-09-27 Thread Mateusz Guzik
Author: mjg Date: Fri Sep 27 19:12:20 2019 New Revision: 352810 URL: https://svnweb.freebsd.org/changeset/base/352810 Log: cache: stop recalculating upper limit each time a new entry is added Sponsored by: The FreeBSD Foundation Modified: head/sys/kern/vfs_cache.c Modified: head/sys/ker

svn commit: r352809 - head/tools/tools/controlelf

2019-09-27 Thread Ed Maste
Author: emaste Date: Fri Sep 27 19:07:11 2019 New Revision: 352809 URL: https://svnweb.freebsd.org/changeset/base/352809 Log: controlelf: exit with error if file endianness does not match host We need to add support for cross-endian operation, but until that's done just exit with an error

svn commit: r352808 - head/tools/tools/controlelf

2019-09-27 Thread Ed Maste
Author: emaste Date: Fri Sep 27 18:49:13 2019 New Revision: 352808 URL: https://svnweb.freebsd.org/changeset/base/352808 Log: controlelf: simplify feature string parsing Also add error handling on failure to seek/write updated value. Modified: head/tools/tools/controlelf/controlelf.c Mo

Re: svn commit: r352795 - head/lib/libc/sys

2019-09-27 Thread Konstantin Belousov
On Fri, Sep 27, 2019 at 08:32:20PM +0200, Mateusz Guzik wrote: > On 9/27/19, Warner Losh wrote: > > Author: imp > > Date: Fri Sep 27 16:11:47 2019 > > New Revision: 352795 > > URL: https://svnweb.freebsd.org/changeset/base/352795 > > > > Log: > > Document varadic args as int, since you can't hav

svn commit: r352807 - in head/sys: amd64/amd64 amd64/vmm arm/arm arm64/arm64 i386/i386 kern mips/mips powerpc/powerpc riscv/riscv sparc64/sparc64 sys vm

2019-09-27 Thread Konstantin Belousov
Author: kib Date: Fri Sep 27 18:43:36 2019 New Revision: 352807 URL: https://svnweb.freebsd.org/changeset/base/352807 Log: Improve MD page fault handlers. Centralize calculation of signal and ucode delivered on unhandled page fault in new function vm_fault_trap(). MD trap_pfault() now al

svn commit: r352806 - head/tools/tools/controlelf

2019-09-27 Thread Ed Maste
Author: emaste Date: Fri Sep 27 18:39:05 2019 New Revision: 352806 URL: https://svnweb.freebsd.org/changeset/base/352806 Log: controlelf: tidy up option parsing Sponsored by: The FreeBSD Foundation Modified: head/tools/tools/controlelf/controlelf.c Modified: head/tools/tools/controlelf/

Re: svn commit: r352795 - head/lib/libc/sys

2019-09-27 Thread Mateusz Guzik
On 9/27/19, Warner Losh wrote: > Author: imp > Date: Fri Sep 27 16:11:47 2019 > New Revision: 352795 > URL: https://svnweb.freebsd.org/changeset/base/352795 > > Log: > Document varadic args as int, since you can't have short varadic args > (they are > promoted to ints). > > - `mode_t` is `ui

svn commit: r352805 - head/tools/tools/controlelf

2019-09-27 Thread Ed Maste
Author: emaste Date: Fri Sep 27 17:28:25 2019 New Revision: 352805 URL: https://svnweb.freebsd.org/changeset/base/352805 Log: controlelf: add protmax control Sponsored by: The FreeBSD Foundation Modified: head/tools/tools/controlelf/controlelf.c Modified: head/tools/tools/controlelf/con

svn commit: r352804 - head/usr.bin/top

2019-09-27 Thread Dimitry Andric
Author: dim Date: Fri Sep 27 17:11:21 2019 New Revision: 352804 URL: https://svnweb.freebsd.org/changeset/base/352804 Log: Correct the final argument name in the top(1) manpage. The description talks about 'number', while the final argument was 'count'. Since 'count' is already used for

svn commit: r352803 - head/tools/tools/controlelf

2019-09-27 Thread Ed Maste
Author: emaste Date: Fri Sep 27 16:57:32 2019 New Revision: 352803 URL: https://svnweb.freebsd.org/changeset/base/352803 Log: controlelf: some style(9) cleanup Submitted by: clang-format Modified: head/tools/tools/controlelf/controlelf.c Modified: head/tools/tools/controlelf/controlelf.

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: r352801 - head/tools/tools/controlelf

2019-09-27 Thread Ed Maste
Author: emaste Date: Fri Sep 27 16:44:29 2019 New Revision: 352801 URL: https://svnweb.freebsd.org/changeset/base/352801 Log: controlelf: install standard BSD 2 clause license Reported by: kaktus Sponsored by: The FreeBSD Foundation Modified: head/tools/tools/controlelf/controlelf.c

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

Re: svn commit: r352757 - in head: lib/libc/sys lib/libregex/tests stand/lua tests/sys/kern

2019-09-27 Thread Rodney W. Grimes
> Author: kevans > Date: Thu Sep 26 16:19:22 2019 > New Revision: 352757 > URL: https://svnweb.freebsd.org/changeset/base/352757 > > Log: > Further normalize copyright notices > > - s/C/c/ where I've been inconsistent about it > - +SPDX tags > - Remove "All rights reserved" where possib

svn commit: r352799 - head/tools/tools/controlelf

2019-09-27 Thread Ed Maste
Author: emaste Date: Fri Sep 27 16:35:08 2019 New Revision: 352799 URL: https://svnweb.freebsd.org/changeset/base/352799 Log: controlelf: clean up warnings - use explicit ELF note name when not found - no trailing . on warnings - no \n Sponsored by: The FreeBSD Foundation Modified

svn commit: r352798 - in head/sys: dev/nvdimm modules/nvdimm

2019-09-27 Thread Conrad Meyer
Author: cem Date: Fri Sep 27 16:32:44 2019 New Revision: 352798 URL: https://svnweb.freebsd.org/changeset/base/352798 Log: nvdimm(4): Extract ACPI root bus driver No functional change intended. The intent is to add a "legacy" e820 pmem newbus bus for nvdimm device in a subsequent rev

svn commit: r352797 - head/tools/tools/controlelf

2019-09-27 Thread Ed Maste
Author: emaste Date: Fri Sep 27 16:27:52 2019 New Revision: 352797 URL: https://svnweb.freebsd.org/changeset/base/352797 Log: Add tool to modify ELF binary feature control bits This will allow feature control bits (e.g. for ASLR, PROT_MAX) to be inspected or modified. Some clean-up a

svn commit: r352796 - head/sys/kern

2019-09-27 Thread Andrew Turner
Author: andrew Date: Fri Sep 27 16:22:28 2019 New Revision: 352796 URL: https://svnweb.freebsd.org/changeset/base/352796 Log: Check the vfs option length is valid before accessing through When a VFS option passed to nmount is present but NULL the kernel will place an empty option in its i

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

2019-09-27 Thread Warner Losh
Author: imp Date: Fri Sep 27 16:11:47 2019 New Revision: 352795 URL: https://svnweb.freebsd.org/changeset/base/352795 Log: Document varadic args as int, since you can't have short varadic args (they are promoted to ints). - `mode_t` is `uint16_t` (`sys/sys/_types.h`) - `openat` takes v

svn commit: r352794 - stable/11/lib/libc/locale

2019-09-27 Thread Li-Wen Hsu
Author: lwhsu Date: Fri Sep 27 15:28:30 2019 New Revision: 352794 URL: https://svnweb.freebsd.org/changeset/base/352794 Log: MFC r352315: Improve the description of big5(5) - Fix the statement that big5 is a de facto standard of Traditional Chinese text [1] - Add a BUGS section d

svn commit: r352793 - stable/12/lib/libc/locale

2019-09-27 Thread Li-Wen Hsu
Author: lwhsu Date: Fri Sep 27 15:28:01 2019 New Revision: 352793 URL: https://svnweb.freebsd.org/changeset/base/352793 Log: MFC r352315: Improve the description of big5(5) - Fix the statement that big5 is a de facto standard of Traditional Chinese text [1] - Add a BUGS section d

svn commit: r352792 - head/contrib/compiler-rt/lib/sanitizer_common

2019-09-27 Thread Ed Maste
Author: emaste Date: Fri Sep 27 13:14:36 2019 New Revision: 352792 URL: https://svnweb.freebsd.org/changeset/base/352792 Log: compiler-rt: correct RISC-V struct_kernel_stat64_sz The value of struct_kernel_stat64_sz introduced by review D5021 for RISC-V was incorrect. Also add a __ris

svn commit: r352791 - head/share/misc

2019-09-27 Thread Pawel Biernacki
Author: kaktus Date: Fri Sep 27 10:19:28 2019 New Revision: 352791 URL: https://svnweb.freebsd.org/changeset/base/352791 Log: Add myself (kaktus) as a src commiter. Reviewed by: kib (mentor) Approved by: kib (mentor), mjg (mentor) Differential Revision:https://reviews.freebsd.

svn commit: r352790 - svnadmin/conf

2019-09-27 Thread Mateusz Guzik
Author: mjg Date: Fri Sep 27 10:04:58 2019 New Revision: 352790 URL: https://svnweb.freebsd.org/changeset/base/352790 Log: Welcome Pawel Biernacki as a FreeBSD src Committer Mentors: kib, mjg Approved by: core Sponsored by: The FreeBSD Foundation Modified: svnadmin/conf/access svn