svn commit: r313940 - in head/sys: amd64/linux amd64/linux32 compat/linux i386/linux

2017-02-18 Thread Dmitry Chagin
Author: dchagin Date: Sun Feb 19 07:38:11 2017 New Revision: 313940 URL: https://svnweb.freebsd.org/changeset/base/313940 Log: Implement rt_tgsigqueueinfo system call used by glibc for pthread_sigqueue(3). MFC after:2 week Modified: head/sys/amd64/linux/linux_dummy.c

svn commit: r313939 - head/sys/i386/i386

2017-02-18 Thread Konstantin Belousov
Author: kib Date: Sun Feb 19 06:14:33 2017 New Revision: 313939 URL: https://svnweb.freebsd.org/changeset/base/313939 Log: MFamd64 r313933: microoptimize pmap_protect_pde(). Noted by: alc Sponsored by: The FreeBSD Foundation MFC after:1 week Modified:

svn commit: r313938 - head/usr.bin/lam

2017-02-18 Thread Allan Jude
Author: allanjude Date: Sun Feb 19 06:02:41 2017 New Revision: 313938 URL: https://svnweb.freebsd.org/changeset/base/313938 Log: Capsicum-ize lam(1) lam(1) is used in portsnap(8), so lock it down Reviewed by: emaste, cem, jonathan Sponsored by: ScaleEngine Inc. Differential

svn commit: r313937 - head/sys/dev/isp

2017-02-18 Thread Alexander Motin
Author: mav Date: Sun Feb 19 05:29:06 2017 New Revision: 313937 URL: https://svnweb.freebsd.org/changeset/base/313937 Log: Missed addition to r313936. CTIO waitq present only in ISP_TARGET_MODE. MFC after:2 weeks Modified: head/sys/dev/isp/isp_freebsd.c Modified:

svn commit: r313936 - head/sys/dev/isp

2017-02-18 Thread Alexander Motin
Author: mav Date: Sun Feb 19 05:07:02 2017 New Revision: 313936 URL: https://svnweb.freebsd.org/changeset/base/313936 Log: Move CTIO waitq from per-LUN to per-channel. All resources lack of which may put CTIO into the queue are either per-channel or potentially per-queue, but none of

svn commit: r313935 - head/sys/dev/e1000

2017-02-18 Thread Sean Bruno
Author: sbruno Date: Sun Feb 19 05:06:29 2017 New Revision: 313935 URL: https://svnweb.freebsd.org/changeset/base/313935 Log: Restore PBA setup for igb(4) class devices. Do no write to PBA register on igb(4) devices unless we need to make adjustments for the 82575 and jumbo frames.

svn commit: r313934 - head/sys/x86/x86

2017-02-18 Thread Konstantin Belousov
Author: kib Date: Sun Feb 19 03:57:41 2017 New Revision: 313934 URL: https://svnweb.freebsd.org/changeset/base/313934 Log: Fix regression in r313898 on i386. Use large enough type for calculation of mtrr physmask. Typical cpu_maxphyaddr is 36 or larger. Reported and tested by:

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

2017-02-18 Thread Konstantin Belousov
Author: kib Date: Sun Feb 19 03:33:20 2017 New Revision: 313933 URL: https://svnweb.freebsd.org/changeset/base/313933 Log: Microoptimize amd64/pmap.c pmap_protect_pde(). For the loop that dirties vm_pages in case superpage was written to, check the complete condition before the loop.

svn commit: r313930 - in head/sys: amd64/include kern mips/include mips/mips net powerpc/include sparc64/include

2017-02-18 Thread Jason A. Harmening
Author: jah Date: Sun Feb 19 02:03:09 2017 New Revision: 313930 URL: https://svnweb.freebsd.org/changeset/base/313930 Log: Bring back r313037, with fixes for mips: Implement get_pcpu() for amd64/sparc64/mips/powerpc, and use it to replace pcpu_find(curcpu) in MI code. Reviewed by:

Re: svn commit: r313268 - head/sys/kern [through -r313271 for atomic_fcmpset use and later: fails on PowerMac G5 "Quad Core"; -r313266 works]

2017-02-18 Thread Mateusz Guzik
On Sat, Feb 18, 2017 at 01:58:49PM -0800, Mark Millard wrote: > On 2017-Feb-18, at 12:58 PM, Mateusz Guzik wrote: > > Well either the primitive itself is buggy or the somewhat (now) unusual > > condition of not providing the failed value (but possibly a stale one) > > is not handled correctly in

svn commit: r313928 - head/sys/kern

2017-02-18 Thread Mateusz Guzik
Author: mjg Date: Sat Feb 18 22:06:03 2017 New Revision: 313928 URL: https://svnweb.freebsd.org/changeset/base/313928 Log: locks: clean up trylock primitives In particular thius reduces accesses of the lock itself. Modified: head/sys/kern/kern_mutex.c head/sys/kern/kern_rwlock.c

Re: svn commit: r313268 - head/sys/kern [through -r313271 for atomic_fcmpset use and later: fails on PowerMac G5 "Quad Core"; -r313266 works]

2017-02-18 Thread Mark Millard
On 2017-Feb-18, at 12:58 PM, Mateusz Guzik wrote: > On Sat, Feb 18, 2017 at 12:49:29PM -0800, Mark Millard wrote: >> On 2017-Feb-18, at 4:18 AM, Mark Millard wrote: >> >>> [Note: I experiment with clang based powerpc64 builds, >>> reporting problems that I find. Justin is familiar >>> with

svn commit: r313925 - head

2017-02-18 Thread Ngie Cooper
Author: ngie Date: Sat Feb 18 21:47:32 2017 New Revision: 313925 URL: https://svnweb.freebsd.org/changeset/base/313925 Log: Include ${LOCALBASE}/bin in $PATH when running "make checkworld" Some of the tests in devel/atf // devel/kyua rely on the tools being in $PATH, which means that the

svn commit: r313924 - head

2017-02-18 Thread Ngie Cooper
Author: ngie Date: Sat Feb 18 21:41:50 2017 New Revision: 313924 URL: https://svnweb.freebsd.org/changeset/base/313924 Log: Quote path to doxygen/kyua in test(1) -x check This is a basic stopgap against ${LOCALBASE} containing spaces in it MFC after:1 week Sponsored by: Dell EMC

svn commit: r313923 - head/include

2017-02-18 Thread Mahdi Mokhtari
Author: mmokhi (ports committer) Date: Sat Feb 18 21:08:09 2017 New Revision: 313923 URL: https://svnweb.freebsd.org/changeset/base/313923 Log: Add new catrigl.c (r313761) APIs to include/complex.h Reviewed by: bde, emaste Approved by: bde, emaste (src committers) Differential

Re: svn commit: r313268 - head/sys/kern [through -r313271 for atomic_fcmpset use and later: fails on PowerMac G5 "Quad Core"; -r313266 works]

2017-02-18 Thread Mateusz Guzik
On Sat, Feb 18, 2017 at 12:49:29PM -0800, Mark Millard wrote: > On 2017-Feb-18, at 4:18 AM, Mark Millard wrote: > > > [Note: I experiment with clang based powerpc64 builds, > > reporting problems that I find. Justin is familiar > > with this, as is Nathan.] > > > > I tried to update the

Re: svn commit: r313268 - head/sys/kern [through -r313271 for atomic_fcmpset use and later: fails on PowerMac G5 "Quad Core"; -r313266 works]

2017-02-18 Thread Mark Millard
On 2017-Feb-18, at 4:18 AM, Mark Millard wrote: > [Note: I experiment with clang based powerpc64 builds, > reporting problems that I find. Justin is familiar > with this, as is Nathan.] > > I tried to update the PowerMac G5 (a so-called "Quad Core") > that I have access to from head -r312761 to

svn commit: r313922 - head/sys/netipsec

2017-02-18 Thread Andrey V. Elsukov
Author: ae Date: Sat Feb 18 19:53:37 2017 New Revision: 313922 URL: https://svnweb.freebsd.org/changeset/base/313922 Log: For translated packets do not adjust UDP checksum if it is zero. In case when decrypted and decapsulated packet is an UDP datagram, check that its checksum is not

svn commit: r313920 - head/sbin/kldload

2017-02-18 Thread Gleb Smirnoff
Author: glebius Date: Sat Feb 18 18:57:29 2017 New Revision: 313920 URL: https://svnweb.freebsd.org/changeset/base/313920 Log: Fix the last case when kldload(8) wasn't printing the name of the module that failed to load. Modified: head/sbin/kldload/kldload.c Modified:

svn commit: r313919 - head/sys/modules/dtb/imx6

2017-02-18 Thread Ian Lepore
Author: ian Date: Sat Feb 18 18:31:42 2017 New Revision: 313919 URL: https://svnweb.freebsd.org/changeset/base/313919 Log: Add dtb files for Boundary Devices Nitrogen 6 family boards. FreeBSD runs on a nitrogen6x quad 2gb, and is expected to run on all the imx6 boards in the nitrogen6

svn commit: r313918 - head/sys/dev/ffec

2017-02-18 Thread Ian Lepore
Author: ian Date: Sat Feb 18 18:27:28 2017 New Revision: 313918 URL: https://svnweb.freebsd.org/changeset/base/313918 Log: Add definitions for the IEEE-1588 registers. Modified: head/sys/dev/ffec/if_ffecreg.h Modified: head/sys/dev/ffec/if_ffecreg.h

svn commit: r313917 - head/sys/arm/freescale/imx

2017-02-18 Thread Ian Lepore
Author: ian Date: Sat Feb 18 18:24:03 2017 New Revision: 313917 URL: https://svnweb.freebsd.org/changeset/base/313917 Log: Change the naming of imx{5,6} gpio pins to exactly match the names used in the chip reference manuals: GPIOn_IOnn. Modified: head/sys/arm/freescale/imx/imx_gpio.c

Re: svn commit: r313268 - head/sys/kern [through -r313271 for atomic_fcmpset use and later: fails on PowerMac G5 "Quad Core"; -r313266 works]

2017-02-18 Thread Mark Millard
[Note: I experiment with clang based powerpc64 builds, reporting problems that I find. Justin is familiar with this, as is Nathan.] I tried to update the PowerMac G5 (a so-called "Quad Core") that I have access to from head -r312761 to -r313864 and ended up with random panics and hang ups in

svn commit: r313915 - head/sbin/fsck

2017-02-18 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Feb 18 11:43:13 2017 New Revision: 313915 URL: https://svnweb.freebsd.org/changeset/base/313915 Log: Make fsck(8) default to "ufs", like eg mount(8) does. Approved by: imp Discussed with: kib MFC after:2 weeks Sponsored by: DARPA, AFRL

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

2017-02-18 Thread Dmitry Chagin
Author: dchagin Date: Sat Feb 18 10:01:17 2017 New Revision: 313914 URL: https://svnweb.freebsd.org/changeset/base/313914 Log: Style(9), some XXX comments fix. No functional changes. MFC after:1 week Modified: head/sys/compat/linux/linux_socket.c Modified:

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

2017-02-18 Thread Dmitry Chagin
Author: dchagin Date: Sat Feb 18 09:39:20 2017 New Revision: 313913 URL: https://svnweb.freebsd.org/changeset/base/313913 Log: Initialize cap_rights before use. MFC after:1 week Modified: head/sys/compat/linux/linux_socket.c Modified: head/sys/compat/linux/linux_socket.c