svn commit: r357360 - head/sys/ufs/ufs

2020-01-31 Thread Mateusz Guzik
Author: mjg Date: Sat Feb 1 06:41:44 2020 New Revision: 357360 URL: https://svnweb.freebsd.org/changeset/base/357360 Log: ufs: drop ufs_markatime from ufs_fifoops The routine is only called on mmap and exec, both of which are invalid for this type. Reviewed by: kib Differential

svn commit: r357359 - head/sys/kern

2020-01-31 Thread Mateusz Guzik
Author: mjg Date: Sat Feb 1 06:40:35 2020 New Revision: 357359 URL: https://svnweb.freebsd.org/changeset/base/357359 Log: vfs: save on atomics on the root vnode for absolute lookups There are 2 back-to-back atomics on the vnode, but we can check upfront if one is sufficient. Similarly

svn commit: r357357 - in head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs: . sys

2020-01-31 Thread Mateusz Guzik
Author: mjg Date: Sat Feb 1 06:39:10 2020 New Revision: 357357 URL: https://svnweb.freebsd.org/changeset/base/357357 Log: zfs: ZFS_WLOCK_TEARDOWN_INACTIVE_WLOCKED -> ZFS_TEARDOWN_INACTIVE_WLOCKED Fix up the argument used in one case as well. Modified:

svn commit: r357361 - in head/sys: kern sys ufs/ufs vm

2020-01-31 Thread Mateusz Guzik
Author: mjg Date: Sat Feb 1 06:46:55 2020 New Revision: 357361 URL: https://svnweb.freebsd.org/changeset/base/357361 Log: vfs: replace VOP_MARKATIME with VOP_MMAPPED The routine is only provided by ufs and is only used on mmap and exec. Reviewed by: kib Differential Revision:

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

2020-01-31 Thread Mateusz Guzik
Author: mjg Date: Sat Feb 1 06:39:49 2020 New Revision: 357358 URL: https://svnweb.freebsd.org/changeset/base/357358 Log: vfs: add vrefactn Differential Revision:https://reviews.freebsd.org/D23427 Modified: head/sys/kern/vfs_subr.c head/sys/sys/vnode.h Modified:

Re: svn commit: r357337 - head/sys/riscv/include

2020-01-31 Thread John Baldwin
On 1/31/20 1:17 PM, Conrad Meyer wrote: > Hi John, > > Isn't the 32-bit MSTATUS_SD and SSTATUS_SD also UB without explicit > unsigned suffix? Possibly, but I doubt we will have a 32-bit RISC-V port. I'd probably prefer to just use explicit hex values (0x8000, etc.) since the compiler will

svn commit: r357356 - head/sys/net

2020-01-31 Thread Kristof Provost
Author: kp Date: Fri Jan 31 22:54:44 2020 New Revision: 357356 URL: https://svnweb.freebsd.org/changeset/base/357356 Log: vlan: Fix panic when vnet jail with a vlan interface is destroyed During vnet cleanup vnet_if_uninit() checks that no more interfaces remain in the vnet. Any

Re: svn commit: r357349 - in head/sys: conf modules/tpm

2020-01-31 Thread Dimitry Andric
Hmm yes, you are quite right. Other parts of the code also seem to use ~TPM_XXX, and the WR4() inline function called takes a uint32_t. I'll revert my change and apply the tilde version instead! -Dimitry > On 31 Jan 2020, at 22:13, Conrad Meyer wrote: > > Hi Dimitry, > > Do you think

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

2020-01-31 Thread Jeff Roberson
Author: jeff Date: Fri Jan 31 22:21:15 2020 New Revision: 357355 URL: https://svnweb.freebsd.org/changeset/base/357355 Log: Add two missing fences with comments describing them. These were found by inspection and after a lengthy discussion with jhb and kib. They have not produced test

svn commit: r357354 - in stable: 11/stand/i386/gptboot 12/stand/i386/gptboot

2020-01-31 Thread Dimitry Andric
Author: dim Date: Fri Jan 31 21:20:22 2020 New Revision: 357354 URL: https://svnweb.freebsd.org/changeset/base/357354 Log: MFC r357232: Merge r357231 from the clang1000-import branch: Work around assembler error from clang 10.0.0 in gptboot: stand/i386/gptboot/gptldr.S:141:3:

