svn commit: r331981 - head/sys/dev/vt

2018-04-03 Thread Gordon Tetlow
Author: gordon Date: Wed Apr 4 05:21:46 2018 New Revision: 331981 URL: https://svnweb.freebsd.org/changeset/base/331981 Log: Limit glyph count in vtfont_load to avoid integer overflow. Invalid font data passed to PIO_VFONT can result in an integer overflow in glyphsize. Characters may t

svn commit: r331976 - head/sys/modules/cam

2018-04-03 Thread Warner Losh
Author: imp Date: Wed Apr 4 02:37:05 2018 New Revision: 331976 URL: https://svnweb.freebsd.org/changeset/base/331976 Log: Add nvme_da back. Now that it can co-exist in the kernel with nvd, add it back to the cam module. Sponsored by: Netflix Modified: head/sys/modules/cam/Makefil

svn commit: r331975 - head/sys/sys

2018-04-03 Thread Warner Losh
Author: imp Date: Wed Apr 4 02:35:48 2018 New Revision: 331975 URL: https://svnweb.freebsd.org/changeset/base/331975 Log: Fix minor whitespace nits Modified: head/sys/sys/module.h Modified: head/sys/sys/module.h ==

svn commit: r331970 - head/sys/powerpc/booke

2018-04-03 Thread Justin Hibbits
Author: jhibbits Date: Wed Apr 4 02:13:27 2018 New Revision: 331970 URL: https://svnweb.freebsd.org/changeset/base/331970 Log: Correct the ilog2() for calculating memory sizes. TLB1 can handle ranges up to 4GB (through e5500, larger in e6500), but ilog2() took a unsigned int, which maxes

svn commit: r331969 - head/include

2018-04-03 Thread Pedro F. Giffuni
Author: pfg Date: Wed Apr 4 02:00:10 2018 New Revision: 331969 URL: https://svnweb.freebsd.org/changeset/base/331969 Log: pthread.h: drop nullability attributes. These have been found to be practically useless. We were actually following the Android bionic library and had some interest i

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

2018-04-03 Thread Oleksandr Tymoshenko
Author: gonzo Date: Wed Apr 4 01:13:28 2018 New Revision: 331967 URL: https://svnweb.freebsd.org/changeset/base/331967 Log: Fix arm64 buildkernel target with "nooptions KDB" Make kdb_trap in breakpoint exception handler conditional. If "options KDB" is not present just panic with message

Re: svn commit: r331961 - in head/sys: arm/mv dts/arm

2018-04-03 Thread Marcin Wojtas
Hi Manu, 2018-04-04 0:28 GMT+02:00 Emmanuel Vadot : > On 2018-04-04 00:21, Marcin Wojtas wrote: >> >> Author: mw >> Date: Tue Apr 3 22:21:12 2018 >> New Revision: 331961 >> URL: https://svnweb.freebsd.org/changeset/base/331961 >> >> Log: >> Make Marvell AmadaXP timer driver more generic >> >>

svn commit: r331966 - in head/sys: arm/mv dev/ahci

2018-04-03 Thread Marcin Wojtas
Author: mw Date: Tue Apr 3 23:49:35 2018 New Revision: 331966 URL: https://svnweb.freebsd.org/changeset/base/331966 Log: Fix kernel modules names for Marvell armv7 Two modules with the same name cannot be loaded, so Marvell specific drivers cannot have the same name as the generic driver

svn commit: r331965 - head/sys/arm/mv

2018-04-03 Thread Marcin Wojtas
Author: mw Date: Tue Apr 3 23:29:34 2018 New Revision: 331965 URL: https://svnweb.freebsd.org/changeset/base/331965 Log: Split out delay code in Marvell timer driver for PLATFORM The PLATFORM code will perform the software loop in the early boot, so extract the actual delay code to handl

svn commit: r331964 - head/sys/arm/mv

2018-04-03 Thread Marcin Wojtas
Author: mw Date: Tue Apr 3 23:27:07 2018 New Revision: 331964 URL: https://svnweb.freebsd.org/changeset/base/331964 Log: Add missing flag check in Marvell PCIE driver Flag was introduced in r331953, but eventually not used. Obtained from: Semihalf Sponsored by: Stormshield Modified

svn commit: r331963 - in head/share: examples/etc mk

2018-04-03 Thread Jung-uk Kim
Author: jkim Date: Tue Apr 3 23:11:08 2018 New Revision: 331963 URL: https://svnweb.freebsd.org/changeset/base/331963 Log: Catch up with Clang 6.0. MFC after:3 days Modified: head/share/examples/etc/make.conf head/share/mk/bsd.cpu.mk Modified: head/share/examples/etc/make.conf ==

