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

2018-07-09 Thread Marcelo Araujo
Author: araujo Date: Tue Jul 10 05:36:32 2018 New Revision: 336162 URL: https://svnweb.freebsd.org/changeset/base/336162 Log: Fix style(9) space and tab. Modified: head/usr.sbin/bhyve/pci_virtio_block.c Modified: head/usr.sbin/bhyve/pci_virtio_block.c

svn commit: r336161 - in stable/11: lib/libvmmapi usr.sbin/bhyve

2018-07-09 Thread Marcelo Araujo
Author: araujo Date: Tue Jul 10 04:26:32 2018 New Revision: 336161 URL: https://svnweb.freebsd.org/changeset/base/336161 Log: MFC r334307, r335103-r335104 r334307: Simplify macros EFPRINTF and EFFLUSH. [0] Also stdarg(3) says that each invocation of va_start() must be paired with a

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

2018-07-09 Thread Daichi GOTO
Author: daichi Date: Tue Jul 10 03:49:48 2018 New Revision: 336160 URL: https://svnweb.freebsd.org/changeset/base/336160 Log: top(1): rollback r335836 Encoding-specific processing introduced in r335836 is not recommended. And doing getenv("LANG") and assuming an encoding based on it is a

svn commit: r336159 - head/sys/dev/cxgbe

2018-07-09 Thread Navdeep Parhar
Author: np Date: Tue Jul 10 03:03:10 2018 New Revision: 336159 URL: https://svnweb.freebsd.org/changeset/base/336159 Log: cxgbe(4): Add a sysctl to report the chip's microprocessor's load averages. This works with debug or custom firmwares only. sysctl dev...loadavg sysctl

svn commit: r336158 - stable/11/sbin/fsck_msdosfs

2018-07-09 Thread Xin LI
Author: delphij Date: Tue Jul 10 02:46:31 2018 New Revision: 336158 URL: https://svnweb.freebsd.org/changeset/base/336158 Log: MFC r335655: Fix division by zero when reading boot block by postponing division until it is necessary and after we validated bytes per sector is non- zero.

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

2018-07-09 Thread Kyle Evans
Author: kevans Date: Tue Jul 10 02:43:22 2018 New Revision: 336157 URL: https://svnweb.freebsd.org/changeset/base/336157 Log: kern_environment: bool'itize dynamic_kenv; fix small style(9) nit Modified: head/sys/kern/kern_environment.c head/sys/sys/systm.h Modified:

svn commit: r336156 - head/usr.bin/gzip

2018-07-09 Thread Xin LI
Author: delphij Date: Tue Jul 10 01:42:28 2018 New Revision: 336156 URL: https://svnweb.freebsd.org/changeset/base/336156 Log: Use endian.h le32dec() instead of rolling our own. Suggested by: phk Reviewed by: imp, pfg MFC after:2 weeks Differential Revision:

Re: svn commit: r335836 - head/usr.bin/top

2018-07-09 Thread 後藤大地 via svn-src-all
I summarized in the Phabricator. Check it out please. https://reviews.freebsd.org/D16203 > 2018/07/05 1:37、Hiroki Sato のメール: > > Hiroki Sato wrote > in <20180703.020956.859981414196673670@allbsd.org>: > > hr> 後藤大地 wrote > hr> in <459bd898-8072-426e-a968-96c1382ac...@icloud.com>: >

svn commit: r336155 - stable/11/sys/conf

2018-07-09 Thread Jason A. Harmening
Author: jah Date: Tue Jul 10 01:06:43 2018 New Revision: 336155 URL: https://svnweb.freebsd.org/changeset/base/336155 Log: MFC r328489, r329232, r331836 r328489: Remove system makefile path directives from env passed to PORTS_MODULES step Previously, MAKESYSPATH as well as '-m'

svn commit: r336154 - head/sys/kern

