Re: svn commit: r303586 - head/bin/sh

2016-07-31 Thread Warner Losh
On Sun, Jul 31, 2016 at 2:16 PM, Jilles Tjoelker wrote: > On Sun, Jul 31, 2016 at 01:43:16PM +, Alexey Dokuchaev wrote: >> On Sun, Jul 31, 2016 at 01:11:34PM +, Jilles Tjoelker wrote: >> > New Revision: 303586 >> > URL: https://svnweb.freebsd.org/changeset/base/303586 >

Re: svn commit: r303583 - head/sys/amd64/amd64

2016-07-31 Thread Bruce Evans
On Sun, 31 Jul 2016, Konstantin Belousov wrote: On Sun, Jul 31, 2016 at 11:11:25PM +1000, Bruce Evans wrote: I said that I didn't replace (sse2) pagecopy() by bcopy() on amd64 for Haswell. Actually I do, for a small improvement on makeworld. i386 doesn't have (sse*) pagecopy() except in

svn commit: r303605 - head/sys/dev/hyperv/storvsc

2016-07-31 Thread Sepherosa Ziehau
Author: sephe Date: Mon Aug 1 05:09:11 2016 New Revision: 303605 URL: https://svnweb.freebsd.org/changeset/base/303605 Log: hyperv/storvsc: Stringent PRP list assertions MFC after:1 week Sponsored by: Microsoft Differential Revision:https://reviews.freebsd.org/D7361

svn commit: r303603 - in head/sys/dev/hyperv: include netvsc storvsc vmbus

2016-07-31 Thread Sepherosa Ziehau
Author: sephe Date: Mon Aug 1 04:26:24 2016 New Revision: 303603 URL: https://svnweb.freebsd.org/changeset/base/303603 Log: hyperv/vmbus: Remove the artificial entry limit of SG and PRP list. Just make sure that the total channel packet size does not exceed 1/2 data size of the TX

svn commit: r303604 - head/sys/dev/hyperv/storvsc

2016-07-31 Thread Sepherosa Ziehau
Author: sephe Date: Mon Aug 1 04:51:31 2016 New Revision: 303604 URL: https://svnweb.freebsd.org/changeset/base/303604 Log: hyperv/storvsc: Set maxio to 128KB. MFC after:1 week Sponsored by: Microsoft Differential Revision:https://reviews.freebsd.org/D7360 Modified:

svn commit: r303573 - head/cddl/contrib/opensolaris/lib/libzpool/common

2016-07-31 Thread Garrett Cooper
Author: ngie Date: Sun Jul 31 06:03:27 2016 New Revision: 303573 URL: https://svnweb.freebsd.org/changeset/base/303573 Log: Cast result from third parameter to int instead of promoting it to size_t This resolves a -Wformat issue when the value is used as a format width precision

Re: svn commit: r303342 - in head: include lib/libc/stdlib

2016-07-31 Thread Ed Schouten
Hi Antoine, 2016-07-31 8:37 GMT+02:00 Antoine Brodin : > This change broke a few games in the ports tree: > > http://beefy4.nyi.freebsd.org/data/head-amd64-default/p419204_s303419/logs/errors/falconseye-1.9.3_11.log >

svn commit: r303574 - head/sys/dev/gpio

2016-07-31 Thread Adrian Chadd
Author: adrian Date: Sun Jul 31 06:24:26 2016 New Revision: 303574 URL: https://svnweb.freebsd.org/changeset/base/303574 Log: [gpioled] add support for inverting the LED polarity. No, this isn't a star trek science joke - sometimes LEDs are wired up to be active low, so this is needed.

svn commit: r303575 - in head/tools/regression/zfs/zpool: add create

2016-07-31 Thread Garrett Cooper
Author: ngie Date: Sun Jul 31 06:28:40 2016 New Revision: 303575 URL: https://svnweb.freebsd.org/changeset/base/303575 Log: Remove calls to `die` added for associated bugs Panics are no longer hit with ^/head@r303573 on amd64 PR: 194586, 194587, 194589 Sponsored by: EMC /

svn commit: r303581 - in head/usr.bin/calendar/calendars: ru_RU.KOI8-R ru_RU.UTF-8

