Re: svn commit: r330294 - head/sys/kern

2018-03-02 Thread Bruce Evans
On Fri, 2 Mar 2018, Mateusz Guzik wrote: Log: sx: fix adaptive spinning broken in r327397 The condition was flipped. In particular heavy multithreaded kernel builds on zfs started suffering due to nested sx locks. For instance make -s -j 128 buildkernel: before: 3326.67s user 1269.62s

Re: svn commit: r330285 - head/sys/sys

2018-03-02 Thread Bruce Evans
On Fri, 2 Mar 2018, Konstantin Belousov wrote: On Fri, Mar 02, 2018 at 12:43:34PM -0500, Pedro Giffuni wrote: ... I think use of _Nonnull attributes in the threading functions may also be a waste (I introduced them mostly to be compatible with Android). FWIW, Dragonfly sprinkled some restrict

svn commit: r330309 - in head/share/man: man4 man9

2018-03-02 Thread Oleksandr Tymoshenko
Author: gonzo Date: Sat Mar 3 02:49:49 2018 New Revision: 330309 URL: https://svnweb.freebsd.org/changeset/base/330309 Log: [fdt_pinctrl] Add man pages for fdt_pinctrl driver - Add fdt_pinctrl(4) with general information for the driver - Add fdt_pinctrl(9) with fdt_pinctrl KPI

svn commit: r330306 - head/sys/powerpc/ps3

2018-03-02 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Mar 3 02:06:48 2018 New Revision: 330306 URL: https://svnweb.freebsd.org/changeset/base/330306 Log: Honor physical memory regions marked unavailable in the FDT, when present. The most notable of these is the FDT itself, which it is a bad idea to overwrite.

svn commit: r330305 - in head/sys/powerpc: powerpc ps3

2018-03-02 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Mar 3 02:04:40 2018 New Revision: 330305 URL: https://svnweb.freebsd.org/changeset/base/330305 Log: Remove assumption that all physical memory is available to the kernel and that the physical and available memory arrays are interchangeable. Modified:

svn commit: r330304 - in head: share/man/man4 sys/amd64/conf sys/conf sys/dev/imcsmb sys/i386/conf sys/modules/i2c/controllers sys/modules/i2c/controllers/imcsmb

2018-03-02 Thread Ravi Pokala
Author: rpokala Date: Sat Mar 3 01:53:51 2018 New Revision: 330304 URL: https://svnweb.freebsd.org/changeset/base/330304 Log: imcsmb(4): Intel integrated Memory Controller (iMC) SMBus controller driver imcsmb(4) provides smbus(4) support for the SMBus controller functionality in the

Re: svn commit: r330297 - in head: lib/libc/sys sys/compat/freebsd32 sys/i386/ibcs2 sys/kern sys/sys

2018-03-02 Thread Cy Schubert
In message <20180302233343.gc83...@spindle.one-eyed-alien.net>, Brooks Davis wr ites: > > > --ALfTUftag+2gvp1h > Content-Type: text/plain; charset=us-ascii > Content-Disposition: inline > Content-Transfer-Encoding: quoted-printable > > On Fri, Mar 02, 2018 at 03:31:36PM -0800, Cy Schubert wrote:

Re: svn commit: r330297 - in head: lib/libc/sys sys/compat/freebsd32 sys/i386/ibcs2 sys/kern sys/sys

2018-03-02 Thread Brooks Davis
On Fri, Mar 02, 2018 at 03:31:36PM -0800, Cy Schubert wrote: > In message <201803022325.w22npyiw050...@slippy.cwsent.com>, Cy Schubert > writes: > > In message <20180302223138.ga83...@spindle.one-eyed-alien.net>, Brooks > > Davis wr > > ites: > > > > > > --yrj/dFKFPuw6o+aM > > > Content-Type:

Re: svn commit: r330297 - in head: lib/libc/sys sys/compat/freebsd32 sys/i386/ibcs2 sys/kern sys/sys

