svn commit: r363880 - head/sys/dev/safexcel

2020-08-04 Thread Li-Wen Hsu
Author: lwhsu Date: Wed Aug 5 05:58:25 2020 New Revision: 363880 URL: https://svnweb.freebsd.org/changeset/base/363880 Log: Appease gcc's -Wparentheses (and -Werror) Sponsored by: The FreeBSD Foundation Modified: head/sys/dev/safexcel/safexcel.c Modified: head/sys/dev/safexcel/safexcel

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

2020-08-04 Thread Mateusz Guzik
Author: mjg Date: Tue Aug 4 23:09:15 2020 New Revision: 363875 URL: https://svnweb.freebsd.org/changeset/base/363875 Log: ufs: only pass LK_ADAPTIVE if LK_NODDLKTREAT is set This restores the pre-adaptive spinning state for SU which livelocks otherwise. Note this is a bug in SU. Rep

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

2020-08-04 Thread Mateusz Guzik
Author: mjg Date: Tue Aug 4 23:07:42 2020 New Revision: 363874 URL: https://svnweb.freebsd.org/changeset/base/363874 Log: vfs: support lockless dotdot lookup Tested by:pho Modified: head/sys/kern/vfs_cache.c head/sys/kern/vfs_subr.c head/sys/sys/vnode.h Modified: head/sys/kern/

svn commit: r363873 - head/sys/kern

2020-08-04 Thread Mateusz Guzik
Author: mjg Date: Tue Aug 4 23:07:00 2020 New Revision: 363873 URL: https://svnweb.freebsd.org/changeset/base/363873 Log: cache: add NCF_WIP flag This allows making half-constructed entries visible to the lockless lookup, which now can check for either "not yet fully constructed" and "no

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

2020-08-04 Thread Mateusz Guzik
Author: mjg Date: Tue Aug 4 23:04:29 2020 New Revision: 363872 URL: https://svnweb.freebsd.org/changeset/base/363872 Log: cache: add cache_purge_vgone cache_purge locklessly checks whether the vnode at hand has any namecache entries. This can race with a concurrent purge which managed to

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

2020-08-04 Thread Mateusz Guzik
Author: mjg Date: Tue Aug 4 23:00:00 2020 New Revision: 363871 URL: https://svnweb.freebsd.org/changeset/base/363871 Log: mtx: add mtx_wait_unlocked Modified: head/sys/kern/kern_mutex.c head/sys/sys/mutex.h Modified: head/sys/kern/kern_mutex.c =

svn commit: r363870 - head/sys/cam/mmc

2020-08-04 Thread Ilya Bakulin
Author: kibab Date: Tue Aug 4 21:58:43 2020 New Revision: 363870 URL: https://svnweb.freebsd.org/changeset/base/363870 Log: Minor cleanups in mmc_xpt.c * Downgrade some CAM debug messages from _INFO to _DEBUG level; * Add KASSERT for the case when we suspect incorrect CAM SIM initializ

svn commit: r363869 - head/sys/tools

2020-08-04 Thread Kyle Evans
Author: kevans Date: Tue Aug 4 21:49:13 2020 New Revision: 363869 URL: https://svnweb.freebsd.org/changeset/base/363869 Log: makesyscalls.lua: improve syscall ordering validation There were two separate issues here: 1.) #if/#else wasn't taken into account at all for maxsyscall figures

svn commit: r363868 - head/sbin/route/tests

2020-08-04 Thread Olivier Cochard
Author: olivier (ports committer) Date: Tue Aug 4 21:34:13 2020 New Revision: 363868 URL: https://svnweb.freebsd.org/changeset/base/363868 Log: Skip sbin/route tests if jail not installed (WITHOUT_JAIL). Approved by: kp Sponsored by: Netflix Differential Revision:https://revie

svn commit: r363867 - head/lib/libdevinfo

2020-08-04 Thread Eric van Gyzen
Author: vangyzen Date: Tue Aug 4 21:09:36 2020 New Revision: 363867 URL: https://svnweb.freebsd.org/changeset/base/363867 Log: devinfo: add man page links Add man page links for all functions in devinfo(3). Reported by: vim MFC after:2 weeks Sponsored by: Dell EMC Isilon Mod

svn commit: r363866 - head/lib/libdevinfo

2020-08-04 Thread Eric van Gyzen
Author: vangyzen Date: Tue Aug 4 21:05:53 2020 New Revision: 363866 URL: https://svnweb.freebsd.org/changeset/base/363866 Log: devinfo: fix memory leak on error paths Refactor to create devinfo_free_dev(). Call it to plug a memory leak on two error paths in devinfo_init_devices().

svn commit: r363865 - head/sys/dev/iommu

