svn commit: r358211 - stable/12/sys/dev/usb/input

2020-02-21 Thread Hans Petter Selasky
Author: hselasky Date: Fri Feb 21 08:30:34 2020 New Revision: 358211 URL: https://svnweb.freebsd.org/changeset/base/358211 Log: MFC r357861 and r357898: Improve USB gaming keyboard support. Add support for decoding pressed keys as a bitmap. The keys in the bitmap are described in the

svn commit: r358219 - head/sys/dev/acpica

2020-02-21 Thread Hans Petter Selasky
Author: hselasky Date: Fri Feb 21 09:52:20 2020 New Revision: 358219 URL: https://svnweb.freebsd.org/changeset/base/358219 Log: Make sure the ACPI lid state is updated during boot and after resume. While at it update the sysctl(9) description for the lid state. Differential Revision:

svn commit: r358214 - stable/11/sys/dev/usb/input

2020-02-21 Thread Hans Petter Selasky
Author: hselasky Date: Fri Feb 21 08:48:24 2020 New Revision: 358214 URL: https://svnweb.freebsd.org/changeset/base/358214 Log: MFC r304699: Fix key delay and repeat, part 1. kbdcontrol -r fast is documented to give a non-emulated atkbd's fastest rate of 250.34, but is misimplemented

svn commit: r358215 - stable/11/sys/dev/usb/input

2020-02-21 Thread Hans Petter Selasky
Author: hselasky Date: Fri Feb 21 08:59:20 2020 New Revision: 358215 URL: https://svnweb.freebsd.org/changeset/base/358215 Log: MFC r304735 and r331692: Fix key delay and repeat, part 2. Use sbintime_t timeouts with precision control to get very accurate timing. It costs little to

svn commit: r358210 - head

2020-02-21 Thread Baptiste Daroussin
Author: bapt Date: Fri Feb 21 08:00:42 2020 New Revision: 358210 URL: https://svnweb.freebsd.org/changeset/base/358210 Log: ncurses: set the proper version in the updating message Reported by: @jlduran (github) Modified: head/UPDATING Modified: head/UPDATING

svn commit: r358216 - stable/11/sys/dev/usb/input

2020-02-21 Thread Hans Petter Selasky
Author: hselasky Date: Fri Feb 21 09:07:01 2020 New Revision: 358216 URL: https://svnweb.freebsd.org/changeset/base/358216 Log: MFC r357861 and r357898: Improve USB gaming keyboard support. Add support for decoding pressed keys as a bitmap. The keys in the bitmap are described in the

svn commit: r358218 - head/sys/sys

2020-02-21 Thread Emmanuel Vadot
Author: manu Date: Fri Feb 21 09:29:56 2020 New Revision: 358218 URL: https://svnweb.freebsd.org/changeset/base/358218 Log: Bump _FreeBSD_version after the recent linuxkpi changes Modified: head/sys/sys/param.h Modified: head/sys/sys/param.h

svn commit: r358212 - stable/11/sys/dev/usb/input

2020-02-21 Thread Hans Petter Selasky
Author: hselasky Date: Fri Feb 21 08:35:08 2020 New Revision: 358212 URL: https://svnweb.freebsd.org/changeset/base/358212 Log: MFC r304567: Fix translation of the PrintScreen/SysRq and Pause/Break keys. Almost everything was broken. The cases that I noticed were Ctrl-PrintScreen not

svn commit: r358213 - stable/11/sys/dev/usb/input

2020-02-21 Thread Hans Petter Selasky
Author: hselasky Date: Fri Feb 21 08:41:44 2020 New Revision: 358213 URL: https://svnweb.freebsd.org/changeset/base/358213 Log: MFC r304612: Further fixes for translation of PrintScreen/SysRq. The previous fix was tested mainly on 3 AT keyboards with USB adaptors where it works. 1 USB

svn commit: r358217 - in head/sys: compat/linuxkpi/common/include/linux compat/linuxkpi/common/src conf modules/linuxkpi

2020-02-21 Thread Emmanuel Vadot
Author: manu Date: Fri Feb 21 09:28:45 2020 New Revision: 358217 URL: https://svnweb.freebsd.org/changeset/base/358217 Log: linuxkpi: Move shmem related functions in it's own file For drmkpi (D23085) we don't want the Linux struct file as we don't emulate everything. Also the prototypes

svn commit: r358220 - head/sys/dev/mlx5/mlx5_ib

2020-02-21 Thread Hans Petter Selasky
Author: hselasky Date: Fri Feb 21 10:14:02 2020 New Revision: 358220 URL: https://svnweb.freebsd.org/changeset/base/358220 Log: Fix broken MLX5_IB_INDEX() macro in mlx5ib(4). The index should be computed as distance from arg[0] and not the beginning of struct mlx5_ib_congestion .

Re: svn commit: r358152 - head/bin/sh

2020-02-21 Thread Li-Wen Hsu
On Sat, Feb 22, 2020 at 4:58 AM Antoine Brodin wrote: > > On Thu, Feb 20, 2020 at 4:01 AM Hiroki Sato wrote: > > > > Author: hrs > > Date: Thu Feb 20 03:01:27 2020 > > New Revision: 358152 > > URL: https://svnweb.freebsd.org/changeset/base/358152 > > > > Log: > > Improve performance of "read"

