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

2019-12-16 Thread Andriy Gapon
On 12/12/2019 00:00, Konstantin Belousov wrote: > On Wed, Dec 11, 2019 at 03:52:30PM +, Andriy Gapon wrote: >> Author: avg >> Date: Wed Dec 11 15:52:29 2019 >> New Revision: 355611 >> URL: https://svnweb.freebsd.org/changeset/base/355611 >> >> Log: >> add a sanity check to the system call reg

svn commit: r355800 - head/lib/libpcap

2019-12-16 Thread Hans Petter Selasky
Author: hselasky Date: Mon Dec 16 09:11:38 2019 New Revision: 355800 URL: https://svnweb.freebsd.org/changeset/base/355800 Log: Install missing pcap(3) manual pages and add missing manpage section substitutions. Submitted by: Martin Beran PR: 237893 MFC after:1 week S

svn commit: r355801 - in head/sys: gdb powerpc/include powerpc/powerpc

2019-12-16 Thread Leandro Lupori
Author: luporl Date: Mon Dec 16 13:17:39 2019 New Revision: 355801 URL: https://svnweb.freebsd.org/changeset/base/355801 Log: [PPC] Handle qOffsets packet On PowerPC, this is needed in order for the debugger to find out the memory offset where the kernel image was loaded on the remote t

svn commit: r355802 - head/sys/sys

2019-12-16 Thread Li-Wen Hsu
Author: lwhsu Date: Mon Dec 16 13:32:06 2019 New Revision: 355802 URL: https://svnweb.freebsd.org/changeset/base/355802 Log: Fix gcc build after r355790 Sponsored by: The FreeBSD Foundation Modified: head/sys/sys/vnode.h Modified: head/sys/sys/vnode.h ===

svn commit: r355803 - in head: contrib/libunwind/src lib/libgcc_s lib/libgcc_s/arm

2019-12-16 Thread Michal Meloun
Author: mmel Date: Mon Dec 16 14:08:49 2019 New Revision: 355803 URL: https://svnweb.freebsd.org/changeset/base/355803 Log: Fix LLVM libunwnwind _Unwind_Backtrace symbol version for ARM. In original GNU libgcc, _Unwind_Backtrace is published with GCC_3.3 version for all architectures but AR

Re: svn commit: r355784 - in head/sys: compat/linuxkpi/common/src dev/dpaa kern mips/nlm sys

2019-12-16 Thread Ed Maste
On Sun, 15 Dec 2019 at 16:27, Jeff Roberson wrote: > > Author: jeff > Date: Sun Dec 15 21:26:50 2019 > New Revision: 355784 > URL: https://svnweb.freebsd.org/changeset/base/355784 > > Log: > schedlock 4/4 FYI i386, arm, arm64, riscv fail to boot now, with "panic: invalid count 2" Boot logs: i3

svn commit: r355806 - in head/sys/dev: adb gpio hyperv/input kbdmux usb/input vkbd

2019-12-16 Thread Kyle Evans
Author: kevans Date: Mon Dec 16 16:41:24 2019 New Revision: 355806 URL: https://svnweb.freebsd.org/changeset/base/355806 Log: kbd drivers: don't double register keyboard drivers Keyboard drivers are generally registered via linker set. In these cases, they're also available as kmods which

Re: svn commit: r355784 - in head/sys: compat/linuxkpi/common/src dev/dpaa kern mips/nlm sys

2019-12-16 Thread Ryan Libby
On Mon, Dec 16, 2019 at 7:30 AM Ed Maste wrote: > > On Sun, 15 Dec 2019 at 16:27, Jeff Roberson wrote: > > > > Author: jeff > > Date: Sun Dec 15 21:26:50 2019 > > New Revision: 355784 > > URL: https://svnweb.freebsd.org/changeset/base/355784 > > > > Log: > > schedlock 4/4 > > FYI i386, arm, arm

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

2019-12-16 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Dec 16 17:45:15 2019 New Revision: 355807 URL: https://svnweb.freebsd.org/changeset/base/355807 Log: Don't use K&R definitions. No functional changes. Reported by: kib MFC after:2 weeks Sponsored by: The FreeBSD Foundation Modified: head/sys/compat/linux