2018-03-02 Thread Cy Schubert
In message <201803022325.w22npyiw050...@slippy.cwsent.com>, Cy Schubert writes: > In message <20180302223138.ga83...@spindle.one-eyed-alien.net>, Brooks > Davis wr > ites: > > > > --yrj/dFKFPuw6o+aM > > Content-Type: text/plain; charset=us-ascii > > Content-Disposition: inline > >

svn commit: r330300 - in head: contrib/netbsd-tests/kernel usr.bin/ipcrm

2018-03-02 Thread Brooks Davis
Author: brooks Date: Fri Mar 2 23:31:55 2018 New Revision: 330300 URL: https://svnweb.freebsd.org/changeset/base/330300 Log: Fix build post r330299 Modified: head/contrib/netbsd-tests/kernel/t_sysv.c head/usr.bin/ipcrm/ipcrm.c Modified: head/contrib/netbsd-tests/kernel/t_sysv.c

Re: svn commit: r330297 - in head: lib/libc/sys sys/compat/freebsd32 sys/i386/ibcs2 sys/kern sys/sys

2018-03-02 Thread Cy Schubert
In message <20180302223138.ga83...@spindle.one-eyed-alien.net>, Brooks Davis wr ites: > > --yrj/dFKFPuw6o+aM > Content-Type: text/plain; charset=us-ascii > Content-Disposition: inline > Content-Transfer-Encoding: quoted-printable > > On Fri, Mar 02, 2018 at 10:10:49PM +, Brooks Davis wrote:

svn commit: r330299 - in head: contrib/sendmail/include/sm/os lib/libc/gen lib/libc/sys sys/sys usr.bin/svn/lib/libapr

2018-03-02 Thread Brooks Davis
Author: brooks Date: Fri Mar 2 22:32:53 2018 New Revision: 330299 URL: https://svnweb.freebsd.org/changeset/base/330299 Log: Don't declare union semun in userspace unless _WANT_SEMUN is defined. POSIX explicitly states that the application must declare union semun. This makes no sense,

Re: svn commit: r330297 - in head: lib/libc/sys sys/compat/freebsd32 sys/i386/ibcs2 sys/kern sys/sys

2018-03-02 Thread Brooks Davis
On Fri, Mar 02, 2018 at 10:10:49PM +, Brooks Davis wrote: > Author: brooks > Date: Fri Mar 2 22:10:48 2018 > New Revision: 330297 > URL: https://svnweb.freebsd.org/changeset/base/330297 > > Log: > Rename kernel-only members of semid_ds and msgid_ds. > > This deliberately breaks the

svn commit: r330298 - head/sys/sys

2018-03-02 Thread Brooks Davis
Author: brooks Date: Fri Mar 2 22:13:29 2018 New Revision: 330298 URL: https://svnweb.freebsd.org/changeset/base/330298 Log: Don't define struct mymsg. PR: 224299, 224443 (exp-run) Reviewed by: kib, jhb Exp-run by: antoine Sponsored by: DARPA, AFRL Differential

svn commit: r330297 - in head: lib/libc/sys sys/compat/freebsd32 sys/i386/ibcs2 sys/kern sys/sys

2018-03-02 Thread Brooks Davis
Author: brooks Date: Fri Mar 2 22:10:48 2018 New Revision: 330297 URL: https://svnweb.freebsd.org/changeset/base/330297 Log: Rename kernel-only members of semid_ds and msgid_ds. This deliberately breaks the API in preperation for future syscall revisions which will remove these

Re: svn commit: r330294 - head/sys/kern

2018-03-02 Thread Mateusz Guzik
On Fri, Mar 2, 2018 at 10:26 PM, Mateusz Guzik wrote: > Author: mjg > Date: Fri Mar 2 21:26:27 2018 > New Revision: 330294 > URL: https://svnweb.freebsd.org/changeset/base/330294 > > Log: > sx: fix adaptive spinning broken in r327397 > > The condition was flipped. > > In