2016-07-31 Thread Andrey A. Chernov
Author: ache Date: Sun Jul 31 10:15:04 2016 New Revision: 303581 URL: https://svnweb.freebsd.org/changeset/base/303581 Log: Fix date Modified: head/usr.bin/calendar/calendars/ru_RU.KOI8-R/calendar.military head/usr.bin/calendar/calendars/ru_RU.UTF-8/calendar.military Modified:

svn commit: r303576 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2016-07-31 Thread Garrett Cooper
Author: ngie Date: Sun Jul 31 06:34:49 2016 New Revision: 303576 URL: https://svnweb.freebsd.org/changeset/base/303576 Log: Conditionalize code which defines sysctls per _KERNEL #ifdef guard This resolves several issues when compiling libzpool (userspace library), i.e.

svn commit: r303577 - head/sys/mips/atheros

2016-07-31 Thread Adrian Chadd
Author: adrian Date: Sun Jul 31 06:51:34 2016 New Revision: 303577 URL: https://svnweb.freebsd.org/changeset/base/303577 Log: [ar71xx_gpio] handle AR934x and QCA953x GPIO OE polarity. For reasons I won't comment on, the AR934x and QCA953x GPIO_OE register value is inverted - bit set ==

svn commit: r303578 - head/sys/mips/conf

2016-07-31 Thread Adrian Chadd
Author: adrian Date: Sun Jul 31 06:52:19 2016 New Revision: 303578 URL: https://svnweb.freebsd.org/changeset/base/303578 Log: [wdr4300] invert the GPIO LED polarity. This makes them behave correctly. Submitted by: Dan Nelson Modified:

Re: svn commit: r303575 - in head/tools/regression/zfs/zpool: add create

2016-07-31 Thread Ngie Cooper (yaneurabeya)
> On Jul 30, 2016, at 23:28, Garrett Cooper wrote: > > Author: ngie > Date: Sun Jul 31 06:28:40 2016 > New Revision: 303575 > URL: https://svnweb.freebsd.org/changeset/base/303575 > > Log: > Remove calls to `die` added for associated bugs > > Panics are no longer hit with

Re: svn commit: r303342 - in head: include lib/libc/stdlib