svn commit: r358229 - in stable: 11/sys/powerpc/conf/dpaa 12/sys/powerpc/conf/dpaa

2020-02-21 Thread Dimitry Andric
Author: dim Date: Fri Feb 21 21:54:03 2020 New Revision: 358229 URL: https://svnweb.freebsd.org/changeset/base/358229 Log: MFC r358045: Merge r358034 from the clang1000-import branch: Disable new clang 10.0.0 warnings about misleading indentation in

svn commit: r358232 - stable/12/sys/arm/allwinner/clkng

2020-02-21 Thread Dimitry Andric
Author: dim Date: Fri Feb 21 22:11:14 2020 New Revision: 358232 URL: https://svnweb.freebsd.org/changeset/base/358232 Log: MFC r358074: Fix the following -Werror warning from clang 10.0.0: sys/arm/allwinner/clkng/aw_clk_mipi.c:144:6: error: misleading indentation; statement is not

svn commit: r358230 - in stable: 11/lib/libc/quad 12/lib/libc/quad

2020-02-21 Thread Dimitry Andric
Author: dim Date: Fri Feb 21 21:57:24 2020 New Revision: 358230 URL: https://svnweb.freebsd.org/changeset/base/358230 Log: MFC r358046: Merge r358042 from the clang1000-import branch: Add casts and L suffixes to libc quad support, to work around various -Werror warnings from clang

svn commit: r358231 - stable/12/sys/arm/allwinner

2020-02-21 Thread Dimitry Andric
Author: dim Date: Fri Feb 21 22:08:45 2020 New Revision: 358231 URL: https://svnweb.freebsd.org/changeset/base/358231 Log: MFC r358044: Merge r358030 from the clang1000-import branch: Work around new clang 10.0.0 -Werror warning: sys/arm/allwinner/aw_cir.c:208:41: error:

svn commit: r358228 - head/usr.sbin/iostat

2020-02-21 Thread Edward Tomasz Napierala
Author: trasz Date: Fri Feb 21 20:57:32 2020 New Revision: 358228 URL: https://svnweb.freebsd.org/changeset/base/358228 Log: Fix formatting for tps values between 99.95 and 99.99; previously it would display as "100.0", breaking vertical alignment. MFC after:2 weeks Differential

Re: svn commit: r358152 - head/bin/sh

2020-02-21 Thread Antoine Brodin
On Thu, Feb 20, 2020 at 4:01 AM Hiroki Sato wrote: > > Author: hrs > Date: Thu Feb 20 03:01:27 2020 > New Revision: 358152 > URL: https://svnweb.freebsd.org/changeset/base/358152 > > Log: > Improve performance of "read" built-in command when using a seekable > fd. > > The read built-in

svn commit: r358233 - head/sys/cam/scsi

2020-02-21 Thread Warner Losh
Author: imp Date: Fri Feb 21 22:44:22 2020 New Revision: 358233 URL: https://svnweb.freebsd.org/changeset/base/358233 Log: We pass a pointer to the flags to dabitsysctl, not an integer. Adjust the handler to accept a poitner to a u_int. To make the type of the softc flags stable and

svn commit: r358229 - in stable: 11/sys/powerpc/conf/dpaa 12/sys/powerpc/conf/dpaa

2020-02-21 Thread Dimitry Andric
Author: dim Date: Fri Feb 21 21:54:03 2020 New Revision: 358229 URL: https://svnweb.freebsd.org/changeset/base/358229 Log: MFC r358045: Merge r358034 from the clang1000-import branch: Disable new clang 10.0.0 warnings about misleading indentation in

Re: svn commit: r358152 - head/bin/sh

