svn commit: r332910 - head/sys/mips/mips

2018-04-23 Thread John Baldwin
Author: jhb Date: Tue Apr 24 05:42:10 2018 New Revision: 332910 URL: https://svnweb.freebsd.org/changeset/base/332910 Log: Relock PROC_LOCK before one failure case in ptrace_single_step(). The MIPS ptrace_single_step() unlocks the PROC_LOCK while reading and writing instructions from

svn commit: r332909 - head/sys/mips/mips

2018-04-23 Thread John Baldwin
Author: jhb Date: Tue Apr 24 05:33:17 2018 New Revision: 332909 URL: https://svnweb.freebsd.org/changeset/base/332909 Log: Report proper signal codes for SIGTRAP traps on MIPS. - Use TRAP_TRACE for traps after stepping via PT_STEP. - Use TRAP_BRKPT for software breakpoint traps and

svn commit: r332908 - head/tests/sys/kern

2018-04-23 Thread John Baldwin
Author: jhb Date: Tue Apr 24 05:30:05 2018 New Revision: 332908 URL: https://svnweb.freebsd.org/changeset/base/332908 Log: Add two tests for TRAP_* signal codes for SIGTRAP. - ptrace__breakpoint_siginfo tests that a SIGTRAP for a software breakpoint in userland triggers a SIGTRAP with

svn commit: r332907 - in head: sys/mips/include tests/sys/kern

2018-04-23 Thread John Baldwin
Author: jhb Date: Tue Apr 24 05:26:28 2018 New Revision: 332907 URL: https://svnweb.freebsd.org/changeset/base/332907 Log: Expose breakpoint() to userland from on MIPS. Enable ptrace() tests using breakpoint on MIPS as well. Tested on:mips64 MFC after:1 month Modified:

svn commit: r332906 - head/tests/sys/kern

2018-04-23 Thread John Baldwin
Author: jhb Date: Tue Apr 24 05:20:16 2018 New Revision: 332906 URL: https://svnweb.freebsd.org/changeset/base/332906 Log: Extend support for ptrace() tests using breakpoints. - Use a single list of platforms to define HAVE_BREAKPOINT for platforms that expose a functional breakpoint()

svn commit: r332905 - head/usr.sbin/camdd

2018-04-23 Thread Xin LI
Author: delphij Date: Tue Apr 24 04:07:51 2018 New Revision: 332905 URL: https://svnweb.freebsd.org/changeset/base/332905 Log: Use calloc() instead of malloc+bzero. Reviewed by: ken, emaste MFC after:2 weeks Differential Revision:https://reviews.freebsd.org/D15166

svn commit: r332904 - stable/10/sys/dev/hyperv/storvsc

2018-04-23 Thread Dexuan Cui
Author: dexuan Date: Tue Apr 24 03:07:49 2018 New Revision: 332904 URL: https://svnweb.freebsd.org/changeset/base/332904 Log: MFC: 332385 r332385: hyperv/storvsc: storvsc_io_done(): do not use CAM_SEL_TIMEOUT CAM_SEL_TIMEOUT was introduced in

svn commit: r332903 - stable/11/sys/dev/hyperv/storvsc

2018-04-23 Thread Dexuan Cui
Author: dexuan Date: Tue Apr 24 03:06:05 2018 New Revision: 332903 URL: https://svnweb.freebsd.org/changeset/base/332903 Log: MFC: 332385 r332385: hyperv/storvsc: storvsc_io_done(): do not use CAM_SEL_TIMEOUT CAM_SEL_TIMEOUT was introduced in

svn commit: r332902 - head/usr.sbin/pwd_mkdb

2018-04-23 Thread Ed Maste
Author: emaste Date: Tue Apr 24 01:22:57 2018 New Revision: 332902 URL: https://svnweb.freebsd.org/changeset/base/332902 Log: pwd_mkdb: default to network (big) endian hash order For cross-architecture reproducibility. The db(3) functions work with hashes of either endianness, and the

