Re: svn commit: r326095 - head/usr.sbin/bsdinstall/scripts

2017-11-22 Thread Emmanuel Vadot
On 2017-11-22 17:38, Ian Lepore wrote: On Wed, 2017-11-22 at 15:27 +, Emmanuel Vadot wrote: Author: manu Date: Wed Nov 22 15:27:47 2017 New Revision: 326095 URL: https://svnweb.freebsd.org/changeset/base/326095 Log:   bsdinstall: Add ntpdate option      When you install a computer for the f

svn commit: r326117 - head/sys/netpfil/ipfw

2017-11-22 Thread Andrey V. Elsukov
Author: ae Date: Thu Nov 23 07:05:25 2017 New Revision: 326117 URL: https://svnweb.freebsd.org/changeset/base/326117 Log: Check that address family of state matches address family of packet. If it is not matched avoid comparing other state fields. Obtained from:Yandex LLC MFC

svn commit: r326116 - head/sys/netpfil/ipfw

2017-11-22 Thread Andrey V. Elsukov
Author: ae Date: Thu Nov 23 06:04:57 2017 New Revision: 326116 URL: https://svnweb.freebsd.org/changeset/base/326116 Log: Move ipfw_send_pkt() from ip_fw_dynamic.c into ip_fw2.c. It is not specific for dynamic states function and called also from generic code. Obtained from:Yand

svn commit: r326115 - head/sys/netpfil/ipfw

2017-11-22 Thread Andrey V. Elsukov
Author: ae Date: Thu Nov 23 05:55:53 2017 New Revision: 326115 URL: https://svnweb.freebsd.org/changeset/base/326115 Log: Rework rule ranges matching. Use comparison rule id with UINT32_MAX to match all rules with the same rule number. Obtained from:Yandex LLC MFC after:1 we

svn commit: r326114 - in head/sys/arm/allwinner: a83t clkng

2017-11-22 Thread Kyle Evans
Author: kevans Date: Thu Nov 23 05:54:04 2017 New Revision: 326114 URL: https://svnweb.freebsd.org/changeset/base/326114 Log: Allwinner a83t: add ccung bits Upstream DTS has switched to using CCU rather than /clocks nodes. Add a CCU driver for the a83t to bring us closer to upstream, but

svn commit: r326113 - head/sys/arm/allwinner/clkng

2017-11-22 Thread Kyle Evans
Author: kevans Date: Thu Nov 23 05:43:44 2017 New Revision: 326113 URL: https://svnweb.freebsd.org/changeset/base/326113 Log: aw_ccung: changes to accommodate upcoming a83t support Add a means to specify mask/value for the prediv condition instead of shift/width/value for clocks that have

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

2017-11-22 Thread Mateusz Guzik
oops, fixed in r326107 On Thu, Nov 23, 2017 at 4:17 AM, Shawn Webb wrote: > On Wed, Nov 22, 2017 at 10:04:04PM +, Mateusz Guzik wrote: > > Author: mjg > > Date: Wed Nov 22 22:04:04 2017 > > New Revision: 326107 > > URL: https://svnweb.freebsd.org/changeset/base/326107 > > > > Log: > > lock

svn commit: r326112 - head/sys/kern

2017-11-22 Thread Mateusz Guzik
Author: mjg Date: Thu Nov 23 03:40:51 2017 New Revision: 326112 URL: https://svnweb.freebsd.org/changeset/base/326112 Log: sx: unbreak debug after r326107 An assertion was modified to use the found value, but it was not updated to handle a race where blocked threads appear after the entra

svn commit: r326111 - head/sys/kern

2017-11-22 Thread Mateusz Guzik
Author: mjg Date: Thu Nov 23 03:20:12 2017 New Revision: 326111 URL: https://svnweb.freebsd.org/changeset/base/326111 Log: rwlock: unbreak WITNESS builds after r326110 Reported by: Shawn Webb Modified: head/sys/kern/kern_rwlock.c Modified: head/sys/kern/kern_rwlock.c ==

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

2017-11-22 Thread Shawn Webb
On Wed, Nov 22, 2017 at 10:04:04PM +, Mateusz Guzik wrote: > Author: mjg > Date: Wed Nov 22 22:04:04 2017 > New Revision: 326107 > URL: https://svnweb.freebsd.org/changeset/base/326107 > > Log: > locks: pass the found lock value to unlock slow path > > This avoids an explicit read later

