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

2018-01-16 Thread Wojciech Macek
Author: wma Date: Wed Jan 17 07:39:11 2018 New Revision: 328076 URL: https://svnweb.freebsd.org/changeset/base/328076 Log: PowerNV: make PowerNV PCIe working on a real hardware Fixes: - map all devices to PE0 - use 1:1 TCE mapping - provide the same TCE mapping for all PEs (not only

svn commit: r328075 - head/sbin/fsck_ffs

2018-01-16 Thread Kirk McKusick
Author: mckusick Date: Wed Jan 17 06:31:21 2018 New Revision: 328075 URL: https://svnweb.freebsd.org/changeset/base/328075 Log: Rename cgget => cglookup to clear name space for new libufs function cgget. No functional change. Modified: head/sbin/fsck_ffs/fsck.h

Re: svn commit: r327950 - in head/sys/powerpc: aim include powerpc ps3

2018-01-16 Thread Nathan Whitehorn
On 01/16/18 11:32, Marius Strobl wrote: On Mon, Jan 15, 2018 at 03:20:49PM -0800, Nathan Whitehorn wrote: On 01/15/18 09:53, Konstantin Belousov wrote: On Mon, Jan 15, 2018 at 09:32:56AM -0800, Nathan Whitehorn wrote: That seems fine to me. I don't think a less-clumsy way that does not

svn commit: r328073 - vendor-sys/libfdt/1.4.6

2018-01-16 Thread Kyle Evans
Author: kevans Date: Wed Jan 17 05:09:15 2018 New Revision: 328073 URL: https://svnweb.freebsd.org/changeset/base/328073 Log: Tag libfdt 1.4.6 following initial import Added: vendor-sys/libfdt/1.4.6/ - copied from r328072, vendor-sys/libfdt/dist/

svn commit: r328072 - in vendor-sys/libfdt: . dist

2018-01-16 Thread Kyle Evans
Author: kevans Date: Wed Jan 17 05:08:01 2018 New Revision: 328072 URL: https://svnweb.freebsd.org/changeset/base/328072 Log: Create vendor-sys/libfdt from libfdt in vendor/dtc There are no plans at the moment to continue updating GPL dtc in the tree as BSDL dtc is slowly replacing it.

svn commit: r328071 - in head/sys/dev/bhnd: bhndb cores/pci

2018-01-16 Thread Landon J. Fuller
Author: landonf Date: Wed Jan 17 03:34:26 2018 New Revision: 328071 URL: https://svnweb.freebsd.org/changeset/base/328071 Log: bhndb_pci(4): fix incorrect BHND_PCI_SRSH_PI workaround On a SPROM-less device, the PCI(e) bridge core will be initialized with its power-on-reset defaults; this

svn commit: r328070 - in head/sys/cam: . ctl mmc nvme scsi

2018-01-16 Thread Pedro F. Giffuni
Author: pfg Date: Tue Jan 16 23:19:57 2018 New Revision: 328070 URL: https://svnweb.freebsd.org/changeset/base/328070 Log: SPDX: finish tagging sys/cam. Modified: head/sys/cam/cam_iosched.c head/sys/cam/cam_iosched.h head/sys/cam/ctl/ctl_ha.c head/sys/cam/ctl/ctl_tpc.c

svn commit: r328069 - head/sys/x86/isa

2018-01-16 Thread Ian Lepore
Author: ian Date: Tue Jan 16 23:18:52 2018 New Revision: 328069 URL: https://svnweb.freebsd.org/changeset/base/328069 Log: Remove redundant critical_enter/exit() calls. The block of code delimited by these calls is now protected by a spin mutex (obscured within the RTC_LOCK/RTC_UNLOCK

svn commit: r328068 - head/sys/x86/isa

