svn commit: r366868 - in stable/11/sys/cam: ata scsi

2020-10-19 Thread Alexander Motin
Author: mav Date: Tue Oct 20 02:32:40 2020 New Revision: 366868 URL: https://svnweb.freebsd.org/changeset/base/366868 Log: MFC r366689: Fix sbuf_finish() error code check in user-space. Modified: stable/11/sys/cam/ata/ata_all.c stable/11/sys/cam/scsi/scsi_all.c Directory Properties: stabl

svn commit: r366867 - in stable/12/sys/cam: ata nvme scsi

2020-10-19 Thread Alexander Motin
Author: mav Date: Tue Oct 20 02:28:07 2020 New Revision: 366867 URL: https://svnweb.freebsd.org/changeset/base/366867 Log: MFC r366689: Fix sbuf_finish() error code check in user-space. Modified: stable/12/sys/cam/ata/ata_all.c stable/12/sys/cam/nvme/nvme_all.c stable/12/sys/cam/scsi/scsi

svn commit: r366866 - in head: include lib/libc/stdlib

2020-10-19 Thread Xin LI
Author: delphij Date: Tue Oct 20 01:29:45 2020 New Revision: 366866 URL: https://svnweb.freebsd.org/changeset/base/366866 Log: Further refinements of ptsname_r(3) interface: - Hide ptsname_r under __BSD_VISIBLE for now as the specification is not finalized at this time. - Keep Symb

svn commit: r366865 - head/sys/dev/ahci

2020-10-19 Thread Ruslan Bukin
Author: br Date: Mon Oct 19 22:32:36 2020 New Revision: 366865 URL: https://svnweb.freebsd.org/changeset/base/366865 Log: Fix build: only set iommu buswide flag if IOMMU code is included. Sponsored by: Innovate DSbD Modified: head/sys/dev/ahci/ahci_pci.c Modified: head/sys/dev/ahci/ahci

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

2020-10-19 Thread Mitchell Horne
Author: mhorne Date: Mon Oct 19 22:27:21 2020 New Revision: 366864 URL: https://svnweb.freebsd.org/changeset/base/366864 Log: MFC r365884: arm64: generate ISO release images This was modified slightly to cope with how ESP partitions are generated in stable/12. Sponsored by: The Fre

Re: svn commit: r366833 - in head/sys: dev/iommu kern sys

2020-10-19 Thread Ruslan Bukin
On Mon, Oct 19, 2020 at 03:08:32PM +0100, Jessica Clarke wrote: > On 19 Oct 2020, at 14:10, Ruslan Bukin wrote: > > > > +#ifndef _DEV_IOMMU_IOMMU_MSI_H_ > > +#define _DEV_IOMMU_IOMMU_MSI_H_ > > + > > +#include > > + > > +struct iommu_unit; > > This seems unused, perhaps left from a previous pat

svn commit: r366863 - head/sys/dev/ahci

2020-10-19 Thread Ruslan Bukin
Author: br Date: Mon Oct 19 21:27:27 2020 New Revision: 366863 URL: https://svnweb.freebsd.org/changeset/base/366863 Log: Add IOMMU_BUSWIDE ahci quirk. Some controllers use PCI function 1 as the requester ID for DMA transfers, but the controllers are not PCI multifunction. Set the io

svn commit: r366862 - in head: share/man/man4 sys/dev/cxgbe

2020-10-19 Thread Navdeep Parhar
Author: np Date: Mon Oct 19 21:11:49 2020 New Revision: 366862 URL: https://svnweb.freebsd.org/changeset/base/366862 Log: cxgbe(4): Updates to the drop features from r366532. MFC after:1 week Sponsored by: Chelsio Communications Modified: head/share/man/man4/cxgbe.4 head/sys/dev/

svn commit: r366861 - in head/sys/modules: . vmware

