svn commit: r356315 - head/sys/dev/md

2020-01-02 Thread Alexander Motin
Author: mav Date: Fri Jan 3 04:37:47 2020 New Revision: 356315 URL: https://svnweb.freebsd.org/changeset/base/356315 Log: Avoid duplicate I/O statistics accounting. Alike to geom_disk free the provider statistics structure and point GEOM toward local statistics. It allows to save some C

Re: svn commit: r356308 - in head/sys: cddl/compat/opensolaris/kern cddl/compat/opensolaris/sys conf kern mips/include powerpc/include sys

2020-01-02 Thread Jeff Roberson
Thank you to everyone involved. This will make a lot of MI code much simpler. Jeff On Thu, 2 Jan 2020, Brandon Bergren wrote: Author: bdragon Date: Thu Jan 2 23:20:37 2020 New Revision: 356308 URL: https://svnweb.freebsd.org/changeset/base/356308 Log: [PowerPC] [MIPS] Implement 32-bit ker

svn commit: r356314 - stable/12/sys/ufs/ffs

2020-01-02 Thread Konstantin Belousov
Author: kib Date: Fri Jan 3 01:21:15 2020 New Revision: 356314 URL: https://svnweb.freebsd.org/changeset/base/356314 Log: MFC r356126: ufs: do not leave non-reclaimed vnodes with zero i_mode around. MFC note: this should be a nop on stable/12. Modified: stable/12/sys/ufs/ffs/ffs_softd

Re: svn commit: r355936 - in head/sys: arm/broadcom/bcm2835 arm/freescale/imx arm/ti/am335x arm/versatile powerpc/ofw

2020-01-02 Thread Brooks Davis
On Mon, Dec 23, 2019 at 03:14:07PM -0600, Kyle Evans wrote: > On Fri, Dec 20, 2019 at 10:22 AM Kyle Evans wrote: > > > > Author: kevans > > Date: Fri Dec 20 16:22:14 2019 > > New Revision: 355936 > > URL: https://svnweb.freebsd.org/changeset/base/355936 > > > > Log: > > Kill off dummy kbd driver

svn commit: r356313 - head/sbin/fsck_msdosfs

2020-01-02 Thread Xin LI
Author: delphij Date: Fri Jan 3 00:31:48 2020 New Revision: 356313 URL: https://svnweb.freebsd.org/changeset/base/356313 Log: Reduce memory footprint of fsck_msdosfs. This is a re-apply r356249 with changes to make GCC happy. This utility was initially written for FAT12/16, which were

svn commit: r356312 - stable/12/sys/net

2020-01-02 Thread Mark Johnston
Author: markj Date: Fri Jan 3 00:29:09 2020 New Revision: 356312 URL: https://svnweb.freebsd.org/changeset/base/356312 Log: MFC r356107: Plug some ifaddr refcount leaks. PR: 242746 Modified: stable/12/sys/net/route.c Directory Properties: stable/12/ (props changed) Modified: st

svn commit: r356311 - stable/12/sys/net

2020-01-02 Thread Mark Johnston
Author: markj Date: Fri Jan 3 00:28:34 2020 New Revision: 356311 URL: https://svnweb.freebsd.org/changeset/base/356311 Log: MFC r355942: Deduplicate code between if_delgroup() and if_delgroups(). Modified: stable/12/sys/net/if.c Directory Properties: stable/12/ (props changed) Modifie

svn commit: r356310 - head/sys/net

2020-01-02 Thread Eric Joyner
Author: erj Date: Thu Jan 2 23:35:06 2020 New Revision: 356310 URL: https://svnweb.freebsd.org/changeset/base/356310 Log: iflib: Prevent watchdog from resetting idle queues While changing link state in iflib_link_state_change(), queues are marked as IFLIB_QUEUE_IDLE to disable watchdog.

svn commit: r356309 - head/sys/dev/ixl