2020-08-04 Thread Ruslan Bukin
Author: br Date: Tue Aug 4 20:54:12 2020 New Revision: 363865 URL: https://svnweb.freebsd.org/changeset/base/363865 Log: Remove unneeded cast to struct iommu_domain *. Sponsored by: DARPA, AFRL Modified: head/sys/dev/iommu/iommu_gas.c Modified: head/sys/dev/iommu/iommu_gas.c ==

svn commit: r363864 - head/sys/x86/iommu

2020-08-04 Thread Ruslan Bukin
Author: br Date: Tue Aug 4 20:51:05 2020 New Revision: 363864 URL: https://svnweb.freebsd.org/changeset/base/363864 Log: Add a few macroses for conversion between DMAR unit, domain, ctx and IOMMU unit, domain, ctx. Reviewed by: kib Sponsored by: DARPA, AFRL Differential Revision:

svn commit: r363863 - head/sys/kern

2020-08-04 Thread Mateusz Guzik
Author: mjg Date: Tue Aug 4 20:31:03 2020 New Revision: 363863 URL: https://svnweb.freebsd.org/changeset/base/363863 Log: rms: fix typo: bitmamp -> bitmap Reported by: kib Modified: head/sys/kern/kern_rmlock.c Modified: head/sys/kern/kern_rmlock.c =

svn commit: r363862 - head/sys/cam/mmc

2020-08-04 Thread Emmanuel Vadot
Author: manu Date: Tue Aug 4 20:04:00 2020 New Revision: 363862 URL: https://svnweb.freebsd.org/changeset/base/363862 Log: mmccam: Hold the periph during init We need to sleep during this routine so acquire the cam hold too. Reviewed by: imp Differential Revision:https://re

svn commit: r363861 - head/sys/cam/mmc

2020-08-04 Thread Emmanuel Vadot
Author: manu Date: Tue Aug 4 20:02:23 2020 New Revision: 363861 URL: https://svnweb.freebsd.org/changeset/base/363861 Log: mmcam: Use a static length sbuf buffer We cannot sleep during cam proto_announce and sbuf sleeps so use a static length buffer like nvme(4) Reviewed by: kibab

svn commit: r363860 - head/sys/cam/mmc

2020-08-04 Thread Emmanuel Vadot
Author: manu Date: Tue Aug 4 20:00:21 2020 New Revision: 363860 URL: https://svnweb.freebsd.org/changeset/base/363860 Log: mmccam: mmc_xpt: We're only interested about losing the device Remove all the uneeded printfs Reviewed by: imp, kibab Differential Revision:https://rev

svn commit: r363859 - head/sys/kern

2020-08-04 Thread Mateusz Guzik
Author: mjg Date: Tue Aug 4 19:55:26 2020 New Revision: 363859 URL: https://svnweb.freebsd.org/changeset/base/363859 Log: cache: factor away failed vexec handling Modified: head/sys/kern/vfs_cache.c Modified: head/sys/kern/vfs_cache.c

svn commit: r363858 - head/sys/kern

2020-08-04 Thread Mateusz Guzik
Author: mjg Date: Tue Aug 4 19:55:00 2020 New Revision: 363858 URL: https://svnweb.freebsd.org/changeset/base/363858 Log: cache: assorted tidy ups Modified: head/sys/kern/vfs_cache.c Modified: head/sys/kern/vfs_cache.c

svn commit: r363857 - head/sys/kern

2020-08-04 Thread Mateusz Guzik
Author: mjg Date: Tue Aug 4 19:54:37 2020 New Revision: 363857 URL: https://svnweb.freebsd.org/changeset/base/363857 Log: cache: factor away lockless dot lookup and add missing stat + sdt probe Modified: head/sys/kern/vfs_cache.c Modified: head/sys/kern/vfs_cache.c =

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

2020-08-04 Thread Mateusz Guzik
Author: mjg Date: Tue Aug 4 19:54:10 2020 New Revision: 363856 URL: https://svnweb.freebsd.org/changeset/base/363856 Log: vfs: add vfs_op_thread_enter/exit _crit variants and employ them in the namecache. Eliminates all spurious checks for preemption. Modified: head/sys/kern/vfs_cache.

svn commit: r363855 - head/sys/kern

2020-08-04 Thread Mateusz Guzik
Author: mjg Date: Tue Aug 4 19:52:52 2020 New Revision: 363855 URL: https://svnweb.freebsd.org/changeset/base/363855 Log: cache: add missing numcache detrement on insertion failure Modified: head/sys/kern/vfs_cache.c Modified: head/sys/kern/vfs_cache.c ==

svn commit: r363854 - head/sys/kern