2020-10-19 Thread Ed Maste
Author: emaste Date: Mon Oct 19 20:43:29 2020 New Revision: 366861 URL: https://svnweb.freebsd.org/changeset/base/366861 Log: build vmware modules on arm64 pvscsi and vmxnet3 build and work. Exclude vmci for now as it contains x86-specific assembly. Reported by: Vincent Milum Jr

svn commit: r366860 - stable/12/sbin/nvmecontrol

2020-10-19 Thread Alexander Motin
Author: mav Date: Mon Oct 19 20:42:01 2020 New Revision: 366860 URL: https://svnweb.freebsd.org/changeset/base/366860 Log: MFC r360546, r360547 (by imp): Various improvements to this man page: o Be consistent about device-id and namespace-id o Use consistent arg markup for these o docum

svn commit: r366859 - stable/12/sbin/nvmecontrol

2020-10-19 Thread Alexander Motin
Author: mav Date: Mon Oct 19 20:40:03 2020 New Revision: 366859 URL: https://svnweb.freebsd.org/changeset/base/366859 Log: MFC r352671 (by imp): Size is unsigned, so remove the test entirely. The kernel won't crash if you have a bad value and I'd rather not have nvmecontrol know the inter

svn commit: r366858 - stable/12/sbin/nvmecontrol

2020-10-19 Thread Alexander Motin
Author: mav Date: Mon Oct 19 20:39:00 2020 New Revision: 366858 URL: https://svnweb.freebsd.org/changeset/base/366858 Log: MFC r352665 (by imp): After my comnd changes, the number of threads and size weren't set. In addition, the flags are optional, but were made to be mandatory. Set these

svn commit: r366856 - stable/12/sbin/nvmecontrol

2020-10-19 Thread Alexander Motin
Author: mav Date: Mon Oct 19 20:37:04 2020 New Revision: 366856 URL: https://svnweb.freebsd.org/changeset/base/366856 Log: MFC r352212 (by imp): Assume all the short args have optional args so allocate space for the ':'. It's slightly wasteful, but much easier (and the savings in bytes at

svn commit: r366857 - head/libexec/rc/rc.d

2020-10-19 Thread Cy Schubert
Author: cy Date: Mon Oct 19 20:37:38 2020 New Revision: 366857 URL: https://svnweb.freebsd.org/changeset/base/366857 Log: Destroy cloned interfaces at netif stop, netif restart and shutdown. This is especially important during shutdown because a child interface of lagg with WOL enabled will

svn commit: r366855 - in head/sys/geom: . uzip

2020-10-19 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Oct 19 20:26:37 2020 New Revision: 366855 URL: https://svnweb.freebsd.org/changeset/base/366855 Log: Fix fallout from r366811. PR: 250442 Reported by: lwhsu Reviewed by: mav MFC after:2 weeks Sponsored by: NetApp, Inc. Sponsored by: Klara, I

svn commit: r366854 - head/sys/dev/cxgbe/tom

2020-10-19 Thread John Baldwin
Author: jhb Date: Mon Oct 19 20:08:50 2020 New Revision: 366854 URL: https://svnweb.freebsd.org/changeset/base/366854 Log: Re-enable receive flow control for TOE TLS sockets. Flow control was disabled during initial TOE TLS development to workaround a hang (and to match the Linux TOE TLS

svn commit: r366853 - head/sys/dev/cxgbe/common

2020-10-19 Thread Navdeep Parhar
Author: np Date: Mon Oct 19 20:08:47 2020 New Revision: 366853 URL: https://svnweb.freebsd.org/changeset/base/366853 Log: cxgbe(4): Fix page fault in t4_get_lb_stats with 2 port T5 cards. PR: 250449 Reported by: freqlabs@ MFC after:1 week Sponsored by: Chelsio Communica

svn commit: r366852 - head/sys/opencrypto