Re: svn commit: r355784 - in head/sys: compat/linuxkpi/common/src dev/dpaa kern mips/nlm sys

2019-12-16 Thread Jeff Roberson
On Mon, 16 Dec 2019, Ryan Libby wrote: On Mon, Dec 16, 2019 at 7:30 AM Ed Maste wrote: On Sun, 15 Dec 2019 at 16:27, Jeff Roberson wrote: Author: jeff Date: Sun Dec 15 21:26:50 2019 New Revision: 355784 URL: https://svnweb.freebsd.org/changeset/base/355784 Log: schedlock 4/4 FYI i386,

svn commit: r355813 - in head/sys/cam: ata scsi

2019-12-16 Thread Warner Losh
Author: imp Date: Mon Dec 16 18:16:44 2019 New Revision: 355813 URL: https://svnweb.freebsd.org/changeset/base/355813 Log: Implement a system-wide limit or da and ada devices for delete. Excesively large TRIMs can result in timeouts, which cause big problems. Limit trims to 1GB to mititga

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

2019-12-16 Thread Warner Losh
On Sun, Dec 15, 2019, 11:51 AM Rodney W. Grimes wrote: > > Author: imp > > Date: Fri Dec 13 22:32:05 2019 > > New Revision: 355737 > > URL: https://svnweb.freebsd.org/changeset/base/355737 > > > > Log: > > Better copyright advice > > > > Document the common practices around copyrights with "a

svn commit: r355816 - head

2019-12-16 Thread Ed Maste
Author: emaste Date: Mon Dec 16 19:08:49 2019 New Revision: 355816 URL: https://svnweb.freebsd.org/changeset/base/355816 Log: UPDATING: remove outdated caution against make -j Reviewed by: imp Sponsored by: The FreeBSD Foundation Differential Revision:https://reviews.freebsd.or

svn commit: r355817 - in head/sys/cam: ata scsi

2019-12-16 Thread Warner Losh
Author: imp Date: Mon Dec 16 19:16:26 2019 New Revision: 355817 URL: https://svnweb.freebsd.org/changeset/base/355817 Log: Revert r355813 It was extracted from a larger tree and is incomplete. Will resubmit after reworking. Modified: head/sys/cam/ata/ata_da.c head/sys/cam/scsi/scsi_d

Re: svn commit: r355784 - in head/sys: compat/linuxkpi/common/src dev/dpaa kern mips/nlm sys

2019-12-16 Thread Mateusz Guzik
The entire thing reads like a bug -- for each platform critical_exit can venture into mi_switch with interrupts disabled. On amd64 it just happens to do it after the count was updated, but still before they got-reenabled. Other platform also do critical enter/exit dance on each call instead of just

svn commit: r355818 - in head: share/man/man4 sys/amd64/linux sys/amd64/linux32 sys/arm64/linux sys/compat/linux sys/i386/linux

2019-12-16 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Dec 16 20:07:04 2019 New Revision: 355818 URL: https://svnweb.freebsd.org/changeset/base/355818 Log: Add compat.linux.emul_path, so it can be set to something other than "/compat/linux". Useful when you have several compat directories with different Linux versions an

svn commit: r355819 - in head/sys: arm/arm arm64/arm64 i386/i386 mips/mips powerpc/powerpc riscv/riscv

2019-12-16 Thread Jeff Roberson
Author: jeff Date: Mon Dec 16 20:15:04 2019 New Revision: 355819 URL: https://svnweb.freebsd.org/changeset/base/355819 Log: Repeat the spinlock_enter/exit pattern from amd64 on other architectures to fix an assert violation introduced in r355784. Without this spinlock_exit() may see owepree

svn commit: r355820 - in head: share/man/man4 sys/compat/linux

2019-12-16 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Dec 16 20:15:44 2019 New Revision: 355820 URL: https://svnweb.freebsd.org/changeset/base/355820 Log: Add a hack to make ^T work for Linux binaries, enabled with 'compat.linux.preserve_vstatus=1' sysctl. MFC after:2 weeks Sponsored by: The FreeBSD Foundation