svn commit: r332901 - in head/sys: cddl/dev/dtmalloc kern

2018-04-23 Thread Mateusz Guzik
Author: mjg Date: Tue Apr 24 01:06:20 2018 New Revision: 332901 URL: https://svnweb.freebsd.org/changeset/base/332901 Log: dtrace: depessimize dtmalloc when dtrace is active Each malloc/free was testing dtrace_malloc_enabled and forcing extra reads from the malloc type struct to see if

svn commit: r332900 - in head/sys: cddl/dev/sdt kern sys

2018-04-23 Thread Mateusz Guzik
Author: mjg Date: Tue Apr 24 01:04:10 2018 New Revision: 332900 URL: https://svnweb.freebsd.org/changeset/base/332900 Log: lockstat: track lockstat just like sdt probes In particular flip the frequently tested var to bool. Modified: head/sys/cddl/dev/sdt/sdt.c

svn commit: r332899 - stable/11/lib/clang/include/lld/Common

2018-04-23 Thread Ed Maste
Author: emaste Date: Tue Apr 24 00:47:17 2018 New Revision: 332899 URL: https://svnweb.freebsd.org/changeset/base/332899 Log: MFC r332649: lld: add a __FreeBSD_version-style identifier to version This will faciliate a WITH_SYSTEM_LINKER option. MFC r332803: lld: use correct number

svn commit: r332898 - head/contrib/llvm/lib/Target/X86

2018-04-23 Thread Dimitry Andric
Author: dim Date: Mon Apr 23 23:07:57 2018 New Revision: 332898 URL: https://svnweb.freebsd.org/changeset/base/332898 Log: Pull in r329771 from upstream llvm trunk (by Craig Topper): [X86] In X86FlagsCopyLowering, when rewriting a memory setcc we need to emit an explicit MOV8mr

svn commit: r332897 - head/sys/dev/nvme

2018-04-23 Thread Warner Losh
Author: imp Date: Mon Apr 23 22:30:17 2018 New Revision: 332897 URL: https://svnweb.freebsd.org/changeset/base/332897 Log: Migrate to make_dev_s interface to populate /dev/nvmeX entries Submitted by: Michael Hordijk Differential Revision: https://reviews.freebsd.org/D15162 Modified:

svn commit: r332896 - head/sys/kern

2018-04-23 Thread Mateusz Guzik
Author: mjg Date: Mon Apr 23 22:28:49 2018 New Revision: 332896 URL: https://svnweb.freebsd.org/changeset/base/332896 Log: malloc: stop reading the subzone if MALLOC_DEBUG_MAXZONES == 1 (the default) malloc was showing at the top of profile during while running microbenchmarks.

Re: svn commit: r332874 - head/share/misc

2018-04-23 Thread John Baldwin
On Sunday, April 22, 2018 09:27:59 PM Rebecca Cran wrote: > Author: bcran > Date: Sun Apr 22 21:27:59 2018 > New Revision: 332874 > URL: https://svnweb.freebsd.org/changeset/base/332874 > > Log: > Update committers-src.dot to show the mentorship arrangement for myself: > eadler has agreed to

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

2018-04-23 Thread John Baldwin
On Monday, April 23, 2018 02:00:24 PM Mark Johnston wrote: > On Mon, Apr 23, 2018 at 11:12:32AM -0400, Jonathan T. Looney wrote: > > Hi Mark, > > > > Let me start by saying that I appreciate your well-reasoned response. (I > > think) I understand your reasoning, I appreciate your well-explained >

Re: svn commit: r332489 - in head: gnu/usr.bin/gdb/kgdb sys/conf sys/dev/dcons sys/dev/hyperv/vmbus/i386 sys/dev/ppc sys/dev/syscons sys/i386/conf sys/i386/i386 sys/i386/include sys/i386/include/pc sy