svn commit: r330295 - head/cddl/contrib/opensolaris/lib/libzfs/common

2018-03-02 Thread Alan Somers
Author: asomers Date: Fri Mar 2 21:26:48 2018 New Revision: 330295 URL: https://svnweb.freebsd.org/changeset/base/330295 Log: ZFS: fix adding vdevs to very large pools r323791 changed the return value of zpool_read_label. Error paths that previously returned 0 began to return -1

svn commit: r330294 - head/sys/kern

2018-03-02 Thread Mateusz Guzik
Author: mjg Date: Fri Mar 2 21:26:27 2018 New Revision: 330294 URL: https://svnweb.freebsd.org/changeset/base/330294 Log: sx: fix adaptive spinning broken in r327397 The condition was flipped. In particular heavy multithreaded kernel builds on zfs started suffering due to nested sx

svn commit: r330293 - head/sys/modules/dtb/allwinner

2018-03-02 Thread Emmanuel Vadot
Author: manu Date: Fri Mar 2 20:59:36 2018 New Revision: 330293 URL: https://svnweb.freebsd.org/changeset/base/330293 Log: dtb/allwinner: Build sun8i-h3-nanopi-m1-plus.dts We have a u-boot port for this board so add the dtb to the build. Modified:

svn commit: r330292 - head/sys/dev/ispfw

2018-03-02 Thread Alexander Motin
Author: mav Date: Fri Mar 2 19:50:41 2018 New Revision: 330292 URL: https://svnweb.freebsd.org/changeset/base/330292 Log: Update QLogic ISP 24xx/25xx chips firmware to 8.07.00. MFC after:1 month Modified: head/sys/dev/ispfw/asm_2400.h head/sys/dev/ispfw/asm_2500.h Modified:

svn commit: r330291 - head/sbin/geom/class/part

2018-03-02 Thread Warren Block
Author: wblock (doc committer) Date: Fri Mar 2 19:07:32 2018 New Revision: 330291 URL: https://svnweb.freebsd.org/changeset/base/330291 Log: Clarify and clean up some language, and add an explicit example. Sponsored by: iXsystems Differential Revision:

svn commit: r330290 - head/share/man/man4

2018-03-02 Thread Warren Block
Author: wblock (doc committer) Date: Fri Mar 2 18:57:00 2018 New Revision: 330290 URL: https://svnweb.freebsd.org/changeset/base/330290 Log: Clarity and style fixes. Sponsored by: iXsystems Modified: head/share/man/man4/dtrace_lockstat.4 Modified: head/share/man/man4/dtrace_lockstat.4

svn commit: r330289 - head/sys/net

2018-03-02 Thread Stephen Hurd
Author: shurd Date: Fri Mar 2 18:48:07 2018 New Revision: 330289 URL: https://svnweb.freebsd.org/changeset/base/330289 Log: iflib: stop timer callout when stopping iflib_timer has been seen running after the interface had been removed. This change prevents that. Submitted by:

Re: svn commit: r330285 - head/sys/sys

2018-03-02 Thread Konstantin Belousov
On Fri, Mar 02, 2018 at 12:43:34PM -0500, Pedro Giffuni wrote: > (cc in Eitan as he may be interested in the extra restrict cases) > > > On 02/03/2018 11:47, Konstantin Belousov wrote: > > Author: kib > > Date: Fri Mar 2 16:47:02 2018 > > New Revision: 330285 > > URL:

Re: svn commit: r330285 - head/sys/sys

2018-03-02 Thread Brooks Davis
On Fri, Mar 02, 2018 at 12:43:34PM -0500, Pedro Giffuni wrote: > (cc in Eitan as he may be interested in the extra restrict cases) > > > On 02/03/2018 11:47, Konstantin Belousov wrote: > > Author: kib > > Date: Fri Mar 2 16:47:02 2018 > > New Revision: 330285 > > URL:

