svn commit: r327811 - head/sys/dev/cxgbe

2018-01-11 Thread Wojciech Macek
Author: wma Date: Thu Jan 11 09:17:02 2018 New Revision: 327811 URL: https://svnweb.freebsd.org/changeset/base/327811 Log: CXGBE: fix get_filt to be endianness-aware Unconditional 32-bit shift is not endianness-safe. Modify the logic to work both on LE and BE. Submitted by:

svn commit: r327812 - head/sys/powerpc/powernv

2018-01-11 Thread Wojciech Macek
Author: wma Date: Thu Jan 11 09:26:28 2018 New Revision: 327812 URL: https://svnweb.freebsd.org/changeset/base/327812 Log: PowerNV: add reset, poweroff, OPAL console Add basic power control (reset, power off) and bind ttyuX to opal console so that init will start login there. Created

svn commit: r327813 - head/sys/powerpc/powernv

2018-01-11 Thread Wojciech Macek
Author: wma Date: Thu Jan 11 09:34:33 2018 New Revision: 327813 URL: https://svnweb.freebsd.org/changeset/base/327813 Log: PowerNV: correctly start secondary CPUs Fix AP startup, which was broken. Created by:Nathan Whitehorn Submitted by: Wojciech Macek Spons

svn commit: r327814 - in head/sys/powerpc: include powernv

2018-01-11 Thread Wojciech Macek
Author: wma Date: Thu Jan 11 09:39:38 2018 New Revision: 327814 URL: https://svnweb.freebsd.org/changeset/base/327814 Log: PowerNV: set LPCR[LPES] correctly Make sure to set LPCR[LPES] so that external interrupts set SRR0 and SRR1 instead of HSRR0 and HSRR1. Without this, external interru

svn commit: r327815 - head/sys/powerpc/powernv

2018-01-11 Thread Wojciech Macek
Author: wma Date: Thu Jan 11 09:42:24 2018 New Revision: 327815 URL: https://svnweb.freebsd.org/changeset/base/327815 Log: PowerNV: add buffer for OPAL console Avoid the lock in vtophys() by providing a static direct-mapped spinlock- protected output buffer to use when the console driver

svn commit: r327816 - in head/sys: amd64/amd64 i386/i386

2018-01-11 Thread Konstantin Belousov
Author: kib Date: Thu Jan 11 12:07:24 2018 New Revision: 327816 URL: https://svnweb.freebsd.org/changeset/base/327816 Log: Update comment explaining the check, to reality. Discussed with: jhb Sponsored by: The FreeBSD Foundation MFC after:3 days Modified: head/sys/amd64/amd

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

2018-01-11 Thread Konstantin Belousov
Author: kib Date: Thu Jan 11 12:28:08 2018 New Revision: 327817 URL: https://svnweb.freebsd.org/changeset/base/327817 Log: Rename COMMON_TSS_RSP0 to TSS_RSP0. The symbol is just an offset in the hardware TSS structure, it is not limited to the common_tss instance. Sponsored by: The F

svn commit: r327818 - in head/sys/amd64: amd64 include

2018-01-11 Thread Konstantin Belousov
Author: kib Date: Thu Jan 11 12:40:43 2018 New Revision: 327818 URL: https://svnweb.freebsd.org/changeset/base/327818 Log: Move the hardware setup for fast syscalls into a common function. Discussed with: jhb Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: h

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

2018-01-11 Thread Konstantin Belousov
Author: kib Date: Thu Jan 11 12:54:33 2018 New Revision: 327819 URL: https://svnweb.freebsd.org/changeset/base/327819 Log: Do not clear %RFLAGS.DF on fast syscall entry. Hardware already did it for us due to the mask loaded into the MSR_SF_MASK msr register. Reviewed by: jhb Spons

svn commit: r327820 - in head/sys: amd64/amd64 i386/i386

2018-01-11 Thread Konstantin Belousov
Author: kib Date: Thu Jan 11 13:22:13 2018 New Revision: 327820 URL: https://svnweb.freebsd.org/changeset/base/327820 Log: Remove redundand CLD instructions. We already clear %RFLAGS.DF on the kernel entry due to the compiler's ABI requirements. Suggested by: jhb Sponsored by: The

svn commit: r327821 - head/sys/ufs/ffs

2018-01-11 Thread Konstantin Belousov
Author: kib Date: Thu Jan 11 13:37:45 2018 New Revision: 327821 URL: https://svnweb.freebsd.org/changeset/base/327821 Log: Softlink inodes can own buffers with dependencies. At least, softlinks longer than 120 bytes have data fragments. Submitted by: mckusick MFC after:5 days Mo

