svn commit: r367751 - stable/12/sbin/fsck_ffs

2020-11-16 Thread Kirk McKusick
Author: mckusick Date: Tue Nov 17 06:04:16 2020 New Revision: 367751 URL: https://svnweb.freebsd.org/changeset/base/367751 Log: MFC of 367045. Avoid improper sign extension in Pass5 inumber checks. Sponsored by: Netflix Modified: stable/12/sbin/fsck_ffs/pass5.c Directory

svn commit: r367750 - in stable/12/sbin: fsirand growfs tunefs

2020-11-16 Thread Kirk McKusick
Author: mckusick Date: Tue Nov 17 05:59:55 2020 New Revision: 367750 URL: https://svnweb.freebsd.org/changeset/base/367750 Log: MFC of 367035. Require clean superblock for tunefs, growfs, and fsirand Sponsored by: Netflix Modified: stable/12/sbin/fsirand/fsirand.c

svn commit: r367749 - stable/12/sys/ufs/ffs

2020-11-16 Thread Kirk McKusick
Author: mckusick Date: Tue Nov 17 05:48:00 2020 New Revision: 367749 URL: https://svnweb.freebsd.org/changeset/base/367749 Log: MFC of 340927 and 367034. Move clear of UFS feature flags from ufs_mountfs() to ffs_sbget() to ensure that the appropriate feature flags get cleared by

svn commit: r367748 - stable/11/sys/netgraph

2020-11-16 Thread Eugene Grosbein
Author: eugen Date: Tue Nov 17 05:01:55 2020 New Revision: 367748 URL: https://svnweb.freebsd.org/changeset/base/367748 Log: MFC r367545: ng_nat: unbreak ABI The revision r342168 broke ABI of ng_nat needlessly and the change was merged to stable branches breaking ABI there, too.

svn commit: r367747 - stable/12/sys/netgraph

2020-11-16 Thread Eugene Grosbein
Author: eugen Date: Tue Nov 17 05:00:23 2020 New Revision: 367747 URL: https://svnweb.freebsd.org/changeset/base/367747 Log: MFC r367545: ng_nat: unbreak ABI The revision r342168 broke ABI of ng_nat needlessly and the change was merged to stable branches breaking ABI there, too.

svn commit: r367746 - head/sys/kern

2020-11-16 Thread Kyle Evans
Author: kevans Date: Tue Nov 17 04:22:10 2020 New Revision: 367746 URL: https://svnweb.freebsd.org/changeset/base/367746 Log: Fix !COMPAT_FREEBSD32 kernel build One of the last shifts inadvertently moved these static assertions out of a COMPAT_FREEBSD32 block, which the relevant

svn commit: r367745 - head/sys/sys

2020-11-16 Thread Kyle Evans
Author: kevans Date: Tue Nov 17 04:06:35 2020 New Revision: 367745 URL: https://svnweb.freebsd.org/changeset/base/367745 Log: sys/proc.h: improve comment for new TDP2 flag This was suggested by kib and integrated locally, but somehow did not make it into the committed version. Modified:

svn commit: r367744 - in head/sys: compat/freebsd32 kern sys

2020-11-16 Thread Kyle Evans
Author: kevans Date: Tue Nov 17 03:36:58 2020 New Revision: 367744 URL: https://svnweb.freebsd.org/changeset/base/367744 Log: umtx_op: reduce redundancy required for compat32 All of the compat32 variants are substantially the same, save for copyin/copyout (mostly). Apply the same kind of

svn commit: r367743 - in head: lib/libthr/tests sys/kern

2020-11-16 Thread Kyle Evans
Author: kevans Date: Tue Nov 17 03:34:01 2020 New Revision: 367743 URL: https://svnweb.freebsd.org/changeset/base/367743 Log: _umtx_op: fix a compat32 bug in UMTX_OP_NWAKE_PRIVATE Specifically, if we're waking up some value n > BATCH_SIZE, then the copyin(9) is wrong on the second

svn commit: r367742 - head/lib/libc/sys

2020-11-16 Thread Kyle Evans
Author: kevans Date: Tue Nov 17 03:26:56 2020 New Revision: 367742 URL: https://svnweb.freebsd.org/changeset/base/367742 Log: _umtx_op: document UMTX_OP_SEM2_WAIT copyout behavior This clever technique to get a time remaining back was added to support sem_clockwait_np. Reviewed by:

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

2020-11-16 Thread Konstantin Belousov
On Tue, Nov 17, 2020 at 04:15:12AM +0100, Mateusz Guzik wrote: > On 11/17/20, Konstantin Belousov wrote: > > On Mon, Nov 16, 2020 at 03:09:19AM +, Mateusz Guzik wrote: > >> Author: mjg > >> Date: Mon Nov 16 03:09:18 2020 > >> New Revision: 367713 > >> URL:

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