2018-01-16 Thread Ian Lepore
Author: ian Date: Tue Jan 16 23:14:12 2018 New Revision: 328068 URL: https://svnweb.freebsd.org/changeset/base/328068 Log: Move some code around and rename a couple variables; no functional changes. The static atrtc_set() function was called only from clock_settime(), so just move its

svn commit: r328067 - head/sys/cam/scsi

2018-01-16 Thread Pedro F. Giffuni
Author: pfg Date: Tue Jan 16 23:08:25 2018 New Revision: 328067 URL: https://svnweb.freebsd.org/changeset/base/328067 Log: scsi_ch.c: Small cleanups to the comments. Move the the NetBSD tag near to the related licence. Update it to reflect better the point where we started diverging.

svn commit: r328066 - head/sys/netinet

2018-01-16 Thread Michael Tuexen
Author: tuexen Date: Tue Jan 16 21:58:38 2018 New Revision: 328066 URL: https://svnweb.freebsd.org/changeset/base/328066 Log: Fix a bug related to fast retransmissions. When processing a SACK advancing the cumtsn-ack in fast recovery, increment the miss-indications for all TSN's reported

svn commit: r328064 - in head: usr.bin/xinstall usr.sbin/makefs

2018-01-16 Thread Alex Richardson
Author: arichardson Date: Tue Jan 16 21:43:46 2018 New Revision: 328064 URL: https://svnweb.freebsd.org/changeset/base/328064 Log: Allow xinstall and makefs to be crossbuilt on Linux and Mac I need these tools in order to install the crossbuilt FreeBSD and create a disk image. Linux does

svn commit: r328063 - head

2018-01-16 Thread Alex Richardson
Author: arichardson Date: Tue Jan 16 21:43:36 2018 New Revision: 328063 URL: https://svnweb.freebsd.org/changeset/base/328063 Log: Don't build share/syscons in build-tools stage if MK_SYSCONS == "no" Reviewed By: emaste, jhb Approved By: jhb (mentor) Differential Revision:

svn commit: r328065 - head/sys/conf

2018-01-16 Thread Alex Richardson
Author: arichardson Date: Tue Jan 16 21:43:57 2018 New Revision: 328065 URL: https://svnweb.freebsd.org/changeset/base/328065 Log: Use ln -n instead of -h to allow building the kernel on Linux Both flags do the same thing but -n is more widely supported. Reviewed By: jhb, emaste

svn commit: r328062 - head/lib/libnetbsd

2018-01-16 Thread Alex Richardson
Author: arichardson Date: Tue Jan 16 21:43:21 2018 New Revision: 328062 URL: https://svnweb.freebsd.org/changeset/base/328062 Log: libnetbsd: Make the function declaration of efopen() match the definition In order to crossbuild FreeBSD on Mac/Linux I also need to build libnetbsd and

Re: svn commit: r328060 - head/usr.sbin/service

2018-01-16 Thread Jilles Tjoelker
On Tue, Jan 16, 2018 at 08:14:31PM +, Kyle Evans wrote: > Author: kevans > Date: Tue Jan 16 20:14:31 2018 > New Revision: 328060 > URL: https://svnweb.freebsd.org/changeset/base/328060 > Log: > service(8): Reset OPTIND properly now that we're parsing args twice > r328032 introduced a

svn commit: r328061 - head/stand/efi/libefi

2018-01-16 Thread Toomas Soome
Author: tsoome Date: Tue Jan 16 20:35:54 2018 New Revision: 328061 URL: https://svnweb.freebsd.org/changeset/base/328061 Log: utf8_to_ucs2() should check for malloc failure utf8_to_ucs2() is calling malloc() without checking the result. Reviewed by: imp Differential Revision:

svn commit: r328060 - head/usr.sbin/service

2018-01-16 Thread Kyle Evans
Author: kevans Date: Tue Jan 16 20:14:31 2018 New Revision: 328060 URL: https://svnweb.freebsd.org/changeset/base/328060 Log: service(8): Reset OPTIND properly now that we're parsing args twice r328032 introduced a second round of argument parsing to proxy the request through to a jail