svn commit: r327822 - head/stand/common

2018-01-11 Thread Konstantin Belousov
Author: kib Date: Thu Jan 11 13:57:30 2018 New Revision: 327822 URL: https://svnweb.freebsd.org/changeset/base/327822 Log: Skip IRELATIVE relocations when loader processes ELF files. ifuncs can be only called in the (early boot) kernel environment, so postpone resolving until early stage

svn commit: r327823 - head/share/mk

2018-01-11 Thread Ed Maste
Author: emaste Date: Thu Jan 11 14:03:05 2018 New Revision: 327823 URL: https://svnweb.freebsd.org/changeset/base/327823 Log: Enable ld.lld as bootstrap linker by default on i386 Akin to r327783 for amd64. lld has been usable for amd64 for quite some time, but a couple of issues remained

Re: svn commit: r327806 - in head: etc/mtree usr.bin/awk usr.bin/awk/tests

2018-01-11 Thread Kyle Evans
On Wed, Jan 10, 2018 at 11:53 PM, Warner Losh wrote: > On Wed, Jan 10, 2018 at 10:36 PM, Kyle Evans wrote: > >> Author: kevans >> Date: Thu Jan 11 05:36:13 2018 >> New Revision: 327806 >> URL: https://svnweb.freebsd.org/changeset/base/327806 >> >> Log: >> awk(1): Add necessary bits for connecti

svn commit: r327824 - head/share/man/man5

2018-01-11 Thread Ed Maste
Author: emaste Date: Thu Jan 11 14:21:07 2018 New Revision: 327824 URL: https://svnweb.freebsd.org/changeset/base/327824 Log: regen src.conf.5 after r327823, WITH_LLD_BOOTSTRAP for i386 Sponsored by: The FreeBSD Foundation Modified: head/share/man/man5/src.conf.5 Modified: head/share/ma

svn commit: r327825 - head/sys/arm/allwinner

2018-01-11 Thread Kyle Evans
Author: kevans Date: Thu Jan 11 14:29:29 2018 New Revision: 327825 URL: https://svnweb.freebsd.org/changeset/base/327825 Log: if_awg: Support new emac bindings Highlights of the new bindings: - ahb clock is specified as 'stmmaceth' - The PHY to be used is now specified as phy-handle -

svn commit: r327826 - head/usr.bin/patch

2018-01-11 Thread Kyle Evans
Author: kevans Date: Thu Jan 11 15:01:48 2018 New Revision: 327826 URL: https://svnweb.freebsd.org/changeset/base/327826 Log: patch(1): Don't check for NUL bytes in Plan A Plan A mmap()'s the entire input file and operates on it in memory. The map(2) call succeeded, so we shouldn't need t

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

2018-01-11 Thread Michal Meloun
Author: mmel Date: Thu Jan 11 15:03:01 2018 New Revision: 327827 URL: https://svnweb.freebsd.org/changeset/base/327827 Log: Initialize CONTEXTIDR register on secondary cores by zero, not with undefined value from X1 register. MFC after:1 month Modified: head/sys/arm64/arm64/locore.

svn commit: r327828 - in head/sys/dev: e1000 ixl

2018-01-11 Thread Pedro F. Giffuni
Author: pfg Date: Thu Jan 11 15:25:26 2018 New Revision: 327828 URL: https://svnweb.freebsd.org/changeset/base/327828 Log: dev/(e1000,ixl): Make some use of mallocarray(9). Reviewed by: erj Differential Revision: https://reviews.freebsd.org/D13833 Modified: head/sys/dev/e1000/if_em.c

svn commit: r327829 - head/sys/netpfil/ipfw

2018-01-11 Thread Pedro F. Giffuni
Author: pfg Date: Thu Jan 11 15:29:29 2018 New Revision: 327829 URL: https://svnweb.freebsd.org/changeset/base/327829 Log: netpfil/ipfw: Make some use of mallocarray(9). Reviewed by: kp, ae Differential Revision: https://reviews.freebsd.org/D13834 Modified: head/sys/netpfil/ipfw/dn_he

svn commit: r327831 - in head/sys/dev/bhnd: bcma nvram siba

2018-01-11 Thread Pedro F. Giffuni
Author: pfg Date: Thu Jan 11 15:44:03 2018 New Revision: 327831 URL: https://svnweb.freebsd.org/changeset/base/327831 Log: dev/bhnd: Make use of mallocarray(9). This makes a calloc-like definition check for overflows as is common practice. Modified: head/sys/dev/bhnd/bcma/bcma_erom.c