2020-08-04 Thread Mateusz Guzik
Author: mjg Date: Tue Aug 4 19:52:16 2020 New Revision: 363854 URL: https://svnweb.freebsd.org/changeset/base/363854 Log: rms: add a comment explaining performance deficiencies of write locking Modified: head/sys/kern/kern_rmlock.c Modified: head/sys/kern/kern_rmlock.c =

svn commit: r363853 - in head/sys/gnu/dts: arm arm64/allwinner arm64/altera arm64/amlogic arm64/arm arm64/freescale arm64/hisilicon arm64/intel arm64/marvell arm64/mediatek arm64/nvidia arm64/qcom ...

2020-08-04 Thread Emmanuel Vadot
Author: manu Date: Tue Aug 4 19:44:43 2020 New Revision: 363853 URL: https://svnweb.freebsd.org/changeset/base/363853 Log: Import DTS files for arm, arm64, riscv from Linux 5.8 MFC after:2 months Added: head/sys/gnu/dts/arm/am5729-beagleboneai.dts - copied unchanged from r36385

svn commit: r363852 - in head/sys/dev: mpr mps

2020-08-04 Thread Alexander Motin
Author: mav Date: Tue Aug 4 19:27:03 2020 New Revision: 363852 URL: https://svnweb.freebsd.org/changeset/base/363852 Log: Remove extra memset() left after r342388. This memset() wiped MPI2_FUNCTION_SCSI_TASK_MGMT set by mprsas_alloc_tm(), that broke target reset on device removal, making

Re: svn commit: r363849 - head/share/mk

2020-08-04 Thread John Baldwin
On 8/4/20 11:24 AM, John Baldwin wrote: > Author: jhb > Date: Tue Aug 4 18:24:46 2020 > New Revision: 363849 > URL: https://svnweb.freebsd.org/changeset/base/363849 > > Log: > Disable errors for -Wsystem-headers for GCC on aarch64. > > GCC's own arm_neon.h triggers multiple warnings on bot

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

2020-08-04 Thread Emmanuel Vadot
On Tue, 4 Aug 2020 13:11:02 -0500 Alan Cox wrote: > > On 8/4/20 10:25 AM, Emmanuel Vadot wrote: > > Author: manu > > Date: Tue Aug 4 15:25:22 2020 > > New Revision: 363842 > > URL: https://svnweb.freebsd.org/changeset/base/363842 > > > > Log: > >linuxkpi: Add clear_bit_unlock > > > >

svn commit: r363849 - head/share/mk

2020-08-04 Thread John Baldwin
Author: jhb Date: Tue Aug 4 18:24:46 2020 New Revision: 363849 URL: https://svnweb.freebsd.org/changeset/base/363849 Log: Disable errors for -Wsystem-headers for GCC on aarch64. GCC's own arm_neon.h triggers multiple warnings on both GCC 6 and GCC 9. Differential Revision:ht

svn commit: r363848 - head/lib/csu/mips

2020-08-04 Thread John Baldwin
Author: jhb Date: Tue Aug 4 18:23:32 2020 New Revision: 363848 URL: https://svnweb.freebsd.org/changeset/base/363848 Log: ld.bfd requires an explicit emulation for MIPS for ld -r. Unlike lld, ld.bfd doesn't infer the emulation from the first object file, but assumes its compiled in defau

svn commit: r363847 - head/share/mk

2020-08-04 Thread John Baldwin
Author: jhb Date: Tue Aug 4 18:20:39 2020 New Revision: 363847 URL: https://svnweb.freebsd.org/changeset/base/363847 Log: Disable errors for -Wredundant-decls for GCC 6+. GCC triggers warnings for this that clang does not for duplicate declarations of yylex(). Differential Revision:

svn commit: r363846 - head/share/mk

2020-08-04 Thread John Baldwin
Author: jhb Date: Tue Aug 4 18:19:29 2020 New Revision: 363846 URL: https://svnweb.freebsd.org/changeset/base/363846 Log: Turn off errors for -Wmaybe-uninitialized in GCC 6+. Recent changes to trigger this warning and seem like a false positive. Differential Revision:https:

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

2020-08-04 Thread Alan Cox
On 8/4/20 10:25 AM, Emmanuel Vadot wrote: Author: manu Date: Tue Aug 4 15:25:22 2020 New Revision: 363842 URL: https://svnweb.freebsd.org/changeset/base/363842 Log: linuxkpi: Add clear_bit_unlock This calls clear_bit and adds a memory barrier. Sponsored by: The FreeBSD Foundat

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

2020-08-04 Thread Emmanuel Vadot
Author: manu Date: Tue Aug 4 15:27:32 2020 New Revision: 363843 URL: https://svnweb.freebsd.org/changeset/base/363843 Log: linuxkpi: Add time_after32 and time_before32 This compare two 32 bits times Sponsored by: The FreeBSD Foundation Reviewed by: kib, hselasky MFC after:1 w

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

