svn commit: r319936 - head/sys/powerpc/mpc85xx

2017-06-13 Thread Justin Hibbits
Author: jhibbits Date: Wed Jun 14 04:26:37 2017 New Revision: 319936 URL: https://svnweb.freebsd.org/changeset/base/319936 Log: Actually add the mpc85xx_get_platform_clock() function. Follow up r319935 by actually committing the mpc85xx_get_platform_clock() function. This function was cr

svn commit: r319935 - head/sys/powerpc/mpc85xx

2017-06-13 Thread Justin Hibbits
Author: jhibbits Date: Wed Jun 14 04:16:37 2017 New Revision: 319935 URL: https://svnweb.freebsd.org/changeset/base/319935 Log: Use mpc85xx_get_platform_clock() instead of rolling our own. Now that we have a single source for the platform clock, we don't need to roll our own in every user

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

2017-06-13 Thread Mark Johnston
Author: markj Date: Wed Jun 14 03:55:11 2017 New Revision: 319934 URL: https://svnweb.freebsd.org/changeset/base/319934 Log: Don't call vm_pager_page_unswapped() when writing or deleting a dirty page. The swap space backing a clean page is released when it is first dirtied, so there's no

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

2017-06-13 Thread Mark Johnston
Author: markj Date: Wed Jun 14 03:50:02 2017 New Revision: 319933 URL: https://svnweb.freebsd.org/changeset/base/319933 Log: Free the request page if an I/O error occurs while reading from swap. After such a failure, the page is invalid, so there's point in keeping it around. Moreover, su

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

2017-06-13 Thread Mark Johnston
Author: markj Date: Wed Jun 14 03:45:26 2017 New Revision: 319932 URL: https://svnweb.freebsd.org/changeset/base/319932 Log: Fix handling of subpage BIO_WRITE and BIO_DELETE requests on swap MDs. Such requests would previously mark the entire page as valid, which was incorrect since nothi

svn commit: r319930 - head/contrib/ipfilter/tools

2017-06-13 Thread Cy Schubert
Author: cy Date: Wed Jun 14 02:42:38 2017 New Revision: 319930 URL: https://svnweb.freebsd.org/changeset/base/319930 Log: Chase r319848: remove -v option from getopt() call. Modified: head/contrib/ipfilter/tools/ippool.c Modified: head/contrib/ipfilter/tools/ippool.c

svn commit: r319929 - head/contrib/ipfilter/tools

2017-06-13 Thread Cy Schubert
Author: cy Date: Wed Jun 14 02:41:22 2017 New Revision: 319929 URL: https://svnweb.freebsd.org/changeset/base/319929 Log: -n (do nothing) is not a commmand option. Modified: head/contrib/ipfilter/tools/ippool.c Modified: head/contrib/ipfilter/tools/ippool.c ==

svn commit: r319928 - head/sys/dev/vt/hw/vga

2017-06-13 Thread Ngie Cooper
Author: ngie Date: Wed Jun 14 02:28:10 2017 New Revision: 319928 URL: https://svnweb.freebsd.org/changeset/base/319928 Log: Use nitems(..) when computing `max` instead of the longhand version of the same logic MFC after:1 month Modified: head/sys/dev/vt/hw/vga/vt_vga.c Modified: h

svn commit: r319923 - head/share/misc

2017-06-13 Thread Ryan Libby
Author: rlibby Date: Tue Jun 13 23:50:55 2017 New Revision: 319923 URL: https://svnweb.freebsd.org/changeset/base/319923 Log: Add myself (rlibby) as a src committer and markj as my mentor. Approved by: markj (mentor) Differential Revision:https://reviews.freebsd.org/D11189 Modif

svn commit: r319922 - head/sys/dev/bnxt

2017-06-13 Thread Sean Bruno
Author: sbruno Date: Tue Jun 13 23:49:49 2017 New Revision: 319922 URL: https://svnweb.freebsd.org/changeset/base/319922 Log: bnxt: In case of multi queues, have unique name for different IRQs. Submitted by: bhargava.marre...@broadcom.com Differential Revision:https://reviews.free

Re: svn commit: r319913 - head/sys/dev/hwpmc