svn commit: r327832 - in head: etc/mtree usr.bin/vmstat usr.bin/vmstat/tests

2018-01-11 Thread Kyle Evans
Author: kevans Date: Thu Jan 11 16:04:04 2018 New Revision: 327832 URL: https://svnweb.freebsd.org/changeset/base/327832 Log: vmstat(8): Hook up NetBSD tests The NetBSD tests for vmstat are basically just a smoke test, ensuring that executing `vmstat` and `vmstat -s` exit successfully. Th

svn commit: r327833 - head/share/man/man9

2018-01-11 Thread Mark Johnston
Author: markj Date: Thu Jan 11 16:41:03 2018 New Revision: 327833 URL: https://svnweb.freebsd.org/changeset/base/327833 Log: Add mallocarray.9 to malloc.9's MLINKS. X-MFC with: r327674 Modified: head/share/man/man9/Makefile Modified: head/share/man/man9/Makefile ==

svn commit: r327834 - in head/sys: amd64/amd64 i386/i386

2018-01-11 Thread Konstantin Belousov
Author: kib Date: Thu Jan 11 16:50:03 2018 New Revision: 327834 URL: https://svnweb.freebsd.org/changeset/base/327834 Log: Fix grammar. Submitted by: alc MFC after:3 days Modified: head/sys/amd64/amd64/support.S head/sys/i386/i386/support.s Modified: head/sys/amd64/amd64/support

svn commit: r327835 - in head/sys: arm/arm arm64/arm64 conf dev/acpica

2018-01-11 Thread Andrew Turner
Author: andrew Date: Thu Jan 11 17:09:12 2018 New Revision: 327835 URL: https://svnweb.freebsd.org/changeset/base/327835 Log: Add the start of INTRNG support for ACPI. This adds a new acpi_bus interface with a map_intr method. This is similar to the Open Firmware map_intr method and allow

svn commit: r327836 - in head/sys: arm/arm arm64/arm64 conf

2018-01-11 Thread Andrew Turner
Author: andrew Date: Thu Jan 11 17:23:24 2018 New Revision: 327836 URL: https://svnweb.freebsd.org/changeset/base/327836 Log: iAdd ACPI attachments the the GIC and GICv3 interrupt controller drivers. For each we need to walk the MADT to find which we have, then add the driver as needed. As e

svn commit: r327838 - head/sys/opencrypto

2018-01-11 Thread John Baldwin
Author: jhb Date: Thu Jan 11 18:07:21 2018 New Revision: 327838 URL: https://svnweb.freebsd.org/changeset/base/327838 Log: Axe tmp_iv from the cryptodev session structure. Just copyin the IV into the crypto descriptor directly. This avoids copying the IV twice for each operation. Re

svn commit: r327839 - head/sys/opencrypto

2018-01-11 Thread John Baldwin
Author: jhb Date: Thu Jan 11 18:09:24 2018 New Revision: 327839 URL: https://svnweb.freebsd.org/changeset/base/327839 Log: Change the type of 'crp_opaque' from caddr_t to void *. Opaque pointers should be void *. Note that this does not go through the tree removing all of the now-unneces

svn commit: r327840 - head/sys/i386/conf

2018-01-11 Thread Ed Maste
Author: emaste Date: Thu Jan 11 19:08:43 2018 New Revision: 327840 URL: https://svnweb.freebsd.org/changeset/base/327840 Log: Temporarily disable VIMAGE on i386 An lld-linked i386 kernel hangs on boot, after em(4) starts. This seems similar to the issue that prompted us to disable VIMAGE

svn commit: r327841 - head

2018-01-11 Thread John Baldwin
Author: jhb Date: Thu Jan 11 19:24:44 2018 New Revision: 327841 URL: https://svnweb.freebsd.org/changeset/base/327841 Log: Allow MIPS lib32 to build with clang. Don't try to set -march as clang doesn't permit use of the O32 ABI with newer CPU microarchitectures like 'mips3'. In addition,

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

2018-01-11 Thread Eric Joyner
Author: erj Date: Thu Jan 11 19:24:51 2018 New Revision: 327842 URL: https://svnweb.freebsd.org/changeset/base/327842 Log: e1000: Fix typos in value written to register and a comment The value written to E1000_TARC(0) wasn't intended to have every bit but E1000_TARC0_CB_MULTIQ_3_REQ clear

svn commit: r327844 - head/sys/kern

2018-01-11 Thread Michael Tuexen
Author: tuexen Date: Thu Jan 11 20:26:17 2018 New Revision: 327844 URL: https://svnweb.freebsd.org/changeset/base/327844 Log: Ensure that the vnet is set when calling pru_sockaddr() and pru_peeraddr(). This is already true when called via kern_getsockname() and kern_getpeername(). This

