Re: svn commit: r330436 - head/bin/chflags

2018-03-04 Thread Bruce Evans
On Sun, 4 Mar 2018, Ian Lepore wrote: On Mon, 2018-03-05 at 01:56 +, Bryan Drewery wrote: Log: \xa0 chflags: Add -x option to not traverse mount points. Yay! \xa0One day later than I needed it, but still, yay! I recently noticed that find(1) needs an option to not look at mount points

svn commit: r330442 - head/usr.sbin/rpcbind

2018-03-04 Thread Hiroki Sato
Author: hrs Date: Mon Mar 5 03:38:31 2018 New Revision: 330442 URL: https://svnweb.freebsd.org/changeset/base/330442 Log: - Remove extra NULL check before free(). - Fix null pointer dereference in netbuffree() and use netbuffree() where applicable. Modified:

svn commit: r330441 - head/usr.sbin/rpcbind

2018-03-04 Thread Hiroki Sato
Author: hrs Date: Mon Mar 5 03:34:01 2018 New Revision: 330441 URL: https://svnweb.freebsd.org/changeset/base/330441 Log: Partially back out changes in r327464. stdlib.h is used when RPCBIND_DEBUG is enabled. Modified: head/usr.sbin/rpcbind/rpcb_svc.c Modified:

svn commit: r330440 - head/sys/arm/freescale/imx

2018-03-04 Thread Ian Lepore
Author: ian Date: Mon Mar 5 02:32:23 2018 New Revision: 330440 URL: https://svnweb.freebsd.org/changeset/base/330440 Log: Switch imx_gpio to attach at BUS_PASS_INTERRUPT + BUS_PASS_ORDER_LATE. Pretty much any other device might need to manipulate a gpio pin during its probe or attach

svn commit: r330439 - in head/sys: amd64/vmm/amd contrib/dev/acpica/include

2018-03-04 Thread Anish Gupta
Author: anish Date: Mon Mar 5 02:28:25 2018 New Revision: 330439 URL: https://svnweb.freebsd.org/changeset/base/330439 Log: Move the new AMD-Vi IVHD [ACPI_IVRS_HARDWARE_NEW]definitions added in r329360 in contrib ACPI to local files till ACPI code adds new definitions reported by jkim.

svn commit: r330438 - head/sys/arm/freescale/imx

2018-03-04 Thread Ian Lepore
Author: ian Date: Mon Mar 5 02:13:28 2018 New Revision: 330438 URL: https://svnweb.freebsd.org/changeset/base/330438 Log: Defer attaching the spibus until timers and interrupts are working. The driver requires interrupts to do transfers, and the drivers for the SPI devices on the bus

Re: svn commit: r330436 - head/bin/chflags

2018-03-04 Thread Ian Lepore
On Mon, 2018-03-05 at 01:56 +, Bryan Drewery wrote: > Author: bdrewery > Date: Mon Mar  5 01:56:07 2018 > New Revision: 330436 > URL: https://svnweb.freebsd.org/changeset/base/330436 > > Log: >   chflags: Add -x option to not traverse mount points. Yay!  One day later than I needed it, but

svn commit: r330437 - head/sys/arm/freescale/imx

2018-03-04 Thread Ian Lepore
Author: ian Date: Mon Mar 5 02:08:33 2018 New Revision: 330437 URL: https://svnweb.freebsd.org/changeset/base/330437 Log: Do not stop the loop that configures gpio chipselect pins on the first error, just ignore pins that don't configure and keep setting up the ones that do. (But when

svn commit: r330436 - head/bin/chflags

2018-03-04 Thread Bryan Drewery
Author: bdrewery Date: Mon Mar 5 01:56:07 2018 New Revision: 330436 URL: https://svnweb.freebsd.org/changeset/base/330436 Log: chflags: Add -x option to not traverse mount points. MFC after:2 weeks Modified: head/bin/chflags/chflags.1 head/bin/chflags/chflags.c Modified:

svn commit: r330435 - head/stand/lua

2018-03-04 Thread Kyle Evans
Author: kevans Date: Mon Mar 5 01:18:32 2018 New Revision: 330435 URL: https://svnweb.freebsd.org/changeset/base/330435 Log: lualoader: Use FILESDIR instead of BINDIR Minor nit: We're not installing binaries, we're installing scripts/files that are documented to be installed based on

svn commit: r330434 - head/stand/lua

2018-03-04 Thread Kyle Evans
Author: kevans Date: Mon Mar 5 00:59:55 2018 New Revision: 330434 URL: https://svnweb.freebsd.org/changeset/base/330434 Log: lualoader: Add note about importance of including the cli module early Modified: head/stand/lua/loader.lua Modified: head/stand/lua/loader.lua