Re: svn commit: r330285 - head/sys/sys

2018-03-02 Thread Pedro Giffuni
(cc in Eitan as he may be interested in the extra restrict cases) On 02/03/2018 11:47, Konstantin Belousov wrote: Author: kib Date: Fri Mar 2 16:47:02 2018 New Revision: 330285 URL: https://svnweb.freebsd.org/changeset/base/330285 Log: Remove _Nonnull attributes from user addresses

svn commit: r330287 - head/stand/lua

2018-03-02 Thread Kyle Evans
Author: kevans Date: Fri Mar 2 17:07:08 2018 New Revision: 330287 URL: https://svnweb.freebsd.org/changeset/base/330287 Log: lualoader: Reset the cursor position after the menu is drawn Rather than before the menu is drawn. The drawer is going to reset the crusor position as soon as it

svn commit: r330286 - head/tools/boot

2018-03-02 Thread Kyle Evans
Author: kevans Date: Fri Mar 2 16:51:43 2018 New Revision: 330286 URL: https://svnweb.freebsd.org/changeset/base/330286 Log: Add --globals printc to lua-lint We provide a global 'printc' as of r330282; make luacheck aware of this fact so that we can use it without complaints. Modified:

Re: svn commit: r330284 - head/stand/liblua

2018-03-02 Thread Kyle Evans
On Fri, Mar 2, 2018 at 10:31 AM, Kyle Evans wrote: > Author: kevans > Date: Fri Mar 2 16:31:23 2018 > New Revision: 330284 > URL: https://svnweb.freebsd.org/changeset/base/330284 > > Log: > liblua: Use putc instead of printf for printc > > printc does not need the

svn commit: r330285 - head/sys/sys

2018-03-02 Thread Konstantin Belousov
Author: kib Date: Fri Mar 2 16:47:02 2018 New Revision: 330285 URL: https://svnweb.freebsd.org/changeset/base/330285 Log: Remove _Nonnull attributes from user addresses arguments for copyout(9) family. The addresses are user-controllable, and if the process ABI allows mapping at zero,

svn commit: r330284 - head/stand/liblua

2018-03-02 Thread Kyle Evans
Author: kevans Date: Fri Mar 2 16:31:23 2018 New Revision: 330284 URL: https://svnweb.freebsd.org/changeset/base/330284 Log: liblua: Use putc instead of printf for printc printc does not need the features or the overhead of printf. It does not take formatting strings, and it pipes the

svn commit: r330283 - head/stand/lua

2018-03-02 Thread Kyle Evans
Author: kevans Date: Fri Mar 2 16:06:20 2018 New Revision: 330283 URL: https://svnweb.freebsd.org/changeset/base/330283 Log: lualoader: Use global printc instead of loader.printc r330282 registered loader.printc as printc, so use it instead. This makes sense for a couple reasons, the

svn commit: r330282 - head/stand/liblua

2018-03-02 Thread Kyle Evans
Author: kevans Date: Fri Mar 2 15:46:22 2018 New Revision: 330282 URL: https://svnweb.freebsd.org/changeset/base/330282 Log: lualoader: Register loader.printc as global printc Modified: head/stand/liblua/lutils.c Modified: head/stand/liblua/lutils.c

svn commit: r330281 - head/stand/lua

2018-03-02 Thread Kyle Evans
Author: kevans Date: Fri Mar 2 15:28:08 2018 New Revision: 330281 URL: https://svnweb.freebsd.org/changeset/base/330281 Log: lualoader: Steamroll the box-drawing - Add drawer.frame_styles to map out the kinds of characters we need for the different loader_menu_frame values - Respect

svn commit: r330279 - head/lib/libefivar

2018-03-02 Thread Ed Maste
Author: emaste Date: Fri Mar 2 15:12:18 2018 New Revision: 330279 URL: https://svnweb.freebsd.org/changeset/base/330279 Log: libefivar: use standard 2-Clause FreeBSD license Approved by: imp Sponsored by: The FreeBSD Foundation Modified: head/lib/libefivar/efi-osdep.h

