Re: svn commit: r356480 - head/sys/dev/nvme

2020-01-08 Thread Konstantin Belousov
On Tue, Jan 07, 2020 at 11:10:39PM +, Alexander Motin wrote: > Author: mav > Date: Tue Jan 7 23:10:38 2020 > New Revision: 356480 > URL: https://svnweb.freebsd.org/changeset/base/356480 > > Log: > Increate HMB limit from 1% to 5%. > > SSD capacity in laptops is growing faster then RAM

svn commit: r356484 - head/sys/dev/virtio/network

2020-01-08 Thread Kristof Provost
Author: kp Date: Wed Jan 8 10:06:32 2020 New Revision: 356484 URL: https://svnweb.freebsd.org/changeset/base/356484 Log: vtnet: Pre-allocate debugnet data immediately Don't wait until the vtnet_debugnet_init() call happens, because at that point we might already have allocated something

svn commit: r356485 - head/sys/arm64/rockchip

2020-01-08 Thread Emmanuel Vadot
Author: manu Date: Wed Jan 8 11:29:22 2020 New Revision: 356485 URL: https://svnweb.freebsd.org/changeset/base/356485 Log: rk808: Add min/max for the switch regulators The two switch regulator are always 3.0V. Add a special case in get_voltage that if min=max we directly return the val

svn commit: r356486 - head/sys/arm64/rockchip

2020-01-08 Thread Emmanuel Vadot
Author: manu Date: Wed Jan 8 11:30:03 2020 New Revision: 356486 URL: https://svnweb.freebsd.org/changeset/base/356486 Log: rk805: Add regnode_status method This allow consumers to check if the regulator is enable or not. Reviewed by: mmel Differential Revision:https://revie

svn commit: r356487 - head/sys/dev/extres/regulator

2020-01-08 Thread Emmanuel Vadot
Author: manu Date: Wed Jan 8 11:30:42 2020 New Revision: 356487 URL: https://svnweb.freebsd.org/changeset/base/356487 Log: regulator: fix regnode_method_get_voltage This method is supposed to write the voltage into uvolt and return an errno compatible value. Reviewed by: mmel Dif

svn commit: r356488 - head/usr.sbin/bsdinstall

2020-01-08 Thread Maxim Konovalov
Author: maxim Date: Wed Jan 8 14:01:15 2020 New Revision: 356488 URL: https://svnweb.freebsd.org/changeset/base/356488 Log: o Spell "Redundancy" and "Remember" correctly. PR: 243187 Submitted by: mikael.uran...@gmail.com (partially) Modified: head/usr.sbin/bsdinstall/bsdinst

svn commit: r356494 - head/sys/compat/linprocfs

2020-01-08 Thread Mark Johnston
Author: markj Date: Wed Jan 8 16:57:08 2020 New Revision: 356494 URL: https://svnweb.freebsd.org/changeset/base/356494 Log: linprocfs: Fix some bugs in the maps file implementation. - Export the offset into the backing object, not the object size. - Fix a bug where we would print the pre

svn commit: r356499 - in head: . share/man/man7 share/mk

2020-01-08 Thread John Baldwin
Author: jhb Date: Wed Jan 8 17:25:59 2020 New Revision: 356499 URL: https://svnweb.freebsd.org/changeset/base/356499 Log: Use clang and lld as the default toolchain for RISCV. - Enable clang and lld as system toolchains. - Don't use external GCC for universe by default. - Re-enable ris

svn commit: r356501 - head/share/man/man7

2020-01-08 Thread John Baldwin
Author: jhb Date: Wed Jan 8 17:31:18 2020 New Revision: 356501 URL: https://svnweb.freebsd.org/changeset/base/356501 Log: Remove a mention of MAKE_OBSOLETE_GCC. This should have been included in r356452. Modified: head/share/man/man7/arch.7 Modified: head/share/man/man7/arch.7

svn commit: r356502 - head