Re: svn commit: r331961 - in head/sys: arm/mv dts/arm

2018-04-03 Thread Emmanuel Vadot
On 2018-04-04 00:21, Marcin Wojtas wrote: Author: mw Date: Tue Apr 3 22:21:12 2018 New Revision: 331961 URL: https://svnweb.freebsd.org/changeset/base/331961 Log: Make Marvell AmadaXP timer driver more generic Store pointers to SoC specific functions in mv_timer_config structure and dete

svn commit: r331961 - in head/sys: arm/mv dts/arm

2018-04-03 Thread Marcin Wojtas
Author: mw Date: Tue Apr 3 22:21:12 2018 New Revision: 331961 URL: https://svnweb.freebsd.org/changeset/base/331961 Log: Make Marvell AmadaXP timer driver more generic Store pointers to SoC specific functions in mv_timer_config structure and determine proper config in runtime based on co

svn commit: r331960 - in head/sys/arm/mv: . armada

2018-04-03 Thread Marcin Wojtas
Author: mw Date: Tue Apr 3 22:15:53 2018 New Revision: 331960 URL: https://svnweb.freebsd.org/changeset/base/331960 Log: Make Marvell Armada watchdog driver more generic Store platform dependent functions and constants in mv_wdt_config structure and select proper configuration on runtime

svn commit: r331959 - head/sys/opencrypto

2018-04-03 Thread Conrad Meyer
Author: cem Date: Tue Apr 3 22:11:39 2018 New Revision: 331959 URL: https://svnweb.freebsd.org/changeset/base/331959 Log: cryptosoft: Remove a dead store Introduced in r331639 by removing an instance of undefined behavior. While we're here, the variable scope can be entirely moved ins

svn commit: r331958 - in head/sys/arm/mv: . armada38x armadaxp

2018-04-03 Thread Marcin Wojtas
Author: mw Date: Tue Apr 3 22:10:50 2018 New Revision: 331958 URL: https://svnweb.freebsd.org/changeset/base/331958 Log: Make get_tclk and get_cpu_freq generic for Marvell armv7 SoCs In GENERIC kernel choosing proper get_tclk and get_cpu_freq implementation must be done in runtime. Kern

svn commit: r331957 - head/sys/arm/mv

2018-04-03 Thread Marcin Wojtas
Author: mw Date: Tue Apr 3 21:54:36 2018 New Revision: 331957 URL: https://svnweb.freebsd.org/changeset/base/331957 Log: Make mv_common.c generic for Marvell Armada38X and ArmadaXP Preparation for adding Armada38X and ArmadaXP SoC to GENERIC config. Supported platform are listed in soc_f

svn commit: r331956 - head/sys/arm/mv

2018-04-03 Thread Marcin Wojtas
Author: mw Date: Tue Apr 3 21:46:28 2018 New Revision: 331956 URL: https://svnweb.freebsd.org/changeset/base/331956 Log: Make validation in Marvell mv_common.c generic Validate only drivers used by given platform. Pointers to validation function are added to soc_node_spec structure.

svn commit: r331955 - head/share/man/man8

2018-04-03 Thread Jilles Tjoelker
Author: jilles Date: Tue Apr 3 21:44:43 2018 New Revision: 331955 URL: https://svnweb.freebsd.org/changeset/base/331955 Log: rc.subr.8: Improve documentation of ${name}_limits and ${name}_login_class Submitted by: 0mp Differential Revision:https://reviews.freebsd.org/D14928 Modi

svn commit: r331954 - in head/sys/arm/mv: . armada38x armadaxp

2018-04-03 Thread Marcin Wojtas
Author: mw Date: Tue Apr 3 21:38:11 2018 New Revision: 331954 URL: https://svnweb.freebsd.org/changeset/base/331954 Log: Split get_sar_value function for Marvell ArmadaXP and Armada38X get_sar_value is implemented only for ArmadaXP and Armada38X. Splitting it for two different functions

svn commit: r331953 - head/sys/arm/mv

2018-04-03 Thread Marcin Wojtas
Author: mw Date: Tue Apr 3 21:25:15 2018 New Revision: 331953 URL: https://svnweb.freebsd.org/changeset/base/331953 Log: Make Marvell mv_pci.c driver generic PCI ports differ between Marvell SoCs, but have the same compatible in FDT. Identification is made based on parent compatible duri

svn commit: r331951 - in head/sys/arm: conf include mv