2018-07-09 Thread Kyle Evans
Author: kevans Date: Tue Jul 10 00:36:37 2018 New Revision: 336154 URL: https://svnweb.freebsd.org/changeset/base/336154 Log: subr_hints: Skip static_env and static_hints if they don't contain hints This is possible because, well, they're static. Both the dynamic environment and the

svn commit: r336153 - head/sys/kern

2018-07-09 Thread Kyle Evans
Author: kevans Date: Tue Jul 10 00:34:19 2018 New Revision: 336153 URL: https://svnweb.freebsd.org/changeset/base/336153 Log: subr_hints: Convert some bool-like ints to bools Modified: head/sys/kern/subr_hints.c Modified: head/sys/kern/subr_hints.c

svn commit: r336152 - head/sys/kern

2018-07-09 Thread Kyle Evans
Author: kevans Date: Tue Jul 10 00:33:31 2018 New Revision: 336152 URL: https://svnweb.freebsd.org/changeset/base/336152 Log: subr_hints: Use goto/label instead of series of conditionals Modified: head/sys/kern/subr_hints.c Modified: head/sys/kern/subr_hints.c

svn commit: r336151 - head/kerberos5/usr.bin/verify_krb5_conf

2018-07-09 Thread Cy Schubert
Author: cy Date: Tue Jul 10 00:26:13 2018 New Revision: 336151 URL: https://svnweb.freebsd.org/changeset/base/336151 Log: Remove redundant space. MFC after:3 days Modified: head/kerberos5/usr.bin/verify_krb5_conf/Makefile Modified: head/kerberos5/usr.bin/verify_krb5_conf/Makefile

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

2018-07-09 Thread Daichi GOTO
Author: daichi Date: Tue Jul 10 00:19:52 2018 New Revision: 336150 URL: https://svnweb.freebsd.org/changeset/base/336150 Log: top(1): Fix the prompt bug and core dump problem in o / p mode that occurred by r336028 Reviewed by: cy Approved by: gnn (mentor) Differential Revision:

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

2018-07-09 Thread Mark Johnston
Author: markj Date: Tue Jul 10 00:18:12 2018 New Revision: 336149 URL: https://svnweb.freebsd.org/changeset/base/336149 Log: Fix pre-SI_SUB_CPU initialization of per-CPU counters. r336020 introduced pcpu_page_alloc(), replacing page_alloc() as the backend allocator for PCPU UMA zones.

svn commit: r336148 - in head: lib/libc/sys sys/sys

2018-07-09 Thread Warner Losh
Author: imp Date: Tue Jul 10 00:01:14 2018 New Revision: 336148 URL: https://svnweb.freebsd.org/changeset/base/336148 Log: Tweak documentation to RB_ constants to reflect current use RB_ASKNAME is no longer instructions to the boot loader to request a prompt for which kernel to boot.

svn commit: r336146 - stable/11/sys/dev/bxe

2018-07-09 Thread David C Somayajulu
Author: davidcs Date: Mon Jul 9 21:13:21 2018 New Revision: 336146 URL: https://svnweb.freebsd.org/changeset/base/336146 Log: MFC r333004 Fix Issue with adding MultiCast Addresses. When multicast addresses are added/deleted, the delete the multicast addresses previously programmed

Re: svn commit: r336144 - head/sys/powerpc/powernv

2018-07-09 Thread Ravi Pokala
-Original Message- From: on behalf of Justin Hibbits Date: 2018-07-09, Monday at 13:33 To: , , Subject: svn commit: r336144 - head/sys/powerpc/powernv > Author: jhibbits > Date: Mon Jul 9 20:33:48 2018 > New Revision: 336144 > URL: https://svnweb.freebsd.org/changeset/base/336144 >

svn commit: r336145 - head/usr.bin/localedef

2018-07-09 Thread Pedro F. Giffuni
Author: pfg Date: Mon Jul 9 20:38:47 2018 New Revision: 336145 URL: https://svnweb.freebsd.org/changeset/base/336145 Log: localedef(1): remove duplicated includes. Hinted by:DragonFlyBSD Modified: head/usr.bin/localedef/charmap.c head/usr.bin/localedef/localedef.c Modified:

svn commit: r336144 - head/sys/powerpc/powernv

2018-07-09 Thread Justin Hibbits
Author: jhibbits Date: Mon Jul 9 20:33:48 2018 New Revision: 336144 URL: https://svnweb.freebsd.org/changeset/base/336144 Log: powerpc/powernv: Make opal_i2c driver work with attached i2c drivers * FreeBSD stores addresses in 8 bit format, but the OPAL API requires the 7-bit address,

svn commit: r336143 - head/usr.bin/sed

2018-07-09 Thread Pedro F. Giffuni
Author: pfg Date: Mon Jul 9 20:27:31 2018 New Revision: 336143 URL: https://svnweb.freebsd.org/changeset/base/336143 Log: sed(1): Suppress implicit-fallthrough. Apparently some tools are not able to determine if all the cases of a switch are covered. Make use of the attribute for cases

svn commit: r336142 - head/sys/dev/ichiic

2018-07-09 Thread Oleksandr Tymoshenko
Author: gonzo Date: Mon Jul 9 20:00:45 2018 New Revision: 336142 URL: https://svnweb.freebsd.org/changeset/base/336142 Log: ig4(4): add devmatch(8) PNP info Now that we have all devices ids in a table add MODULE_PNP_INFO macro to let devmatch autoload module Modified:

svn commit: r336141 - in head/sys/fs: nfs nfsserver

2018-07-09 Thread Rick Macklem
Author: rmacklem Date: Mon Jul 9 19:58:01 2018 New Revision: 336141 URL: https://svnweb.freebsd.org/changeset/base/336141 Log: Add support for a "forced" pnfsdskill to the pNFS server kernel code. The pnfsdskill(8) command will normally fail if there is no valid mirror for the DS to be

svn commit: r336140 - in head/usr.bin/truncate: . tests

2018-07-09 Thread Emmanuel Vadot
Author: manu Date: Mon Jul 9 19:03:30 2018 New Revision: 336140 URL: https://svnweb.freebsd.org/changeset/base/336140 Log: truncate: Add support for -s % and / % round up to the multiple size and / round down This is compatible with gnu truncate. Add tests and document in the man

svn commit: r336139 - head/usr.bin/truncate

2018-07-09 Thread Emmanuel Vadot
Author: manu Date: Mon Jul 9 19:02:05 2018 New Revision: 336139 URL: https://svnweb.freebsd.org/changeset/base/336139 Log: truncate: style(9) some parts Modified: head/usr.bin/truncate/truncate.c Modified: head/usr.bin/truncate/truncate.c

svn commit: r336138 - head/sys/arm/freescale/imx

2018-07-09 Thread Ian Lepore
Author: ian Date: Mon Jul 9 19:00:39 2018 New Revision: 336138 URL: https://svnweb.freebsd.org/changeset/base/336138 Log: Add pnp info to the imx_spi driver. Modified: head/sys/arm/freescale/imx/imx_spi.c Modified: head/sys/arm/freescale/imx/imx_spi.c

svn commit: r336137 - head/share/man/man4/man4.arm

2018-07-09 Thread Ian Lepore
Author: ian Date: Mon Jul 9 19:00:13 2018 New Revision: 336137 URL: https://svnweb.freebsd.org/changeset/base/336137 Log: Add a manpage for the imx_spi driver. Added: head/share/man/man4/man4.arm/imx_spi.4 (contents, props changed) Added: head/share/man/man4/man4.arm/imx_spi.4

svn commit: r336136 - in head/tools/tools/nanobsd: embedded gateworks gateworks/Files/root gateworks/cfg gateworks/cfg/ssh

2018-07-09 Thread Warner Losh
Author: imp Date: Mon Jul 9 18:02:35 2018 New Revision: 336136 URL: https://svnweb.freebsd.org/changeset/base/336136 Log: Remove gateworks nanobsd support. A quick test of this shows multiple problems. Rather than fix the problems, just retire this board's support. It's for a 12 year