svn commit: r328059 - head/usr.bin/truss

2018-01-16 Thread Michael Tuexen
Author: tuexen Date: Tue Jan 16 20:02:07 2018 New Revision: 328059 URL: https://svnweb.freebsd.org/changeset/base/328059 Log: Improve the printing of cmgs when the length is 0. Fix error handling. Modified: head/usr.bin/truss/syscalls.c Modified: head/usr.bin/truss/syscalls.c

svn commit: r328058 - head/usr.bin/truss

2018-01-16 Thread Michael Tuexen
Author: tuexen Date: Tue Jan 16 19:57:30 2018 New Revision: 328058 URL: https://svnweb.freebsd.org/changeset/base/328058 Log: Using %p already prints "0x", so don't do it explicitly. Modified: head/usr.bin/truss/syscalls.c Modified: head/usr.bin/truss/syscalls.c

svn commit: r328057 - head/sys/opencrypto

2018-01-16 Thread John Baldwin
Author: jhb Date: Tue Jan 16 19:41:18 2018 New Revision: 328057 URL: https://svnweb.freebsd.org/changeset/base/328057 Log: Split crp_buf into a union. This adds explicit crp_mbuf and crp_uio pointers of the right type to replace casts of crp_buf. This does not sweep through changing

Re: svn commit: r327950 - in head/sys/powerpc: aim include powerpc ps3

2018-01-16 Thread Marius Strobl
On Mon, Jan 15, 2018 at 03:20:49PM -0800, Nathan Whitehorn wrote: > > > On 01/15/18 09:53, Konstantin Belousov wrote: > > On Mon, Jan 15, 2018 at 09:32:56AM -0800, Nathan Whitehorn wrote: > >> That seems fine to me. I don't think a less-clumsy way that does not > >> involve extra indirection is

svn commit: r328056 - head/sys/fs/ext2fs

2018-01-16 Thread Pedro F. Giffuni
Author: pfg Date: Tue Jan 16 19:29:32 2018 New Revision: 328056 URL: https://svnweb.freebsd.org/changeset/base/328056 Log: ext2fs: use mallocarray(9). Focus on code where we are doing multiplications within malloc(9). These are not likely to overflow, however the change is still useful

svn commit: r328055 - head/contrib/tzdata

2018-01-16 Thread Philip Paeps
Author: philip Date: Tue Jan 16 18:36:25 2018 New Revision: 328055 URL: https://svnweb.freebsd.org/changeset/base/328055 Log: Import tzdata 2018a Changes: https://github.com/eggert/tz/blob/2018a/NEWS MFC after:3 days Deleted: head/contrib/tzdata/pacificnew Modified:

svn commit: r328054 - vendor/tzdata/tzdata2018a

2018-01-16 Thread Philip Paeps
Author: philip Date: Tue Jan 16 18:27:26 2018 New Revision: 328054 URL: https://svnweb.freebsd.org/changeset/base/328054 Log: Tag import of tzdata 2018a Added: vendor/tzdata/tzdata2018a/ - copied from r328053, vendor/tzdata/dist/ ___

svn commit: r328053 - vendor/tzdata/dist

2018-01-16 Thread Philip Paeps
Author: philip Date: Tue Jan 16 18:26:11 2018 New Revision: 328053 URL: https://svnweb.freebsd.org/changeset/base/328053 Log: Import tzdata 2018a Deleted: vendor/tzdata/dist/pacificnew Modified: vendor/tzdata/dist/Makefile vendor/tzdata/dist/NEWS vendor/tzdata/dist/README

svn commit: r328052 - head/usr.sbin/kldxref

2018-01-16 Thread Ed Maste
Author: emaste Date: Tue Jan 16 18:20:12 2018 New Revision: 328052 URL: https://svnweb.freebsd.org/changeset/base/328052 Log: kldxref: handle modules with md_cval at the end of allocated sections Attempting to retrieve an md_cval string from a kernel module with kldxref would throw a