2018-04-03 Thread Marcin Wojtas
Author: mw Date: Tue Apr 3 21:17:19 2018 New Revision: 331951 URL: https://svnweb.freebsd.org/changeset/base/331951 Log: Enable ArmadaXP using INTRNG interrupt controller Defining INTRNG remove some necessary registers and declarations of pic_init_secondary, pic_ipi_send, pic_ipi_read an

svn commit: r331950 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2018-04-03 Thread Alexander Motin
Author: mav Date: Tue Apr 3 21:16:41 2018 New Revision: 331950 URL: https://svnweb.freebsd.org/changeset/base/331950 Log: 9434 Speculative prefetch is blocked by device removal code. Device removal code does not set spa_indirect_vdevs_loaded for pools that never experienced device remova

svn commit: r331949 - in head/usr.bin: . etdump

2018-04-03 Thread Benno Rice
Author: benno Date: Tue Apr 3 21:08:10 2018 New Revision: 331949 URL: https://svnweb.freebsd.org/changeset/base/331949 Log: Add the etdump utility for dumping El Torito boot catalog information. This can be used to check existing images but will be used in the future to find EFI ESP imag

Re: svn commit: r331943 - head/include

2018-04-03 Thread Cy Schubert
In message <20180403204057.gm1...@kib.kiev.ua>, Konstantin Belousov writes: > On Tue, Apr 03, 2018 at 08:14:37PM +, Cy Schubert wrote: > > Author: cy > > Date: Tue Apr 3 20:14:37 2018 > > New Revision: 331943 > > URL: https://svnweb.freebsd.org/changeset/base/331943 > > > > Log: > > Includ

svn commit: r331948 - head/include

2018-04-03 Thread Cy Schubert
Author: cy Date: Tue Apr 3 20:59:46 2018 New Revision: 331948 URL: https://svnweb.freebsd.org/changeset/base/331948 Log: Remove redundant check. Reported by: kib@ MFC after:2 weeks X-MFC with: r331936 Differential Revision:https://reviews.freebsd.org/D12785 Modified:

Re: svn commit: r331945 - head/lib/libc/stdio

2018-04-03 Thread Cy Schubert
In message <20180403205431.go1...@kib.kiev.ua>, Konstantin Belousov writes: > On Tue, Apr 03, 2018 at 08:38:25PM +, Cy Schubert wrote: > > Author: cy > > Date: Tue Apr 3 20:38:25 2018 > > New Revision: 331945 > > URL: https://svnweb.freebsd.org/changeset/base/331945 > > > > Log: > > Correc

Re: svn commit: r331945 - head/lib/libc/stdio

2018-04-03 Thread Konstantin Belousov
On Tue, Apr 03, 2018 at 08:38:25PM +, Cy Schubert wrote: > Author: cy > Date: Tue Apr 3 20:38:25 2018 > New Revision: 331945 > URL: https://svnweb.freebsd.org/changeset/base/331945 > > Log: > Correct the version number for gets_s(3). > > Reported by:kib@ > MFC after: 2 weeks

svn commit: r331947 - head/lib/libc/stdio

2018-04-03 Thread Cy Schubert
Author: cy Date: Tue Apr 3 20:53:53 2018 New Revision: 331947 URL: https://svnweb.freebsd.org/changeset/base/331947 Log: The correct symbol version for FreeBSD 12 is 1.5. Reported by: kib@ MFC after:2 weeks X-MFC with: r331936 Differential Revision:https://reviews.free

Re: svn commit: r331936 - in head/lib/libc: stdio tests/stdio

2018-04-03 Thread Cy Schubert
In message <20180403204240.gn1...@kib.kiev.ua>, Konstantin Belousov writes: > On Tue, Apr 03, 2018 at 01:24:42PM -0700, Cy Schubert wrote: > > In message <20180403202010.gk1...@kib.kiev.ua>, Konstantin Belousov > > writes: > > > On Tue, Apr 03, 2018 at 06:52:39PM +, Cy Schubert wrote: > > > >

Re: svn commit: r331936 - in head/lib/libc: stdio tests/stdio

2018-04-03 Thread Konstantin Belousov
On Tue, Apr 03, 2018 at 01:24:42PM -0700, Cy Schubert wrote: > In message <20180403202010.gk1...@kib.kiev.ua>, Konstantin Belousov > writes: > > On Tue, Apr 03, 2018 at 06:52:39PM +, Cy Schubert wrote: > > > Modified: head/lib/libc/stdio/Symbol.map > > > ===

Re: svn commit: r331943 - head/include