2020-01-02 Thread Eric Joyner
Author: erj Date: Thu Jan 2 23:24:57 2020 New Revision: 356309 URL: https://svnweb.freebsd.org/changeset/base/356309 Log: ixl: prevent non-privileged access to NVM update interface Add a privilege check to the ixl_handle_nvmupd_cmd function, ensuring that only privileged users are allowe

svn commit: r356308 - in head/sys: cddl/compat/opensolaris/kern cddl/compat/opensolaris/sys conf kern mips/include powerpc/include sys

2020-01-02 Thread Brandon Bergren
Author: bdragon Date: Thu Jan 2 23:20:37 2020 New Revision: 356308 URL: https://svnweb.freebsd.org/changeset/base/356308 Log: [PowerPC] [MIPS] Implement 32-bit kernel emulation of atomic64 operations This is a lock-based emulation of 64-bit atomics for kernel use, split off from an earli

svn commit: r356307 - stable/12/tests/sys/sys

2020-01-02 Thread Eric Joyner
Author: erj Date: Thu Jan 2 23:18:43 2020 New Revision: 356307 URL: https://svnweb.freebsd.org/changeset/base/356307 Log: MFC r355055: Fix gcc build for bitstring_test by specifying "-fno-strict-overflow" Sponsored by: Intel Corporation Modified: stable/12/tests/sys/sys/Makefile Direct

svn commit: r356306 - in stable/12: share/man/man3 sys/sys tests/sys/sys

2020-01-02 Thread Eric Joyner
Author: erj Date: Thu Jan 2 23:16:27 2020 New Revision: 356306 URL: https://svnweb.freebsd.org/changeset/base/356306 Log: MFC r354977: bitstring: add functions to find contiguous set/unset bit sequences This MFC also includes extra commits that improve on the original: r355032: bitstrin

svn commit: r356305 - head/lib/libcapsicum

2020-01-02 Thread Kyle Evans
Author: kevans Date: Thu Jan 2 23:07:45 2020 New Revision: 356305 URL: https://svnweb.freebsd.org/changeset/base/356305 Log: capsicum_helpers: split stream cap bits out of caph_limit_stream() The goal here is to make it so applications can take the rights one would normally get by callin

svn commit: r356304 - in stable/12: sys/sys tests/sys/sys

2020-01-02 Thread Eric Joyner
Author: erj Date: Thu Jan 2 23:05:48 2020 New Revision: 356304 URL: https://svnweb.freebsd.org/changeset/base/356304 Log: MFC r354975: bitstring: exit early if _start is past size of the bitstring This fixes a possible buffer read overflow. Sponsored by: Intel Corporation Modified:

svn commit: r356303 - head/sys/conf

2020-01-02 Thread Kyle Evans
Author: kevans Date: Thu Jan 2 23:00:52 2020 New Revision: 356303 URL: https://svnweb.freebsd.org/changeset/base/356303 Log: iicoc: limit fdt attachment to EXT_RESOURCES platforms The fdt attachment for this heavily relies on extres for clk work. This unbreaks the build for mips XLPN32/X

svn commit: r356302 - in stable/12/sys/dev: e1000 ixgbe ixl

2020-01-02 Thread Eric Joyner
Author: erj Date: Thu Jan 2 22:57:21 2020 New Revision: 356302 URL: https://svnweb.freebsd.org/changeset/base/356302 Log: MFC isc_pause_frame field fixes to Intel ethernet drivers This MFC includes: r353656, r353657, r353658, and r353661 Sponsored by: Intel Corporation Modified: st

svn commit: r356301 - head/sys/dev/cfe

2020-01-02 Thread Kyle Evans
Author: kevans Date: Thu Jan 2 22:52:31 2020 New Revision: 356301 URL: https://svnweb.freebsd.org/changeset/base/356301 Log: sys/dev/cfi: include sys/types.h as well This will soon be a dependency for machine/atomic.h on mips with the introduction of 64-bit atomics; the scope here is pre

svn commit: r356299 - stable/12/sys/net