Re: svn commit: r355818 - in head: share/man/man4 sys/amd64/linux sys/amd64/linux32 sys/arm64/linux sys/compat/linux sys/i386/linux

2019-12-16 Thread Enji Cooper
> On Dec 16, 2019, at 12:07, Edward Tomasz Napierala wrote: > > Author: trasz > Date: Mon Dec 16 20:07:04 2019 > New Revision: 355818 > URL: https://svnweb.freebsd.org/changeset/base/355818 > > Log: > Add compat.linux.emul_path, so it can be set to something other > than "/compat/linux". Us

svn commit: r355821 - in head: sbin/geom usr.sbin/ppp

2019-12-16 Thread Warner Losh
Author: imp Date: Mon Dec 16 21:06:24 2019 New Revision: 355821 URL: https://svnweb.freebsd.org/changeset/base/355821 Log: Remove all the RELEASE_CRUNCH defines, they are useless. RELEASE_CRUNCH has been broken for a very long time. Remove the last remants from the tree. Modified: head

svn commit: r355824 - in head/sys/dev: exca pccbb

2019-12-16 Thread Warner Losh
Author: imp Date: Mon Dec 16 21:35:02 2019 New Revision: 355824 URL: https://svnweb.freebsd.org/changeset/base/355824 Log: Move attachment of pccard children into exca library. Attach the cardbus and pccard children before the sysctls are added rather than after. Modified: head/sys/dev/ex

svn commit: r355822 - in head/sys: conf dev/pccbb modules/cbb

2019-12-16 Thread Warner Losh
Author: imp Date: Mon Dec 16 21:34:51 2019 New Revision: 355822 URL: https://svnweb.freebsd.org/changeset/base/355822 Log: We'll never have multiple slots a cardbus bridge. So, replace exca array with a singleton. Also, pccbb isa attachment is never going to happen, do disconnect it from

svn commit: r355823 - in head/sys/dev: exca pccbb

2019-12-16 Thread Warner Losh
Author: imp Date: Mon Dec 16 21:34:57 2019 New Revision: 355823 URL: https://svnweb.freebsd.org/changeset/base/355823 Log: Add slot number ivar to return which slot number the child is attached to. This will always be 0 for pccbb, but may be non-zero for other kinds of bridges, should th

svn commit: r355825 - in head/stand/i386: common libi386

2019-12-16 Thread Warner Losh
Author: imp Date: Mon Dec 16 21:52:12 2019 New Revision: 355825 URL: https://svnweb.freebsd.org/changeset/base/355825 Log: Use symbolic names for int13 calls For all the INT13 calls, use symbolic names instead of magic numbers. This makes it easier to understand what the code is doing w/

svn commit: r355826 - head/lib/libxo head/lib/libxo/encoder/csv head/lib/libxo/libxo head/lib/libxo/tests head/lib/libxo/tests/encoder head/usr.bin/xo vendor/Juniper/libxo

2019-12-16 Thread Phil Shafer
Author: phil Date: Mon Dec 16 22:05:03 2019 New Revision: 355826 URL: https://svnweb.freebsd.org/changeset/base/355826 Log: Allow proper builds of libxo's CSV encoder: - Move libxo.a build to subdirectory (lib/libxo/libxo/Makefile) - Add .WAIT target to delay encoder build til after libxo

svn commit: r355827 - head/sys/dev/pccbb

2019-12-16 Thread Warner Losh
Author: imp Date: Mon Dec 16 23:08:09 2019 New Revision: 355827 URL: https://svnweb.freebsd.org/changeset/base/355827 Log: Add back accidentally dropped masking... - PCI_MASK_CONFIG(sc->dev, CBBR_BRIDGECTRL, - & ~CBBM_BRIDGECTRL_INTR_IREQ_ISA_EN, 2); was accidentally

Re: svn commit: r355819 - in head/sys: arm/arm arm64/arm64 i386/i386 mips/mips powerpc/powerpc riscv/riscv