svn commit: r357354 - in stable: 11/stand/i386/gptboot 12/stand/i386/gptboot

2020-01-31 Thread Dimitry Andric
Author: dim Date: Fri Jan 31 21:20:22 2020 New Revision: 357354 URL: https://svnweb.freebsd.org/changeset/base/357354 Log: MFC r357232: Merge r357231 from the clang1000-import branch: Work around assembler error from clang 10.0.0 in gptboot: stand/i386/gptboot/gptldr.S:141:3:

Re: svn commit: r357337 - head/sys/riscv/include

2020-01-31 Thread Conrad Meyer
Hi John, Isn't the 32-bit MSTATUS_SD and SSTATUS_SD also UB without explicit unsigned suffix? Best, Conrad On Fri, Jan 31, 2020 at 9:49 AM John Baldwin wrote: > > Author: jhb > Date: Fri Jan 31 17:49:15 2020 > New Revision: 357337 > URL: https://svnweb.freebsd.org/changeset/base/357337 > >

Re: svn commit: r357349 - in head/sys: conf modules/tpm

2020-01-31 Thread Conrad Meyer
Hi Dimitry, Do you think maybe the intent is to use ~TPM_CRB_CTRL_CANCEL_CMD instead? Plain "0" might also make sense. But I think the compiler is right here and the warning should not be disabled — !BIT(foo) doesn't really make sense for a register. It happens to affect the right bit only

svn commit: r357353 - head/sys/conf

2020-01-31 Thread Bryan Drewery
Author: bdrewery Date: Fri Jan 31 21:08:33 2020 New Revision: 357353 URL: https://svnweb.freebsd.org/changeset/base/357353 Log: make all is needed to generate .depend.* PR: 241746 X-MFC-With: r357043 MFC after:1 week Modified: head/sys/conf/kern.post.mk Modified:

svn commit: r357352 - head/tools/uma/smrstress

2020-01-31 Thread Konstantin Belousov
Author: kib Date: Fri Jan 31 20:30:50 2020 New Revision: 357352 URL: https://svnweb.freebsd.org/changeset/base/357352 Log: smrstress: Add 'publishing' fences to operations on smrs_current. Reported and tested by: andrew Reviewed by: jeff Sponsored by: The FreeBSD Foundation

svn commit: r357351 - in stable: 10/contrib/binutils/bfd 11/contrib/binutils/bfd 12/contrib/binutils/bfd 9/contrib/binutils/bfd

2020-01-31 Thread Dimitry Andric
Author: dim Date: Fri Jan 31 20:04:32 2020 New Revision: 357351 URL: https://svnweb.freebsd.org/changeset/base/357351 Log: MFC r357226: Merge r357224 from the clang1000-import branch: Fix the following -Werror warning from clang 10.0.0 in binutils:

svn commit: r357351 - in stable: 10/contrib/binutils/bfd 11/contrib/binutils/bfd 12/contrib/binutils/bfd 9/contrib/binutils/bfd

2020-01-31 Thread Dimitry Andric
Author: dim Date: Fri Jan 31 20:04:32 2020 New Revision: 357351 URL: https://svnweb.freebsd.org/changeset/base/357351 Log: MFC r357226: Merge r357224 from the clang1000-import branch: Fix the following -Werror warning from clang 10.0.0 in binutils:

svn commit: r357351 - in stable: 10/contrib/binutils/bfd 11/contrib/binutils/bfd 12/contrib/binutils/bfd 9/contrib/binutils/bfd

2020-01-31 Thread Dimitry Andric
Author: dim Date: Fri Jan 31 20:04:32 2020 New Revision: 357351 URL: https://svnweb.freebsd.org/changeset/base/357351 Log: MFC r357226: Merge r357224 from the clang1000-import branch: Fix the following -Werror warning from clang 10.0.0 in binutils:

svn commit: r357351 - in stable: 10/contrib/binutils/bfd 11/contrib/binutils/bfd 12/contrib/binutils/bfd 9/contrib/binutils/bfd