2020-08-04 Thread Emmanuel Vadot
Author: manu Date: Tue Aug 4 15:25:22 2020 New Revision: 363842 URL: https://svnweb.freebsd.org/changeset/base/363842 Log: linuxkpi: Add clear_bit_unlock This calls clear_bit and adds a memory barrier. Sponsored by: The FreeBSD Foundation Reviewed by: hselasky MFC after:1

svn commit: r363841 - head/sys/netinet6

2020-08-04 Thread Mark Johnston
Author: markj Date: Tue Aug 4 15:00:02 2020 New Revision: 363841 URL: https://svnweb.freebsd.org/changeset/base/363841 Log: Remove an incorrect assertion from in6p_lookup_mcast_ifp(). The socket may be bound to an IPv4-mapped IPv6 address. However, the inp address is not relevant to the

svn commit: r363840 - head/sys/vm

2020-08-04 Thread Mark Johnston
Author: markj Date: Tue Aug 4 14:59:43 2020 New Revision: 363840 URL: https://svnweb.freebsd.org/changeset/base/363840 Log: Remove most lingering references to the page lock in comments. Finish updating comments to reflect new locking protocols introduced over the past year. In particul

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

2020-08-04 Thread Emmanuel Vadot
Author: manu Date: Tue Aug 4 14:53:41 2020 New Revision: 363839 URL: https://svnweb.freebsd.org/changeset/base/363839 Log: Re-apply r363564. We now have linux/sizes.h in the tree. Modified: head/sys/compat/linuxkpi/common/include/linux/dma-mapping.h Modified: head/sys/compat/linuxkpi/c

svn commit: r363838 - in head/share/examples: ipfilter smbfs smbfs/print

2020-08-04 Thread Emmanuel Vadot
Author: manu Date: Tue Aug 4 14:48:45 2020 New Revision: 363838 URL: https://svnweb.freebsd.org/changeset/base/363838 Log: pkgbase: Remove the last users of the FreeBSD-example package Reviewed by: emaste Differential Revision:https://reviews.freebsd.org/D24176 Modified: head

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

2020-08-04 Thread Emmanuel Vadot
Author: manu Date: Tue Aug 4 14:45:22 2020 New Revision: 363837 URL: https://svnweb.freebsd.org/changeset/base/363837 Log: linuxkpi: Add nested variant of mutex_lock_interruptible We don't do anything with the _nesteds variant so just call mutex_lock_interruptible Sponsoredby: The Fr

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

2020-08-04 Thread Emmanuel Vadot
Author: manu Date: Tue Aug 4 14:44:16 2020 New Revision: 363836 URL: https://svnweb.freebsd.org/changeset/base/363836 Log: linuxkpi: Add kref_put_lock Same as kref_put but in addition to calling the rel function it will acquire the lock first. Sponsored by: The FreeBSD Foundation

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

2020-08-04 Thread Emmanuel Vadot
Author: manu Date: Tue Aug 4 14:42:38 2020 New Revision: 363835 URL: https://svnweb.freebsd.org/changeset/base/363835 Log: linuxkpi: Add linux/sizes.h This file contain some defines for common sizes. Sponsored-by: The FreeBSD Foundation Reviewed by: hselasky, emaste MFC after:

svn commit: r363834 - in head: . share/man/man9 sys/dev/hwpmc sys/dev/ioat sys/dev/iommu sys/dev/nvme sys/kern sys/net sys/sys sys/vm sys/x86/x86

2020-08-04 Thread Mark Johnston
Author: markj Date: Tue Aug 4 13:58:36 2020 New Revision: 363834 URL: https://svnweb.freebsd.org/changeset/base/363834 Log: Remove free_domain() and uma_zfree_domain(). These functions were introduced before UMA started ensuring that freed memory gets placed in domain-local caches. They

svn commit: r363830 - head/usr.sbin/iovctl

2020-08-04 Thread Gordon Bergling
Author: gbe (doc committer) Date: Tue Aug 4 11:13:13 2020 New Revision: 363830 URL: https://svnweb.freebsd.org/changeset/base/363830 Log: iovctl.conf(5): Use Lk macro for the URL of the UCL website PR: 248334 Reported by: chuck at tuffli dot net Reviewed by: bcr, 0mp Appr

svn commit: r363829 - head/lib/libc/gen

2020-08-04 Thread Gordon Bergling
Author: gbe (doc committer) Date: Tue Aug 4 08:46:28 2020 New Revision: 363829 URL: https://svnweb.freebsd.org/changeset/base/363829 Log: directory(3): Add an ERRORS section - Add an ERRORS section for opendir(3) and closedir(3) - Document also the errors of readdir(3), readdir_r(3) and