svn commit: r336135 - head/tools/boot

2018-07-09 Thread Warner Losh
Author: imp Date: Mon Jul 9 18:02:23 2018 New Revision: 336135 URL: https://svnweb.freebsd.org/changeset/base/336135 Log: Remove armeb from the list of architectures we build for the boot laoder testing scripts. It just adds to the build time, and will be retired soon anyway, per

Re: svn commit: r336130 - head/sys/dev/pci

2018-07-09 Thread Wojciech Macek
We will fix it, sorry for troubles. @wma 2018-07-09 18:10 GMT+02:00 Nathan Whitehorn : > Maybe this file should be renamed and/or split anyway? It's not actually > very generic and is used only on (some) ARM systems. > -Nathan > > > On 07/09/18 09:00, Andrew Turner wrote: > >> This breaks at

Re: svn commit: r336046 - in head/sys: amd64/include i386/include sys

2018-07-09 Thread Ravi Pokala
-Original Message- From: on behalf of "Rodney W. Grimes" Reply-To: Date: 2018-07-09, Monday at 09:12 To: Ian Lepore Cc: Alexey Dokuchaev , Brooks Davis , Konstantin Belousov , , , Subject: Re: svn commit: r336046 - in head/sys: amd64/include i386/include sys > Or svn could grow

Re: svn commit: r336130 - head/sys/dev/pci

2018-07-09 Thread Nathan Whitehorn
Maybe this file should be renamed and/or split anyway? It's not actually very generic and is used only on (some) ARM systems. -Nathan On 07/09/18 09:00, Andrew Turner wrote: This breaks at least armv7. Please either fix, or revert this. I have some comments below I was planning on adding to

Re: svn commit: r336046 - in head/sys: amd64/include i386/include sys

2018-07-09 Thread Rodney W. Grimes
[ Charset ISO-8859-1 unsupported, converting... ] > On Mon, 2018-07-09 at 14:58 +, Alexey Dokuchaev wrote: > > On Mon, Jul 09, 2018 at 09:23:27AM +, Brooks Davis wrote: > > > > > > On Sat, Jul 07, 2018 at 02:18:56AM +, Alexey Dokuchaev wrote: > > > > > > > > On Fri, Jul 06, 2018 at

Re: svn commit: r336066 - in head/sys: compat/linsysfs dev/pci

2018-07-09 Thread John Baldwin
On 7/7/18 8:25 AM, Warner Losh wrote: > Author: imp > Date: Sat Jul 7 15:25:11 2018 > New Revision: 336066 > URL: https://svnweb.freebsd.org/changeset/base/336066 > > Log: > Create PCI_MATCH and pci_match_device > > Create a covenience function to match PCI device IDs. It's about 15 >

Re: svn commit: r336130 - head/sys/dev/pci

2018-07-09 Thread Andrew Turner
This breaks at least armv7. Please either fix, or revert this. I have some comments below I was planning on adding to the review, but you committed before I had the time to do so. > On 9 Jul 2018, at 10:00, Wojciech Macek wrote: > > Author: wma > Date: Mon Jul 9 09:00:16 2018 > New Revision:

Re: svn commit: r336046 - in head/sys: amd64/include i386/include sys

2018-07-09 Thread Ian Lepore
On Mon, 2018-07-09 at 14:58 +, Alexey Dokuchaev wrote: > On Mon, Jul 09, 2018 at 09:23:27AM +, Brooks Davis wrote: > > > > On Sat, Jul 07, 2018 at 02:18:56AM +, Alexey Dokuchaev wrote: > > > > > > On Fri, Jul 06, 2018 at 10:52:37PM +0300, Konstantin Belousov wrote: > > > > > > > >

Re: svn commit: r336046 - in head/sys: amd64/include i386/include sys