svn commit: r330278 - head

2018-03-02 Thread Edward Tomasz Napierala
Author: trasz Date: Fri Mar 2 14:42:08 2018 New Revision: 330278 URL: https://svnweb.freebsd.org/changeset/base/330278 Log: Fix README.md formatting. MFC after:2 weeks Sponsored by: DARPA, AFRL Modified: head/README.md Modified: head/README.md

Re: svn commit: r329882 - in head/sys: conf kern sys vm

2018-03-02 Thread Ed Schouten
Hi Jeff, 2018-02-23 23:51 GMT+01:00 Jeff Roberson : > Add a generic Proportional Integral Derivative (PID) controller algorithm > and > use it to regulate page daemon output. That looks pretty nifty. Looking at the code, it exposes metrics through sysctl. Be sure to give

svn commit: r330277 - in head: bin/stty libexec/getty

2018-03-02 Thread Edward Tomasz Napierala
Author: trasz Date: Fri Mar 2 14:16:19 2018 New Revision: 330277 URL: https://svnweb.freebsd.org/changeset/base/330277 Log: .Xr pstat(8), so that people have a chance to learn how to get a list of terminal devices using "pstat -t". MFC after:2 weeks Sponsored by: The FreeBSD

Re: svn commit: r329882 - in head/sys: conf kern sys vm

2018-03-02 Thread Pieter de Goeje
Hi, I'm curious, it looks like Kd is quite significant by default, I assume to limit the slew rate of the output. Given that the error is an integer, and pidctrl_daemon() is called at irregular intervals, it seems to me that the derivative will be very noisy. In my experience with PID

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

2018-03-02 Thread Andrew Turner
Author: andrew Date: Fri Mar 2 13:04:21 2018 New Revision: 330276 URL: https://svnweb.freebsd.org/changeset/base/330276 Log: Count the number of children in the GICv3 ACPI attachment. This is needed later for assigning IRQ vector space. Sponsored by: DARPA, AFRL Sponsored by: Cavium

svn commit: r330274 - head/sys/compat/linuxkpi/common/include/linux

2018-03-02 Thread Hans Petter Selasky
Author: hselasky Date: Fri Mar 2 08:59:53 2018 New Revision: 330274 URL: https://svnweb.freebsd.org/changeset/base/330274 Log: Implement more lockdep stubs in the LinuxKPI. MFC after:1 week Submitted by: Johannes Lundberg Sponsored by: Mellanox Technologies

svn commit: r330273 - head/sys/compat/linuxkpi/common/include/linux

2018-03-02 Thread Hans Petter Selasky
Author: hselasky Date: Fri Mar 2 08:58:32 2018 New Revision: 330273 URL: https://svnweb.freebsd.org/changeset/base/330273 Log: Implement ktime_get_raw() function in the LinuxKPI. MFC after:1 week Submitted by: Johannes Lundberg Sponsored by: Mellanox

svn commit: r330272 - head/sys/compat/linuxkpi/common/include/linux

2018-03-02 Thread Hans Petter Selasky
Author: hselasky Date: Fri Mar 2 08:56:15 2018 New Revision: 330272 URL: https://svnweb.freebsd.org/changeset/base/330272 Log: Implement wait_on_bit() function macro in the LinuxKPI. MFC after:1 week Submitted by: Johannes Lundberg Sponsored by: Mellanox

svn commit: r330271 - in head/sys/compat/linuxkpi/common: include/linux src

2018-03-02 Thread Hans Petter Selasky
Author: hselasky Date: Fri Mar 2 08:52:27 2018 New Revision: 330271 URL: https://svnweb.freebsd.org/changeset/base/330271 Log: Rename callout member in struct timer_list to match the one in struct delayed_work in the LinuxKPI. This allows the timer_pending() function macro to be used with