2020-11-16 Thread Mateusz Guzik
On 11/17/20, Konstantin Belousov wrote: > On Mon, Nov 16, 2020 at 03:09:19AM +, Mateusz Guzik wrote: >> Author: mjg >> Date: Mon Nov 16 03:09:18 2020 >> New Revision: 367713 >> URL: https://svnweb.freebsd.org/changeset/base/367713 >> >> Log: >> select: replace reference counting with memory

svn commit: r367741 - head/sys/kern

2020-11-16 Thread Konstantin Belousov
Author: kib Date: Tue Nov 17 02:18:34 2020 New Revision: 367741 URL: https://svnweb.freebsd.org/changeset/base/367741 Log: vmem: trivial warning and style fixes. Add __unused to some args. Change type of the iterator variables to match loop control. Remove excessive {}. Reviewed

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

2020-11-16 Thread Konstantin Belousov
On Mon, Nov 16, 2020 at 03:09:19AM +, Mateusz Guzik wrote: > Author: mjg > Date: Mon Nov 16 03:09:18 2020 > New Revision: 367713 > URL: https://svnweb.freebsd.org/changeset/base/367713 > > Log: > select: replace reference counting with memory barriers in selfd > > Refcounting was added

svn commit: r367740 - stable/12/sys/netinet

2020-11-16 Thread George V. Neville-Neil
Author: gnn Date: Tue Nov 17 01:02:00 2020 New Revision: 367740 URL: https://svnweb.freebsd.org/changeset/base/367740 Log: MFC: 367628, 367635, 367645 An earlier commit effectively turned out the fast forwading path due to its lack of support for ICMP redirects. The following commit

svn commit: r367739 - stable/12/sys/dev/nvme

2020-11-16 Thread Alexander Motin
Author: mav Date: Tue Nov 17 00:35:59 2020 New Revision: 367739 URL: https://svnweb.freebsd.org/changeset/base/367739 Log: MFC r367659: Add PMRCAP printing and fix earlier CAP_HI. Modified: stable/12/sys/dev/nvme/nvme.h stable/12/sys/dev/nvme/nvme_ctrlr.c Directory Properties: stable/12/

svn commit: r367738 - head/sys/sys

2020-11-16 Thread Mateusz Guzik
Author: mjg Date: Tue Nov 17 00:04:30 2020 New Revision: 367738 URL: https://svnweb.freebsd.org/changeset/base/367738 Log: cpuset: reorder so that cs_mask does not share cacheline with cs_ref Modified: head/sys/sys/cpuset.h Modified: head/sys/sys/cpuset.h

svn commit: r367737 - head/sys/kern

2020-11-16 Thread Mateusz Guzik
Author: mjg Date: Tue Nov 17 00:04:05 2020 New Revision: 367737 URL: https://svnweb.freebsd.org/changeset/base/367737 Log: cpuset: refcount-clean Modified: head/sys/kern/kern_cpuset.c Modified: head/sys/kern/kern_cpuset.c

svn commit: r367736 - in head/sys: arm64/include arm64/iommu conf

2020-11-16 Thread Ruslan Bukin
Author: br Date: Mon Nov 16 21:55:52 2020 New Revision: 367736 URL: https://svnweb.freebsd.org/changeset/base/367736 Log: Introduce IOMMU support for arm64 platform. This adds an arm64 iommu interface and a driver for Arm System Memory Management Unit version 3.2 (ARM SMMU v3.2)

svn commit: r367735 - head/share/mk

2020-11-16 Thread Brooks Davis
Author: brooks Date: Mon Nov 16 19:15:11 2020 New Revision: 367735 URL: https://svnweb.freebsd.org/changeset/base/367735 Log: Add a guard for broken SUBDIR.${MK_FOO} use Check for the variable SUBDIR. and error as it usually means someone forgot to include src.opts.mk. This guard

svn commit: r367734 - head/usr.bin/bsdiff/bsdiff

2020-11-16 Thread Mitchell Horne
Author: mhorne Date: Mon Nov 16 18:41:49 2020 New Revision: 367734 URL: https://svnweb.freebsd.org/changeset/base/367734 Log: bsdiff: fix off-by-one error The program reads oldsize bytes from oldfile, and proceeds to initialize a suffix array of oldsize elements using divsufsort(). As

svn commit: r367733 - head/sys/kern