2020-01-08 Thread John Baldwin
run "ln -s 'abort:false,junk:false' /etc/malloc.conf".) +20200108: + Clang/LLVM is now the default compiler and LLD the default + linker for riscv64. + +20200107: + make universe no longer uses GCC 4.2.1 on any architectures. + Architectures not

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

2020-01-08 Thread Konstantin Belousov
Author: kib Date: Wed Jan 8 17:37:20 2020 New Revision: 356503 URL: https://svnweb.freebsd.org/changeset/base/356503 Log: rtld: fix after r356300 binpath local was changed from char array to a char pointer, update strlcpy/strlcat uses. Reported by: Coverity through vangyzen CID:

svn commit: r356504 - head/share/mk

2020-01-08 Thread John Baldwin
Author: jhb Date: Wed Jan 8 17:49:34 2020 New Revision: 356504 URL: https://svnweb.freebsd.org/changeset/base/356504 Log: Add -mno-relax to CFLAGS in bsd.prog/lib.mk instead of bsd.cpu.mk. bsd.cpu.mk is included by bsd.init.mk before bsd.linker.mk, so it was always setting the flag since

svn commit: r356505 - head/share/man/man5

2020-01-08 Thread Ed Maste
Author: emaste Date: Wed Jan 8 17:54:44 2020 New Revision: 356505 URL: https://svnweb.freebsd.org/changeset/base/356505 Log: src.conf.5: regen after r356423 and r356499 riscv now using Clang/lld, riscv64sf reenabled, and googletest adjusted to avoid only the affected fuse test on mips M

svn commit: r356506 - head/sys/dev/nvme

2020-01-08 Thread Alexander Motin
Author: mav Date: Wed Jan 8 18:26:23 2020 New Revision: 356506 URL: https://svnweb.freebsd.org/changeset/base/356506 Log: Fix copy-paste bug in HMB free code. MFC after:2 weeks X-MFC-with: r356474 Modified: head/sys/dev/nvme/nvme_ctrlr.c Modified: head/sys/dev/nvme/nvme_ctrlr.c

svn commit: r356507 - head/sys/opencrypto

2020-01-08 Thread John Baldwin
Author: jhb Date: Wed Jan 8 18:59:23 2020 New Revision: 356507 URL: https://svnweb.freebsd.org/changeset/base/356507 Log: Add a reference count to cryptodev sessions. This prevents use-after-free races with crypto requests (which may sleep) and CIOCFSESSION as well as races from current

svn commit: r356508 - head/sys/opencrypto

2020-01-08 Thread John Baldwin
Author: jhb Date: Wed Jan 8 19:03:24 2020 New Revision: 356508 URL: https://svnweb.freebsd.org/changeset/base/356508 Log: Use falloc_noinstall + finstall for crypto file descriptors. Reviewed by: cem, kib MFC after:1 week Sponsored by: Chelsio Communications Differential Revisio

svn commit: r356510 - in head: lib/libc/sys sys/kern sys/sys

2020-01-08 Thread Kyle Evans
Author: kevans Date: Wed Jan 8 19:05:32 2020 New Revision: 356510 URL: https://svnweb.freebsd.org/changeset/base/356510 Log: posix_fallocate: push vnop implementation into the fileop layer This opens the door for other descriptor types to implement posix_fallocate(2) as needed. Revi

svn commit: r356509 - head/sys/opencrypto

2020-01-08 Thread John Baldwin
Author: jhb Date: Wed Jan 8 19:05:23 2020 New Revision: 356509 URL: https://svnweb.freebsd.org/changeset/base/356509 Log: Remove unneeded cdevsw methods and D_NEEDGIANT. Reviewed by: kib MFC after:2 weeks Sponsored by: Chelsio Communications Differential Revision:https:/

svn commit: r356511 - head/sys/sys