2016-07-31 Thread Antoine Brodin
On Tue, Jul 26, 2016 at 11:41 PM, Ed Schouten wrote: > Hi Pedro, Benjamin, > > 2016-07-26 22:35 GMT+02:00 Pedro Giffuni : >> On 07/26/16 15:14, Benjamin Kaduk wrote: >>> Is a __FreeBSD_version bump planned? (Third-party software might want >>> to be

svn commit: r303583 - head/sys/amd64/amd64

2016-07-31 Thread Mateusz Guzik
Author: mjg Date: Sun Jul 31 11:34:08 2016 New Revision: 303583 URL: https://svnweb.freebsd.org/changeset/base/303583 Log: amd64: implement pagezero using rep stos The current implementation uses non-temporal writes. This turns out to be detrimental to performance if the page is used

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

2016-07-31 Thread Adrian Chadd
Author: adrian Date: Sun Jul 31 06:53:50 2016 New Revision: 303579 URL: https://svnweb.freebsd.org/changeset/base/303579 Log: [gpioled] update manpage. Submitted by: Dan Nelson Modified: head/share/man/man4/gpioled.4 Modified: head/share/man/man4/gpioled.4

svn commit: r303580 - in head: include lib/libc/gen usr.sbin/pw

2016-07-31 Thread Ed Schouten
Author: ed Date: Sun Jul 31 08:05:15 2016 New Revision: 303580 URL: https://svnweb.freebsd.org/changeset/base/303580 Log: Fix up setgrent(3) to have a POSIX-compliant prototype. Just like with freelocale(3), I haven't been able to find any piece of code that actually makes use of this

svn commit: r303584 - head/sys/kern

2016-07-31 Thread Mateusz Guzik
Author: mjg Date: Sun Jul 31 12:11:55 2016 New Revision: 303584 URL: https://svnweb.freebsd.org/changeset/base/303584 Log: locks: change sleep_cnt and spin_cnt types to u_int Both variables are uint64_t, but they only count spins or sleeps. All reasonable values which we can get here

svn commit: r303585 - head/sys/arm64/arm64

2016-07-31 Thread Andrew Turner
Author: andrew Date: Sun Jul 31 12:59:10 2016 New Revision: 303585 URL: https://svnweb.freebsd.org/changeset/base/303585 Log: Relax the barriers around a TLB invalidation to only wait on inner-shareable memory accesses. There is no need for full system barriers. Obtained from:ABT

Re: svn commit: r303586 - head/bin/sh

2016-07-31 Thread Alexey Dokuchaev
On Sun, Jul 31, 2016 at 01:11:34PM +, Jilles Tjoelker wrote: > New Revision: 303586 > URL: https://svnweb.freebsd.org/changeset/base/303586 > > Log: > sh: Fix a clang warning. > > Submitted by: bdrewery > > Modified: > head/bin/sh/expand.c > > Modified: head/bin/sh/expand.c >

Re: svn commit: r303583 - head/sys/amd64/amd64

2016-07-31 Thread Bruce Evans
On Sun, 31 Jul 2016, Slawa Olhovchenkov wrote: On Sun, Jul 31, 2016 at 11:11:25PM +1000, Bruce Evans wrote: Misalignment of this loop made it almost twice as slow on old Turion2 with slow DDR2 memory. It made no difference on Haswell. I added an extra movnti, but that makes little or no

svn commit: r303588 - head/usr.bin/indent

2016-07-31 Thread Pedro F. Giffuni
Author: pfg Date: Sun Jul 31 15:02:53 2016 New Revision: 303588 URL: https://svnweb.freebsd.org/changeset/base/303588 Log: indent(1): Remove dead code relating to unix-style comments. The original indent(1) described unix-style comments as similar to box comments, except the first

Re: svn commit: r303583 - head/sys/amd64/amd64

2016-07-31 Thread Bruce Evans
On Sun, 31 Jul 2016, Mateusz Guzik wrote: Log: amd64: implement pagezero using rep stos The current implementation uses non-temporal writes. This turns out to be detrimental to performance if the page is used shortly after, which is the typical case with page faults. Switch to rep stos.

svn commit: r303586 - head/bin/sh

2016-07-31 Thread Jilles Tjoelker
Author: jilles Date: Sun Jul 31 13:11:34 2016 New Revision: 303586 URL: https://svnweb.freebsd.org/changeset/base/303586 Log: sh: Fix a clang warning. Submitted by: bdrewery Modified: head/bin/sh/expand.c Modified: head/bin/sh/expand.c

Re: svn commit: r303583 - head/sys/amd64/amd64

2016-07-31 Thread Slawa Olhovchenkov
On Sun, Jul 31, 2016 at 11:11:25PM +1000, Bruce Evans wrote: > Misalignment of this loop made it almost twice as slow on old Turion2 with > slow DDR2 memory. It made no difference on Haswell. I added an extra > movnti, but that makes little or no differences. 2 more movnti's wouldn't > fit in

svn commit: r303587 - head/sys/arm64/arm64

2016-07-31 Thread Andrew Turner
Author: andrew Date: Sun Jul 31 14:59:44 2016 New Revision: 303587 URL: https://svnweb.freebsd.org/changeset/base/303587 Log: Fix the comment above pmap_invalidate_page. tlbi will invalidate the tlb on all CPUs. Obtained from:ABT Systems Ltd MFC after:1 month Sponsored

Re: svn commit: r303583 - head/sys/amd64/amd64

2016-07-31 Thread Slawa Olhovchenkov
On Sun, Jul 31, 2016 at 06:26:29PM +0300, Slawa Olhovchenkov wrote: > On Mon, Aug 01, 2016 at 12:30:14AM +1000, Bruce Evans wrote: > > > On Sun, 31 Jul 2016, Slawa Olhovchenkov wrote: > > > > > On Sun, Jul 31, 2016 at 11:11:25PM +1000, Bruce Evans wrote: > > > > > >> Misalignment of this loop

Re: svn commit: r303583 - head/sys/amd64/amd64

2016-07-31 Thread Slawa Olhovchenkov
On Mon, Aug 01, 2016 at 12:30:14AM +1000, Bruce Evans wrote: > On Sun, 31 Jul 2016, Slawa Olhovchenkov wrote: > > > On Sun, Jul 31, 2016 at 11:11:25PM +1000, Bruce Evans wrote: > > > >> Misalignment of this loop made it almost twice as slow on old Turion2 with > >> slow DDR2 memory. It made no

svn commit: r303592 - head/sys/arm64/arm64

2016-07-31 Thread Andrew Turner
Author: andrew Date: Sun Jul 31 17:53:09 2016 New Revision: 303592 URL: https://svnweb.freebsd.org/changeset/base/303592 Log: Extract the common parts of pmap_kenter_device to a new function. This will be used when superpage support is added. Obtained from:ABT Systems Ltd MFC

svn commit: r303595 - head/usr.bin/nl

2016-07-31 Thread Baptiste Daroussin
Author: bapt Date: Sun Jul 31 19:02:19 2016 New Revision: 303595 URL: https://svnweb.freebsd.org/changeset/base/303595 Log: Remove another occurence of _WITH_GETLINE Modified: head/usr.bin/nl/nl.c Modified: head/usr.bin/nl/nl.c

svn commit: r303596 - head/usr.bin/indent

2016-07-31 Thread Pedro F. Giffuni
Author: pfg Date: Sun Jul 31 20:04:18 2016 New Revision: 303596 URL: https://svnweb.freebsd.org/changeset/base/303596 Log: indent(1): Simplify pr_comment(). Modify count_spaces() to take a third parameter "end" that will make the function return when the end is reached. This lets the

Re: svn commit: r303586 - head/bin/sh

2016-07-31 Thread Jilles Tjoelker
On Sun, Jul 31, 2016 at 01:43:16PM +, Alexey Dokuchaev wrote: > On Sun, Jul 31, 2016 at 01:11:34PM +, Jilles Tjoelker wrote: > > New Revision: 303586 > > URL: https://svnweb.freebsd.org/changeset/base/303586 > > Log: > > sh: Fix a clang warning. > > Submitted by: bdrewery > >

svn commit: r303593 - head/sbin/resolvconf

2016-07-31 Thread Pedro F. Giffuni
Author: pfg Date: Sun Jul 31 18:14:42 2016 New Revision: 303593 URL: https://svnweb.freebsd.org/changeset/base/303593 Log: resolvconf(8) now needs an additional @RESTARTCMD@ replacement when installing. After r303062, which brought openresolv 3.8.1, we need to replace an additional

svn commit: r303594 - head/sys/arm64/include

2016-07-31 Thread Andrew Turner
Author: andrew Date: Sun Jul 31 18:58:20 2016 New Revision: 303594 URL: https://svnweb.freebsd.org/changeset/base/303594 Log: Add the Data Fault Status Code values to the ESR_ELx registers for when the fault code is a Data Abort. Obtained from:AT Systems Ltd MFC after:1

svn commit: r303598 - head/usr.bin/indent

2016-07-31 Thread Pedro F. Giffuni
Author: pfg Date: Sun Jul 31 21:09:22 2016 New Revision: 303598 URL: https://svnweb.freebsd.org/changeset/base/303598 Log: indent(1): Untangle the connection between pr_comment.c and io.c. It's pr_comment.c that should decide whether to put a "star comment continuation" or not. This

svn commit: r303599 - head/usr.bin/indent

2016-07-31 Thread Pedro F. Giffuni
Author: pfg Date: Sun Jul 31 21:29:10 2016 New Revision: 303599 URL: https://svnweb.freebsd.org/changeset/base/303599 Log: indent(1): Don't newline on cpp lines like #endif unless -bacc is on. Reference:

svn commit: r303601 - head/usr.bin/indent

2016-07-31 Thread Pedro F. Giffuni
Author: pfg Date: Sun Jul 31 21:43:43 2016 New Revision: 303601 URL: https://svnweb.freebsd.org/changeset/base/303601 Log: indent(1): Rearrange option parsing code to squelch clang's static analyzer. clang-analyzer complained that eqin() sets file-scoped pointer param_start to point into

svn commit: r303600 - head/usr.bin/indent

2016-07-31 Thread Pedro F. Giffuni
Author: pfg Date: Sun Jul 31 21:36:40 2016 New Revision: 303600 URL: https://svnweb.freebsd.org/changeset/base/303600 Log: indent(1): replace function call to bzero with memset. Reference: https://github.com/pstef/freebsd_indent/commit/7422f42f80099c69d34833d7106035dc09230235

svn commit: r303602 - head/sys/dev/ath

2016-07-31 Thread Adrian Chadd
Author: adrian Date: Mon Aug 1 00:36:29 2016 New Revision: 303602 URL: https://svnweb.freebsd.org/changeset/base/303602 Log: [ath] update comments. Modified: head/sys/dev/ath/if_athioctl.h Modified: head/sys/dev/ath/if_athioctl.h