2018-04-23 Thread Tijl Coosemans
On Sun, 22 Apr 2018 23:51:03 +0300 Konstantin Belousov wrote: > On Sun, Apr 22, 2018 at 10:26:14PM +0300, Konstantin Belousov wrote: >> On Sun, Apr 22, 2018 at 09:06:56PM +0200, Tijl Coosemans wrote: >>> Could this have broken the linux futex syscall? I have a linux

svn commit: r332895 - in head: lib/libifconfig sbin/etherswitchcfg sbin/ifconfig sys/net

2018-04-23 Thread Brooks Davis
Author: brooks Date: Mon Apr 23 21:10:33 2018 New Revision: 332895 URL: https://svnweb.freebsd.org/changeset/base/332895 Log: Finish removing FDDI and tokenring media support. This fixes media display for 802.11 wireless devices. Software outside the base system that uses these media

svn commit: r332894 - in head: cddl/lib/libdtrace sys/kern sys/netinet sys/netinet6 sys/sys

2018-04-23 Thread Sean Bruno
Author: sbruno Date: Mon Apr 23 19:51:00 2018 New Revision: 332894 URL: https://svnweb.freebsd.org/changeset/base/332894 Log: Load balance sockets with new SO_REUSEPORT_LB option This patch adds a new socket option, SO_REUSEPORT_LB, which allow multiple programs or threads to bind to the

svn commit: r332893 - head/sys/compat/linux

2018-04-23 Thread Ed Maste
Author: emaste Date: Mon Apr 23 18:33:26 2018 New Revision: 332893 URL: https://svnweb.freebsd.org/changeset/base/332893 Log: Map FreeBSD EDOOFUS to Linux EINVAL Previously EDOOFUS mapped to EBUSY. EINVAL seems more appropriate. Discussed with: cem MFC after:1 week

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

2018-04-23 Thread Mark Johnston
On Mon, Apr 23, 2018 at 11:12:32AM -0400, Jonathan T. Looney wrote: > Hi Mark, > > Let me start by saying that I appreciate your well-reasoned response. (I > think) I understand your reasoning, I appreciate your well-explained > argument, and I respect your opinion. I just wanted to make that

svn commit: r332892 - head/sys/arm/include

2018-04-23 Thread John Baldwin
Author: jhb Date: Mon Apr 23 17:00:15 2018 New Revision: 332892 URL: https://svnweb.freebsd.org/changeset/base/332892 Log: Implement 32-bit atomic_fcmpset() in userland for armv4/v5. - Add an implementation of atomic_fcmpset_32() using RAS for armv4/v5. This fixes recent world breakage

svn commit: r332891 - head/sys/arm/include

2018-04-23 Thread John Baldwin
Author: jhb Date: Mon Apr 23 16:50:37 2018 New Revision: 332891 URL: https://svnweb.freebsd.org/changeset/base/332891 Log: Fix some harmless type mismatches in the ARM atomic_cmpset implementations. The return value of atomic_cmpset() and atomic_fcmpset() is an int (which is really a

svn commit: r332890 - head/sys/dev/sound/pci/hda

2018-04-23 Thread Sean Bruno
Author: sbruno Date: Mon Apr 23 16:38:27 2018 New Revision: 332890 URL: https://svnweb.freebsd.org/changeset/base/332890 Log: hda(4) - add quirk for Dell XPS9560 audio gleaned and massages from linux https://github.com/freebsd/freebsd/pull/137 Submitted by: K Staring MFC after:

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

2018-04-23 Thread Warner Losh
On Mon, Apr 23, 2018 at 9:12 AM, Jonathan T. Looney wrote: > > If we leave the default alone, I agree we should print the assertion > message (albeit with some rate limit). > We should print the first N asserts we hit during a kernel panic core dump, then stop. I'd suggest N

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

