Re: svn commit: r309017 - in head/sys: cddl/compat/opensolaris/sys compat/linprocfs fs/tmpfs sys vm

2018-03-03 Thread Alexey Dokuchaev
On Tue, Nov 22, 2016 at 06:13:46PM +, Alan Cox wrote: > New Revision: 309017 > URL: https://svnweb.freebsd.org/changeset/base/309017 > > Log: > Remove PG_CACHED-related fields from struct vmmeter, because they are no > longer used. More precisely, they are always zero because the code tha

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

2018-03-03 Thread Konstantin Belousov
On Sat, Mar 03, 2018 at 01:47:41PM +1100, Bruce Evans wrote: > 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

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

2018-03-03 Thread Bruce Evans
On Sat, 3 Mar 2018, Konstantin Belousov wrote: On Sat, Mar 03, 2018 at 01:47:41PM +1100, Bruce Evans wrote: 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

svn commit: r330335 - head/sys/sys

2018-03-03 Thread Emmanuel Vadot
Author: manu Date: Sat Mar 3 12:43:11 2018 New Revision: 330335 URL: https://svnweb.freebsd.org/changeset/base/330335 Log: Introduce BUS_PASS_SUPPORTDEV The reason for this new pass is : The earlier pass names are really specific (interrupt, timer, scheduler etc ..) and making a dr

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

2018-03-03 Thread Andrew Turner
Author: andrew Date: Sat Mar 3 13:19:08 2018 New Revision: 330336 URL: https://svnweb.freebsd.org/changeset/base/330336 Log: Add the missing GICv3 dev info struct to the ACPI dev info.Previously we would read from the resource list when querying from this. Sponsored by: ABT Systems Ltd

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

2018-03-03 Thread Andrew Turner
Author: andrew Date: Sat Mar 3 13:20:44 2018 New Revision: 330337 URL: https://svnweb.freebsd.org/changeset/base/330337 Log: Move setting the IRQ base and length into the common GICv3 ITS attach function. This is common across both ACPI and FDT. Sponsored by: ABT Systems Ltd Sponsored

svn commit: r330338 - head/sys/amd64/amd64

2018-03-03 Thread Andriy Gapon
Author: avg Date: Sat Mar 3 15:10:37 2018 New Revision: 330338 URL: https://svnweb.freebsd.org/changeset/base/330338 Log: db_nextframe/amd64: catch up with r328083 to recognize fast_syscall_common Since that change the system call stack traces look like this: ... sys___sysctl() at

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

2018-03-03 Thread Pedro Giffuni
On 03/03/2018 05:21, Konstantin Belousov wrote: On Sat, Mar 03, 2018 at 01:47:41PM +1100, Bruce Evans wrote: 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 al

svn commit: r330339 - head/stand/liblua

2018-03-03 Thread Kyle Evans
Author: kevans Date: Sat Mar 3 17:13:12 2018 New Revision: 330339 URL: https://svnweb.freebsd.org/changeset/base/330339 Log: liblua: Add loader.interpret This allows lua to pass back a command string to be executed as if it were typed at the loader prompt- loader tries to execute the str

svn commit: r330340 - head/stand/lua

2018-03-03 Thread Kyle Evans
Author: kevans Date: Sat Mar 3 17:18:40 2018 New Revision: 330340 URL: https://svnweb.freebsd.org/changeset/base/330340 Log: lualoader: Execute menu_timeout_command at the end of menu autoboot Instead of hardcoding "boot", respect menu_timeout_command from Forth. It still defaults to 'bo

svn commit: r330341 - head/stand/lua

2018-03-03 Thread Kyle Evans
Author: kevans Date: Sat Mar 3 17:25:49 2018 New Revision: 330341 URL: https://svnweb.freebsd.org/changeset/base/330341 Log: lualoader: Respect loader_menu_title, prepare for align Modified: head/stand/lua/drawer.lua Modified: head/stand/lua/drawer.lua ==