2020-01-08 Thread Kyle Evans
Author: kevans Date: Wed Jan 8 19:06:22 2020 New Revision: 356511 URL: https://svnweb.freebsd.org/changeset/base/356511 Log: Bump __FreeBSD_version after r356510 linuxkpi kmod would need to rebuilt at a minimum; fileops layout has changed. Modified: head/sys/sys/param.h Modified: hea

svn commit: r356512 - in head: sys/kern tests/sys/posixshm

2020-01-08 Thread Kyle Evans
Author: kevans Date: Wed Jan 8 19:08:44 2020 New Revision: 356512 URL: https://svnweb.freebsd.org/changeset/base/356512 Log: posixshm: implement posix_fallocate(2) Linux expects to be able to use posix_fallocate(2) on a memfd. Other places would use this with shm_open(2) to act as a smar

svn commit: r356513 - in head/contrib/llvm-project/libunwind: include src

2020-01-08 Thread Ed Maste
Author: emaste Date: Wed Jan 8 20:37:03 2020 New Revision: 356513 URL: https://svnweb.freebsd.org/changeset/base/356513 Log: libunwind: untested attempt to fix sparc64 build sparc64 is the only architecture currently using the DWARF unwinder from GCC 4.2.1. Old GCC and related libraries

svn commit: r356514 - head/share/mk

2020-01-08 Thread Ed Maste
Author: emaste Date: Wed Jan 8 20:45:18 2020 New Revision: 356514 URL: https://svnweb.freebsd.org/changeset/base/356514 Log: src.opts.mk: enable LLVM_UNWIND by default for all archs Only sparc64 did not enable LLVM_LIBUNWIND. After r356513 LLVM_LIBUNWIND should at least build on sparc64.

Re: svn commit: r356514 - head/share/mk

2020-01-08 Thread Warner Losh
On Wed, Jan 8, 2020 at 1:45 PM Ed Maste wrote: > Author: emaste > Date: Wed Jan 8 20:45:18 2020 > New Revision: 356514 > URL: https://svnweb.freebsd.org/changeset/base/356514 > > Log: > src.opts.mk: enable LLVM_UNWIND by default for all archs > > Only sparc64 did not enable LLVM_LIBUNWIND. A

svn commit: r356515 - head/share/mk

2020-01-08 Thread Ed Maste
Author: emaste Date: Wed Jan 8 20:51:07 2020 New Revision: 356515 URL: https://svnweb.freebsd.org/changeset/base/356515 Log: src.opts.mk: Remove sparc64 LLVM_LIBUNWIND BROKEN_OPTIONS After r356513 it should build. Modified: head/share/mk/src.opts.mk Modified: head/share/mk/src.opts.mk

svn commit: r356516 - head

2020-01-08 Thread Ed Maste
Author: emaste Date: Wed Jan 8 20:56:30 2020 New Revision: 356516 URL: https://svnweb.freebsd.org/changeset/base/356516 Log: Remove prereq lib support for GNU unwinder LLVM's libunwind is used for all archs, as of r356514. As GCC 4.2.1 will soon be removed, and with it the GNU unwinder,

svn commit: r356517 - in head/gnu/lib: . libgcc

2020-01-08 Thread Ed Maste
Author: emaste Date: Wed Jan 8 21:07:55 2020 New Revision: 356517 URL: https://svnweb.freebsd.org/changeset/base/356517 Log: Retire build support for GCC's DWARF unwinder As of r356514 LLVM's libunwind is used as the DWARF unwinder on all supported CPU architectures, and GCC and its libr

svn commit: r356519 - head/sys/dev/iicbus/mux

2020-01-08 Thread Ian Lepore
Author: ian Date: Wed Jan 8 22:06:31 2020 New Revision: 356519 URL: https://svnweb.freebsd.org/changeset/base/356519 Log: Ensure any reserved gpio pins get released if an early exit is taken from the attach function. Modified: head/sys/dev/iicbus/mux/iic_gpiomux.c Modified: head/sys/dev/i