2018-04-23 Thread Jonathan T. Looney
Hi Mark, Let me start by saying that I appreciate your well-reasoned response. (I think) I understand your reasoning, I appreciate your well-explained argument, and I respect your opinion. I just wanted to make that clear up front. On Sun, Apr 22, 2018 at 1:11 PM, Mark Johnston

Re: svn commit: r330834 - head/sys/dev/vt/hw/vga

2018-04-23 Thread Warner Losh
On Mon, Apr 23, 2018 at 8:52 AM, Warner Losh wrote: > > > On Mon, Apr 23, 2018 at 7:43 AM, Tom Jones wrote: > >> On Tue, Mar 13, 2018 at 09:38:54AM +, Roger Pau Monné wrote: >> > Author: royger >> > Date: Tue Mar 13 09:38:53 2018 >> > New Revision: 330834

Re: svn commit: r330834 - head/sys/dev/vt/hw/vga

2018-04-23 Thread Warner Losh
On Mon, Apr 23, 2018 at 7:43 AM, Tom Jones wrote: > On Tue, Mar 13, 2018 at 09:38:54AM +, Roger Pau Monné wrote: > > Author: royger > > Date: Tue Mar 13 09:38:53 2018 > > New Revision: 330834 > > URL: https://svnweb.freebsd.org/changeset/base/330834 > > > > Log: > >

svn commit: r332889 - stable/11/sys/netinet

2018-04-23 Thread Jonathan T. Looney
Author: jtl Date: Mon Apr 23 14:22:16 2018 New Revision: 332889 URL: https://svnweb.freebsd.org/changeset/base/332889 Log: MFC r331745 (by np): Fix RSS build (broken in r331309). Sponsored by: Chelsio Communications PR: 227691 Pointy-hat to:jtl Modified:

svn commit: r332888 - in stable: 10/release/arm 11/release/arm

2018-04-23 Thread Glen Barber
Author: gjb Date: Mon Apr 23 13:47:29 2018 New Revision: 332888 URL: https://svnweb.freebsd.org/changeset/base/332888 Log: MFC r332674: Increase the msdosfs partition size on arm SoC images where the current size may not be sufficiently large for development and/or testing. PR:

svn commit: r332888 - in stable: 10/release/arm 11/release/arm

2018-04-23 Thread Glen Barber
Author: gjb Date: Mon Apr 23 13:47:29 2018 New Revision: 332888 URL: https://svnweb.freebsd.org/changeset/base/332888 Log: MFC r332674: Increase the msdosfs partition size on arm SoC images where the current size may not be sufficiently large for development and/or testing. PR:

Re: svn commit: r330834 - head/sys/dev/vt/hw/vga

2018-04-23 Thread Tom Jones
On Tue, Mar 13, 2018 at 09:38:54AM +, Roger Pau Monné wrote: > Author: royger > Date: Tue Mar 13 09:38:53 2018 > New Revision: 330834 > URL: https://svnweb.freebsd.org/changeset/base/330834 > > Log: > vt_vga: check if VGA is available from ACPI FADT table > > On x86 the IA-PC Boot

svn commit: r332887 - in head/sys: arm/conf dts/arm

2018-04-23 Thread Ruslan Bukin
Author: br Date: Mon Apr 23 12:23:05 2018 New Revision: 332887 URL: https://svnweb.freebsd.org/changeset/base/332887 Log: Enable ARM PL330 DMA engine and Cadence Quad SPI flash controller on Intel Arria 10 SoC boards. Tested on Intel Arria 10 SoC Development Kit. Sponsored by:

svn commit: r332886 - head/sys/netinet6

2018-04-23 Thread Andrey V. Elsukov
Author: ae Date: Mon Apr 23 12:20:07 2018 New Revision: 332886 URL: https://svnweb.freebsd.org/changeset/base/332886 Log: icmp6_reflect() sends ICMPv6 message with new IPv6 header. So, it is considered as originated by our host packet. And thus rcvif should be NULL, since it is used by