2020-10-19 Thread John Baldwin
Author: jhb Date: Mon Oct 19 20:04:03 2020 New Revision: 366852 URL: https://svnweb.freebsd.org/changeset/base/366852 Log: Fix a couple of bugs for asym crypto introduced in r359374. - Check for null pointers in the crypto_drivers[] array when checking for empty slots in crypto_select_k

svn commit: r366850 - in head/lib/googletest: gmock gmock/tests gmock_main gmock_main/tests gtest gtest/tests gtest_main gtest_main/tests tests tests/gmock tests/gmock_main tests/gtest tests/gtest_...

2020-10-19 Thread Alex Richardson
Author: arichardson Date: Mon Oct 19 19:50:57 2020 New Revision: 366850 URL: https://svnweb.freebsd.org/changeset/base/366850 Log: Major improvement to build parallelism for googletest internal tests Currently the googletest internal tests build after the matching library. However, each o

svn commit: r366851 - head/lib/googletest

2020-10-19 Thread Alex Richardson
Author: arichardson Date: Mon Oct 19 19:51:03 2020 New Revision: 366851 URL: https://svnweb.freebsd.org/changeset/base/366851 Log: Enable SUBDIR_PARALLEL for lib/googletest This saves a few seconds in a parallel build since we can build the gtest_main and gmock subdirectories in parallel.

svn commit: r366849 - head/sys/fs/nullfs

2020-10-19 Thread Konstantin Belousov
Author: kib Date: Mon Oct 19 19:23:22 2020 New Revision: 366849 URL: https://svnweb.freebsd.org/changeset/base/366849 Log: nullfs: ensure correct lock is taken after bypass. If lower VOP relocked the lower vnode, it is possible that nullfs vnode was reclaimed meantime. In this case nullf

svn commit: r366848 - head/sys/kern

2020-10-19 Thread Konstantin Belousov
Author: kib Date: Mon Oct 19 19:20:23 2020 New Revision: 366848 URL: https://svnweb.freebsd.org/changeset/base/366848 Log: vgonel(): avoid recursing into VOP_INACTIVE(). It is a common pattern for filesystems' VOP_INACTIVE() implementation to forcibly reclaim the vnode when its state is f

svn commit: r366847 - head/sys/vm

2020-10-19 Thread Ed Maste
Author: emaste Date: Mon Oct 19 18:54:44 2020 New Revision: 366847 URL: https://svnweb.freebsd.org/changeset/base/366847 Log: uma: fix KTR message after r366840 Reported by: bz Sponsored by: The FreeBSD Foundation Modified: head/sys/vm/uma_core.c Modified: head/sys/vm/uma_core.c

svn commit: r366846 - head/sys/kern

2020-10-19 Thread Mateusz Guzik
Author: mjg Date: Mon Oct 19 18:51:51 2020 New Revision: 366846 URL: https://svnweb.freebsd.org/changeset/base/366846 Log: cache: promote negative entries based on more than one hit During tinderbox and similar workloads negative entries get at least one hit before they get evicted. In th

svn commit: r366845 - head/sys/kern

2020-10-19 Thread John Baldwin
Author: jhb Date: Mon Oct 19 18:24:06 2020 New Revision: 366845 URL: https://svnweb.freebsd.org/changeset/base/366845 Log: Check TF_TOE not the tod pointer to determine if TOE is active. The TF_TOE flag is the check used in the rest of the network stack to determine if TOE is active on a

svn commit: r366844 - in head: share/man/man4 sys/opencrypto

2020-10-19 Thread John Baldwin
Author: jhb Date: Mon Oct 19 18:21:41 2020 New Revision: 366844 URL: https://svnweb.freebsd.org/changeset/base/366844 Log: Mark asymmetric cryptography via OCF deprecated for 14.0. Only one MIPS-specific driver implements support for one of the asymmetric operations. There are no in-kern

Re: svn commit: r366843 - head/sys/i386/i386