2018-04-03 Thread Konstantin Belousov
On Tue, Apr 03, 2018 at 08:14:37PM +, Cy Schubert wrote: > Author: cy > Date: Tue Apr 3 20:14:37 2018 > New Revision: 331943 > URL: https://svnweb.freebsd.org/changeset/base/331943 > > Log: > Include update to stdio.h missed in r331936. > > In my attempt to limit the commit in r331936

Re: svn commit: r331936 - in head/lib/libc: stdio tests/stdio

2018-04-03 Thread Cy Schubert
In message <20180403202010.gk1...@kib.kiev.ua>, Konstantin Belousov writes: > On Tue, Apr 03, 2018 at 06:52:39PM +, Cy Schubert wrote: > > Modified: head/lib/libc/stdio/Symbol.map > > === > === > > --- head/lib/libc/stdio/

svn commit: r331945 - head/lib/libc/stdio

2018-04-03 Thread Cy Schubert
Author: cy Date: Tue Apr 3 20:38:25 2018 New Revision: 331945 URL: https://svnweb.freebsd.org/changeset/base/331945 Log: Correct the version number for gets_s(3). Reported by: kib@ MFC after:2 weeks X-MFC with: r331936 Differential Revision:https://reviews.freebsd.org/

Re: svn commit: r331936 - in head/lib/libc: stdio tests/stdio

2018-04-03 Thread Cy Schubert
In message <20180403202010.gk1...@kib.kiev.ua>, Konstantin Belousov writes: > On Tue, Apr 03, 2018 at 06:52:39PM +, Cy Schubert wrote: > > Modified: head/lib/libc/stdio/Symbol.map > > === > === > > --- head/lib/libc/stdio/

Re: svn commit: r331936 - in head/lib/libc: stdio tests/stdio

2018-04-03 Thread Cy Schubert
In message <20180403202233.gl1...@kib.kiev.ua>, Konstantin Belousov writes: > On Tue, Apr 03, 2018 at 11:20:10PM +0300, Konstantin Belousov wrote: > > On Tue, Apr 03, 2018 at 06:52:39PM +, Cy Schubert wrote: > > > Modified: head/lib/libc/stdio/Symbol.map > > > =

Re: svn commit: r331936 - in head/lib/libc: stdio tests/stdio

2018-04-03 Thread Konstantin Belousov
On Tue, Apr 03, 2018 at 11:20:10PM +0300, Konstantin Belousov wrote: > On Tue, Apr 03, 2018 at 06:52:39PM +, Cy Schubert wrote: > > Modified: head/lib/libc/stdio/Symbol.map > > == > > --- head/lib/libc/stdio/Symbol.map

Re: svn commit: r331936 - in head/lib/libc: stdio tests/stdio

2018-04-03 Thread Konstantin Belousov
On Tue, Apr 03, 2018 at 06:52:39PM +, Cy Schubert wrote: > Modified: head/lib/libc/stdio/Symbol.map > == > --- head/lib/libc/stdio/Symbol.mapTue Apr 3 18:43:00 2018 > (r331935) > +++ head/lib/libc/stdio/Sym

svn commit: r331943 - head/include

2018-04-03 Thread Cy Schubert
Author: cy Date: Tue Apr 3 20:14:37 2018 New Revision: 331943 URL: https://svnweb.freebsd.org/changeset/base/331943 Log: Include update to stdio.h missed in r331936. In my attempt to limit the commit in r331936 to only the gets_s() commit and not include unrelated patches in my tree, thi

svn commit: r331942 - head/lib/libc/stdio

2018-04-03 Thread Cy Schubert
Author: cy Date: Tue Apr 3 19:51:23 2018 New Revision: 331942 URL: https://svnweb.freebsd.org/changeset/base/331942 Log: Add gets_s(3) to the man page title (noticed by ed@). While I'm at it correct the update date in the man page. Reported by: ed@ MFC after:2 weeks X-MFC wit

svn commit: r331936 - in head/lib/libc: stdio tests/stdio

2018-04-03 Thread Cy Schubert
Author: cy Date: Tue Apr 3 18:52:38 2018 New Revision: 331936 URL: https://svnweb.freebsd.org/changeset/base/331936 Log: Add new gets_s(3) stdio function. This implements the gets_s(3) function as documented at http://en.cppreference.com/w/c/io/gets. It facilitates the optional removal

svn commit: r331935 - head/usr.bin/vtfontcvt