2020-01-02 Thread Eric Joyner
Author: erj Date: Thu Jan 2 22:47:10 2020 New Revision: 356299 URL: https://svnweb.freebsd.org/changeset/base/356299 Log: MFC r354344: iflib: properly release memory allocated for DMA Prevents M_DEVBUF memory from leaking due to iflib DMA allocations. Sponsored by: Intel Corporation

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

2020-01-02 Thread Konstantin Belousov
Author: kib Date: Thu Jan 2 22:48:08 2020 New Revision: 356300 URL: https://svnweb.freebsd.org/changeset/base/356300 Log: Fix AT_EXECPATH for direct exec mode. When activated in direct exec mode, kernel-provided AT_EXECPATH points to the interpreter. We need to recalculate auxv to point

svn commit: r356298 - stable/12/sys/net

2020-01-02 Thread Eric Joyner
Author: erj Date: Thu Jan 2 22:44:38 2020 New Revision: 356298 URL: https://svnweb.freebsd.org/changeset/base/356298 Log: MFC r354207: iflib: cleanup memory leaks on driver detach Sponsored by: Intel Corporation Modified: stable/12/sys/net/iflib.c Directory Properties: stable/12/ (p

svn commit: r356297 - stable/12/sys/net

2020-01-02 Thread Eric Joyner
Author: erj Date: Thu Jan 2 22:42:18 2020 New Revision: 356297 URL: https://svnweb.freebsd.org/changeset/base/356297 Log: MFC r353967: iflib: call ether_ifdetach and netmap_detach before stop This prevents a possible page fault resulting from a race condition. Sponsored by: Intel Corp

svn commit: r356296 - in head/sys/amd64: include vmm vmm/io

2020-01-02 Thread Konstantin Belousov
Author: kib Date: Thu Jan 2 22:37:04 2020 New Revision: 356296 URL: https://svnweb.freebsd.org/changeset/base/356296 Log: bhyve: terminate waiting loops if thread suspension is requested. PR: 242724 Reviewed by: markj Reported and tested by: Aleksandr Fedorov (previ

svn commit: r356295 - in head/sys: arm/conf arm64/conf

2020-01-02 Thread Ian Lepore
Author: ian Date: Thu Jan 2 22:26:54 2020 New Revision: 356295 URL: https://svnweb.freebsd.org/changeset/base/356295 Log: Add the xdma framework and pl330 dma drivers to arm and arm64 lint builds. Modified: head/sys/arm/conf/NOTES head/sys/arm64/conf/NOTES Modified: head/sys/arm/conf/NOTE

svn commit: r356294 - head/sys/dev/flash

2020-01-02 Thread Ian Lepore
Author: ian Date: Thu Jan 2 22:14:44 2020 New Revision: 356294 URL: https://svnweb.freebsd.org/changeset/base/356294 Log: Explicitly include sys/rman.h instead of relying on getting it via some other header. Modified: head/sys/dev/flash/cqspi.c Modified: head/sys/dev/flash/cqspi.c ===

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

2020-01-02 Thread Konstantin Belousov
Author: kib Date: Thu Jan 2 22:13:59 2020 New Revision: 356293 URL: https://svnweb.freebsd.org/changeset/base/356293 Log: Rename umtxq_check_susp() to thread_check_susp() and make it usable outside of kern_umtx.c. To be used in several future changes. Discussed with: markj

svn commit: r356292 - head/sys/kern

2020-01-02 Thread Konstantin Belousov
Author: kib Date: Thu Jan 2 22:07:03 2020 New Revision: 356292 URL: https://svnweb.freebsd.org/changeset/base/356292 Log: Style: remove trailing spaces/tabs. Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/sys/kern/kern_umtx.c Modified: head/sys/kern/kern_umt

svn commit: r356291 - in stable/12: sbin/ifconfig sys/net

2020-01-02 Thread Eric Joyner
Author: erj Date: Thu Jan 2 21:58:34 2020 New Revision: 356291 URL: https://svnweb.freebsd.org/changeset/base/356291 Log: MFC r351153: net: Update SFF-8024 definitions and strings with values from rev 4.6 This will let ifconfig -v's SFF eeprom read functionality recognize more module ty