2017-06-13 Thread Andrew Turner
> On 13 Jun 2017, at 19:53, Zbigniew Bodek wrote: > > Author: zbb > Date: Tue Jun 13 18:53:56 2017 > New Revision: 319913 > URL: https://svnweb.freebsd.org/changeset/base/319913 > > Log: > Fix INVARIANTS debug code in HWPMC > > When HWPMC stops sampling, ps_pmc may be freed before samples >

svn commit: r319921 - head/sys/net

2017-06-13 Thread Sean Bruno
Author: sbruno Date: Tue Jun 13 23:16:38 2017 New Revision: 319921 URL: https://svnweb.freebsd.org/changeset/base/319921 Log: Add new sysctl to allow changing of timing of the txq timers. Add new sysctl to override use of busdma in the driver. Submitted by: Drew Gallitin Modified:

svn commit: r319918 - in head/lib/clang: libclang liblldb libllvm

2017-06-13 Thread Dimitry Andric
Author: dim Date: Tue Jun 13 21:01:06 2017 New Revision: 319918 URL: https://svnweb.freebsd.org/changeset/base/319918 Log: Revert r319796 for now, it can cause undefined references when linking in some circumstances. Reported by: Shawn Webb Modified: head/lib/clang/libclang/Makefile

Re: svn commit: r319796 - in head/lib/clang: libclang liblldb libllvm

2017-06-13 Thread Shawn Webb
Hey Dimitry, On Sat, Jun 10, 2017 at 06:52:13PM +, Dimitry Andric wrote: > Author: dim > Date: Sat Jun 10 18:52:13 2017 > New Revision: 319796 > URL: https://svnweb.freebsd.org/changeset/base/319796 > > Log: > Remove a few unneeded files from libllvm, libclang and liblldb. > > MFC afte

svn commit: r319917 - head/sys/net

2017-06-13 Thread Sean Bruno
Author: sbruno Date: Tue Jun 13 19:32:23 2017 New Revision: 319917 URL: https://svnweb.freebsd.org/changeset/base/319917 Log: Plug mbuf leak in the busdma path of iflib. Submitted by: Michael Tuexen Reported by: Drew Gallitin Modified: head/sys/net/iflib.c Modified: head/sys/net/if

svn commit: r319916 - head/sys/kern

2017-06-13 Thread Konstantin Belousov
Author: kib Date: Tue Jun 13 19:02:12 2017 New Revision: 319916 URL: https://svnweb.freebsd.org/changeset/base/319916 Log: Remove stray return. Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/sys/kern/subr_prf.c Modified: head/sys/kern/subr_prf.c =

svn commit: r319914 - in head/sys: arm/mv boot/fdt/dts/arm

2017-06-13 Thread Zbigniew Bodek
Author: zbb Date: Tue Jun 13 18:55:21 2017 New Revision: 319914 URL: https://svnweb.freebsd.org/changeset/base/319914 Log: Enable HWPMC overflow IRQ on both CPUs in MPIC This commit enables usage of HWPMC interrupts for the Marvell SoCs, which use MPIC (Armada38x and ArmadaXP). Those in

svn commit: r319913 - head/sys/dev/hwpmc

2017-06-13 Thread Zbigniew Bodek
Author: zbb Date: Tue Jun 13 18:53:56 2017 New Revision: 319913 URL: https://svnweb.freebsd.org/changeset/base/319913 Log: Fix INVARIANTS debug code in HWPMC When HWPMC stops sampling, ps_pmc may be freed before samples are processed. In such situation treat PMC as stopped. Add "ifdef"

svn commit: r319912 - head/sys/dev/hwpmc

2017-06-13 Thread Zbigniew Bodek
Author: zbb Date: Tue Jun 13 18:52:39 2017 New Revision: 319912 URL: https://svnweb.freebsd.org/changeset/base/319912 Log: Fix event table for Cortex A9. Removed events 0x8 (INSTR_EXECUTED), 0xE (PC_PROC_RETURN) and 0x13-0x1d not supported on Cortex A9. Add events 0x68 and 0x6E which re

svn commit: r319911 - in head/sys: dev/hwpmc sys

2017-06-13 Thread Zbigniew Bodek
Author: zbb Date: Tue Jun 13 18:51:23 2017 New Revision: 319911 URL: https://svnweb.freebsd.org/changeset/base/319911 Log: Fix HWPMC interrupt handling in Counting Mode Additionally: - Fix support for Cycle Counter (evsel == 0xFF) - Stop and mask interrupts from all counters on init a

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

