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

2019-12-15 Thread Kyle Evans
Author: kevans Date: Mon Dec 16 04:52:06 2019 New Revision: 355799 URL: https://svnweb.freebsd.org/changeset/base/355799 Log: kbd: patch linker set methods, too This is needed after r355796. Some double-registration of kbd drivers needs to be sorted out, then this sysinit will simply add

svn commit: r355798 - in head/sys: dev/kbd sys

2019-12-15 Thread Kyle Evans
Author: kevans Date: Mon Dec 16 03:12:53 2019 New Revision: 355798 URL: https://svnweb.freebsd.org/changeset/base/355798 Log: kbd: remove kbdsw, store pointer to driver in each keyboard_t The previous implementation relied on a kbdsw array that mirrored the global keyboards array. This is

svn commit: r355797 - head/sys/arm/samsung/exynos

2019-12-15 Thread Kyle Evans
Author: kevans Date: Mon Dec 16 03:05:35 2019 New Revision: 355797 URL: https://svnweb.freebsd.org/changeset/base/355797 Log: chrome_kb: remove default get_fkeystr/diag implementations This file was missed in r355796, but no harm would have come from this. Modified: head/sys/arm/samsung/

svn commit: r355796 - in head/sys/dev: adb atkbdc gpio hyperv/input kbd kbdmux uart usb/input vkbd

2019-12-15 Thread Kyle Evans
Author: kevans Date: Mon Dec 16 02:44:56 2019 New Revision: 355796 URL: https://svnweb.freebsd.org/changeset/base/355796 Log: kbd: provide default implementations of get_fkeystr/diag Most keyboard drivers are using the genkbd implementations as it is; formally use them for any that aren't

svn commit: r355795 - in stable: 11/sys/contrib/ipfilter/netinet 12/sys/contrib/ipfilter/netinet

2019-12-15 Thread Cy Schubert
Author: cy Date: Mon Dec 16 02:38:47 2019 New Revision: 355795 URL: https://svnweb.freebsd.org/changeset/base/355795 Log: MFC r355670: Rather than pass the address of the packet information control block to ipf_pcksum6(), directly pass the adddress of the mbuf to it. This reduces one po

svn commit: r355795 - in stable: 11/sys/contrib/ipfilter/netinet 12/sys/contrib/ipfilter/netinet

2019-12-15 Thread Cy Schubert
Author: cy Date: Mon Dec 16 02:38:47 2019 New Revision: 355795 URL: https://svnweb.freebsd.org/changeset/base/355795 Log: MFC r355670: Rather than pass the address of the packet information control block to ipf_pcksum6(), directly pass the adddress of the mbuf to it. This reduces one po

svn commit: r355794 - in head/sys/dev: adb atkbdc hyperv/input uart

2019-12-15 Thread Kyle Evans
Author: kevans Date: Mon Dec 16 02:05:44 2019 New Revision: 355794 URL: https://svnweb.freebsd.org/changeset/base/355794 Log: keyboard switch definitions: standardize on c99 initializers A future change will provide default implementations for some of these where it makes sense and most o

svn commit: r355793 - in head/sys: arm/versatile dev/gpio dev/hyperv/input dev/usb/input

2019-12-15 Thread Kyle Evans
Author: kevans Date: Mon Dec 16 01:37:03 2019 New Revision: 355793 URL: https://svnweb.freebsd.org/changeset/base/355793 Log: kbd drivers: use kbdd_* indirection for diag invocation These invocations were directly calling enkbd_diag(), rather than indirection back through kbdd_diag/kbdsw.

svn commit: r355792 - head/sys/sys

2019-12-15 Thread Mark Johnston
Author: markj Date: Mon Dec 16 01:27:14 2019 New Revision: 355792 URL: https://svnweb.freebsd.org/changeset/base/355792 Log: Remove a declaration of sched_clock() redundant after r355779. Modified: head/sys/sys/sched.h Modified: head/sys/sys/sched.h ==

svn commit: r355791 - head/sys/tools

2019-12-15 Thread Mateusz Guzik
Author: mjg Date: Mon Dec 16 00:07:51 2019 New Revision: 355791 URL: https://svnweb.freebsd.org/changeset/base/355791 Log: vfs: allow tail call optimisation in vops in the common case Most frequently used vops boil down to checking SDT probes, doing the call and checking again. There is n

svn commit: r355790 - in head/sys: cddl/contrib/opensolaris/uts/common/fs/zfs fs/autofs fs/cd9660 fs/deadfs fs/devfs fs/ext2fs fs/fdescfs fs/fifofs fs/fuse fs/msdosfs fs/nfsclient fs/nullfs fs/pseu...