Re: svn commit: r356289 - head

2020-01-02 Thread John Baldwin
On 1/2/20 1:34 PM, John Baldwin wrote: > Author: jhb > Date: Thu Jan 2 21:34:44 2020 > New Revision: 356289 > URL: https://svnweb.freebsd.org/changeset/base/356289 > > Log: > Look for cross toolchain makefiles in /usr/share/toolchains. > > The freebsd-binutils and freebsd-gcc* packages ins

svn commit: r356290 - in stable/11: crypto/openssl crypto/openssl/apps crypto/openssl/crypto crypto/openssl/crypto/asn1 crypto/openssl/crypto/bn/asm crypto/openssl/crypto/ec secure/lib/libcrypto se...

2020-01-02 Thread Jung-uk Kim
Author: jkim Date: Thu Jan 2 21:35:28 2020 New Revision: 356290 URL: https://svnweb.freebsd.org/changeset/base/356290 Log: Merge OpenSSL 1.0.2u. Modified: stable/11/crypto/openssl/CHANGES stable/11/crypto/openssl/Makefile stable/11/crypto/openssl/NEWS stable/11/crypto/openssl/README

svn commit: r356289 - head

2020-01-02 Thread John Baldwin
Author: jhb Date: Thu Jan 2 21:34:44 2020 New Revision: 356289 URL: https://svnweb.freebsd.org/changeset/base/356289 Log: Look for cross toolchain makefiles in /usr/share/toolchains. The freebsd-binutils and freebsd-gcc* packages install toolchain makefiles to /usr/share/toolchains rathe

svn commit: r356288 - vendor-crypto/openssl/1.0.2u

2020-01-02 Thread Jung-uk Kim
Author: jkim Date: Thu Jan 2 21:13:22 2020 New Revision: 356288 URL: https://svnweb.freebsd.org/changeset/base/356288 Log: Tag OpenSSL 1.0.2u. Added: vendor-crypto/openssl/1.0.2u/ - copied from r356287, vendor-crypto/openssl/dist-1.0.2/ ___ sv

svn commit: r356287 - in vendor-crypto/openssl/dist-1.0.2: . apps crypto crypto/asn1 crypto/bn/asm crypto/ec

2020-01-02 Thread Jung-uk Kim
Author: jkim Date: Thu Jan 2 21:12:47 2020 New Revision: 356287 URL: https://svnweb.freebsd.org/changeset/base/356287 Log: Import OpenSSL 1.0.2u. Modified: vendor-crypto/openssl/dist-1.0.2/CHANGES vendor-crypto/openssl/dist-1.0.2/FREEBSD-upgrade vendor-crypto/openssl/dist-1.0.2/Makefile

svn commit: r356286 - stable/11/sys/geom/eli

2020-01-02 Thread Alexander Motin
Author: mav Date: Thu Jan 2 20:34:53 2020 New Revision: 356286 URL: https://svnweb.freebsd.org/changeset/base/356286 Log: MFC r349586 (by rlibby): g_eli_create: only dec g_access acw if we inc'd it Modified: stable/11/sys/geom/eli/g_eli.c Directory Properties: stable/11/ (props changed)

svn commit: r356285 - stable/12/sys/geom/eli

2020-01-02 Thread Alexander Motin
Author: mav Date: Thu Jan 2 20:33:56 2020 New Revision: 356285 URL: https://svnweb.freebsd.org/changeset/base/356285 Log: MFC r349586 (by rlibby): g_eli_create: only dec g_access acw if we inc'd it Modified: stable/12/sys/geom/eli/g_eli.c Directory Properties: stable/12/ (props changed)

svn commit: r356284 - head/sys/geom/eli