2018-04-03 Thread Ed Maste
Author: emaste Date: Tue Apr 3 18:43:00 2018 New Revision: 331935 URL: https://svnweb.freebsd.org/changeset/base/331935 Log: vtfontcvt: allow .bdf characters less than full height Sponsored by: The FreeBSD Foundation Modified: head/usr.bin/vtfontcvt/vtfontcvt.c Modified: head/usr.bin/v

svn commit: r331934 - head/sys/compat/linuxkpi/common/src

2018-04-03 Thread Mark Johnston
Author: markj Date: Tue Apr 3 18:41:27 2018 New Revision: 331934 URL: https://svnweb.freebsd.org/changeset/base/331934 Log: Wrap long lines. MFC after:3 days Modified: head/sys/compat/linuxkpi/common/src/linux_schedule.c Modified: head/sys/compat/linuxkpi/common/src/linux_schedule.

svn commit: r331931 - in head/sys: amd64/amd64 i386/i386 x86/x86

2018-04-03 Thread Andriy Gapon
Author: avg Date: Tue Apr 3 17:16:06 2018 New Revision: 331931 URL: https://svnweb.freebsd.org/changeset/base/331931 Log: fix i386 build with CPU_ELAN (LINT for instance) after r331878 x86/cpu_machdep.c now needs to include elan_mmcr.h when CPU_ELAN is set. While here, also remove the no

Re: svn commit: r331546 - head/etc/rc.d

2018-04-03 Thread Kristof Provost
On 3 Apr 2018, at 18:06, Gleb Smirnoff wrote: On Tue, Apr 03, 2018 at 08:49:09AM +0200, Kristof Provost wrote: K> On 3 Apr 2018, at 0:04, Gleb Smirnoff wrote: K> > I just want to note that this is a huge change of behaviour K> > of pf(4) for a user. Over a decade everybody has been used K> > to t

Re: svn commit: r331546 - head/etc/rc.d

2018-04-03 Thread Gleb Smirnoff
On Tue, Apr 03, 2018 at 09:06:46AM -0700, Gleb Smirnoff wrote: T> Hmm, may be I am wrong, but back when I was actively working with pf, T> the "reload" command would break the ssh connection I am using, so T> I have taught myself to use "resync". Just checked on r328916, and it doesn't happen. -

Re: svn commit: r331546 - head/etc/rc.d

2018-04-03 Thread Gleb Smirnoff
On Tue, Apr 03, 2018 at 08:49:09AM +0200, Kristof Provost wrote: K> On 3 Apr 2018, at 0:04, Gleb Smirnoff wrote: K> > I just want to note that this is a huge change of behaviour K> > of pf(4) for a user. Over a decade everybody has been used K> > to the difference between "reload" and "resync". K>

svn commit: r331926 - head/sys/netinet

2018-04-03 Thread Jonathan T. Looney
Author: jtl Date: Tue Apr 3 13:54:38 2018 New Revision: 331926 URL: https://svnweb.freebsd.org/changeset/base/331926 Log: r330675 introduced an extra window check in the LRO code to ensure it captured and reported the highest window advertisement with the same SEQ/ACK. However, the window

svn commit: r331925 - head/sys/dev/fdt

2018-04-03 Thread Andrew Turner
Author: andrew Date: Tue Apr 3 13:30:40 2018 New Revision: 331925 URL: https://svnweb.freebsd.org/changeset/base/331925 Log: Remove fdt_is_enabled, fdt_reg_to_rl, and fdt_get_unit. These are not used by anything in the tree. Sponsored by: DARPA, AFRL Modified: head/sys/dev/fdt/fdt_com

svn commit: r331924 - in head/sys: arm/freescale/vybrid arm/mv arm/nvidia arm/nvidia/tegra124 dev/fdt

2018-04-03 Thread Andrew Turner
Author: andrew Date: Tue Apr 3 11:01:50 2018 New Revision: 331924 URL: https://svnweb.freebsd.org/changeset/base/331924 Log: Switch users of fdt_is_enabled to use ofw_bus_node_status_okay. These are equivalent, so to prepare to remove the former move users to call the latter. Sponsored

Re: svn commit: r327056 - in head/sys: kern sys x86/acpica x86/x86

2018-04-03 Thread Andriy Gapon
On 02/04/2018 18:28, Bruce Evans wrote: > On Mon, 2 Apr 2018, Andriy Gapon wrote: > >> On 21/12/2017 11:17, Bruce Evans wrote: >>> Author: bde >>> Date: Thu Dec 21 09:17:48 2017 >>> New Revision: 327056 >>> URL: https://svnweb.freebsd.org/changeset/base/327056 >>> >>> Log: >>>   Use resume_cpus()