2019-12-16 Thread Mark Millard via svn-src-head
> Author: jeff > Date: Mon Dec 16 20:15:04 2019 > New Revision: 355819 > URL: > https://svnweb.freebsd.org/changeset/base/355819 > > > Log: > Repeat the spinlock_enter/exit pattern from amd64 on other architectures to > fix an assert violation introduced in r355784. Without this spinlock_ex

Re: svn commit: r355827 - head/sys/dev/pccbb

2019-12-16 Thread Warner Losh
On Mon, Dec 16, 2019 at 4:08 PM Warner Losh wrote: > Author: imp > Date: Mon Dec 16 23:08:09 2019 > New Revision: 355827 > URL: https://svnweb.freebsd.org/changeset/base/355827 > > Log: > Add back accidentally dropped masking... > > - PCI_MASK_CONFIG(sc->dev, CBBR_BRIDGECTRL, > -

svn commit: r355828 - head/sys/sys

2019-12-16 Thread Pedro F. Giffuni
Author: pfg Date: Mon Dec 16 23:55:30 2019 New Revision: 355828 URL: https://svnweb.freebsd.org/changeset/base/355828 Log: Double the size of ARG_MAX on LP64 platforms. As modern software keeps growing in size, we get requests to update the value of ARG_MAX in order to link the resulting

svn commit: r355829 - head/sys/mips/conf

2019-12-16 Thread Adrian Chadd
Author: adrian Date: Tue Dec 17 00:00:03 2019 New Revision: 355829 URL: https://svnweb.freebsd.org/changeset/base/355829 Log: [atheros] [mips] Add the GPIO driver (back) to the TL-WDR3600/TL-WDR4300 kernel. So it turns out that sometime in the past I removed the GPIO bits here and was go

svn commit: r355830 - head/sys/dev/ata/chipsets

2019-12-16 Thread Brooks Davis
Author: brooks Date: Tue Dec 17 00:10:19 2019 New Revision: 355830 URL: https://svnweb.freebsd.org/changeset/base/355830 Log: Avoid a tautological bitwise compare. This looks like a bit of debugging code that sliped into the initial import of the new ATA framework. This changes the behavi

svn commit: r355831 - head/sys/cam/nvme

2019-12-16 Thread Warner Losh
Author: imp Date: Tue Dec 17 00:11:48 2019 New Revision: 355831 URL: https://svnweb.freebsd.org/changeset/base/355831 Log: NVME trim stuff. Add two sysctls to control pacing of nvme trims. kern.cam.nda.X.goal_trim is the number of upper layer BIO_DEELETE requests to try to collecet befo

svn commit: r355834 - head/sys/cam

2019-12-16 Thread Warner Losh
Author: imp Date: Tue Dec 17 00:13:30 2019 New Revision: 355834 URL: https://svnweb.freebsd.org/changeset/base/355834 Log: Eliminate the TRIM_ACTIVE flag. Rather than a trim active flag, have a counter that can be used to have a absolute limit on the number of trims in flight independent

svn commit: r355833 - head/sys/cam

2019-12-16 Thread Warner Losh
Author: imp Date: Tue Dec 17 00:13:26 2019 New Revision: 355833 URL: https://svnweb.freebsd.org/changeset/base/355833 Log: Tweak the ddb show cam iosched command a bit. For each of the different queue types, list the name of the queue. While it can be worked out from context, this makes i

svn commit: r355832 - head/sys/cam

2019-12-16 Thread Warner Losh
Author: imp Date: Tue Dec 17 00:13:21 2019 New Revision: 355832 URL: https://svnweb.freebsd.org/changeset/base/355832 Log: Add rate limiters to TRIM. Add rate limiters to trims. Trims are a bit different than reads or writes in that they can be combined, so some care needs to be taken w

svn commit: r355835 - in head/sys: geom sys

2019-12-16 Thread Warner Losh
Author: imp Date: Tue Dec 17 00:13:35 2019 New Revision: 355835 URL: https://svnweb.freebsd.org/changeset/base/355835 Log: Add BIO_SPEEDUP Add BIO_SPEEDUP bio command and g_io_speedup wrapper. It tells the lower layers that the upper layers are dealing with some shortage (dirty pages an

svn commit: r355837 - head/sys/cam