2020-01-02 Thread Alexander Motin
Author: mav Date: Thu Jan 2 20:30:53 2020 New Revision: 356284 URL: https://svnweb.freebsd.org/changeset/base/356284 Log: Remove extra check for provider being closed. We already checked for that earlier, and since we hold topology lock it could not change. MFC after:1 week Mod

svn commit: r356283 - in stable/12/sys: arm/freescale/imx arm64/rockchip

2020-01-02 Thread Ian Lepore
Author: ian Date: Thu Jan 2 19:55:09 2020 New Revision: 356283 URL: https://svnweb.freebsd.org/changeset/base/356283 Log: MFC r355860: Remove unnecessary MODULE_DEPEND() from imx_i2c.c, and also from rk_i2c where it got copied to. Modified: stable/12/sys/arm/freescale/imx/imx_i2c.c

svn commit: r356282 - stable/12/sys/dev/xdma

2020-01-02 Thread Ian Lepore
Author: ian Date: Thu Jan 2 19:52:01 2020 New Revision: 356282 URL: https://svnweb.freebsd.org/changeset/base/356282 Log: MFC r347828 (by cem): xdma(4): Fix invalid pointer use (breaks arm.SOCFPGA build) In xdma_handle_mem_node(), vmem_size_t and vmem_addr_t pointers were passed to

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

2020-01-02 Thread Mark Johnston
Author: markj Date: Thu Jan 2 19:29:14 2020 New Revision: 356281 URL: https://svnweb.freebsd.org/changeset/base/356281 Log: Remove set_page_dirty_lock(). Its use of the page lock is incorrect, and it is not used by the DRM modules. Reviewed by: hselasky MFC after:2 weeks Di

svn commit: r356280 - head/sys/vm

2020-01-02 Thread Mark Johnston
Author: markj Date: Thu Jan 2 19:26:04 2020 New Revision: 356280 URL: https://svnweb.freebsd.org/changeset/base/356280 Log: Clear queue operation flags when migrating a page to another queue. The page daemon loops may move pages back to the active queue if references are detected. In th

svn commit: r356279 - in head: lib/libbe sbin/bectl/tests

2020-01-02 Thread Kyle Evans
Author: kevans Date: Thu Jan 2 18:46:33 2020 New Revision: 356279 URL: https://svnweb.freebsd.org/changeset/base/356279 Log: libbe(3): promote dependent clones when destroying an environment When removing a boot environment iterate over the dependents and process the snapshots by grabbin

Re: svn commit: r356278 - in head: share/man/man4 sys/conf sys/dev/iicbus sys/dev/iicbus/mux sys/modules/i2c sys/modules/i2c/mux sys/modules/i2c/mux/iic_gpiomux sys/modules/i2c/mux/iicmux sys/modules/

2020-01-02 Thread Ian Lepore
On Thu, 2020-01-02 at 17:51 +, Ian Lepore wrote: > Author: ian > Date: Thu Jan 2 17:51:49 2020 > New Revision: 356278 > URL: https://svnweb.freebsd.org/changeset/base/356278 > > Log: > Add support for i2c bus mux hardware. > As usual, forgot to add: Differential Revision:https:

svn commit: r356278 - in head: share/man/man4 sys/conf sys/dev/iicbus sys/dev/iicbus/mux sys/modules/i2c sys/modules/i2c/mux sys/modules/i2c/mux/iic_gpiomux sys/modules/i2c/mux/iicmux sys/modules/i...

2020-01-02 Thread Ian Lepore
Author: ian Date: Thu Jan 2 17:51:49 2020 New Revision: 356278 URL: https://svnweb.freebsd.org/changeset/base/356278 Log: Add support for i2c bus mux hardware. An i2c bus can be divided into segments which can be selectively connected and disconnected from the main bus. This is usually d

svn commit: r356277 - in head/sys: arm64/rockchip modules/rockchip modules/rockchip/rk_spi

2020-01-02 Thread Emmanuel Vadot
Author: manu Date: Thu Jan 2 17:44:41 2020 New Revision: 356277 URL: https://svnweb.freebsd.org/changeset/base/356277 Log: arm64: rockchip: Add a module for rk_spi The spi node doesn't lives under a simple-bus compatible node so we need OFWBUS_PNP_INFO instead of SIMPLEBUS_PNP_INFO. Add