2017-06-13 Thread Zbigniew Bodek
Author: zbb Date: Tue Jun 13 18:50:08 2017 New Revision: 319910 URL: https://svnweb.freebsd.org/changeset/base/319910 Log: Add detection of CPU class for ARMv6/v7 Submitted by: Michal Mazur Obtained from: Semihalf Sponsored by: Stormshield Reviewed by: andrew Differential revision:

svn commit: r319909 - head/sys/boot/fdt/dts/arm

2017-06-13 Thread Zbigniew Bodek
Author: zbb Date: Tue Jun 13 18:48:51 2017 New Revision: 319909 URL: https://svnweb.freebsd.org/changeset/base/319909 Log: Enable in-band link management on A388-Clearfog board This patch adds in-band link management over SGMII of the SFP transceiver on Armada-388-Clearfog board. Sub

svn commit: r319908 - head/sys/arm/conf

2017-06-13 Thread Zbigniew Bodek
Author: zbb Date: Tue Jun 13 18:47:42 2017 New Revision: 319908 URL: https://svnweb.freebsd.org/changeset/base/319908 Log: Enable neta controller support in ARMADA38X Submitted by: Marcin Wojtas Obtained from: Semihalf Sponsored by: Stormshield Differential revision: https://reviews.

svn commit: r319907 - in head/sys: arm/mv conf dev/neta

2017-06-13 Thread Zbigniew Bodek
Author: zbb Date: Tue Jun 13 18:46:29 2017 New Revision: 319907 URL: https://svnweb.freebsd.org/changeset/base/319907 Log: Introduce Armada 38x/XP network controller support This patch contains a new driver for the network unit of Marvell Armada 38x/XP SoCs, called NETA. This support was

svn commit: r319906 - head/sys/dev/etherswitch/e6000sw

2017-06-13 Thread Zbigniew Bodek
Author: zbb Date: Tue Jun 13 18:35:14 2017 New Revision: 319906 URL: https://svnweb.freebsd.org/changeset/base/319906 Log: Prevent multiple lock initialization in e6000sw probe r319886 ("Add the initial support for the Marvell 88E6141 and 88E6341 switches.") unveiled a problem with possib

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

2017-06-13 Thread Alan Cox
Author: alc Date: Tue Jun 13 17:49:49 2017 New Revision: 319905 URL: https://svnweb.freebsd.org/changeset/base/319905 Log: Reduce the frequency of hint updates on allocation without incurring additional allocation overhead. Previously, blst_meta_alloc() updated the hint after every successf

Re: svn commit: r319897 - head/usr.bin/yes

2017-06-13 Thread Bryan Drewery
On 6/13/2017 5:35 AM, Pietro Cerutti wrote: > Author: gahr (ports committer) > Date: Tue Jun 13 12:35:01 2017 > New Revision: 319897 > URL: https://svnweb.freebsd.org/changeset/base/319897 > > Log: > Improve yes' throughput > > On my system, this brings up the throughput from ~20 to ~600 Mi

svn commit: r319904 - head/usr.bin/yes

2017-06-13 Thread Olivier Houchard
Author: cognet Date: Tue Jun 13 16:19:32 2017 New Revision: 319904 URL: https://svnweb.freebsd.org/changeset/base/319904 Log: style(9) fixes. Reported by: cem Modified: head/usr.bin/yes/yes.c Modified: head/usr.bin/yes/yes.c =

svn commit: r319903 - head/usr.bin/finger

2017-06-13 Thread Stephen J. Kiernan
Author: stevek Date: Tue Jun 13 15:50:16 2017 New Revision: 319903 URL: https://svnweb.freebsd.org/changeset/base/319903 Log: The variable nargv is allocated but never freed, so free it when the it is no longer used. Submitted by: Thomas Rix Reviewed by: ed Approved by: sjg (mentor

svn commit: r319902 - head/sys/kern

2017-06-13 Thread Mark Johnston
Author: markj Date: Tue Jun 13 15:37:04 2017 New Revision: 319902 URL: https://svnweb.freebsd.org/changeset/base/319902 Log: Hint at the intended usage for the "ll" field of struct uuid_private. Discussed with: kib MFC after:1 week Modified: head/sys/kern/kern_uuid.c Modifie

svn commit: r319900 - head/sbin/ipfw