2020-10-19 Thread Konstantin Belousov
On Mon, Oct 19, 2020 at 05:35:46PM +, John Baldwin wrote: > Author: jhb > Date: Mon Oct 19 17:35:45 2020 > New Revision: 366843 > URL: https://svnweb.freebsd.org/changeset/base/366843 > > Log: > Properly clear PCB_KERNNPX in fpu_kern_leave(). > > PR: 250423 > Reported by:

svn commit: r366843 - head/sys/i386/i386

2020-10-19 Thread John Baldwin
Author: jhb Date: Mon Oct 19 17:35:45 2020 New Revision: 366843 URL: https://svnweb.freebsd.org/changeset/base/366843 Log: Properly clear PCB_KERNNPX in fpu_kern_leave(). PR: 250423 Reported by: CI Tested by:lwhsu Modified: head/sys/i386/i386/npx.c Modified: head/sys/

svn commit: r366842 - in head: sys/netinet sys/netinet6 usr.bin/netstat

2020-10-19 Thread Mark Johnston
Author: markj Date: Mon Oct 19 17:07:19 2020 New Revision: 366842 URL: https://svnweb.freebsd.org/changeset/base/366842 Log: icmp6: Count packets dropped due to an invalid hop limit Pad the icmp6stat structure so that we can add more counters in the future without breaking compatibility a

svn commit: r366841 - head/sys/kern

2020-10-19 Thread Mark Johnston
Author: markj Date: Mon Oct 19 16:57:59 2020 New Revision: 366841 URL: https://svnweb.freebsd.org/changeset/base/366841 Log: link_elf_obj: Colour VM objects This will cause the VM to back sufficiently large .text sections, such as those in zfs.ko or amdgpu.ko on amd64, with superpage mapp

svn commit: r366840 - head/sys/vm

2020-10-19 Thread Mark Johnston
Author: markj Date: Mon Oct 19 16:57:40 2020 New Revision: 366840 URL: https://svnweb.freebsd.org/changeset/base/366840 Log: uma: Respect uk_reserve in keg_drain() When a reserve of free items is configured for a zone, the reserve must not be reclaimed under memory pressure. Modify keg_d

svn commit: r366839 - head/sys/vm

2020-10-19 Thread Mark Johnston
Author: markj Date: Mon Oct 19 16:55:03 2020 New Revision: 366839 URL: https://svnweb.freebsd.org/changeset/base/366839 Log: uma: Avoid depleting keg reserves when filling a bucket zone_import() fetches a free or partially free slab from the keg and then uses its items to populate an arra

svn commit: r366838 - head/sys/kern

2020-10-19 Thread Mark Johnston
Author: markj Date: Mon Oct 19 16:54:06 2020 New Revision: 366838 URL: https://svnweb.freebsd.org/changeset/base/366838 Log: vmem: Allocate btags before looping in vmem_xalloc() BT_MAXALLOC (4) is the number of boundary tags required to complete an allocation in the worst case: two to cli

svn commit: r366837 - head/sys/kern

2020-10-19 Thread Mark Johnston
Author: markj Date: Mon Oct 19 16:52:27 2020 New Revision: 366837 URL: https://svnweb.freebsd.org/changeset/base/366837 Log: vmem: Simplify bt_fill() callers a bit No functional change intended. Reviewed by: alc, kib, rlibby MFC after:2 weeks Sponsored by: The FreeBSD Foundati

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

2020-10-19 Thread Andrew Turner
Author: andrew Date: Mon Oct 19 15:52:42 2020 New Revision: 366836 URL: https://svnweb.freebsd.org/changeset/base/366836 Log: Remove unused labels from the arm64 casueword* These are unused so can be removed. While here renumber the remaining label to be 1. Sponsored by: Innovate UK

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

2020-10-19 Thread Ruslan Bukin
Author: br Date: Mon Oct 19 15:50:58 2020 New Revision: 366835 URL: https://svnweb.freebsd.org/changeset/base/366835 Log: Assign the reserved apic region (GAS entry) to the iommu domain msi_entry. Requested by: kib Reviewed by: kib Sponsored by: Innovate DSbD Differential Revision:

svn commit: r366834 - head/sys/amd64/vmm/intel

2020-10-19 Thread Mark Johnston
Author: markj Date: Mon Oct 19 15:24:35 2020 New Revision: 366834 URL: https://svnweb.freebsd.org/changeset/base/366834 Log: vmx: Implement pmap (de)activation in C Rewrite the code that maintains pm_active and invalidates EPTP-tagged TLB entries in C. Previously this work was done in vm

Re: svn commit: r366833 - in head/sys: dev/iommu kern sys

2020-10-19 Thread Jessica Clarke
On 19 Oct 2020, at 14:10, Ruslan Bukin wrote: > > +#ifndef _DEV_IOMMU_IOMMU_MSI_H_ > +#define _DEV_IOMMU_IOMMU_MSI_H_ > + > +#include > + > +struct iommu_unit; This seems unused, perhaps left from a previous patch version? Jess ___ svn-src-all@freeb

svn commit: r366833 - in head/sys: dev/iommu kern sys

2020-10-19 Thread Ruslan Bukin
Author: br Date: Mon Oct 19 13:10:21 2020 New Revision: 366833 URL: https://svnweb.freebsd.org/changeset/base/366833 Log: Manage MSI iommu pages. This allows the interrupt controller driver only need a small change to create a map for the page the device will write to raise an interrupt.

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

2020-10-19 Thread Andrew Turner
Author: andrew Date: Mon Oct 19 12:46:03 2020 New Revision: 366832 URL: https://svnweb.freebsd.org/changeset/base/366832 Log: Split the common arm64 fu* and su* asm to a macro As these are mostly identical split out the common code to a macro. Sponsored by: Innovate UK Modified: hea

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

2020-10-19 Thread Andrew Turner
Author: andrew Date: Mon Oct 19 12:06:16 2020 New Revision: 366831 URL: https://svnweb.freebsd.org/changeset/base/366831 Log: Move the arm64 userspace access checks to macros In the functions that copy between userspace and kernel space we check the user space address is valid before perf

svn commit: r366830 - head/usr.sbin/efibootmgr

2020-10-19 Thread Ryan Moeller
Author: freqlabs Date: Mon Oct 19 10:38:40 2020 New Revision: 366830 URL: https://svnweb.freebsd.org/changeset/base/366830 Log: efibootmgr: Use returned error code for error message, not errno efivar_unix_path_to_device_path returns the error code, it does not set errno. Reviewed by:

svn commit: r366829 - head/sys/kern

2020-10-19 Thread Mateusz Guzik
Author: mjg Date: Mon Oct 19 09:52:52 2020 New Revision: 366829 URL: https://svnweb.freebsd.org/changeset/base/366829 Log: cache: refactor negative promotion/demotion handling This will simplify policy changes. Modified: head/sys/kern/vfs_cache.c Modified: head/sys/kern/vfs_cache.c

svn commit: r366828 - head/usr.sbin/pkg

2020-10-19 Thread Baptiste Daroussin
Author: bapt Date: Mon Oct 19 07:26:42 2020 New Revision: 366828 URL: https://svnweb.freebsd.org/changeset/base/366828 Log: Use asprintf instead of sbuf Modified: head/usr.sbin/pkg/config.c Modified: head/usr.sbin/pkg/config.c =

svn commit: r366827 - stable/12/sys/dev/usb/controller

2020-10-19 Thread Andriy Gapon
Author: avg Date: Mon Oct 19 07:03:04 2020 New Revision: 366827 URL: https://svnweb.freebsd.org/changeset/base/366827 Log: MFC r365402: musb/allwinner: add support for configuring phy as well as device mode At least on Orange Pi PC Plus even the host mode does not work without enabling t