svn commit: r330433 - head/sys/dev/iicbus

2018-03-04 Thread Ian Lepore
Author: ian Date: Mon Mar 5 00:43:53 2018 New Revision: 330433 URL: https://svnweb.freebsd.org/changeset/base/330433 Log: Switch to the new bcd_clocktime conversion routines, and add calls to the new clock_dbgprint_xxx() functions. Modified: head/sys/dev/iicbus/s35390a.c Modified:

svn commit: r330432 - head/sys/kern

2018-03-04 Thread Mateusz Guzik
Author: mjg Date: Mon Mar 5 00:30:07 2018 New Revision: 330432 URL: https://svnweb.freebsd.org/changeset/base/330432 Log: lockmgr: save on sleepq when cmpset fails Modified: head/sys/kern/kern_lock.c Modified: head/sys/kern/kern_lock.c

svn commit: r330431 - head/sys/dev/iicbus

2018-03-04 Thread Ian Lepore
Author: ian Date: Mon Mar 5 00:15:56 2018 New Revision: 330431 URL: https://svnweb.freebsd.org/changeset/base/330431 Log: Switch to the new bcd_clocktime conversion routines, and add calls to the new clock_dbgprint_xxx() functions. Modified: head/sys/dev/iicbus/ds3231.c Modified:

Re: svn commit: r330384 - in head: contrib/llvm/lib/Target/AArch64 contrib/llvm/lib/Target/X86 contrib/llvm/tools/clang/include/clang/Basic contrib/llvm/tools/clang/lib/Basic lib/clang lib/clang/inclu

2018-03-04 Thread Bryan Drewery
On 3/4/2018 9:06 AM, Dimitry Andric wrote: > Modified: head/lib/clang/include/lld/Common/Version.inc > == > --- head/lib/clang/include/lld/Common/Version.inc Sun Mar 4 15:07:23 > 2018(r330383) > +++

svn commit: r330430 - head/sys/dev/iicbus

2018-03-04 Thread Ian Lepore
Author: ian Date: Sun Mar 4 23:39:40 2018 New Revision: 330430 URL: https://svnweb.freebsd.org/changeset/base/330430 Log: Switch to the new bcd_clocktime conversion routines, and add calls to the new clock_dbgprint_xxx() functions. Modified: head/sys/dev/iicbus/isl12xx.c Modified:

svn commit: r330419 - head/sys/kern

2018-03-04 Thread Mateusz Guzik
Author: mjg Date: Sun Mar 4 22:14:20 2018 New Revision: 330419 URL: https://svnweb.freebsd.org/changeset/base/330419 Log: lockmgr: whack unused lockmgr_note_exclusive_upgrade Modified: head/sys/kern/kern_lock.c Modified: head/sys/kern/kern_lock.c

svn commit: r330418 - head/sys/kern

2018-03-04 Thread Mateusz Guzik
Author: mjg Date: Sun Mar 4 22:01:23 2018 New Revision: 330418 URL: https://svnweb.freebsd.org/changeset/base/330418 Log: mtx: tidy up recursion handling in thread lock Normally after grabbing the lock it has to be verified we got the right one to begin with. However, if we are

svn commit: r330416 - head/sys/dev/iicbus

2018-03-04 Thread Ian Lepore
Author: ian Date: Sun Mar 4 21:58:32 2018 New Revision: 330416 URL: https://svnweb.freebsd.org/changeset/base/330416 Log: The year is stored in a single byte in sram, in binary format, as a count of years since the century, so strip the century out when converting to or from bcd_clocktime

svn commit: r330415 - head/sys/kern

2018-03-04 Thread Mateusz Guzik
Author: mjg Date: Sun Mar 4 21:41:05 2018 New Revision: 330415 URL: https://svnweb.freebsd.org/changeset/base/330415 Log: sx: don't do an atomic op in upgrade if it cananot succeed The code already pays the cost of reading the lock to obtain the waiters flag. Checking whether there is

svn commit: r330414 - head/sys/kern

2018-03-04 Thread Mateusz Guzik
Author: mjg Date: Sun Mar 4 21:38:30 2018 New Revision: 330414 URL: https://svnweb.freebsd.org/changeset/base/330414 Log: locks: fix a corner case in r327399 If there were exactly rowner_retries/asx_retries (by default: 10) transitions between read and write state and the waiters still

svn commit: r330413 - head/sys/vm