2020-02-21 Thread Conrad Meyer
Given the report and looking at the change, I suspect the problem is the promotion of '-residue' from size_t (unsigned 32-bit on i386) to off_t (signed 64-bit). Something like '-(off_t)residue' or even 'off_t residue;' should fix it. Repro: static void myoff(off_t foo) { printf("%jd\n",

svn commit: r358230 - in stable: 11/lib/libc/quad 12/lib/libc/quad

2020-02-21 Thread Dimitry Andric
Author: dim Date: Fri Feb 21 21:57:24 2020 New Revision: 358230 URL: https://svnweb.freebsd.org/changeset/base/358230 Log: MFC r358046: Merge r358042 from the clang1000-import branch: Add casts and L suffixes to libc quad support, to work around various -Werror warnings from clang

svn commit: r358224 - in head/sys: dev/ath dev/ath/ath_rate/sample dev/otus net80211

2020-02-21 Thread Pawel Biernacki
Author: kaktus Date: Fri Feb 21 16:32:17 2020 New Revision: 358224 URL: https://svnweb.freebsd.org/changeset/base/358224 Log: Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (7 of many) r357614 added CTLFLAG_NEEDGIANT to make it easier to find nodes that are still not MPSAFE (or

svn commit: r358225 - head/sys/x86/x86

2020-02-21 Thread Konstantin Belousov
Author: kib Date: Fri Feb 21 16:41:17 2020 New Revision: 358225 URL: https://svnweb.freebsd.org/changeset/base/358225 Log: print_svm_info: decode a CPUID 0x800a.edx bit 20. This is SVM features word, the bit is defined in "PPR for AMD Family 17h Model 31h B0", document 55803 Rev

svn commit: r358227 - head/lib/libfetch

2020-02-21 Thread Kyle Evans
Author: kevans Date: Fri Feb 21 18:21:57 2020 New Revision: 358227 URL: https://svnweb.freebsd.org/changeset/base/358227 Log: fetch(3): plug some leaks In the successful case, sockshost is not freed prior to return. The failure case can now be hit after fetch_reopen(), which was not

svn commit: r358221 - stable/12/contrib/elftoolchain/addr2line

2020-02-21 Thread Mark Johnston
Author: markj Date: Fri Feb 21 14:40:08 2020 New Revision: 358221 URL: https://svnweb.freebsd.org/changeset/base/358221 Log: Revert r350515 for now. It seems to cause build failures when Capsicum support is disabled in src.conf. PR: 244258 Reported by:

svn commit: r358226 - head/sys/x86/x86

2020-02-21 Thread Konstantin Belousov
Author: kib Date: Fri Feb 21 16:55:28 2020 New Revision: 358226 URL: https://svnweb.freebsd.org/changeset/base/358226 Log: x86/identcpu.c whitespace cleanup. Sponsored by: The FreeBSD Foundation MFC after:3 days Modified: head/sys/x86/x86/identcpu.c Modified:

svn commit: r358222 - stable/12/contrib/elftoolchain/addr2line

2020-02-21 Thread Mark Johnston
Author: markj Date: Fri Feb 21 14:45:48 2020 New Revision: 358222 URL: https://svnweb.freebsd.org/changeset/base/358222 Log: MFC r357862 (by emaste): addr2line: use stdbool.h header for bool Modified: stable/12/contrib/elftoolchain/addr2line/addr2line.c Directory Properties: stable/12/

svn commit: r358223 - in head/sys: netinet netpfil/pf

2020-02-21 Thread Pawel Biernacki
Author: kaktus Date: Fri Feb 21 16:23:00 2020 New Revision: 358223 URL: https://svnweb.freebsd.org/changeset/base/358223 Log: Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (6 of many) r357614 added CTLFLAG_NEEDGIANT to make it easier to find nodes that are still not MPSAFE (or

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

2020-02-21 Thread Justin Hibbits
Author: jhibbits Date: Sat Feb 22 01:31:06 2020 New Revision: 358234 URL: https://svnweb.freebsd.org/changeset/base/358234 Log: powerpc/booke: Fix handling of pvh_global_lock and pmap lock ptbl_alloc() is expected to return with the pvh_global_lock and pmap lock held. However, it will

svn commit: r358238 - stable/12/sys/cam/ctl

2020-02-21 Thread Alexander Motin
Author: mav Date: Sat Feb 22 04:49:32 2020 New Revision: 358238 URL: https://svnweb.freebsd.org/changeset/base/358238 Log: MFC r357685: Bind CTL backends taskqueues to the CTL process. Modified: stable/12/sys/cam/ctl/ctl_backend_block.c stable/12/sys/cam/ctl/ctl_backend_ramdisk.c Directory

svn commit: r358237 - head/tools/bsdbox

2020-02-21 Thread Kyle Evans
Author: kevans Date: Sat Feb 22 04:02:07 2020 New Revision: 358237 URL: https://svnweb.freebsd.org/changeset/base/358237 Log: bsdbox: fix build We've grown to also require libthr and libprivatestd to be explicitly linked in here, so do this now to fix freebsd-wifi-build. Submitted

svn commit: r358235 - head/bin/sh

2020-02-21 Thread Kyle Evans
Author: kevans Date: Sat Feb 22 03:14:05 2020 New Revision: 358235 URL: https://svnweb.freebsd.org/changeset/base/358235 Log: sh: fix read builtin on 32-bit systems Specifically, any system with a 32-bit size_t; -residue is calculated as a 32-bit *then* promoted to the 64-bit off_t and

Re: svn commit: r358152 - head/bin/sh

2020-02-21 Thread Kyle Evans
On Fri, Feb 21, 2020 at 3:53 PM Li-Wen Hsu wrote: > > On Sat, Feb 22, 2020 at 4:58 AM Antoine Brodin wrote: > > > > On Thu, Feb 20, 2020 at 4:01 AM Hiroki Sato wrote: > > > > > > Author: hrs > > > Date: Thu Feb 20 03:01:27 2020 > > > New Revision: 358152 > > > URL:

svn commit: r358236 - in head/sys: kern sys vm

2020-02-21 Thread Jeff Roberson
Author: jeff Date: Sat Feb 22 03:44:10 2020 New Revision: 358236 URL: https://svnweb.freebsd.org/changeset/base/358236 Log: Add an atomic-free tick moderated lazy update variant of SMR. This enables very cheap read sections with free-to-use latencies and memory overhead similar to epoch.