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 P

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 head/sbin/fsck_ffs/fsutil.c

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 invo

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 head/sys/cam/ct

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 macro

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 con

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: 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: https://rev

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 App

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: 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 FILE*

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 seco

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 as

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 exis

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 p

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 as

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: head/contr

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 offs

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 an