2018-03-04 Thread Konstantin Belousov
Author: kib Date: Sun Mar 4 21:15:31 2018 New Revision: 330413 URL: https://svnweb.freebsd.org/changeset/base/330413 Log: Remove redundant test from r330410. If the input slist is non-empty, counter cannot be zero after freeing. Noted by: mjg MFC after:2 weeks Modified:

svn commit: r330412 - in head/sys/modules/i2c: . rtc8583

2018-03-04 Thread Ian Lepore
Author: ian Date: Sun Mar 4 21:06:21 2018 New Revision: 330412 URL: https://svnweb.freebsd.org/changeset/base/330412 Log: Build iicbus/rtc8583 as a module. Added: head/sys/modules/i2c/rtc8583/ head/sys/modules/i2c/rtc8583/Makefile (contents, props changed) Modified:

svn commit: r330411 - head/sys/dev/iicbus

2018-03-04 Thread Ian Lepore
Author: ian Date: Sun Mar 4 21:04:30 2018 New Revision: 330411 URL: https://svnweb.freebsd.org/changeset/base/330411 Log: Convert to the new(ish) bcd_clocktime conversion functions, add calls to the new debug output functions, and when setting the clock, propagate the timespec nsecs to the

svn commit: r330410 - in head/sys: amd64/amd64 arm/arm arm64/arm64 i386/i386 riscv/riscv vm

2018-03-04 Thread Konstantin Belousov
Author: kib Date: Sun Mar 4 20:53:20 2018 New Revision: 330410 URL: https://svnweb.freebsd.org/changeset/base/330410 Log: Unify bulk free operations in several pmaps. Submitted by: Yoshihiro Ota Reviewed by: markj MFC after:2 weeks Differential revision:

svn commit: r330409 - head/lib/libc/sys

2018-03-04 Thread Brooks Davis
Author: brooks Date: Sun Mar 4 20:06:02 2018 New Revision: 330409 URL: https://svnweb.freebsd.org/changeset/base/330409 Log: Refer to SysV IPC permissions as numeric constants. POSIX defines no macros for these permissions. Also remove unneeded headers from synopsis. PR:

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

2018-03-04 Thread Hans Petter Selasky
Author: hselasky Date: Sun Mar 4 19:42:50 2018 New Revision: 330408 URL: https://svnweb.freebsd.org/changeset/base/330408 Log: Properly wrap the BUILD_BUG() function macro in the LinuxKPI. MFC after:1 week Sponsored by: Mellanox Technologies Modified:

svn commit: r330407 - head/sys/dev/iicbus

2018-03-04 Thread Ian Lepore
Author: ian Date: Sun Mar 4 19:32:52 2018 New Revision: 330407 URL: https://svnweb.freebsd.org/changeset/base/330407 Log: Add calls to the new clock_dbgprint_xxx() functions. Also, stop applying a local .5 second adjustment to the time, since that is now done by the code in subr_rtc.c.

svn commit: r330406 - head/sys/dev/iicbus

2018-03-04 Thread Ian Lepore
Author: ian Date: Sun Mar 4 19:26:47 2018 New Revision: 330406 URL: https://svnweb.freebsd.org/changeset/base/330406 Log: Add calls to the new clock_dbgprint_xxx() functions. Modified: head/sys/dev/iicbus/nxprtc.c Modified: head/sys/dev/iicbus/nxprtc.c

svn commit: r330405 - head/sys/dev/iicbus

2018-03-04 Thread Ian Lepore
Author: ian Date: Sun Mar 4 19:25:54 2018 New Revision: 330405 URL: https://svnweb.freebsd.org/changeset/base/330405 Log: Oops, fix a paste-o. Modified: head/sys/dev/iicbus/ds13rtc.c Modified: head/sys/dev/iicbus/ds13rtc.c

svn commit: r330404 - head/sys/dev/iicbus

2018-03-04 Thread Ian Lepore
Author: ian Date: Sun Mar 4 19:23:48 2018 New Revision: 330404 URL: https://svnweb.freebsd.org/changeset/base/330404 Log: Add calls to the new clock_dbgprint_xxx() functions. Modified: head/sys/dev/iicbus/ds13rtc.c Modified: head/sys/dev/iicbus/ds13rtc.c

svn commit: r330403 - head/sys/dev/iicbus

2018-03-04 Thread Ian Lepore
Author: ian Date: Sun Mar 4 19:20:11 2018 New Revision: 330403 URL: https://svnweb.freebsd.org/changeset/base/330403 Log: Add calls to the new clock_dbgprint_xxx() functions. Modified: head/sys/dev/iicbus/ds1307.c Modified: head/sys/dev/iicbus/ds1307.c