svn commit: r330342 - head/stand/lua

2018-03-03 Thread Kyle Evans
Author: kevans Date: Sat Mar 3 17:38:25 2018 New Revision: 330342 URL: https://svnweb.freebsd.org/changeset/base/330342 Log: lualoader: Respect loader_menu_title_align It may be set to "left" or "right" -- any other value will cause the title to be centered. I've chosen to position

svn commit: r330344 - head/sys/kern

2018-03-03 Thread Hans Petter Selasky
Author: hselasky Date: Sat Mar 3 18:12:21 2018 New Revision: 330344 URL: https://svnweb.freebsd.org/changeset/base/330344 Log: Correct the return code from pause() during cold startup from zero to EWOULDBLOCK. This also matches the description in pause(9). Discussed with: kib@ MF

svn commit: r330345 - head/stand/lua

2018-03-03 Thread Kyle Evans
Author: kevans Date: Sat Mar 3 18:13:14 2018 New Revision: 330345 URL: https://svnweb.freebsd.org/changeset/base/330345 Log: lualoader: Tweak positioning and fix an off-by-one - All of our default positions were offset from forth - Our menu frame size was smaller than in forth - Logo/b

svn commit: r330346 - head/stand/lua

2018-03-03 Thread Kyle Evans
Author: kevans Date: Sat Mar 3 18:25:50 2018 New Revision: 330346 URL: https://svnweb.freebsd.org/changeset/base/330346 Log: lualoader: Shift menu+brand even for logo=none with customized pos Modified: head/stand/lua/drawer.lua Modified: head/stand/lua/drawer.lua ===

svn commit: r330347 - head/sys/arm/allwinner

2018-03-03 Thread Emmanuel Vadot
Author: manu Date: Sat Mar 3 18:28:19 2018 New Revision: 330347 URL: https://svnweb.freebsd.org/changeset/base/330347 Log: axp81x: Add support for AXP803 AXP803 and AXP813/818 are very similar, only two regulators differs. AXP803 is the companion chip for A64/R18 AXP813 is the companio

svn commit: r330348 - head/sys/arm/allwinner

2018-03-03 Thread Emmanuel Vadot
Author: manu Date: Sat Mar 3 18:30:31 2018 New Revision: 330348 URL: https://svnweb.freebsd.org/changeset/base/330348 Log: aw_mmc: Regulator improvement Getting regulator is good, enabling them is better. When the mmc stack decide to change the voltage for IO, don't change the main vcc

svn commit: r330349 - in head/sys: kern sys

2018-03-03 Thread Hans Petter Selasky
Author: hselasky Date: Sat Mar 3 18:36:38 2018 New Revision: 330349 URL: https://svnweb.freebsd.org/changeset/base/330349 Log: Allow pause_sbt() to catch signals during sleep by passing C_CATCH flag. Define pause_sig() function macro helper similarly to other kernel functions which catch si

svn commit: r330350 - head/sys/arm/allwinner

2018-03-03 Thread Kyle Evans
Author: kevans Date: Sat Mar 3 18:40:46 2018 New Revision: 330350 URL: https://svnweb.freebsd.org/changeset/base/330350 Log: aw_syscon(4): Move to BUS_PASS_SUPPORTDEV It would have been on an actual named pass before, but none were really appropriate in name. Move it to the recently crea

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

2018-03-03 Thread Kyle Evans
Author: kevans Date: Sat Mar 3 18:52:19 2018 New Revision: 330351 URL: https://svnweb.freebsd.org/changeset/base/330351 Log: Move imx6_usbphy to SUPPORTDEV, massage associated comment No objections from: ian Modified: head/sys/arm/freescale/imx/imx6_usbphy.c Modified: head/sys/arm/fr

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