2020-01-31 Thread Dimitry Andric
Author: dim Date: Fri Jan 31 20:04:32 2020 New Revision: 357351 URL: https://svnweb.freebsd.org/changeset/base/357351 Log: MFC r357226: Merge r357224 from the clang1000-import branch: Fix the following -Werror warning from clang 10.0.0 in binutils:

svn commit: r357349 - in head/sys: conf modules/tpm

2020-01-31 Thread Dimitry Andric
Author: dim Date: Fri Jan 31 19:36:14 2020 New Revision: 357349 URL: https://svnweb.freebsd.org/changeset/base/357349 Log: Merge r357348 from the clang 10.0.0 import branch: Disable new clang 10.0.0 warnings about converting the result of shift operations to a boolean in tpm(4):

svn commit: r357347 - in head: share/mk usr.bin/lex

2020-01-31 Thread Dimitry Andric
Author: dim Date: Fri Jan 31 19:06:49 2020 New Revision: 357347 URL: https://svnweb.freebsd.org/changeset/base/357347 Log: Merge r357345 from the clang1000-import branch: Disable new clang 10.0.0 warnings about misleading indentation in flex. As this is contributed code with very

svn commit: r357346 - head/share/mk

2020-01-31 Thread Dimitry Andric
Author: dim Date: Fri Jan 31 19:06:01 2020 New Revision: 357346 URL: https://svnweb.freebsd.org/changeset/base/357346 Log: Merge r357342 from the clang1000-import branch: Work around two -Werror warning issues in googletest, which have been solved upstream in the mean time. The

svn commit: r357344 - head/sys/riscv/riscv

2020-01-31 Thread John Baldwin
Author: jhb Date: Fri Jan 31 19:00:48 2020 New Revision: 357344 URL: https://svnweb.freebsd.org/changeset/base/357344 Log: Add stricter checks on user changes to SSTATUS. Rather than trying to blacklist which bits userland can't write to via sigreturn() or setcontext(), only permit

svn commit: r357343 - head/usr.sbin/services_mkdb

2020-01-31 Thread Pedro F. Giffuni
Author: pfg Date: Fri Jan 31 18:55:21 2020 New Revision: 357343 URL: https://svnweb.freebsd.org/changeset/base/357343 Log: services: Add PROFInet and EtherCAT. Both are used in industrial networks. MFC after:1 week Modified: head/usr.sbin/services_mkdb/services Modified:

svn commit: r357341 - head/share/man/man5

2020-01-31 Thread Ed Maste
Author: emaste Date: Fri Jan 31 18:26:13 2020 New Revision: 357341 URL: https://svnweb.freebsd.org/changeset/base/357341 Log: regen src.conf.5 after r357338 BSD_CRTBEGIN retirement Modified: head/share/man/man5/src.conf.5 Modified: head/share/man/man5/src.conf.5

svn commit: r357340 - head/usr.sbin/bsnmpd/modules/snmp_pf

2020-01-31 Thread Dimitry Andric
Author: dim Date: Fri Jan 31 18:13:00 2020 New Revision: 357340 URL: https://svnweb.freebsd.org/changeset/base/357340 Log: Merge r357339 from the clang1000-import branch: Fix the following -Werror warning from clang 10.0.0 in bsnmpd: usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c:1661:4:

svn commit: r357338 - in head: . contrib/bmake/mk gnu/lib lib/csu share/mk targets/pseudo/userland/gnu tools/build/options

2020-01-31 Thread Ed Maste
Author: emaste Date: Fri Jan 31 18:04:04 2020 New Revision: 357338 URL: https://svnweb.freebsd.org/changeset/base/357338 Log: retire BSD_CRTBEGIN option BSD crt is currently used on all architectures (other than sparc64). Remove the option and use BSD crt everywhere as part of the GCC

svn commit: r357337 - head/sys/riscv/include

2020-01-31 Thread John Baldwin
Author: jhb Date: Fri Jan 31 17:49:15 2020 New Revision: 357337 URL: https://svnweb.freebsd.org/changeset/base/357337 Log: Fix 64-bit value of SSTATUS_SD to use an unsigned long. While here, fix MSTATUS_SD to match SSTATUS_SD. Reviewed by: mhorne MFC after:2 weeks Sponsored

svn commit: r357336 - in head: share/man/man4 sys/x86/cpufreq

