Re: svn commit: r334305 - head/sys/net

2018-05-28 Thread Peter Holm
On Tue, May 29, 2018 at 12:53:54AM +, Matt Macy wrote: > Author: mmacy > Date: Tue May 29 00:53:53 2018 > New Revision: 334305 > URL: https://svnweb.freebsd.org/changeset/base/334305 > > Log: > route: fix missed ref adds >- ensure that we bump the ifa ref whenever we add a reference >

svn commit: r334312 - head/lib/libpmc

2018-05-28 Thread Matt Macy
Author: mmacy Date: Tue May 29 04:23:16 2018 New Revision: 334312 URL: https://svnweb.freebsd.org/changeset/base/334312 Log: libpmc: export names of counters for stat mode, make get_by_idx name consistent with others Modified: head/lib/libpmc/libpmc_pmu_util.c (contents, props changed)

svn commit: r334313 - head/lib/libpmc

2018-05-28 Thread Matt Macy
Author: mmacy Date: Tue May 29 04:23:21 2018 New Revision: 334313 URL: https://svnweb.freebsd.org/changeset/base/334313 Log: libpmc: add support for using fixed function counters Modified: head/lib/libpmc/libpmc_pmu_util.c (contents, props changed) Modified:

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

2018-05-28 Thread Matt Macy
Author: mmacy Date: Tue May 29 04:04:06 2018 New Revision: 334311 URL: https://svnweb.freebsd.org/changeset/base/334311 Log: hwpmc: don't incrorrectly strip the ANY flag Modified: head/sys/dev/hwpmc/hwpmc_core.c Modified: head/sys/dev/hwpmc/hwpmc_core.c

svn commit: r334310 - head/stand/efi/boot1

2018-05-28 Thread Warner Losh
Author: imp Date: Tue May 29 03:58:29 2018 New Revision: 334310 URL: https://svnweb.freebsd.org/changeset/base/334310 Log: Teach ufs_module.c about bsd labels and probe 'a' partition. If the check for a UFS partition at offset 0 on the disk fails, check to see if there's a BSD disklabel

Re: svn commit: r334306 - in head: lib/libc/stdlib share/man/man3

2018-05-28 Thread Bruce Evans
On Tue, 29 May 2018, Eric van Gyzen wrote: Log: Cross-reference abort2(2) from a few man pages I didn't know abort2 existed until it was mentioned on a mailing list. Mention it in related pages so others can find it easily. MFC after: 3 days Sponsored by: Dell EMC Modified:

svn commit: r334308 - in head: lib/libc/stdlib share/man/man3

2018-05-28 Thread Eric van Gyzen
Author: vangyzen Date: Tue May 29 02:41:32 2018 New Revision: 334308 URL: https://svnweb.freebsd.org/changeset/base/334308 Log: Bump the date on man pages in r334306 It seems a shame to ruin the patina of the June 4, 1993 date on abort.3, especially since it still matched the date of

Re: svn commit: r334302 - head/sys/teken

2018-05-28 Thread Bruce Evans
On Mon, 28 May 2018, [UTF-8] Jean-S??bastien P??dron wrote: Log: teken: Sort DECSCUSR alphabetically While here, align columns again. Reported by: bde This unimproves the formatting of 73 lines to improve it for 1. The number of lines with msialigned columns remains unchanged at 1,

Re: svn commit: r334291 - head/lib/libc/string

2018-05-28 Thread Bruce Evans
On Mon, 28 May 2018, Ed Maste wrote: Log: strsep.3: don't silently ignore errors Reported by: bde MFC with: r334275 Thanks. Modified: head/lib/libc/string/strsep.3 == --- head/lib/libc/string/strsep.3

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

2018-05-28 Thread Marcelo Araujo
Author: araujo Date: Tue May 29 01:46:00 2018 New Revision: 334307 URL: https://svnweb.freebsd.org/changeset/base/334307 Log: Simplify macros EFPRINTF and EFFLUSH. [0] Also stdarg(3) says that each invocation of va_start() must be paired with a corresponding invocation of va_end() in the

svn commit: r334306 - in head: lib/libc/stdlib share/man/man3

2018-05-28 Thread Eric van Gyzen
Author: vangyzen Date: Tue May 29 01:16:00 2018 New Revision: 334306 URL: https://svnweb.freebsd.org/changeset/base/334306 Log: Cross-reference abort2(2) from a few man pages I didn't know abort2 existed until it was mentioned on a mailing list. Mention it in related pages so others can

svn commit: r334305 - head/sys/net