2017-06-13 Thread Alan Somers
Author: asomers Date: Tue Jun 13 14:57:48 2017 New Revision: 319900 URL: https://svnweb.freebsd.org/changeset/base/319900 Log: sbin/ipfw: strcpy, strncpy => strlcpy Reported by: Coverity CID: 1356162, 1356166 MFC after:3 weeks Sponsored by: Spectra Logic Corp Different

svn commit: r319899 - head/sys/modules/ffec

2017-06-13 Thread Ian Lepore
Author: ian Date: Tue Jun 13 14:07:13 2017 New Revision: 319899 URL: https://svnweb.freebsd.org/changeset/base/319899 Log: Add missing header dependencies (based on looking in the .depend file). Reported by: gjb Modified: head/sys/modules/ffec/Makefile Modified: head/sys/modules/ffec/M

Re: svn commit: r319897 - head/usr.bin/yes

2017-06-13 Thread Pietro Cerutti
On Jun 13 17 14:44, Ed Schouten wrote: > 2017-06-13 14:35 GMT+02:00 Pietro Cerutti : > > + while (write(STDOUT_FILENO, exp, explen) > 0) > > + ; > > How does this deal with partial writes? Thanks, that should be fixed in r319898. -- Pietro Cerutti The FreeBSD Project g...@fre

svn commit: r319898 - head/usr.bin/yes

2017-06-13 Thread Pietro Cerutti
Author: gahr (ports committer) Date: Tue Jun 13 13:26:50 2017 New Revision: 319898 URL: https://svnweb.freebsd.org/changeset/base/319898 Log: Handle partial writes Reported by: ed Reviewed by: cognet Approved by: cognet Modified: head/usr.bin/yes/yes.c Modified: head/usr.bin/yes/

Re: svn commit: r319897 - head/usr.bin/yes

2017-06-13 Thread Ed Schouten
2017-06-13 14:35 GMT+02:00 Pietro Cerutti : > + while (write(STDOUT_FILENO, exp, explen) > 0) > + ; How does this deal with partial writes? -- Ed Schouten Nuxi, 's-Hertogenbosch, the Netherlands KvK-nr.: 62051717 ___ svn-src-head@f

svn commit: r319897 - head/usr.bin/yes

2017-06-13 Thread Pietro Cerutti
Author: gahr (ports committer) Date: Tue Jun 13 12:35:01 2017 New Revision: 319897 URL: https://svnweb.freebsd.org/changeset/base/319897 Log: Improve yes' throughput On my system, this brings up the throughput from ~20 to ~600 MiB/s. Inspired by: https://www.reddit.com/r/unix/comments

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

2017-06-13 Thread Konstantin Belousov
On Mon, Jun 12, 2017 at 05:20:52PM -0700, Mark Johnston wrote: > On Tue, Jun 13, 2017 at 12:33:00AM +0300, Konstantin Belousov wrote: > > On Mon, Jun 12, 2017 at 01:47:05PM -0700, Mark Johnston wrote: > > > On Mon, Jun 12, 2017 at 11:29:52PM +0300, Konstantin Belousov wrote: > > > > On Mon, Jun 12,

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

2017-06-13 Thread Konstantin Belousov
On Mon, Jun 12, 2017 at 04:43:56PM -0700, Gleb Smirnoff wrote: > On Mon, Jun 12, 2017 at 09:11:11PM +, Konstantin Belousov wrote: > K> Author: kib > K> Date: Mon Jun 12 21:11:11 2017 > K> New Revision: 319874 > K> URL: https://svnweb.freebsd.org/changeset/base/319874 > K> > K> Log: > K> Prin

svn commit: r319896 - in head/sys/arm: arm include

2017-06-13 Thread Michal Meloun
Author: mmel Date: Tue Jun 13 12:07:18 2017 New Revision: 319896 URL: https://svnweb.freebsd.org/changeset/base/319896 Log: Implement tunable CPU quirks. These quirks are intended for optimizing CPU performance, not for applying errata workarounds. Nobody can expect that CPU with unfixed e

svn commit: r319895 - head/sys/net

2017-06-13 Thread Andrey V. Elsukov
Author: ae Date: Tue Jun 13 10:52:31 2017 New Revision: 319895 URL: https://svnweb.freebsd.org/changeset/base/319895 Log: Resurrect RTF_RNH_LOCKED flag and restore ability to call rtalloc1_fib() with acquired RIB lock. This fixes a possible panic due to trying to acquire RIB rlock when it