svn commit: r332885 - in head/sys: conf dev/flash

2018-04-23 Thread Ruslan Bukin
Author: br Date: Mon Apr 23 10:35:00 2018 New Revision: 332885 URL: https://svnweb.freebsd.org/changeset/base/332885 Log: Add driver for Cadence Quad SPI Flash Controller found on Intel® Arria® 10 SoC. Cadence Quad SPI Flash is not generic SPI controller, but SPI flash controller, so

svn commit: r332884 - stable/11/share/misc

2018-04-23 Thread Ram Kishore Vegesna
Author: ram Date: Mon Apr 23 09:01:25 2018 New Revision: 332884 URL: https://svnweb.freebsd.org/changeset/base/332884 Log: MFC r332386, r332430: Updated mentors information. Added entry in the correct section. Approved by: mav Modified: stable/11/share/misc/committers-src.dot

svn commit: r332883 - stable/11/sys/dev/ocs_fc

2018-04-23 Thread Ram Kishore Vegesna
Author: ram Date: Mon Apr 23 08:51:41 2018 New Revision: 332883 URL: https://svnweb.freebsd.org/changeset/base/332883 Log: MFC r332471, r332646: Check if STACK is defined before using the stack(9). Moved opts-stack.h include before all other includes. Approved by: mav Modified:

svn commit: r332882 - head/sys/kern

2018-04-23 Thread Mateusz Guzik
Author: mjg Date: Mon Apr 23 08:23:10 2018 New Revision: 332882 URL: https://svnweb.freebsd.org/changeset/base/332882 Log: lockf: add per-chain locks to the owner hash This combined with previous changes significantly depessimizes the behaviour under contentnion. In particular the

svn commit: r332881 - head/sys/kern

2018-04-23 Thread Mateusz Guzik
Author: mjg Date: Mon Apr 23 07:54:02 2018 New Revision: 332881 URL: https://svnweb.freebsd.org/changeset/base/332881 Log: lockf: skip locking the graph if not necessary (common case) Tested by: pho Modified: head/sys/kern/kern_lockf.c Modified: head/sys/kern/kern_lockf.c

svn commit: r332880 - head/sys/kern

2018-04-23 Thread Mateusz Guzik
Author: mjg Date: Mon Apr 23 07:52:56 2018 New Revision: 332880 URL: https://svnweb.freebsd.org/changeset/base/332880 Log: lockf: perform wakeup onlly when there is anybody waiting Tested by: pho Modified: head/sys/kern/kern_lockf.c Modified: head/sys/kern/kern_lockf.c

svn commit: r332878 - head/sys/kern

2018-04-23 Thread Mateusz Guzik
Author: mjg Date: Mon Apr 23 07:51:19 2018 New Revision: 332878 URL: https://svnweb.freebsd.org/changeset/base/332878 Log: lockf: free state only when recycling the vnode This avoids malloc/free cycles when locking/unlocking the vnode when nobody is contending. Tested by:pho

svn commit: r332879 - head/sys/kern

2018-04-23 Thread Mateusz Guzik
Author: mjg Date: Mon Apr 23 07:52:10 2018 New Revision: 332879 URL: https://svnweb.freebsd.org/changeset/base/332879 Log: lockf: skip the hard work in lf_purgelocks if possible Tested by: pho Modified: head/sys/kern/kern_lockf.c Modified: head/sys/kern/kern_lockf.c

svn commit: r332877 - head/usr.sbin/syslogd

2018-04-23 Thread Xin LI
Author: delphij Date: Mon Apr 23 07:15:49 2018 New Revision: 332877 URL: https://svnweb.freebsd.org/changeset/base/332877 Log: Correct size for allocation and bzero of fdsr. MFC after:2 weeks Modified: head/usr.sbin/syslogd/syslogd.c Modified: head/usr.sbin/syslogd/syslogd.c