2020-11-16 Thread Mateusz Guzik
Author: mjg Date: Mon Nov 16 17:56:58 2020 New Revision: 367733 URL: https://svnweb.freebsd.org/changeset/base/367733 Log: malloc: make malloc_large closer to standalone This moves entire large alloc handling out of all consumers, apart from deciding to go there. This is a step

svn commit: r367732 - stable/12/release/arm64

2020-11-16 Thread Mitchell Horne
Author: mhorne Date: Mon Nov 16 17:45:42 2020 New Revision: 367732 URL: https://svnweb.freebsd.org/changeset/base/367732 Log: MFC r367178: arm64: set the correct partition type in make-memstick.sh Modified: stable/12/release/arm64/make-memstick.sh Directory Properties: stable/12/

svn commit: r367731 - in stable/12/release: scripts tools

2020-11-16 Thread Mitchell Horne
Author: mhorne Date: Mon Nov 16 17:44:34 2020 New Revision: 367731 URL: https://svnweb.freebsd.org/changeset/base/367731 Log: MFC r367177: arm64: convert virtual machine images to GPT Modified: stable/12/release/scripts/mk-vmimage.sh stable/12/release/tools/vmimage.subr Directory

svn commit: r367730 - stable/12/release/tools

2020-11-16 Thread Mitchell Horne
Author: mhorne Date: Mon Nov 16 17:42:22 2020 New Revision: 367730 URL: https://svnweb.freebsd.org/changeset/base/367730 Log: MFC r367176: vmimage.subr: noisier failure for unsupported targets Modified: stable/12/release/tools/vmimage.subr Directory Properties: stable/12/ (props

svn commit: r367729 - stable/12/release/tools

2020-11-16 Thread Mitchell Horne
Author: mhorne Date: Mon Nov 16 17:41:05 2020 New Revision: 367729 URL: https://svnweb.freebsd.org/changeset/base/367729 Log: MFC r367175: Slight refactor in vmimage.subr Modified: stable/12/release/tools/vmimage.subr Directory Properties: stable/12/ (props changed) Modified:

svn commit: r367728 - in head: cddl/usr.bin/ztest usr.sbin/praudit

2020-11-16 Thread Brooks Davis
Author: brooks Date: Mon Nov 16 17:20:35 2020 New Revision: 367728 URL: https://svnweb.freebsd.org/changeset/base/367728 Log: Add missing includes of src.opts.mk Without this "SUBDIR.${MK_TESTS}=tests" would always expand to "SUBDIR.=tests" resulting in the tests not being built.

svn commit: r367727 - stable/12/sys/dev/qat

2020-11-16 Thread Mark Johnston
Author: markj Date: Mon Nov 16 16:53:46 2020 New Revision: 367727 URL: https://svnweb.freebsd.org/changeset/base/367727 Log: MFC r367617: qat: Fix nits reported by Coverity Modified: stable/12/sys/dev/qat/qat.c stable/12/sys/dev/qat/qat_ae.c stable/12/sys/dev/qat/qatvar.h Directory

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

2020-11-16 Thread Ruslan Bukin
Author: br Date: Mon Nov 16 15:37:09 2020 New Revision: 367726 URL: https://svnweb.freebsd.org/changeset/base/367726 Log: Fix a bug in assertion: entry flags also includes IOMMU_MAP_ENTRY_UNMAPPED. The entry->flags field is initialized in iommu_gas_init_domain(). Reviewed by: kib

svn commit: r367725 - in head/sys: dev/iommu x86/iommu

2020-11-16 Thread Ruslan Bukin
Author: br Date: Mon Nov 16 15:29:52 2020 New Revision: 367725 URL: https://svnweb.freebsd.org/changeset/base/367725 Log: Add device_t member to struct iommu. This is needed on arm64 for the interface between iommu framework and iommu controller drivers. Reviewed by: kib

svn commit: r367724 - stable/11/lib/libc/gen

2020-11-16 Thread Mateusz Piotrowski
Author: 0mp (doc,ports committer) Date: Mon Nov 16 11:58:22 2020 New Revision: 367724 URL: https://svnweb.freebsd.org/changeset/base/367724 Log: MFC r367639: Reference setprogname(3) in setproctitle(3) The reference to setproctitle(3) in the setprogname(3) manual is already in

svn commit: r367723 - stable/12/lib/libc/gen

2020-11-16 Thread Mateusz Piotrowski
Author: 0mp (doc,ports committer) Date: Mon Nov 16 11:57:49 2020 New Revision: 367723 URL: https://svnweb.freebsd.org/changeset/base/367723 Log: MFC r367639: Reference setprogname(3) in setproctitle(3) The reference to setproctitle(3) in the setprogname(3) manual is already in