Re: svn commit: r330236 - head/sys/compat/linuxkpi/common/src

2018-03-04 Thread Hans Petter Selasky
On 03/04/18 02:25, Colin Percival wrote: In case the data point is useful: Merging this to stable/11 unbroke S3 suspend/resume on my laptop (system76 Galago Pro, kabylake, using the drm-next-kmod port). FYI: Now MFC'ed to stable/11. --HPS ___

svn commit: r330400 - head/sys/kern

2018-03-04 Thread Mateusz Guzik
Author: mjg Date: Sun Mar 4 19:12:54 2018 New Revision: 330400 URL: https://svnweb.freebsd.org/changeset/base/330400 Log: lockmgr: start decomposing the main routine The main routine takes 8 args, 3 of which are almost the same for most uses. This in particular pushes it above the limit

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

2018-03-04 Thread Hans Petter Selasky
Author: hselasky Date: Sun Mar 4 19:10:30 2018 New Revision: 330399 URL: https://svnweb.freebsd.org/changeset/base/330399 Log: Stub kernel_param_lock() and kernel_param_unlock() in the LinuxKPI. MFC after:1 week Submitted by: Johannes Lundberg Sponsored by:

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

2018-03-04 Thread Hans Petter Selasky
Author: hselasky Date: Sun Mar 4 19:07:10 2018 New Revision: 330398 URL: https://svnweb.freebsd.org/changeset/base/330398 Log: Implement wait_event_lock_irq() macro function in the LinuxKPI. MFC after:1 week Requested by: Johannes Lundberg Sponsored by:

svn commit: r330397 - head/sys/dev/iicbus

2018-03-04 Thread Ian Lepore
Author: ian Date: Sun Mar 4 18:58:24 2018 New Revision: 330397 URL: https://svnweb.freebsd.org/changeset/base/330397 Log: Fix a paste-o: use the IICBUS version constants, not IICBB bitbang driver's. Modified: head/sys/dev/iicbus/nxprtc.c Modified: head/sys/dev/iicbus/nxprtc.c

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

2018-03-04 Thread Hans Petter Selasky
Author: hselasky Date: Sun Mar 4 18:53:41 2018 New Revision: 330396 URL: https://svnweb.freebsd.org/changeset/base/330396 Log: Keep the old SLAB_DESTROY_BY_RCU macro definition around in the LinuxKPI to avoid compilation breakage in external kernel modules. MFC after:1 week

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

2018-03-04 Thread Hans Petter Selasky
Author: hselasky Date: Sun Mar 4 18:51:43 2018 New Revision: 330395 URL: https://svnweb.freebsd.org/changeset/base/330395 Log: Implement DEFINE_WAIT_FUNC() function macro and default_wake_function() in the LinuxKPI. MFC after:1 week Submitted by: Johannes Lundberg

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

2018-03-04 Thread Hans Petter Selasky
Author: hselasky Date: Sun Mar 4 18:27:50 2018 New Revision: 330394 URL: https://svnweb.freebsd.org/changeset/base/330394 Log: Implement pr_err_ratelimited() function macro in the LinuxKPI. MFC after:1 week Submitted by: Johannes Lundberg Sponsored by:

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

2018-03-04 Thread Hans Petter Selasky
Author: hselasky Date: Sun Mar 4 18:21:21 2018 New Revision: 330393 URL: https://svnweb.freebsd.org/changeset/base/330393 Log: Implement __MODULE_STRING() function macro in the LinuxKPI. MFC after:1 week Submitted by: Johannes Lundberg Sponsored by: Mellanox

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

2018-03-04 Thread Hans Petter Selasky
Author: hselasky Date: Sun Mar 4 18:19:44 2018 New Revision: 330392 URL: https://svnweb.freebsd.org/changeset/base/330392 Log: Implement BUILD_BUG() function macro in the LinuxKPI. MFC after:1 week Submitted by: Johannes Lundberg Sponsored by: Mellanox

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

2018-03-04 Thread Hans Petter Selasky
Author: hselasky Date: Sun Mar 4 18:17:54 2018 New Revision: 330391 URL: https://svnweb.freebsd.org/changeset/base/330391 Log: Implement writel_relaxed() in the LinuxKPI. MFC after:1 week Submitted by: Johannes Lundberg Sponsored by: Mellanox Technologies

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

2018-03-04 Thread Hans Petter Selasky
Author: hselasky Date: Sun Mar 4 18:13:31 2018 New Revision: 330390 URL: https://svnweb.freebsd.org/changeset/base/330390 Log: Define noinline and __maybe_unused macros in the LinuxKPI. MFC after:1 week Submitted by: Johannes Lundberg Sponsored by: Mellanox

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