Re: svn commit: r326110 - head/sys/kern

2017-11-22 Thread Shawn Webb
On Wed, Nov 22, 2017 at 11:52:05PM +, Mateusz Guzik wrote: > Author: mjg > Date: Wed Nov 22 23:52:05 2017 > New Revision: 326110 > URL: https://svnweb.freebsd.org/changeset/base/326110 > > Log: > rwlock: don't check for curthread's read lock count in the fast path > > Modified: > head/sys

svn commit: r326110 - head/sys/kern

2017-11-22 Thread Mateusz Guzik
Author: mjg Date: Wed Nov 22 23:52:05 2017 New Revision: 326110 URL: https://svnweb.freebsd.org/changeset/base/326110 Log: rwlock: don't check for curthread's read lock count in the fast path Modified: head/sys/kern/kern_rwlock.c Modified: head/sys/kern/kern_rwlock.c

svn commit: r326109 - in head/sys: conf dev/bhnd dev/bhnd/cores/chipc mips/conf modules/bhnd

2017-11-22 Thread Landon J. Fuller
Author: landonf Date: Wed Nov 22 23:10:20 2017 New Revision: 326109 URL: https://svnweb.freebsd.org/changeset/base/326109 Log: bhnd(4): Add a basic ChipCommon GPIO driver sufficient to support bwn(4) The driver is functional on both BHND Wi-Fi adapters and MIPS SoCs, but does not currentl

Re: svn commit: r326073 - head/usr.bin/systat