2018-03-03 Thread Hans Petter Selasky
Author: hselasky Date: Sat Mar 3 18:54:16 2018 New Revision: 330352 URL: https://svnweb.freebsd.org/changeset/base/330352 Log: Implement msleep_interruptible() in the LinuxKPI. While at it use pause_sbt() instead of pause() in the msleep() function to avoid rounding errors when converting d

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

2018-03-03 Thread Ian Lepore
On Sat, 2018-03-03 at 18:54 +, Hans Petter Selasky wrote: > Author: hselasky > Date: Sat Mar  3 18:54:16 2018 > New Revision: 330352 > URL: https://svnweb.freebsd.org/changeset/base/330352 > > Log: >   Implement msleep_interruptible() in the LinuxKPI. While at it use > pause_sbt() >   instead

Re: svn commit: r309017 - in head/sys: cddl/compat/opensolaris/sys compat/linprocfs fs/tmpfs sys vm

2018-03-03 Thread Alan Cox
On 03/03/2018 02:48, Alexey Dokuchaev wrote: > On Tue, Nov 22, 2016 at 06:13:46PM +, Alan Cox wrote: >> New Revision: 309017 >> URL: https://svnweb.freebsd.org/changeset/base/309017 >> >> Log: >> Remove PG_CACHED-related fields from struct vmmeter, because they are no >> longer used. More

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

2018-03-03 Thread Hans Petter Selasky
Author: hselasky Date: Sat Mar 3 19:26:40 2018 New Revision: 330353 URL: https://svnweb.freebsd.org/changeset/base/330353 Log: Use mstosbt() instead of SBT_1MS in the LinuxKPI to get the last few bits of precision. MFC after:1 week Suggested by: ian@ Sponsored by: Mellanox Techno

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

2018-03-03 Thread Hans Petter Selasky
On 03/03/18 20:14, Ian Lepore wrote: On Sat, 2018-03-03 at 18:54 +, Hans Petter Selasky wrote: Author: hselasky Date: Sat Mar  3 18:54:16 2018 New Revision: 330352 URL: https://svnweb.freebsd.org/changeset/base/330352 Log:   Implement msleep_interruptible() in the LinuxKPI. While at it use

svn commit: r330354 - head/sys/fs/fuse

2018-03-03 Thread Eitan Adler
Author: eadler Date: Sat Mar 3 20:42:39 2018 New Revision: 330354 URL: https://svnweb.freebsd.org/changeset/base/330354 Log: sys/fuse: fix off by one error Reported by: Ilja Van Sprundel Reported by: Domagoj Stolfa Modified: head/sys/fs/fuse/fuse_internal.c Modified: head/sys/fs/

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

2018-03-03 Thread Konstantin Belousov
On Sat, Mar 03, 2018 at 12:14:42PM -0700, Ian Lepore wrote: > To really avoid roundoff errors, use mstosbt(ms) instead of SBT_1MS*ms. > > The rounding errors when multiplying or dividing by SBT_1MS is not > severe like it is with SBT_1NS, but the inline functions still do the > arithmetic more cor

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

2018-03-03 Thread Ian Lepore
On Sat, 2018-03-03 at 22:49 +0200, Konstantin Belousov wrote: > On Sat, Mar 03, 2018 at 12:14:42PM -0700, Ian Lepore wrote: > > > > To really avoid roundoff errors, use mstosbt(ms) instead of SBT_1MS*ms. > > > > The rounding errors when multiplying or dividing by SBT_1MS is not > > severe like it

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

2018-03-03 Thread Ian Lepore
On Sat, 2018-03-03 at 22:49 +0200, Konstantin Belousov wrote: > On Sat, Mar 03, 2018 at 12:14:42PM -0700, Ian Lepore wrote: > > > > To really avoid roundoff errors, use mstosbt(ms) instead of SBT_1MS*ms. > > > > The rounding errors when multiplying or dividing by SBT_1MS is not > > severe like it

svn commit: r330356 - head/sys/compat/linux