svn commit: r328051 - stable/10/sys/dev/usb

2018-01-16 Thread Andriy Gapon
Author: avg Date: Tue Jan 16 11:25:08 2018 New Revision: 328051 URL: https://svnweb.freebsd.org/changeset/base/328051 Log: MFC r327724: usbdevs: add ASMedia vendor ID Modified: stable/10/sys/dev/usb/usbdevs Directory Properties: stable/10/ (props changed) Modified:

svn commit: r328050 - stable/11/sys/dev/usb

2018-01-16 Thread Andriy Gapon
Author: avg Date: Tue Jan 16 11:23:21 2018 New Revision: 328050 URL: https://svnweb.freebsd.org/changeset/base/328050 Log: MFC r327724: usbdevs: add ASMedia vendor ID Modified: stable/11/sys/dev/usb/usbdevs Directory Properties: stable/11/ (props changed) Modified:

svn commit: r328049 - stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2018-01-16 Thread Andriy Gapon
Author: avg Date: Tue Jan 16 11:22:08 2018 New Revision: 328049 URL: https://svnweb.freebsd.org/changeset/base/328049 Log: MFC r327725: zfs_mount: restore a bit of ifdef-out illumos code Modified: stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c Directory Properties:

svn commit: r328048 - stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2018-01-16 Thread Andriy Gapon
Author: avg Date: Tue Jan 16 11:22:07 2018 New Revision: 328048 URL: https://svnweb.freebsd.org/changeset/base/328048 Log: MFC r327725: zfs_mount: restore a bit of ifdef-out illumos code Modified: stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c Directory Properties:

svn commit: r328047 - stable/11/sys/ufs/ffs

2018-01-16 Thread Konstantin Belousov
Author: kib Date: Tue Jan 16 10:58:31 2018 New Revision: 328047 URL: https://svnweb.freebsd.org/changeset/base/328047 Log: MFC r327723, r327821: Generalize the fix from r322757 and apply it to several more places. Modified: stable/11/sys/ufs/ffs/ffs_softdep.c Directory Properties:

svn commit: r328046 - stable/11/sys/ufs/ffs

2018-01-16 Thread Konstantin Belousov
Author: kib Date: Tue Jan 16 10:56:35 2018 New Revision: 328046 URL: https://svnweb.freebsd.org/changeset/base/328046 Log: MFC r327722: When handling write completion, take SU lock around calls to handle_written_XXX() in case of processing the buffer with an error. Modified:

svn commit: r328045 - stable/11/sys/ufs/ffs

2018-01-16 Thread Konstantin Belousov
Author: kib Date: Tue Jan 16 10:54:32 2018 New Revision: 328045 URL: https://svnweb.freebsd.org/changeset/base/328045 Log: MFC r327721: Postpone the disassotiation of the background write buffer with devvp so that buf_complete() sees fully constructed buffer. Modified:

svn commit: r328044 - head/lib/libpmcstat

2018-01-16 Thread Ruslan Bukin
Author: br Date: Tue Jan 16 09:31:01 2018 New Revision: 328044 URL: https://svnweb.freebsd.org/changeset/base/328044 Log: Fix bug: increment the value of pmcstat_npmcs instead of moving pointer to the next int position. Bug was introduced in r324959 ("Extract a set of pmcstat functions

svn commit: r328043 - in stable/11/contrib/llvm/tools/clang: include/clang/AST lib/AST lib/Sema

2018-01-16 Thread Dimitry Andric
Author: dim Date: Tue Jan 16 08:00:07 2018 New Revision: 328043 URL: https://svnweb.freebsd.org/changeset/base/328043 Log: MFC r327930: Pull in r314499 from upstream clang trunk (by Daniel Marjamäki): [Sema] Suppress warnings for C's zero initializer Patch by S. Gilles!