2019-12-15 Thread Mateusz Guzik
Author: mjg Date: Mon Dec 16 00:06:22 2019 New Revision: 355790 URL: https://svnweb.freebsd.org/changeset/base/355790 Log: vfs: flatten vop vectors This eliminates the following loop from all VOP calls: while(vop != NULL && \ vop->vop_spare2 == NULL && vop->vop_bypass == NULL)

svn commit: r355789 - head/sys/kern

2019-12-15 Thread Mateusz Guzik
Author: mjg Date: Mon Dec 16 00:04:33 2019 New Revision: 355789 URL: https://svnweb.freebsd.org/changeset/base/355789 Log: mtx: eliminate recursion support from thread lock Now that it is not used after schedlock changes got merged. Note the unlock routine temporarily still checks for

svn commit: r355788 - head/sbin/camcontrol

2019-12-15 Thread Alexander Motin
Author: mav Date: Sun Dec 15 23:28:53 2019 New Revision: 355788 URL: https://svnweb.freebsd.org/changeset/base/355788 Log: Properly detect ATA sanitize errors. It seems I read specifications not careful enough. There are devices not setting successful completion bit, causing previous cod

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

2019-12-15 Thread Alan Cox
Author: alc Date: Sun Dec 15 22:41:57 2019 New Revision: 355787 URL: https://svnweb.freebsd.org/changeset/base/355787 Log: Apply a small optimization to pmap_remove_l3_range(). Specifically, hoist a PHYS_TO_VM_PAGE() operation that always returns the same vm_page_t out of the loop. (Since

svn commit: r355786 - in head: stand/libsa/zfs sys/cddl/boot/zfs

2019-12-15 Thread Toomas Soome
Author: tsoome Date: Sun Dec 15 21:52:40 2019 New Revision: 355786 URL: https://svnweb.freebsd.org/changeset/base/355786 Log: loader: rewrite zfs vdev initialization In some cases the pool discovery will get stuck in infinite loop while setting up the vdev children. To fix, we split

svn commit: r355785 - in stable: 11/sys/contrib/ipfilter/netinet 12/sys/contrib/ipfilter/netinet

2019-12-15 Thread Cy Schubert
Author: cy Date: Sun Dec 15 21:28:08 2019 New Revision: 355785 URL: https://svnweb.freebsd.org/changeset/base/355785 Log: MFC r355669: in6_cksum() returns zero when checksums are good. Modified: stable/12/sys/contrib/ipfilter/netinet/fil.c Directory Properties: stable/12/ (props chan

svn commit: r355785 - in stable: 11/sys/contrib/ipfilter/netinet 12/sys/contrib/ipfilter/netinet

2019-12-15 Thread Cy Schubert
Author: cy Date: Sun Dec 15 21:28:08 2019 New Revision: 355785 URL: https://svnweb.freebsd.org/changeset/base/355785 Log: MFC r355669: in6_cksum() returns zero when checksums are good. Modified: stable/11/sys/contrib/ipfilter/netinet/fil.c Directory Properties: stable/11/ (props chan

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

2019-12-15 Thread Jeff Roberson
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 Don't hold the scheduler lock while doing context switches. Instead we unlock after selecting the new thread and switch within a spinlock section le

svn commit: r355783 - head/sys/powerpc/powernv

2019-12-15 Thread Justin Hibbits
Author: jhibbits Date: Sun Dec 15 21:20:18 2019 New Revision: 355783 URL: https://svnweb.freebsd.org/changeset/base/355783 Log: powerpc/powernv: Set the PTCR for the Nest MMU The Nest MMU manages address translation for accelerators on the POWER9. To do so, it needs a page table, so expo

svn commit: r355782 - head/sys/kern

2019-12-15 Thread Jeff Roberson
Author: jeff Date: Sun Dec 15 21:19:41 2019 New Revision: 355782 URL: https://svnweb.freebsd.org/changeset/base/355782 Log: schedlock 3/4 Eliminate lock recursion from turnstiles. This was simply used to avoid tracking the top-level turnstile lock. explicitly check for it before picki

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

2019-12-15 Thread Jeff Roberson
Author: jeff Date: Sun Dec 15 21:18:07 2019 New Revision: 355781 URL: https://svnweb.freebsd.org/changeset/base/355781 Log: schedlock 2/4 Do all sleepqueue post-processing in sleepq_remove_thread() so that we do not require the thread lock after a context switch. Reviewed by: jhb, k

svn commit: r355780 - in head/sys: arm/arm arm/include kern sys

2019-12-15 Thread Ian Lepore
Author: ian Date: Sun Dec 15 21:16:35 2019 New Revision: 355780 URL: https://svnweb.freebsd.org/changeset/base/355780 Log: Rewrite arm kernel stack unwind code to work when unwinding through modules. The arm kernel stack unwinder has apparently never been able to unwind when the path of e