svn commit: r356520 - head/sys/opencrypto

2020-01-08 Thread John Baldwin
Author: jhb Date: Wed Jan 8 22:16:26 2020 New Revision: 356520 URL: https://svnweb.freebsd.org/changeset/base/356520 Log: Remove no-longer-used function prototype. Reported by: amd64-gcc Modified: head/sys/opencrypto/cryptodev.c Modified: head/sys/opencrypto/cryptodev.c ==

svn commit: r356521 - head/sys/dev/iicbus/mux

2020-01-08 Thread Ian Lepore
Author: ian Date: Wed Jan 8 22:45:32 2020 New Revision: 356521 URL: https://svnweb.freebsd.org/changeset/base/356521 Log: Init sc->maxbus to -1, not 0. It represents the highest array index that has a non-NULL child bus stored in it, so the "none" value can't be zero since that's a valid a

svn commit: r356522 - head/sys/dev/iicbus/mux

2020-01-08 Thread Ian Lepore
Author: ian Date: Wed Jan 8 22:48:14 2020 New Revision: 356522 URL: https://svnweb.freebsd.org/changeset/base/356522 Log: Change some KASSERT to device_printf + return EINVAL. There's no need to bring the whole kernel down due to a configuration error detected when a module is loaded, it s

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

2020-01-08 Thread Vincenzo Maffione
Author: vmaffione Date: Wed Jan 8 22:55:22 2020 New Revision: 356523 URL: https://svnweb.freebsd.org/changeset/base/356523 Log: bhyve: add wrapper for debug printf statements Add printf() wrapper to use CR/CRLF terminators depending on whether stdio is mapped to a tty open in raw mode.

svn commit: r356525 - head/sys/dev/iicbus/mux

2020-01-08 Thread Ian Lepore
Author: ian Date: Wed Jan 8 23:03:47 2020 New Revision: 356525 URL: https://svnweb.freebsd.org/changeset/base/356525 Log: Split the code to find and add iicbus children out to its own function. Move the decision to take an early exit from that function after adding children based on FDT dat

svn commit: r356526 - head/sys/dev/iicbus/mux

2020-01-08 Thread Ian Lepore
Author: ian Date: Wed Jan 8 23:06:13 2020 New Revision: 356526 URL: https://svnweb.freebsd.org/changeset/base/356526 Log: Remove some trailing whitespace; no functional changes. Modified: head/sys/dev/iicbus/mux/iicmux.c Modified: head/sys/dev/iicbus/mux/iicmux.c ===

svn commit: r356527 - in head/sys: dev/cxgbe/tom netinet netinet/tcp_stacks netinet6

2020-01-08 Thread Bjoern A. Zeeb
Author: bz Date: Wed Jan 8 23:30:26 2020 New Revision: 356527 URL: https://svnweb.freebsd.org/changeset/base/356527 Log: vnet: virtualise more network stack sysctls. Virtualise tcp_always_keepalive, TCP and UDP log_in_vain. All three are set in the netoptions startup script, which we wo

svn commit: r356528 - head/libexec/rc/rc.d

2020-01-08 Thread Bjoern A. Zeeb
Author: bz Date: Wed Jan 8 23:34:50 2020 New Revision: 356528 URL: https://svnweb.freebsd.org/changeset/base/356528 Log: Run netoptions startup script in vnet jails. People use rc.conf inside vnet jails to configure networking setups. Presumably because some sysctl were not virtualised u

Re: svn commit: r356513 - in head/contrib/llvm-project/libunwind: include src

2020-01-08 Thread Conrad Meyer
I definitely don't condone this. I would prefer it be reverted. It has never been tested. It's got my name in the commit message, suggesting some level of my approval; I absolutely do not approve of it in any way. Cheers, Conrad On Wed, Jan 8, 2020 at 12:37 PM Ed Maste wrote: > > Author: emas

Re: svn commit: r356520 - head/sys/opencrypto