2020-01-31 Thread Conrad Meyer
Author: cem Date: Fri Jan 31 17:40:41 2020 New Revision: 357336 URL: https://svnweb.freebsd.org/changeset/base/357336 Log: hwpstate(4): Ignore CurPstateLimit by default Add a sysctl knob to allow users to re-enable it, and document the knob and default in cpufreq.4. (While here, add a

svn commit: r357335 - head/release/arm64

2020-01-31 Thread Kyle Evans
Author: kevans Date: Fri Jan 31 15:56:08 2020 New Revision: 357335 URL: https://svnweb.freebsd.org/changeset/base/357335 Log: RPI3: Add RPi4 firmware files to the FAT partition I've discovered I have this local diff that never got committed -- this should have been a part of r355424.

svn commit: r357334 - in head: share/man/man9 sys/amd64/amd64 sys/arm/arm sys/arm64/arm64 sys/i386/i386 sys/kern sys/mips/mips sys/powerpc/powerpc sys/riscv/riscv sys/sparc64/sparc64 sys/sys sys/x8...

2020-01-31 Thread Mark Johnston
Author: markj Date: Fri Jan 31 15:43:33 2020 New Revision: 357334 URL: https://svnweb.freebsd.org/changeset/base/357334 Log: Reimplement stack capture of running threads on i386 and amd64. After r355784 the td_oncpu field is no longer synchronized by the thread lock, so the stack capture

Re: svn commit: r357006 - head/sys/net