svn commit: r327845 - head/contrib/llvm/lib/Support/Unix

2018-01-11 Thread Dimitry Andric
Author: dim Date: Thu Jan 11 21:12:23 2018 New Revision: 327845 URL: https://svnweb.freebsd.org/changeset/base/327845 Log: Pull in r316581 from upstream llvm trunk (by John Baldwin): Don't try to use a non-existent header on FreeBSD/mips. Reviewers: dim Differential Revision

svn commit: r327846 - head/sys/modules/dtrace

2018-01-11 Thread Michael Tuexen
Author: tuexen Date: Thu Jan 11 21:17:05 2018 New Revision: 327846 URL: https://svnweb.freebsd.org/changeset/base/327846 Log: Build systrace_freebsd32 on arm64. Since r326501 which added COMPAT_FREEBSD32 to the GENERIC config for arm64, we need to build systrace_freebsd32, since dtraceall

svn commit: r327858 - head/share/mk

2018-01-11 Thread Bryan Drewery
Author: bdrewery Date: Fri Jan 12 01:09:41 2018 New Revision: 327858 URL: https://svnweb.freebsd.org/changeset/base/327858 Log: Add a hack to disable AUTO_OBJ for 'old style' kernel builds. Another solution would be to extend the Makefile.sys.inc idea, or a .no_obj file, to more places bu

svn commit: r327857 - head

2018-01-11 Thread Bryan Drewery
Author: bdrewery Date: Fri Jan 12 01:09:30 2018 New Revision: 327857 URL: https://svnweb.freebsd.org/changeset/base/327857 Log: Cache LINKER_FEATURES to fix the wrong ones being used. Submitted by: Dan McGregor Modified: head/Makefile.inc1 Modified: head/Makefile.inc1 =

svn commit: r327860 - head/sys/vm

2018-01-11 Thread Ed Maste
Author: emaste Date: Fri Jan 12 03:50:44 2018 New Revision: 327860 URL: https://svnweb.freebsd.org/changeset/base/327860 Log: ANSIfy function definitions in sys/vm/ Modified: head/sys/vm/vm_glue.c head/sys/vm/vm_unix.c Modified: head/sys/vm/vm_glue.c ===

svn commit: r327862 - head/sbin/dhclient

2018-01-11 Thread Alan Somers
Author: asomers Date: Fri Jan 12 04:26:40 2018 New Revision: 327862 URL: https://svnweb.freebsd.org/changeset/base/327862 Log: dhclient(8): add missing include stdbool is technically needed, though we can get away without it due to header pollution. MFC after:3 days Modified:

svn commit: r327864 - in head/sys/dev: mlx4 mlx4/mlx4_core mlx4/mlx4_en mlx4/mlx4_ib mlx5

2018-01-11 Thread Eitan Adler
Author: eadler Date: Fri Jan 12 06:36:44 2018 New Revision: 327864 URL: https://svnweb.freebsd.org/changeset/base/327864 Log: sys/dev/mlx[45]: fix uses of 1 << 31 Reviewed by: kib (D13858) Modified: head/sys/dev/mlx4/cq.h head/sys/dev/mlx4/mlx4_core/mlx4_fw.c head/sys/dev/ml

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

2018-01-11 Thread Eitan Adler
Author: eadler Date: Fri Jan 12 06:37:53 2018 New Revision: 327865 URL: https://svnweb.freebsd.org/changeset/base/327865 Log: sys/dev/e1000: fix uses of 1 << 31 Reviewed by: erj (D13858) Modified: head/sys/dev/e1000/e1000_82575.h head/sys/dev/e1000/e1000_ich8lan.c head/sys/d

svn commit: r327866 - head/sys/crypto/aesni

2018-01-11 Thread Conrad Meyer
Author: cem Date: Fri Jan 12 06:40:58 2018 New Revision: 327866 URL: https://svnweb.freebsd.org/changeset/base/327866 Log: aesni(4): Quiesce spurious GCC 6.3.0 -Wmaybe-uninitialized warnings Always initialize some variables GCC warns about. They are initialized in every path where they a

svn commit: r327867 - in head/sys: conf powerpc/powernv

2018-01-11 Thread Wojciech Macek
Author: wma Date: Fri Jan 12 07:55:49 2018 New Revision: 327867 URL: https://svnweb.freebsd.org/changeset/base/327867 Log: PowerNV: initial support for PCIe host controller Provide initial support for PCIe host controller as well as for IOMMU mapping. This commit allows proper bus enume