2018-05-28 Thread Matt Macy
Author: mmacy Date: Tue May 29 00:53:53 2018 New Revision: 334305 URL: https://svnweb.freebsd.org/changeset/base/334305 Log: route: fix missed ref adds - ensure that we bump the ifa ref whenever we add a reference - defer freeing epoch protected references until after the if_purgaddrs

svn commit: r334304 - head/sys/sys

2018-05-28 Thread Matt Macy
Author: mmacy Date: Tue May 29 00:19:23 2018 New Revision: 334304 URL: https://svnweb.freebsd.org/changeset/base/334304 Log: hwpmc: add class field to identify which class a pmc came frome Modified: head/sys/sys/pmc.h Modified: head/sys/sys/pmc.h

svn commit: r334303 - head/usr.sbin/sysrc

2018-05-28 Thread Devin Teske
Author: dteske Date: Mon May 28 23:34:23 2018 New Revision: 334303 URL: https://svnweb.freebsd.org/changeset/base/334303 Log: sysrc(8): Test variable names for invalid characters PR: bin/187461 Reported by: e...@looksharp.net MFC after:4 weeks X-MFC-to: stable/11

svn commit: r334302 - head/sys/teken

2018-05-28 Thread Jean-Sébastien Pédron
Author: dumbbell Date: Mon May 28 23:20:08 2018 New Revision: 334302 URL: https://svnweb.freebsd.org/changeset/base/334302 Log: teken: Sort DECSCUSR alphabetically While here, align columns again. Reported by: bde Modified: head/sys/teken/sequences Modified:

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

2018-05-28 Thread Matt Macy
Author: mmacy Date: Mon May 28 23:17:57 2018 New Revision: 334301 URL: https://svnweb.freebsd.org/changeset/base/334301 Log: hwpmc: make pmc class specification work to enable fixed function counters Modified: head/sys/dev/hwpmc/hwpmc_mod.c Modified: head/sys/dev/hwpmc/hwpmc_mod.c

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

2018-05-28 Thread Matt Macy
Author: mmacy Date: Mon May 28 23:16:39 2018 New Revision: 334300 URL: https://svnweb.freebsd.org/changeset/base/334300 Log: hwmpc: fix brain-damaged handling of thread descriptor freeing Modified: head/sys/dev/hwpmc/hwpmc_mod.c Modified: head/sys/dev/hwpmc/hwpmc_mod.c

svn commit: r334299 - head/sys/kern

2018-05-28 Thread Matt Macy
Author: mmacy Date: Mon May 28 23:14:38 2018 New Revision: 334299 URL: https://svnweb.freebsd.org/changeset/base/334299 Log: witness/hwpmc: fix locking order for pmc locks Modified: head/sys/kern/subr_witness.c Modified: head/sys/kern/subr_witness.c

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

2018-05-28 Thread Matt Macy
Author: mmacy Date: Mon May 28 23:12:26 2018 New Revision: 334298 URL: https://svnweb.freebsd.org/changeset/base/334298 Log: hwpmc_logging.c: don't call wakeup_one with thread lock held, don't malloc(M_WAITOK) in an epoch section Modified: head/sys/dev/hwpmc/hwpmc_logging.c

svn commit: r334294 - head/sys/dev/usb/net

2018-05-28 Thread Ed Maste
Author: emaste Date: Mon May 28 20:06:40 2018 New Revision: 334294 URL: https://svnweb.freebsd.org/changeset/base/334294 Log: if_muge: Add GMII enable (vs RGMII) bit The GMII control bit ETH_MAC_CR_GMII_EN_ is not documented in LAN78xx datasheets, but from the permissively licensed

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

2018-05-28 Thread Emmanuel Vadot
Author: manu Date: Mon May 28 20:29:03 2018 New Revision: 334295 URL: https://svnweb.freebsd.org/changeset/base/334295 Log: arm64: Add atomic_fcmpset_8 and atomic_fcmpset_16 Reviewed by: cognet Modified: head/sys/arm64/include/atomic.h Modified: head/sys/arm64/include/atomic.h

Re: svn commit: r333713 - in head/sys: dev/usb/net modules/usb/muge

2018-05-28 Thread Ronald Klop
The addition of this driver made me finally buy a RPI3B+. Thanks a lot! Regards, Ronald. On Thu, 17 May 2018 16:05:00 +0200, Ed Maste wrote: Author: emaste Date: Thu May 17 14:04:59 2018 New Revision: 333713 URL: https://svnweb.freebsd.org/changeset/base/333713 Log: Add driver for

svn commit: r334296 - head/sys/security/audit