2018-03-03 Thread Eitan Adler
Author: eadler Date: Sat Mar 3 21:14:55 2018 New Revision: 330356 URL: https://svnweb.freebsd.org/changeset/base/330356 Log: sys/linux: Fix a few potential infoleaks in Linux IPC Submitted by: Domagoj Stolfa MFC After:1 month Modified: head/sys/compat/linux/linux_ipc.c Modified:

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

2018-03-03 Thread Ian Lepore
Author: ian Date: Sat Mar 3 21:41:16 2018 New Revision: 330358 URL: https://svnweb.freebsd.org/changeset/base/330358 Log: Minor changes to wording. Modified: head/share/man/man4/fdt_pinctrl.4 Modified: head/share/man/man4/fdt_pinctrl.4 ===

svn commit: r330359 - head/sys/compat/cloudabi

2018-03-03 Thread Eitan Adler
Author: eadler Date: Sat Mar 3 21:50:55 2018 New Revision: 330359 URL: https://svnweb.freebsd.org/changeset/base/330359 Log: sys/linux: Fix a few potential infoleaks in cloudabi Submitted by: Domagoj Stolfa MFC After:1 month Sponsored by: DARPA/AFRL Modified: head/sys/compat/cl

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

2018-03-03 Thread Bruce Evans
On Sat, 3 Mar 2018, Ian Lepore wrote: On Sat, 2018-03-03 at 22:49 +0200, Konstantin Belousov wrote: ,,, BTW mstosbt() and other functions have weird bracing in the formula. I think that the formula as calculated by the C operator precedence is fine, i.e. multiplication is done before right shif

svn commit: r330360 - head/share/man/man9

2018-03-03 Thread Ian Lepore
Author: ian Date: Sat Mar 3 22:10:16 2018 New Revision: 330360 URL: https://svnweb.freebsd.org/changeset/base/330360 Log: Minor (mostly) wording changes. Modified: head/share/man/man9/fdt_pinctrl.9 Modified: head/share/man/man9/fdt_pinctrl.9 =

svn commit: r330361 - head/sys/sys

2018-03-03 Thread Ian Lepore
Author: ian Date: Sat Mar 3 22:28:20 2018 New Revision: 330361 URL: https://svnweb.freebsd.org/changeset/base/330361 Log: Correct a misplaced closing paren. Does not affect the result, but does clarify (at least for me) that the multiplication happens before the shift. Modified: head/sys/

Re: svn commit: r330349 - in head/sys: kern sys

2018-03-03 Thread Conrad Meyer
Please document the new ABI in the sleep(9) manual page. Thanks, Conrad On Sat, Mar 3, 2018 at 10:36 AM, Hans Petter Selasky wrote: > Author: hselasky > Date: Sat Mar 3 18:36:38 2018 > New Revision: 330349 > URL: https://svnweb.freebsd.org/changeset/base/330349 > > Log: > Allow pause_sbt() to

svn commit: r330362 - head/share/man/man9

2018-03-03 Thread Hans Petter Selasky
Author: hselasky Date: Sat Mar 3 23:08:49 2018 New Revision: 330362 URL: https://svnweb.freebsd.org/changeset/base/330362 Log: Document pause_sig(9) and update prototypes for existing pause(9) and pause_sbt(9) functions. MFC after:1 week Suggested by: cem@ Sponsored by: Mellanox

Re: svn commit: r330349 - in head/sys: kern sys

2018-03-03 Thread Hans Petter Selasky
On 03/03/18 23:34, Conrad Meyer wrote: Please document the new ABI in the sleep(9) manual page. See r330362. --HPS ___ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "sv

svn commit: r330364 - head

2018-03-03 Thread Bryan Drewery
Author: bdrewery Date: Sat Mar 3 23:23:23 2018 New Revision: 330364 URL: https://svnweb.freebsd.org/changeset/base/330364 Log: Don't read SRC_ENV_CONF for MAKEOBJDIRPREFIX guard. This is mostly to allow using MAKEOBJDIRPREFIX in src-env.conf on stable where src.sys.obj.mk is not going to