2018-03-04 Thread Hans Petter Selasky
Author: hselasky Date: Sun Mar 4 18:10:18 2018 New Revision: 330389 URL: https://svnweb.freebsd.org/changeset/base/330389 Log: Implement for_each_clear_bit() function macro in the LinuxKPI. MFC after:1 week Submitted by: Johannes Lundberg Sponsored by:

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

2018-03-04 Thread Hans Petter Selasky
Author: hselasky Date: Sun Mar 4 18:08:21 2018 New Revision: 330388 URL: https://svnweb.freebsd.org/changeset/base/330388 Log: Implement GENMASK_ULL() function macro in the LinuxKPI. MFC after:1 week Submitted by: Johannes Lundberg Sponsored by: Mellanox

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

2018-03-04 Thread Hans Petter Selasky
Author: hselasky Date: Sun Mar 4 18:04:37 2018 New Revision: 330387 URL: https://svnweb.freebsd.org/changeset/base/330387 Log: Rename the SLAB_DESTROY_BY_RCU flag into SLAB_TYPESAFE_BY_RCU in the LinuxKPI to be compatible with Linux. MFC after:1 week Requested by: Johannes

svn commit: r330386 - head/lib/libutil

2018-03-04 Thread Eitan Adler
Author: eadler Date: Sun Mar 4 18:00:32 2018 New Revision: 330386 URL: https://svnweb.freebsd.org/changeset/base/330386 Log: open.3: Use .Fa where appropriate Obtained From:DragonFlyBSD (78732326a796ca521f3c0fe33c6fc9c695742ede) Modified: head/lib/libutil/flopen.3 Modified:

svn commit: r330385 - head/sys/dev/usb/serial

2018-03-04 Thread Ian Lepore
Author: ian Date: Sun Mar 4 17:30:16 2018 New Revision: 330385 URL: https://svnweb.freebsd.org/changeset/base/330385 Log: Flag the first interface on a KTLINK FTDI-based jtag+uart device as being the jtag port, so that a tty is not created for it. This is based on information in the PR

svn commit: r330384 - in head: contrib/llvm/lib/Target/AArch64 contrib/llvm/lib/Target/X86 contrib/llvm/tools/clang/include/clang/Basic contrib/llvm/tools/clang/lib/Basic lib/clang lib/clang/includ...

2018-03-04 Thread Dimitry Andric
Author: dim Date: Sun Mar 4 17:06:37 2018 New Revision: 330384 URL: https://svnweb.freebsd.org/changeset/base/330384 Log: Upgrade our copies of clang, llvm, lld, lldb, compiler-rt and libc++ to 6.0.0 release (upstream r326565). Release notes for llvm, clang and lld will be available

svn commit: r330374 - head/sys/ddb

2018-03-04 Thread Andriy Gapon
Author: avg Date: Sun Mar 4 13:27:21 2018 New Revision: 330374 URL: https://svnweb.freebsd.org/changeset/base/330374 Log: db_script_exec: use a saved script name when reporting commands executed Before executing a command in a ddb script ddb prints an information line of the form:

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

2018-03-04 Thread Ronald Klop
On Fri, 02 Mar 2018 15:16:19 +0100, Edward Tomasz Napierala wrote: 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

Re: svn commit: r330236 - head/sys/compat/linuxkpi/common/src

2018-03-04 Thread Ronald Klop
On Sun, 04 Mar 2018 02:25:17 +0100, Colin Percival wrote: On 03/01/18 02:31, Hans Petter Selasky wrote: New Revision: 330236 Correct the return value from flush_work() and flush_delayed_work() in the LinuxKPI to comply more with Linux. This fixes an issue when

Re: svn commit: r320579 - head/usr.bin/patch

2018-03-04 Thread Eitan Adler
On 2 July 2017 at 14:00, Pedro F. Giffuni wrote: > + } else if (strnEQ(s, "diff --git a/", 13)) { > + /* Git-style diffs. */ > + piece_of_git = 1; This is incomplete and leaves to confusing behavior for some git diffs.

Re: svn commit: r330236 - head/sys/compat/linuxkpi/common/src

2018-03-04 Thread Alexey Dokuchaev
On Sun, Mar 04, 2018 at 01:25:17AM +, Colin Percival wrote: > On 03/01/18 02:31, Hans Petter Selasky wrote: > > New Revision: 330236 > > Correct the return value from flush_work() and flush_delayed_work() > > in the LinuxKPI to comply more with Linux. This fixes an issue when > > these