2018-05-28 Thread Alan Somers
Author: asomers Date: Mon May 28 20:47:39 2018 New Revision: 334296 URL: https://svnweb.freebsd.org/changeset/base/334296 Log: Fix "Bad tailq" panic when auditing auditon(A_SETCLASS, ...) Due to an oversight in r195280, auditon(A_SETCLASS, ...) would cause a tailq element to get added to

svn commit: r334293 - head/sys/dev/usb/controller

2018-05-28 Thread Marius Strobl
Author: marius Date: Mon May 28 19:55:51 2018 New Revision: 334293 URL: https://svnweb.freebsd.org/changeset/base/334293 Log: Describe Fresco Logic FL1100 USB 3.0 controllers. Modified: head/sys/dev/usb/controller/xhci_pci.c Modified: head/sys/dev/usb/controller/xhci_pci.c

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

2018-05-28 Thread Emmanuel Vadot
Author: manu Date: Mon May 28 21:05:00 2018 New Revision: 334297 URL: https://svnweb.freebsd.org/changeset/base/334297 Log: arm64: fix atomic_fcmpset_16 newval needs to be uint16_t Reported by: andrew Modified: head/sys/arm64/include/atomic.h Modified:

svn commit: r334290 - head/sys/sys

2018-05-28 Thread Devin Teske
Author: dteske Date: Mon May 28 17:47:32 2018 New Revision: 334290 URL: https://svnweb.freebsd.org/changeset/base/334290 Log: Bump FreeBSD_version after r333517 Sponsored by: Smule, Inc. Modified: head/sys/sys/param.h Modified: head/sys/sys/param.h

svn commit: r334292 - head/sys/dev/usb

2018-05-28 Thread Edward Tomasz Napierala
Author: trasz Date: Mon May 28 18:34:16 2018 New Revision: 334292 URL: https://svnweb.freebsd.org/changeset/base/334292 Log: Change the default USB template from the current 0 to -1. The reason is that current one (mass storage device) doesn't work as it is - it needs to be set to 0 after

svn commit: r334291 - head/lib/libc/string

2018-05-28 Thread Ed Maste
Author: emaste Date: Mon May 28 18:29:15 2018 New Revision: 334291 URL: https://svnweb.freebsd.org/changeset/base/334291 Log: strsep.3: don't silently ignore errors Reported by: bde MFC with: r334275 Modified: head/lib/libc/string/strsep.3 Modified: head/lib/libc/string/strsep.3

Re: Deorbiting i386

2018-05-28 Thread Andrew Turner
> On 27 May 2018, at 23:15, Maxim Sobolev wrote: > > Well, strip extra 32 bits, use slower memory and busses (extra decoding logic > etc). Voila, you suddenly have platform that can run 99% of code in wild > today with just few hundred mW of power. Try that with arm32, you would be >

svn commit: r334288 - head/etc/mtree

2018-05-28 Thread Niclas Zeising
Author: zeising (doc,ports committer) Date: Mon May 28 17:08:37 2018 New Revision: 334288 URL: https://svnweb.freebsd.org/changeset/base/334288 Log: Complete removal of lmc(4) The lmc(4) driver was removed in r333144 and relevant files added to ObsoleteFiles.inc, however,

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

2018-05-28 Thread Andrew Turner
Author: andrew Date: Mon May 28 17:09:29 2018 New Revision: 334289 URL: https://svnweb.freebsd.org/changeset/base/334289 Log: Create a new function to walk the EFI memory table & run a callback for each entry. We can then use this to ensure the RunTime data is mapped in the DMAP, but not in

svn commit: r334287 - head/sys/vm

2018-05-28 Thread Alan Cox
Author: alc Date: Mon May 28 16:23:39 2018 New Revision: 334287 URL: https://svnweb.freebsd.org/changeset/base/334287 Log: Addendum to r334233. In vm_fault_populate(), since the page lock is held, we must use vm_page_xunbusy_maybelocked() rather than vm_page_xunbusy() to unbusy the page.

svn commit: r334286 - head/sys/netinet

2018-05-28 Thread Michael Tuexen
Author: tuexen Date: Mon May 28 13:31:47 2018 New Revision: 334286 URL: https://svnweb.freebsd.org/changeset/base/334286 Log: Use correct mask. Introduced in https://svnweb.freebsd.org/changeset/base/333603. Thanks to Irene Ruengler for testing and reporting the issue. MFC after:

Re: svn commit: r334275 - head/lib/libc/string