2017-11-22 Thread Konstantin Belousov
On Thu, Nov 23, 2017 at 04:24:13AM +1100, Bruce Evans wrote: > sysctl/sysctl.c: >sysctl(8) has bogus support for prettyprinting struct vmtotal (sysctl >shouldn't have any prettyprinting, especially not for structs that have >specialized programs to print them and much more). This uses

svn commit: r326108 - head/usr.bin/systat

2017-11-22 Thread Konstantin Belousov
Author: kib Date: Wed Nov 22 22:04:27 2017 New Revision: 326108 URL: https://svnweb.freebsd.org/changeset/base/326108 Log: Order declarations alphabetically. Match signess of the format and the value. Noted by: bde Sponsored by: The FreeBSD Foundation Modified: head/usr.bin/systa

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

2017-11-22 Thread Mateusz Guzik
Author: mjg Date: Wed Nov 22 22:04:04 2017 New Revision: 326107 URL: https://svnweb.freebsd.org/changeset/base/326107 Log: locks: pass the found lock value to unlock slow path This avoids an explicit read later. While here whack the cheaply obtainable 'tid' argument. Modified: head/

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

2017-11-22 Thread Mateusz Guzik
Author: mjg Date: Wed Nov 22 21:51:17 2017 New Revision: 326106 URL: https://svnweb.freebsd.org/changeset/base/326106 Log: locks: remove the file + line argument from internal primitives when not used The pair is of use only in debug or LOCKPROF kernels, but was passed (zeroed) for many l

svn commit: r326105 - stable/10/lib/libnetgraph

2017-11-22 Thread Alexander Motin
Author: mav Date: Wed Nov 22 21:24:47 2017 New Revision: 326105 URL: https://svnweb.freebsd.org/changeset/base/326105 Log: MFC r325552: s/NgSendMsgReply/NgSendReplyMsg/ in man to match the code. Submitted by: Dmitry Luhtionov Modified: stable/10/lib/libnetgraph/Makefile stable/10/lib/

svn commit: r326104 - in stable/11: lib/libnetgraph tools/build/mk

2017-11-22 Thread Alexander Motin
Author: mav Date: Wed Nov 22 21:22:09 2017 New Revision: 326104 URL: https://svnweb.freebsd.org/changeset/base/326104 Log: MFC r325552: s/NgSendMsgReply/NgSendReplyMsg/ in man to match the code. Submitted by: Dmitry Luhtionov Modified: stable/11/lib/libnetgraph/Makefile stable/11/lib/

svn commit: r326103 - stable/11/usr.sbin/syslogd

2017-11-22 Thread Gleb Smirnoff
Author: glebius Date: Wed Nov 22 21:20:26 2017 New Revision: 326103 URL: https://svnweb.freebsd.org/changeset/base/326103 Log: MFC r325558: When parsing UDP messages skip optional hostname as described by RFC 3164. PR: 200933 Submitted by: maxim Reported by: Konsta

svn commit: r326102 - in head/sys: conf dev/bhnd dev/bhnd/bcma dev/bhnd/bhndb dev/bhnd/cores/chipc dev/bhnd/cores/chipc/pwrctl dev/bhnd/cores/pmu dev/bhnd/siba mips/broadcom modules/bhnd modules/bh...

2017-11-22 Thread Landon J. Fuller
Author: landonf Date: Wed Nov 22 20:27:46 2017 New Revision: 326102 URL: https://svnweb.freebsd.org/changeset/base/326102 Log: bhnd(4): extend the PMU APIs to support bwn(4) The bwn(4) driver requires a number of extensions to the bhnd(4) PMU interface to support external configuration of

svn commit: r326101 - head/lib/libcam/tests

2017-11-22 Thread Alan Somers
Author: asomers Date: Wed Nov 22 19:58:29 2017 New Revision: 326101 URL: https://svnweb.freebsd.org/changeset/base/326101 Log: Add a test case for cam_get_device with sa(4) devices sa(4) has some unique behavior that is special-cased in cam_get_device. The existing tests don't provide cov

svn commit: r326100 - head/sys/cam

2017-11-22 Thread Alan Somers
Author: asomers Date: Wed Nov 22 19:57:34 2017 New Revision: 326100 URL: https://svnweb.freebsd.org/changeset/base/326100 Log: Always null-terminate CAM periph_name and dev_name Reported by: Coverity CID: 1010039, 1010040, 1010041, 1010043 Reviewed by: ken, imp MFC after:

Re: svn commit: r325239 - head/sys/dev/ena

2017-11-22 Thread Gleb Smirnoff
Michał, thanks for explanation. Looks like in this case software counters are indeed superior to hardware ones. On Wed, Nov 22, 2017 at 05:19:54PM +0100, Michał Krawczyk wrote: M> Hi Gleb, M> We are counting the statistics in the software because of the alignment M> with the newest ena-com AP

svn commit: r326099 - head/usr.bin/iscsictl

2017-11-22 Thread Niclas Zeising
Author: zeising (doc,ports committer) Date: Wed Nov 22 18:06:41 2017 New Revision: 326099 URL: https://svnweb.freebsd.org/changeset/base/326099 Log: Fix language in a bunch of error messages. Reviewed by: emaste Approved by: emaste MFC after:1 month Diffe

Re: svn commit: r326036 - head/sys/cam/scsi

2017-11-22 Thread Justin T. Gibbs
I'm sure it was to improve the performance of some SSD we were testing at Spectra. -- Justin > On Nov 22, 2017, at 9:16 AM, Alan Somers wrote: > > I believe the original motivation was to reduce FLUSH CACHE EXT > activity with some old SSDs that handled that command very slowly. > gibbs might

Re: svn commit: r326073 - head/usr.bin/systat

2017-11-22 Thread Bruce Evans
On Wed, 22 Nov 2017, Konstantin Belousov wrote: On Wed, Nov 22, 2017 at 08:59:21AM +1100, Bruce Evans wrote: On Tue, 21 Nov 2017, Konstantin Belousov wrote: Log: systat: use and correctly display 64bit counters. ... Using unsigned types gives sign extension bugs as usual. In old versions .

svn commit: r326098 - head/sys/vm

2017-11-22 Thread Konstantin Belousov
Author: kib Date: Wed Nov 22 16:45:27 2017 New Revision: 326098 URL: https://svnweb.freebsd.org/changeset/base/326098 Log: Return different error code for the guard page layout violation. On KERN_NO_SPACE error, as it is returned now, vm_map_find() continues the loop searching for the sui

svn commit: r326097 - head/sys/vm

2017-11-22 Thread Alan Cox
Author: alc Date: Wed Nov 22 16:39:24 2017 New Revision: 326097 URL: https://svnweb.freebsd.org/changeset/base/326097 Log: When vm_map_find(find_space = VMFS_OPTIMAL_SPACE) fails to find space, a second scan of the address space with find_space = VMFS_ANY_SPACE is performed. Previously, vm_

Re: svn commit: r326095 - head/usr.sbin/bsdinstall/scripts

2017-11-22 Thread Ian Lepore
On Wed, 2017-11-22 at 15:27 +, Emmanuel Vadot wrote: > Author: manu > Date: Wed Nov 22 15:27:47 2017 > New Revision: 326095 > URL: https://svnweb.freebsd.org/changeset/base/326095 > > Log: >   bsdinstall: Add ntpdate option >    >   When you install a computer for the first time, the date in t

Re: svn commit: r325239 - head/sys/dev/ena

2017-11-22 Thread Michał Krawczyk
Hi Gleb, We are counting the statistics in the software because of the alignment with the newest ena-com API (HAL) which is delivered to us from NIC's vendor. Regarding fetching them periodically - there are 2 issues with that. First of all, there may be problem with the counter overflow. Secondly

Re: svn commit: r326036 - head/sys/cam/scsi

2017-11-22 Thread Alan Somers
I believe the original motivation was to reduce FLUSH CACHE EXT activity with some old SSDs that handled that command very slowly. gibbs might know more. On Tue, Nov 21, 2017 at 1:14 PM, Ronald Klop wrote: > Out of curiosity, What is the use case which this improves? Does happen in > daily usage

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: r326095 - head/usr.sbin/bsdinstall/scripts

2017-11-22 Thread Emmanuel Vadot
Author: manu Date: Wed Nov 22 15:27:47 2017 New Revision: 326095 URL: https://svnweb.freebsd.org/changeset/base/326095 Log: bsdinstall: Add ntpdate option When you install a computer for the first time, the date in the CMOS sometimes not accurate and you need to ntpdate as ntpd will fail

svn commit: r326094 - head/usr.sbin/bsdinstall/scripts

2017-11-22 Thread Ed Maste
Author: emaste Date: Wed Nov 22 15:18:11 2017 New Revision: 326094 URL: https://svnweb.freebsd.org/changeset/base/326094 Log: Fix indentation in bsdinstall-created wpa_supplicant.conf r309934 cleaned up some cases in bsdinstall to use heredocs but broke the indentation of the generated ou

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: r326092 - head/sys/riscv/riscv

2017-11-22 Thread Ruslan Bukin
Author: br Date: Wed Nov 22 14:10:58 2017 New Revision: 326092 URL: https://svnweb.freebsd.org/changeset/base/326092 Log: o Invalidate the correct page in pmap_protect(). With this bug fix we don't need to invalidate all the entries. o Remove a call to pmap_invalidate_all(). This was never

svn commit: r326091 - in stable/11: share/man/man4 sys/cam/ctl

2017-11-22 Thread Emmanuel Vadot
Author: manu Date: Wed Nov 22 14:06:40 2017 New Revision: 326091 URL: https://svnweb.freebsd.org/changeset/base/326091 Log: MFC r325517, r325554 r325517: ctl: Make max_luns and max_ports tunable variables instead of hardcoded defines. Reviewed by: trasz (earlier version), bapt (ea

Re: svn commit: r326073 - head/usr.bin/systat

2017-11-22 Thread Konstantin Belousov
On Wed, Nov 22, 2017 at 08:59:21AM +1100, Bruce Evans wrote: > On Tue, 21 Nov 2017, Konstantin Belousov wrote: > > > Log: > > systat: use and correctly display 64bit counters. > > > > Following struct vmtotal changes, make systat use and correctly > > display 64-bit counters. Switch to humaniz

svn commit: r326090 - head/stand/common

2017-11-22 Thread Toomas Soome
Author: tsoome Date: Wed Nov 22 10:04:09 2017 New Revision: 326090 URL: https://svnweb.freebsd.org/changeset/base/326090 Log: net_parse_rootpath() has no parameters Add void for parameter list. Modified: head/stand/common/dev_net.c Modified: head/stand/common/dev_net.c =

svn commit: r326089 - head/stand/efi/libefi

2017-11-22 Thread Toomas Soome
Author: tsoome Date: Wed Nov 22 08:48:00 2017 New Revision: 326089 URL: https://svnweb.freebsd.org/changeset/base/326089 Log: loader.efi: efipart does not recognize partitionless disks Rework the block device handle check to allow more robust device classification. This is mostly usabilit