2020-01-08 Thread Conrad Meyer
On Wed, Jan 8, 2020 at 2:16 PM John Baldwin wrote: > > Author: jhb > Date: Wed Jan 8 22:16:26 2020 > New Revision: 356520 > URL: https://svnweb.freebsd.org/changeset/base/356520 > > Log: > Remove no-longer-used function prototype. > > Reported by: amd64-gcc Also me ;-). https://reviews.fre

svn commit: r356534 - in head: share/man/man9 sys/arm/arm sys/vm

2020-01-08 Thread Ryan Libby
Author: rlibby Date: Thu Jan 9 02:03:03 2020 New Revision: 356534 URL: https://svnweb.freebsd.org/changeset/base/356534 Log: uma: reorganize flags - Garbage collect UMA_ZONE_PAGEABLE & UMA_ZONE_STATIC. - Move flag VTOSLAB from public to private. - Introduce public NOTPAGE flag and m

svn commit: r356535 - head/sys/vm

2020-01-08 Thread Ryan Libby
Author: rlibby Date: Thu Jan 9 02:03:17 2020 New Revision: 356535 URL: https://svnweb.freebsd.org/changeset/base/356535 Log: uma: unify layout paths and improve efficiency Unify the keg layout selection paths (keg_small_init, keg_large_init, keg_cachespread_init), and slightly improve me

svn commit: r356536 - head/sys/net

2020-01-08 Thread Kyle Evans
Author: kevans Date: Thu Jan 9 03:52:50 2020 New Revision: 356536 URL: https://svnweb.freebsd.org/changeset/base/356536 Log: if_vmove: return proper error status if_vmove can fail if it lost a race and the vnet's already been moved. The callers (and their callers) can generally cope with

svn commit: r356537 - head/sys/kern

2020-01-08 Thread Kyle Evans
Author: kevans Date: Thu Jan 9 04:03:17 2020 New Revision: 356537 URL: https://svnweb.freebsd.org/changeset/base/356537 Log: shmfd: posix_fallocate(2): only take rangelock for section we need Other mechanisms that resize the shmfd grab a write lock from 0 to OFF_MAX for safety, so we sti

svn commit: r356538 - in head/stand: fdt uboot/fdt

2020-01-08 Thread Kyle Evans
Author: kevans Date: Thu Jan 9 04:34:42 2020 New Revision: 356538 URL: https://svnweb.freebsd.org/changeset/base/356538 Log: stand/fdt: Scale blob size better as overlays apply Currently, our overlay blob will grow to include the size of the complete overlay blob we're applying. This doe

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

2020-01-08 Thread Kyle Evans
Author: kevans Date: Thu Jan 9 04:39:37 2020 New Revision: 356539 URL: https://svnweb.freebsd.org/changeset/base/356539 Log: md(4): improve documentation of preloading It's not immediately clear by what mechanism loader(8) will be loading the preloaded file. Specifically name-drop loader

Re: svn commit: r354606 - in head: contrib/jemalloc contrib/jemalloc/doc contrib/jemalloc/include/jemalloc contrib/jemalloc/include/jemalloc/internal contrib/jemalloc/src lib/libc/stdlib/jemalloc

2020-01-08 Thread Bryan Drewery
Do you plan to get this back in soon? I hope to see it before 12.2 if possible. Is there some way I can help? I'm interested in these changes in 5.2.1 (I think) - Properly trigger decay on tcache destroy. (@interwq, @amosbird) - Fix tcache.flush. (@interwq) - Fix a side effect caused by ex

svn commit: r356540 - head/sys/kern

2020-01-08 Thread Kyle Evans
Author: kevans Date: Thu Jan 9 06:10:25 2020 New Revision: 356540 URL: https://svnweb.freebsd.org/changeset/base/356540 Log: kern/Makefile: systrace_args.c is also generated Modified: head/sys/kern/Makefile Modified: head/sys/kern/Makefile ===