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: f4044dac63e952ac

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 dra

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: 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: 4e0e2ea1886afe8c001971ff

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 cal

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: 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: head/sys/dev/mmc/h

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: 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 Sponsored

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 Spons

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. Spo

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 towar

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 per

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 fro

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) specified

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: 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

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: 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 by

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

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: https://svnweb.freebsd.org/changeset/

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: k

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 iterati

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: 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: 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 definitio