2019-12-16 Thread Warner Losh
Author: imp Date: Tue Dec 17 00:13:45 2019 New Revision: 355837 URL: https://svnweb.freebsd.org/changeset/base/355837 Log: Implement bio_speedup React to the BIO_SPEED command in the cam io scheduler by completing as successful BIO_DELETE commands that are pending, up to the length pass

svn commit: r355836 - head/sys/ufs/ffs

2019-12-16 Thread Warner Losh
Author: imp Date: Tue Dec 17 00:13:40 2019 New Revision: 355836 URL: https://svnweb.freebsd.org/changeset/base/355836 Log: Add BIO_SPEEDUP signalling to UFS When we have a resource shortage in UFS, send down a BIO_SPEEDUP to give the CAM I/O scheduler a heads up that we have a resource sh

Re: svn commit: r355831 - head/sys/cam/nvme

2019-12-16 Thread Steven Hartland
Be aware that ZFS already does a pretty decent job of this already, so the statement about upper layers isn't true for all. It even has different priorities for different request types so I'm a little concerned that doing it at both layers could cause issues. In addition to this if its anythin

Re: svn commit: r355832 - head/sys/cam

2019-12-16 Thread Steven Hartland
What if any is the impact on request ordering with this new delayed TRIM? On 17/12/2019 00:13, Warner Losh wrote: Author: imp Date: Tue Dec 17 00:13:21 2019 New Revision: 355832 URL: https://svnweb.freebsd.org/changeset/base/355832 Log: Add rate limiters to TRIM. Add rate limiters to

Re: svn commit: r355837 - head/sys/cam

2019-12-16 Thread Steven Hartland
Sticky keyboard there Warner? On a more serious note the fact that the controllers lie about the underlying location of data, the impact of skipping the TRIM requests can have a much more serious impact than one might think depending on the drive, so this type of optimisation can significantly

Re: svn commit: r355837 - head/sys/cam

2019-12-16 Thread Kevin Bowling
On Mon, Dec 16, 2019 at 5:44 PM Steven Hartland < steven.hartl...@multiplay.co.uk> wrote: > Sticky keyboard there Warner? LOL > On a more serious note the fact that the controllers lie about the > underlying > location of data, the impact of skipping the TRIM requests can have a > much more >

svn commit: r355838 - head/lib/libvmmapi

2019-12-16 Thread Marcelo Araujo
Author: araujo Date: Tue Dec 17 01:33:26 2019 New Revision: 355838 URL: https://svnweb.freebsd.org/changeset/base/355838 Log: Attempt to load vmm(4) module before creating a guest using vm_create() wrapper in libvmmapi. Submitted by: Rob Fairbanks Reviewed by: jhb MFC after:1 mo

svn commit: r355839 - head/lib/libvmmapi

2019-12-16 Thread Marcelo Araujo
Author: araujo Date: Tue Dec 17 01:37:02 2019 New Revision: 355839 URL: https://svnweb.freebsd.org/changeset/base/355839 Log: Forgotten to remove the previous if statement in commit r355838. MFC after:1 month Differential Revision:https://reviews.freebsd.org/D19400 Modified:

svn commit: r355840 - in head: sys/net usr.bin/netstat

2019-12-16 Thread Gleb Smirnoff
Author: glebius Date: Tue Dec 17 02:02:26 2019 New Revision: 355840 URL: https://svnweb.freebsd.org/changeset/base/355840 Log: Convert routing statistics to VNET_PCPUSTAT. Submitted by: ocochard Reviewed by: melifaro, glebius Differential Revision:https://reviews.freebsd.org/D2

Re: svn commit: r355832 - head/sys/cam

2019-12-16 Thread Warner Losh
The order is relaxed. Nothing in the system depends on ordering wrt BIO_DELETE requests. Apart from flushes, and one softdep thing in UFS, nothing does ordered writes. In a multithreaded world they don't really make sense because multiple upper layer consumers race each other to submit requests any

Re: svn commit: r355831 - head/sys/cam/nvme