2018-05-28 Thread Mariusz Zaborski
Hello Marcelo, Thanks for working on that :) > > tofree = string = strdup("abc,def,ghi"); > -assert(string != NULL); > +if (string != NULL) > + while ((token = strsep(, ",")) != NULL) > + printf("%s\en", token); Please notice: ``` If *stringp is initially NULL, strsep()

svn commit: r334285 - head/sys/dev/bktr

2018-05-28 Thread Eitan Adler
Author: eadler Date: Mon May 28 13:12:34 2018 New Revision: 334285 URL: https://svnweb.freebsd.org/changeset/base/334285 Log: bktr: Support WinFast Tv2000 & PHILIPS FI1216 - Add support for Leadtek WinFast Tv2000 XP bktr card - Add support for PHILIPS FI1216 PR: 94369

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

2018-05-28 Thread Eitan Adler
Author: eadler Date: Mon May 28 12:50:36 2018 New Revision: 334284 URL: https://svnweb.freebsd.org/changeset/base/334284 Log: bktr: remove references to removed things Neither the examples nor the misc/alevt exist anymore. Modified: head/share/man/man4/bktr.4 Modified:

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

2018-05-28 Thread Hans Petter Selasky
Author: hselasky Date: Mon May 28 11:26:40 2018 New Revision: 334283 URL: https://svnweb.freebsd.org/changeset/base/334283 Log: The schedule_timeout_killable() function should listen for signals in the LinuxKPI. Found by: Johannes Lundberg MFC after:1 week

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

2018-05-28 Thread Hans Petter Selasky
Author: hselasky Date: Mon May 28 10:54:24 2018 New Revision: 334281 URL: https://svnweb.freebsd.org/changeset/base/334281 Log: Implement wait_event_killable() in the LinuxKPI. Requested by: Johannes Lundberg MFC after:1 week Sponsored by: Mellanox Technologies

svn commit: r334280 - head/sys/compat/linuxkpi/common/src

2018-05-28 Thread Hans Petter Selasky
Author: hselasky Date: Mon May 28 10:51:39 2018 New Revision: 334280 URL: https://svnweb.freebsd.org/changeset/base/334280 Log: Allow TASK_PARKED bit being set when going to sleep in the LinuxKPI. Found by: Johannes Lundberg MFC after:1 week Sponsored by:

svn commit: r334279 - head/usr.sbin/ipfwpcap

2018-05-28 Thread Hans Petter Selasky
Author: hselasky Date: Mon May 28 09:41:44 2018 New Revision: 334279 URL: https://svnweb.freebsd.org/changeset/base/334279 Log: Buildfix for GCC after r334277. MFC after:1 month Sponsored by: Mellanox Technologies Modified: head/usr.sbin/ipfwpcap/ipfwpcap.c Modified:

svn commit: r334278 - head/sys/netipsec

2018-05-28 Thread Andrey V. Elsukov
Author: ae Date: Mon May 28 09:23:28 2018 New Revision: 334278 URL: https://svnweb.freebsd.org/changeset/base/334278 Log: Temporary disable SPDCACHE statistic accounting until proper fix will be committed. This fixes the kernel build without option IPSEC. Modified: head/sys/netipsec/key.c

Re: svn commit: r334275 - head/lib/libc/string

2018-05-28 Thread Poul-Henning Kamp
In message <20180528155019.w2...@besplex.bde.org>, Bruce Evans writes: >Note that assert() can't be used in signal handlers since it is required >to print to stderr due to C not having any output methods except stdio. That is precisly why I added abort2(2) more than 10 years ago. --

Re: svn commit: r334275 - head/lib/libc/string

2018-05-28 Thread Bruce Evans
On Mon, 28 May 2018, Marcelo Araujo wrote: Log: Update strsep(3) EXAMPLE section regards the usage of assert(3). As many people has pointed out, using assert(3) shall be not the best approach to verify if strdup(3) has allocated memory to string. Reviewed by: imp Modified:

svn commit: r334277 - in head: contrib/libpcap contrib/ofed/usr.lib/3 contrib/pf/pflogd contrib/wpa/src/l2_packet lib lib/libpcap share/mk usr.sbin/cxgbetool

2018-05-28 Thread Hans Petter Selasky
Author: hselasky Date: Mon May 28 08:12:18 2018 New Revision: 334277 URL: https://svnweb.freebsd.org/changeset/base/334277 Log: MFV r333789: libpcap 1.9.0 (pre-release) MFC after:1 month Sponsored by: Mellanox Technologies Replaced: head/contrib/libpcap/ - copied from

svn commit: r334276 - head/lib/libc/string

2018-05-28 Thread Marcelo Araujo
Author: araujo Date: Mon May 28 06:01:02 2018 New Revision: 334276 URL: https://svnweb.freebsd.org/changeset/base/334276 Log: Remove unnecessary free(string) from EXAMPLES. Reported by: se Modified: head/lib/libc/string/strsep.3 Modified: head/lib/libc/string/strsep.3