svn commit: r356276 - head/sys/arm/allwinner

2020-01-02 Thread Emmanuel Vadot
Author: manu Date: Thu Jan 2 17:39:21 2020 New Revision: 356276 URL: https://svnweb.freebsd.org/changeset/base/356276 Log: arm: allwinner: aw_spi: Call bus_generic_attach This is needed when the driver is compiled into the kernel. When compiled as a module this will be called from anothe

svn commit: r356275 - stable/11/sys/kern

2020-01-02 Thread Alexander Motin
Author: mav Date: Thu Jan 2 17:27:27 2020 New Revision: 356275 URL: https://svnweb.freebsd.org/changeset/base/356275 Log: MFC r352658,352677,352713,352728: Fix/improve interrupt threads scheduling. Doing some tests with very high interrupt rates I've noticed that one of conditions I adde

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

2020-01-02 Thread John Baldwin
Author: jhb Date: Thu Jan 2 16:27:15 2020 New Revision: 356274 URL: https://svnweb.freebsd.org/changeset/base/356274 Log: Some minor tweaks to arch(7). - Drop mention of _LP64. FreeBSD's source generally uses __LP64__ instead of _LP64, and the relevant macros are better covered in the

svn commit: r356273 - head/sys/arm/arm

2020-01-02 Thread Ian Lepore
Author: ian Date: Thu Jan 2 15:38:17 2020 New Revision: 356273 URL: https://svnweb.freebsd.org/changeset/base/356273 Log: Since arm/unwind.c s conditionally compiled, only call functions in it when one of those conditions is true. Fixes build failure on kernel configs with no debugging opt

svn commit: r356272 - stable/12/usr.sbin/powerd

2020-01-02 Thread Mark Johnston
Author: markj Date: Thu Jan 2 14:39:37 2020 New Revision: 356272 URL: https://svnweb.freebsd.org/changeset/base/356272 Log: MFC r356184: powerd(8): Fix a memory leak when we fail to read frequency levels. PR: 242967 Modified: stable/12/usr.sbin/powerd/powerd.c Directory Properties:

svn commit: r356271 - head/sys/netinet

2020-01-02 Thread Michael Tuexen
Author: tuexen Date: Thu Jan 2 14:04:16 2020 New Revision: 356271 URL: https://svnweb.freebsd.org/changeset/base/356271 Log: Remove empty line which was added in r356270 by accident. MFC after:1 week Modified: head/sys/netinet/sctp.h Modified: head/sys/netinet/sctp.h ==

svn commit: r356270 - head/sys/netinet

2020-01-02 Thread Michael Tuexen
Author: tuexen Date: Thu Jan 2 13:55:10 2020 New Revision: 356270 URL: https://svnweb.freebsd.org/changeset/base/356270 Log: Improve input validation of the spp_pathmtu field in the SCTP_PEER_ADDR_PARAMS socket option. The code in the stack assumes sane values for the MTU. This issue w

svn commit: r356269 - head

2020-01-02 Thread Andrew Turner
Author: andrew Date: Thu Jan 2 11:02:09 2020 New Revision: 356269 URL: https://svnweb.freebsd.org/changeset/base/356269 Log: Add the missing trailing '/' when setting TARGET_ARCH from TARGET This should fix the build when setting TARGET but not TARGET_ARCH. Sponsored by: DARPA, AFRL

svn commit: r356268 - head/sys/net

2020-01-02 Thread Alexander V. Chernikov
Author: melifaro Date: Thu Jan 2 09:08:45 2020 New Revision: 356268 URL: https://svnweb.freebsd.org/changeset/base/356268 Log: Plug loopback idaddr refcount leak. Reviewed by: markj MFC after:2 weeks Differential Revision:https://reviews.freebsd.org/D22980 Modified: hea