2019-12-16 Thread Warner Losh
On Mon, Dec 16, 2019, 5:28 PM Steven Hartland < steven.hartl...@multiplay.co.uk> wrote: > Be aware that ZFS already does a pretty decent job of this already, so > the statement > about upper layers isn't true for all. It even has different priorities > for different request > types so I'm a little

Re: svn commit: r355837 - head/sys/cam

2019-12-16 Thread Warner Losh
On Mon, Dec 16, 2019 at 5:43 PM Steven Hartland < steven.hartl...@multiplay.co.uk> wrote: > Sticky keyboard there Warner? > Yea. I thought I'd fixed all those messages. > On a more serious note the fact that the controllers lie about the > underlying > location of data, the impact of skipping t

Re: svn commit: r355837 - head/sys/cam

2019-12-16 Thread Warner Losh
On Mon, Dec 16, 2019 at 5:54 PM Kevin Bowling wrote: > > > On Mon, Dec 16, 2019 at 5:44 PM Steven Hartland < > steven.hartl...@multiplay.co.uk> wrote: > >> Sticky keyboard there Warner? > > > LOL > Yea. I have a mac with a keyboard with a stuck delete key. I tried to edit the commit message on a

svn commit: r355841 - head/sys/mips/include

2019-12-16 Thread Warner Losh
Author: imp Date: Tue Dec 17 03:20:37 2019 New Revision: 355841 URL: https://svnweb.freebsd.org/changeset/base/355841 Log: Two minor issues: (1) Don't define load/store 64 atomics for o32. They aren't atomic there. (2) Add comment about why we need 64 atomic define on n32 only. Modified:

svn commit: r355842 - head/sys/dev/kbd

2019-12-16 Thread Kyle Evans
Author: kevans Date: Tue Dec 17 03:30:49 2019 New Revision: 355842 URL: https://svnweb.freebsd.org/changeset/base/355842 Log: kbd: const'ify a couple of keyboard_driver fields Nothing modifies these things, but const'ify out of an abundance of caution. If we could const'ify the definition

svn commit: r355843 - head/sys/cam/nvme

2019-12-16 Thread Warner Losh
Author: imp Date: Tue Dec 17 04:21:35 2019 New Revision: 355843 URL: https://svnweb.freebsd.org/changeset/base/355843 Log: Revert r355831 It wasn't supposed to change the defaults, but actually does. Back this out until that can be sorted out. Modified: head/sys/cam/nvme/nvme_da.c Mod

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

2019-12-16 Thread Cy Schubert
In message <201912162355.xbgntuq6078...@repo.freebsd.org>, "Pedro F. Giffuni" w rites: > Author: pfg > Date: Mon Dec 16 23:55:30 2019 > New Revision: 355828 > URL: https://svnweb.freebsd.org/changeset/base/355828 > > Log: > Double the size of ARG_MAX on LP64 platforms. > > As modern softwar

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

2019-12-16 Thread Warner Losh
On Mon, Dec 16, 2019, 9:42 PM Cy Schubert wrote: > In message <201912162355.xbgntuq6078...@repo.freebsd.org>, "Pedro F. > Giffuni" w > rites: > > Author: pfg > > Date: Mon Dec 16 23:55:30 2019 > > New Revision: 355828 > > URL: https://svnweb.freebsd.org/changeset/base/355828 > > > > Log: > > Do

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

2019-12-16 Thread Cy Schubert
In message , Warner Losh writes: > --9630860599df06a0 > Content-Type: text/plain; charset="UTF-8" > > On Mon, Dec 16, 2019, 9:42 PM Cy Schubert wrote: > > > In message <201912162355.xbgntuq6078...@repo.freebsd.org>, "Pedro F. > > Giffuni" w > > rites: > > > Author: pfg > > > Date: Mon

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

2019-12-16 Thread Warner Losh
On Mon, Dec 16, 2019, 9:57 PM Cy Schubert wrote: > In message > om> > , Warner Losh writes: > > --9630860599df06a0 > > Content-Type: text/plain; charset="UTF-8" > > > > On Mon, Dec 16, 2019, 9:42 PM Cy Schubert > wrote: > > > > > In message <201912162355.xbgntuq6078...@repo.freebsd.