svn commit: r367722 - head/sys/arm64/freescale/imx

2020-11-16 Thread Emmanuel Vadot
Author: manu Date: Mon Nov 16 11:54:38 2020 New Revision: 367722 URL: https://svnweb.freebsd.org/changeset/base/367722 Log: imx7gpc: Remove unused functions Modified: head/sys/arm64/freescale/imx/imx7gpc.c Modified: head/sys/arm64/freescale/imx/imx7gpc.c

svn commit: r367721 - head/sys/dev/mmc/host

2020-11-16 Thread Emmanuel Vadot
Author: manu Date: Mon Nov 16 11:53:36 2020 New Revision: 367721 URL: https://svnweb.freebsd.org/changeset/base/367721 Log: dwmmc: dwmmc_switch_vccq is only used in MMCCAM kernel Silence the build for non MMCCAM kernel Modified: head/sys/dev/mmc/host/dwmmc.c Modified:

svn commit: r367720 - head/tools/build

2020-11-16 Thread Alex Richardson
Author: arichardson Date: Mon Nov 16 11:38:51 2020 New Revision: 367720 URL: https://svnweb.freebsd.org/changeset/base/367720 Log: Revert "When building on Ubuntu bootstrap bmake with bash as the default shell" This reverts r365950 since the latest bmake update includes fixes for the test

svn commit: r367719 - in head/sys/dev/mlx5: . mlx5_core mlx5_ib

2020-11-16 Thread Hans Petter Selasky
Author: hselasky Date: Mon Nov 16 10:15:03 2020 New Revision: 367719 URL: https://svnweb.freebsd.org/changeset/base/367719 Log: Make mlx5_cmd_exec_cb() a safe API in mlx5core. APIs that have deferred callbacks should have some kind of cleanup function that callers can use to fence the

svn commit: r367718 - in head/sys/dev/mlx5: . mlx5_core mlx5_en mlx5_ib

2020-11-16 Thread Hans Petter Selasky
Author: hselasky Date: Mon Nov 16 10:10:53 2020 New Revision: 367718 URL: https://svnweb.freebsd.org/changeset/base/367718 Log: Report EQE data upon CQ completion in mlx5core. Report EQE data upon CQ completion to let upper layers use this data. Linux commit:

svn commit: r367717 - in head/sys/dev/mlx5: . mlx5_core mlx5_en mlx5_ib

2020-11-16 Thread Hans Petter Selasky
Author: hselasky Date: Mon Nov 16 10:06:10 2020 New Revision: 367717 URL: https://svnweb.freebsd.org/changeset/base/367717 Log: Enhance the mlx5_core_create_cq() function in mlx5core. Enhance mlx5_core_create_cq() to get the command out buffer from the callers to let them use the output.

svn commit: r367716 - in head/sys/dev/mlx5: . mlx5_core

2020-11-16 Thread Hans Petter Selasky
Author: hselasky Date: Mon Nov 16 10:03:18 2020 New Revision: 367716 URL: https://svnweb.freebsd.org/changeset/base/367716 Log: Use mlx5core to create/destroy all Dynamically Connected Targets, DCTs. To prevent a hardware memory leak when a DEVX DCT object is destroyed without calling

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

2020-11-16 Thread Hans Petter Selasky
Author: hselasky Date: Mon Nov 16 10:00:21 2020 New Revision: 367715 URL: https://svnweb.freebsd.org/changeset/base/367715 Log: Fix error handling order in create_kernel_qp in mlx5ib. Make sure order of cleanup is exactly the opposite of initialization. Linux commit:

Re: svn commit: r367566 - stable/12/sys/compat/linuxkpi/common/include/linux

2020-11-16 Thread Hans Petter Selasky
On 11/16/20 9:56 AM, Niclas Zeising wrote: On 2020-11-10 14:36, Hans Petter Selasky wrote: Author: hselasky Date: Tue Nov 10 13:36:07 2020 New Revision: 367566 URL: https://svnweb.freebsd.org/changeset/base/367566 Log:    MFC r366751:    Remove ifdefs around IS_ALIGNED() definition in the

Re: svn commit: r367566 - stable/12/sys/compat/linuxkpi/common/include/linux

2020-11-16 Thread Niclas Zeising
On 2020-11-10 14:36, Hans Petter Selasky wrote: Author: hselasky Date: Tue Nov 10 13:36:07 2020 New Revision: 367566 URL: https://svnweb.freebsd.org/changeset/base/367566 Log: MFC r366751: Remove ifdefs around IS_ALIGNED() definition in the LinuxKPI. There are reports that this