2020-01-31 Thread Hans Petter Selasky
On 2020-01-23 02:27, Gleb Smirnoff wrote: @@ -6811,6 +6816,7 @@ iflib_debugnet_transmit(if_t ifp, struct mbuf *m) static int iflib_debugnet_poll(if_t ifp, int count) { + struct epoch_tracker et; if_ctx_t ctx; if_softc_ctx_t scctx; iflib_txq_t txq; @@ -6826,8

svn commit: r357333 - in stable/12: etc libexec/rc libexec/rc/rc.d share/man/man5 sys/sys

2020-01-31 Thread Warner Losh
Author: imp Date: Fri Jan 31 13:18:25 2020 New Revision: 357333 URL: https://svnweb.freebsd.org/changeset/base/357333 Log: MFC r354922 > Author: imp > Date: Wed Nov 20 23:45:31 2019 + > >Create /etc/os-release file. > >Each boot, regenerate /var/run/os-release

svn commit: r357332 - stable/11/sys/conf

2020-01-31 Thread Takahashi Yoshihiro
Author: nyan Date: Fri Jan 31 12:39:51 2020 New Revision: 357332 URL: https://svnweb.freebsd.org/changeset/base/357332 Log: MFC r357043: Fix kernel-tags target. > - A depend-file is broken up into .depend.*.o files. [1] > - Fix an assembly file support. > > PR: 241746

svn commit: r357331 - stable/12/sys/conf

2020-01-31 Thread Takahashi Yoshihiro
Author: nyan Date: Fri Jan 31 12:38:53 2020 New Revision: 357331 URL: https://svnweb.freebsd.org/changeset/base/357331 Log: MFC r357043: Fix kernel-tags target. > - A depend-file is broken up into .depend.*.o files. [1] > - Fix an assembly file support. > > PR: 241746

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

2020-01-31 Thread Andrew Turner
Author: andrew Date: Fri Jan 31 11:33:11 2020 New Revision: 357330 URL: https://svnweb.freebsd.org/changeset/base/357330 Log: Call the MAPTI command earlier in the ITS driver The GICv3 Software Overview suggests when allocating a new MSI/MSI-X interrupt we need to call MAPD followed by

svn commit: r357329 - head/sys/kern

2020-01-31 Thread Mateusz Guzik
Author: mjg Date: Fri Jan 31 11:31:14 2020 New Revision: 357329 URL: https://svnweb.freebsd.org/changeset/base/357329 Log: vfs: revert the overzealous assert added in r357285 to vgone The intent was to make it more likely to catch filesystems with custom need_inactive routines which fail

svn commit: r357328 - head/sys/net

2020-01-31 Thread Hans Petter Selasky
Author: hselasky Date: Fri Jan 31 10:51:13 2020 New Revision: 357328 URL: https://svnweb.freebsd.org/changeset/base/357328 Log: Revert r357293. The netisr uses rm_ locks not rms_ locks as noted by jeff@ . Sponsored by: Mellanox Technologies Modified: head/sys/net/netisr.c Modified:

svn commit: r357327 - head/sys/dev/mlx4/mlx4_en

2020-01-31 Thread Hans Petter Selasky
Author: hselasky Date: Fri Jan 31 10:41:47 2020 New Revision: 357327 URL: https://svnweb.freebsd.org/changeset/base/357327 Log: Widen EPOCH(9) usage in mlx4en(4). Make sure all receive completion callbacks are covered by the network EPOCH(9), because this is required when calling

svn commit: r357326 - stable/11/sys/net

2020-01-31 Thread Kristof Provost
Author: kp Date: Fri Jan 31 10:34:38 2020 New Revision: 357326 URL: https://svnweb.freebsd.org/changeset/base/357326 Log: MFC r357233: epair: Do not abuse params to register the second interface if_epair used the 'params' argument to pass a pointer to the b interface through

svn commit: r357325 - stable/12/sys/net

2020-01-31 Thread Kristof Provost
Author: kp Date: Fri Jan 31 10:34:36 2020 New Revision: 357325 URL: https://svnweb.freebsd.org/changeset/base/357325 Log: MFC r357233: epair: Do not abuse params to register the second interface if_epair used the 'params' argument to pass a pointer to the b interface through

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

2020-01-31 Thread Andrew Turner
Author: andrew Date: Fri Jan 31 10:30:13 2020 New Revision: 357324 URL: https://svnweb.freebsd.org/changeset/base/357324 Log: Only create one ITS configuration table When there are multiple ITS devices in the system we would allocate a configuration table for each, however only one table

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

2020-01-31 Thread Rodney W. Grimes
[ Charset UTF-8 unsupported, converting... ] > Author: jeff > Date: Fri Jan 31 02:08:09 2020 > New Revision: 357316 > URL: https://svnweb.freebsd.org/changeset/base/357316 > > Log: > Don't use "All rights reserved" in new copyrights. > > Requested by: rgrimes Thank you. > >

svn commit: r357323 - head/sys/arm64/acpica

2020-01-31 Thread Andrew Turner
Author: andrew Date: Fri Jan 31 09:51:38 2020 New Revision: 357323 URL: https://svnweb.freebsd.org/changeset/base/357323 Log: Ignore the SMMUv3 and PMCG interrupt controller in the IORT tables When mapping MSI/MSI-X interrupts throught he Arm IORT ACPI tables we may need to ignore an

svn commit: r357322 - in head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs: . sys

2020-01-31 Thread Mateusz Guzik
Author: mjg Date: Fri Jan 31 08:38:38 2020 New Revision: 357322 URL: https://svnweb.freebsd.org/changeset/base/357322 Log: zfs: convert z_teardown_inactive_lock to sleepable read-mostly lock This eliminates a global serialisation point. It only gets write locked on unmount. Sample

svn commit: r357321 - in head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs: . sys

2020-01-31 Thread Mateusz Guzik
Author: mjg Date: Fri Jan 31 08:37:35 2020 New Revision: 357321 URL: https://svnweb.freebsd.org/changeset/base/357321 Log: zfs: provide macros to handle z_teardown_inactive_lock Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/zfs_vfsops.h

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

2020-01-31 Thread Mateusz Guzik
Author: mjg Date: Fri Jan 31 08:36:49 2020 New Revision: 357320 URL: https://svnweb.freebsd.org/changeset/base/357320 Log: Add rms_try_rlock and rms_wowned. Modified: head/sys/kern/kern_rmlock.c head/sys/sys/rmlock.h Modified: head/sys/kern/kern_rmlock.c

svn commit: r357319 - head/sys/kern

2020-01-31 Thread Mateusz Guzik
Author: mjg Date: Fri Jan 31 08:36:23 2020 New Revision: 357319 URL: https://svnweb.freebsd.org/changeset/base/357319 Log: Remove an overzealous assert from rms_runlock. Modified: head/sys/kern/kern_rmlock.c Modified: head/sys/kern/kern_rmlock.c