2018-07-09 Thread Alexey Dokuchaev
On Mon, Jul 09, 2018 at 09:23:27AM +, Brooks Davis wrote: > On Sat, Jul 07, 2018 at 02:18:56AM +, Alexey Dokuchaev wrote: > > On Fri, Jul 06, 2018 at 10:52:37PM +0300, Konstantin Belousov wrote: > > > On Fri, Jul 06, 2018 at 07:50:25PM +, Konstantin Belousov wrote: > > > > New

svn commit: r336134 - head/sys/modules/amdsbwd

2018-07-09 Thread Ian Lepore
Author: ian Date: Mon Jul 9 14:18:03 2018 New Revision: 336134 URL: https://svnweb.freebsd.org/changeset/base/336134 Log: Add missing generated header file. Reported by: Julian H. Stacey Modified: head/sys/modules/amdsbwd/Makefile Modified: head/sys/modules/amdsbwd/Makefile

svn commit: r336133 - stable/11/sys/vm

2018-07-09 Thread Konstantin Belousov
Author: kib Date: Mon Jul 9 13:38:19 2018 New Revision: 336133 URL: https://svnweb.freebsd.org/changeset/base/336133 Log: MFC r336029: Style. Modified: stable/11/sys/vm/vm_map.c Directory Properties: stable/11/ (props changed) Modified: stable/11/sys/vm/vm_map.c

svn commit: r336132 - in head: sbin/ipfw sys/netinet sys/netpfil/ipfw

2018-07-09 Thread Andrey V. Elsukov
Author: ae Date: Mon Jul 9 11:35:18 2018 New Revision: 336132 URL: https://svnweb.freebsd.org/changeset/base/336132 Log: Add "record-state", "set-limit" and "defer-action" rule options to ipfw. "record-state" is similar to "keep-state", but it doesn't produce implicit O_PROBE_STATE

Re: svn commit: r336127 - head/usr.bin/gzip

2018-07-09 Thread Conrad Meyer
On Mon, Jul 9, 2018 at 1:37 AM, Conrad Meyer wrote: > Author: cem > Date: Mon Jul 9 08:37:55 2018 > New Revision: 336127 > URL: https://svnweb.freebsd.org/changeset/base/336127 > > Log: > gzip(1): Don't shadow global 'err' > > Unbreak work build on ppc due to -Werror=shadow. Introduced in

svn commit: r336131 - head/sys/net

2018-07-09 Thread Andrey V. Elsukov
Author: ae Date: Mon Jul 9 11:03:28 2018 New Revision: 336131 URL: https://svnweb.freebsd.org/changeset/base/336131 Log: Deduplicate the code. Add generic function if_tunnel_check_nesting() that does check for allowed nesting level for tunneling interfaces and also does loop

Re: svn commit: r336046 - in head/sys: amd64/include i386/include sys

2018-07-09 Thread Brooks Davis
On Sat, Jul 07, 2018 at 02:18:56AM +, Alexey Dokuchaev wrote: > On Fri, Jul 06, 2018 at 10:52:37PM +0300, Konstantin Belousov wrote: > > On Fri, Jul 06, 2018 at 07:50:25PM +, Konstantin Belousov wrote: > > > New Revision: 336046 > > > URL: https://svnweb.freebsd.org/changeset/base/336046 >

svn commit: r336130 - head/sys/dev/pci

2018-07-09 Thread Wojciech Macek
Author: wma Date: Mon Jul 9 09:00:16 2018 New Revision: 336130 URL: https://svnweb.freebsd.org/changeset/base/336130 Log: ARM64: Add quirk mechanism to pci_host_generic_acpi Add few quirks which are necessary to use AHCI on ThX2 Submitted by: Patryk Duda Obtained from:

svn commit: r336129 - in head/sys/dev: acpica pci

2018-07-09 Thread Wojciech Macek
Author: wma Date: Mon Jul 9 08:55:07 2018 New Revision: 336129 URL: https://svnweb.freebsd.org/changeset/base/336129 Log: ARM64: Add support for ThunderX2 PCIe Submitted by: Patryk Duda Obtained from: Semihalf Sponsored by: Cavium Differential revision:

svn commit: r336128 - in head/sys/arm64: arm64 include