svn commit: r355779 - in head/sys: cddl/compat/opensolaris/sys compat/linux compat/linuxkpi/common/src dev/ocs_fc kern mips/nlm sys vm

2019-12-15 Thread Jeff Roberson
Author: jeff Date: Sun Dec 15 21:11:15 2019 New Revision: 355779 URL: https://svnweb.freebsd.org/changeset/base/355779 Log: schedlock 1/4 Eliminate recursion from most thread_lock consumers. Return from sched_add() without the thread_lock held. This eliminates unnecessary atomics and

svn commit: r355778 - head/sys/powerpc/mpc85xx

2019-12-15 Thread Justin Hibbits
Author: jhibbits Date: Sun Dec 15 21:08:40 2019 New Revision: 355778 URL: https://svnweb.freebsd.org/changeset/base/355778 Log: powerpc/mpc85xx: Clean up Freescale SATA driver a little * Remove unused ATA_IN/OUT macros, they just clutter up the file. * Fix some RID management bits for the

Re: svn commit: r355692 - head/sbin/fsirand

2019-12-15 Thread Rodney W. Grimes
> Author: cem > Date: Fri Dec 13 04:12:13 2019 > New Revision: 355692 > URL: https://svnweb.freebsd.org/changeset/base/355692 > > Log: > fsirand(8): Just use arc4random(3) > > Remove single use of dubious srandomdev(3) + random(3) and replace with > arc4random(3), as is used already in th

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

2019-12-15 Thread Rodney W. Grimes
> 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 "all rights reserved" > in > them as new copyright notices get added.

svn commit: r355777 - head/usr.bin/uniq

2019-12-15 Thread Ian Lepore
Author: ian Date: Sun Dec 15 18:05:18 2019 New Revision: 355777 URL: https://svnweb.freebsd.org/changeset/base/355777 Log: Support --all-repeats in uniq(1) for compatibility with gnu coreutils. This adds a new -D/--all-repeats option to uniq(1), which outputs each copy of any repeated lin

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

2019-12-15 Thread Conrad Meyer
Author: cem Date: Sun Dec 15 17:33:26 2019 New Revision: 355776 URL: https://svnweb.freebsd.org/changeset/base/355776 Log: Revert r355760, r355759 And remove the inline/deprecated attribute use entirely in stdlib.h, from r355747. The intent was to provide a buildable API transitionary pe

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

2019-12-15 Thread Kyle Evans
Author: kevans Date: Sun Dec 15 16:28:12 2019 New Revision: 355775 URL: https://svnweb.freebsd.org/changeset/base/355775 Log: kbd: convert kbdd_* macros to inline functions This reduces the noise when interested parties wish to de-Giant kbd; these accesses to kbdsw will need to be properl

Re: svn commit: r355759 - in head: include sys/sys

2019-12-15 Thread Warner Losh
On Sun, Dec 15, 2019, 12:21 AM Xin Li wrote: > > > On 2019-12-14 13:52, Conrad Meyer wrote: > > Author: cem > > Date: Sat Dec 14 21:52:49 2019 > > New Revision: 355759 > > URL: https://svnweb.freebsd.org/changeset/base/355759 > > > > Log: > > cdefs: Add __deprecated(message) function attribute

svn commit: r355774 - head/sys/dev/nvme

2019-12-15 Thread Michal Meloun
Author: mmel Date: Sun Dec 15 14:28:38 2019 New Revision: 355774 URL: https://svnweb.freebsd.org/changeset/base/355774 Log: Properly synchronize completion DMA buffers. Within command completion processing the callback function may access DMAed data buffer. Synchronize it before use, not aft

svn commit: r355773 - head/stand/libsa/zfs

2019-12-15 Thread Toomas Soome
Author: tsoome Date: Sun Dec 15 14:09:49 2019 New Revision: 355773 URL: https://svnweb.freebsd.org/changeset/base/355773 Log: loader: zfsimpl.c cstyle cleanup No functional changes intended. MFC after:1 week Modified: head/stand/libsa/zfs/zfsimpl.c Modified: head/stand/libsa/zf

svn commit: r355772 - in stable/12: libexec/getty sbin/ipfw

2019-12-15 Thread Xin LI
Author: delphij Date: Sun Dec 15 08:23:38 2019 New Revision: 355772 URL: https://svnweb.freebsd.org/changeset/base/355772 Log: MFC r355222, r355260: r355222: Use strlcat(). r355260: Simplify code with strlcpy/strlcat. Modified: stable/12/libexec/getty/main.c stable/12/libexec/getty/s