svn commit: r330363 - head/share/mk

2018-03-03 Thread Bryan Drewery
Author: bdrewery Date: Sat Mar 3 23:23:01 2018 New Revision: 330363 URL: https://svnweb.freebsd.org/changeset/base/330363 Log: Ignore MAKEOBJDIRPREFIX from src-env.conf in sub-makes. A sub-make, such as in 'make buildworld', may want to override MAKEOBJDIRPREFIX but is unable to do so i

svn commit: r330365 - in head/stand: ofw/common ofw/libofw powerpc/ofw

2018-03-03 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Mar 3 23:39:07 2018 New Revision: 330365 URL: https://svnweb.freebsd.org/changeset/base/330365 Log: Move "common" Open Firmware parts of the loader used only on PowerPC to the powerpc/ subdirectory. These have never used by SPARC and we have no other (and almost

Re: svn commit: r330362 - head/share/man/man9

2018-03-03 Thread Konstantin Belousov
On Sat, Mar 03, 2018 at 11:08:49PM +, Hans Petter Selasky wrote: > Author: hselasky > Date: Sat Mar 3 23:08:49 2018 > New Revision: 330362 > URL: https://svnweb.freebsd.org/changeset/base/330362 > > Log: > Document pause_sig(9) and update prototypes for existing pause(9) and > pause_sbt(9

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

2018-03-03 Thread Colin Percival
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 functions > are used in waiting loops. > > MFC after: 1 week > Sponsor

svn commit: r330366 - head/gnu/usr.bin/binutils/ld

2018-03-03 Thread Ed Maste
Author: emaste Date: Sun Mar 4 01:37:49 2018 New Revision: 330366 URL: https://svnweb.freebsd.org/changeset/base/330366 Log: When lld is ld, install bfd's man page as ld.bfd.1 When WITH_LLD_IS_LD is set, lld's man page is installed as ld.1.gz, as was GNU BFD's man page prior to this chan

svn commit: r330369 - head/stand/lua

2018-03-03 Thread Kyle Evans
Author: kevans Date: Sun Mar 4 03:21:12 2018 New Revision: 330369 URL: https://svnweb.freebsd.org/changeset/base/330369 Log: lualoader: Return meaningful value in cli_execute loader.command(...) will return whatever the executed function returns, so follow suit and return whatever loader

svn commit: r330368 - head/share/man/man9

2018-03-03 Thread Warner Losh
Author: imp Date: Sun Mar 4 03:13:13 2018 New Revision: 330368 URL: https://svnweb.freebsd.org/changeset/base/330368 Log: Add documentation for CTLFLAG_MPSAFE. Modified: head/share/man/man9/sysctl.9 Modified: head/share/man/man9/sysctl.9 =

svn commit: r330370 - head/stand/lua

2018-03-03 Thread Kyle Evans
Author: kevans Date: Sun Mar 4 03:23:19 2018 New Revision: 330370 URL: https://svnweb.freebsd.org/changeset/base/330370 Log: lualoader: logdef -> logodef typo Modified: head/stand/lua/drawer.lua Modified: head/stand/lua/drawer.lua

svn commit: r330371 - head/stand/powerpc/ofw

2018-03-03 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sun Mar 4 04:49:09 2018 New Revision: 330371 URL: https://svnweb.freebsd.org/changeset/base/330371 Log: Where we can, pass the kernel an FDT facsimile of the OF device tree rather than a pointer to Open Firmware by default. This eliminates a number of potentially un

svn commit: r330372 - head/share/man/man9

2018-03-03 Thread Warner Losh
Author: imp Date: Sun Mar 4 06:19:41 2018 New Revision: 330372 URL: https://svnweb.freebsd.org/changeset/base/330372 Log: Mention that CTLFLAG_MPSAFE is only for _PROC entries. Modified: head/share/man/man9/sysctl.9 Modified: head/share/man/man9/sysctl.9