2018-07-09 Thread Wojciech Macek
Author: wma Date: Mon Jul 9 08:41:54 2018 New Revision: 336128 URL: https://svnweb.freebsd.org/changeset/base/336128 Log: ARM64: Add ThunderX2 CPU revision macro. Add ThunderX2 name in identcpu.c Submitted by: Patryk Duda Obtained from: Semihalf Sponsored by:

svn commit: r336127 - head/usr.bin/gzip

2018-07-09 Thread Conrad Meyer
Author: cem Date: Mon Jul 9 08:37:55 2018 New Revision: 336127 URL: https://svnweb.freebsd.org/changeset/base/336127 Log: gzip(1): Don't shadow global 'err' Unbreak work build on ppc due to -Werror=shadow. Introduced in r336121. X-MFC-With: r336121 Modified:

svn commit: r336126 - in head: lib/libcrypt lib/libmd sbin/md5

2018-07-09 Thread Conrad Meyer
Author: cem Date: Mon Jul 9 08:19:04 2018 New Revision: 336126 URL: https://svnweb.freebsd.org/changeset/base/336126 Log: Integrate SHA2-224 with userspace components The double compilation of the kernel sources in libmd and libcrypt is baffling, but add yet another define hack to

svn commit: r336125 - in head: sys/opencrypto tools/tools/crypto

2018-07-09 Thread Conrad Meyer
Author: cem Date: Mon Jul 9 07:28:13 2018 New Revision: 336125 URL: https://svnweb.freebsd.org/changeset/base/336125 Log: OCF: Add plain hash modes In part, to support OpenSSL's use of cryptodev, which puts the HMAC pieces in software and only offloads the raw hash primitive. The

svn commit: r336124 - in head: sys/opencrypto tools/tools/crypto

2018-07-09 Thread Conrad Meyer
Author: cem Date: Mon Jul 9 07:26:12 2018 New Revision: 336124 URL: https://svnweb.freebsd.org/changeset/base/336124 Log: OCF: Add CRYPTO_SHA2_224_HMAC mode Round out the complete set of basic SHA2 HMAC modes with SHA2-224. Support is added to the cryptocheck test tool. Modified:

svn commit: r336123 - head/sys/crypto/sha2

2018-07-09 Thread Conrad Meyer
Author: cem Date: Mon Jul 9 07:24:05 2018 New Revision: 336123 URL: https://svnweb.freebsd.org/changeset/base/336123 Log: Implement SHA2-224 submode of SHA2-256 Like SHA2-384:SHA2-512, SHA2-224 is simply a truncated SHA2-256 with a different initial vector. Add to round out the

svn commit: r336122 - in head/sys: crypto/aesni crypto/ccp crypto/via dev/cesa dev/safe dev/ubsec opencrypto

2018-07-09 Thread Conrad Meyer
Author: cem Date: Mon Jul 9 07:21:37 2018 New Revision: 336122 URL: https://svnweb.freebsd.org/changeset/base/336122 Log: Remove "HMAC" from _HMAC_BLOCK_LEN macro names The block size is a property of the underlying hash algorithm, and has nothing to do with the HMAC construction.

svn commit: r336121 - head/usr.bin/gzip

2018-07-09 Thread Xin LI
Author: delphij Date: Mon Jul 9 06:19:33 2018 New Revision: 336121 URL: https://svnweb.freebsd.org/changeset/base/336121 Log: Don't delete outfile unconditionally. MFC after:1 month Modified: head/usr.bin/gzip/gzip.c Modified: head/usr.bin/gzip/gzip.c

svn commit: r336120 - stable/11/sbin/fsck_msdosfs

2018-07-09 Thread Xin LI
Author: delphij Date: Mon Jul 9 06:02:45 2018 New Revision: 336120 URL: https://svnweb.freebsd.org/changeset/base/336120 Log: MFC r335559: Don't bail out when we find primary and secondary bootblocks miscompare. We do not have code to fix this situation, and the mismatch does not