svn commit: r367613 - head/usr.sbin/bhyve

2020-11-11 Thread Konstantin Belousov
Author: kib Date: Thu Nov 12 02:52:01 2020 New Revision: 367613 URL: https://svnweb.freebsd.org/changeset/base/367613 Log: bhyve: remove a hack to map all 8G BARs 1:1 Suggested and reviewed by:grehan Sponsored by: The FreeBSD Foundation MFC after:2 weeks Differential revision:

svn commit: r367612 - head/sys/dev/mlx5/mlx5_en

2020-11-11 Thread Konstantin Belousov
Author: kib Date: Thu Nov 12 02:25:10 2020 New Revision: 367612 URL: https://svnweb.freebsd.org/changeset/base/367612 Log: mlx5en: Set ifmr_current same as ifmr_active. This both: - makes ifconfig media line similar to that of other drivers. - fixes ENXIO in case when paradoxical curren

svn commit: r367611 - head/sys/dev/mlx5/mlx5_en

2020-11-11 Thread Konstantin Belousov
Author: kib Date: Thu Nov 12 02:23:27 2020 New Revision: 367611 URL: https://svnweb.freebsd.org/changeset/base/367611 Log: mlx5en: stop ignoring pauses and flow in the media reqs. Sponsored by: Mellanox Technologies/NVidia Networking MFC after:1 week Modified: head/sys/dev/mlx5/mlx

svn commit: r367610 - head/sys/dev/mlx5/mlx5_en

2020-11-11 Thread Konstantin Belousov
Author: kib Date: Thu Nov 12 02:22:16 2020 New Revision: 367610 URL: https://svnweb.freebsd.org/changeset/base/367610 Log: mlx5en: Register all combinations of FDX/RXPAUSE/TXPAUSE as valid media types. Sponsored by: Mellanox Technologies/NVidia Networking MFC after:1 week Modified:

svn commit: r367609 - head/sys/dev/mlx5/mlx5_en

2020-11-11 Thread Konstantin Belousov
Author: kib Date: Thu Nov 12 02:21:14 2020 New Revision: 367609 URL: https://svnweb.freebsd.org/changeset/base/367609 Log: mlx5en: Refactor repeated code to register media type to mlx5e_ifm_add(). Sponsored by: Mellanox Technologies/NVidia Networking MFC after:1 week Modified: head

svn commit: r367608 - head/sys/dev/cxgbe

2020-11-11 Thread Navdeep Parhar
Author: np Date: Thu Nov 12 01:18:05 2020 New Revision: 367608 URL: https://svnweb.freebsd.org/changeset/base/367608 Log: cxgbev(4): Make sure that the iq/eq map sizes are correct for VFs. This should have been part of r366929. MFC after:3 days Sponsored by: Chelsio Communication

svn commit: r367607 - head/usr.sbin/bhyve

2020-11-11 Thread Konstantin Belousov
Author: kib Date: Thu Nov 12 00:51:53 2020 New Revision: 367607 URL: https://svnweb.freebsd.org/changeset/base/367607 Log: bhyve: increase allowed size for 64bit BAR allocation below 4G from 32 to 128 MB. Reviewed by: grehan Sponsored by: The FreeBSD Foundation MFC after:2 weeks

svn commit: r367606 - head/usr.sbin/bhyve

2020-11-11 Thread Konstantin Belousov
Author: kib Date: Thu Nov 12 00:46:53 2020 New Revision: 367606 URL: https://svnweb.freebsd.org/changeset/base/367606 Log: bhyve: avoid allocating BARs above the end of supported physical addresses. Read CPUID leaf 0x808 to determine max supported phys address and create BAR region ri

svn commit: r367605 - head/sys/kern

2020-11-11 Thread Mateusz Guzik
Author: mjg Date: Thu Nov 12 00:29:23 2020 New Revision: 367605 URL: https://svnweb.freebsd.org/changeset/base/367605 Log: thread: move nthread management out of tid_alloc While this adds more work single-threaded, it also enables SMP-related speed ups. Modified: head/sys/kern/kern_thr

svn commit: r367604 - head/sys/kern

2020-11-11 Thread Kyle Evans
Author: kevans Date: Wed Nov 11 22:35:23 2020 New Revision: 367604 URL: https://svnweb.freebsd.org/changeset/base/367604 Log: umtx: drop incorrect timespec32 definition This works for amd64, but none others -- drop it, because we already have a proper definition in sys/compat/freebsd32/fr

svn commit: r367600 - head/sys/cam/ctl

2020-11-11 Thread Alexander Motin
Author: mav Date: Wed Nov 11 21:59:39 2020 New Revision: 367600 URL: https://svnweb.freebsd.org/changeset/base/367600 Log: Make CTL nicer to increased MAXPHYS. Before this CTL always allocated MAXPHYS-sized buffers, even for 4KB I/O, that is even more overkill for MAXPHYS of 1MB. This ch

svn commit: r367598 - head/sys/kern

2020-11-11 Thread Mateusz Guzik
Author: mjg Date: Wed Nov 11 18:45:06 2020 New Revision: 367598 URL: https://svnweb.freebsd.org/changeset/base/367598 Log: thread: batch tid_free calls in thread_reap This eliminates the highly pessimal pattern of relocking from multiple CPUs in quick succession. Note this is still global

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

2020-11-11 Thread Mateusz Guzik
Author: mjg Date: Wed Nov 11 18:43:51 2020 New Revision: 367597 URL: https://svnweb.freebsd.org/changeset/base/367597 Log: thread: lockless zombie list manipulation This gets rid of the most contended spinlock seen when creating/destroying threads in a loop. (modulo kstack) Tested by

svn commit: r367596 - head/sys/net

2020-11-11 Thread Mark Johnston
Author: markj Date: Wed Nov 11 18:00:06 2020 New Revision: 367596 URL: https://svnweb.freebsd.org/changeset/base/367596 Log: iflib: Free full mbuf chains when draining transmit queues Submitted by: Sai Rajesh Tallamraju Reviewed by: gallatin, hselasky MFC after:1 week Sponsored

svn commit: r367595 - head/sys/vm

2020-11-11 Thread Mark Johnston
Author: markj Date: Wed Nov 11 17:16:39 2020 New Revision: 367595 URL: https://svnweb.freebsd.org/changeset/base/367595 Log: vm_map: Handle kernel map entry allocator recursion On platforms without a direct map[*], vm_map_insert() may in rare situations need to allocate a kernel map entry

svn commit: r367594 - head/sys/net

2020-11-11 Thread Andrey V. Elsukov
Author: ae Date: Wed Nov 11 15:53:36 2020 New Revision: 367594 URL: https://svnweb.freebsd.org/changeset/base/367594 Log: Fix possible NULL pointer dereference. lagg(4) replaces if_output method of its child interfaces and expects that this method can be called only by child interfaces. B

svn commit: r367593 - in head/sys/amd64: amd64 include vmm/amd vmm/intel

2020-11-11 Thread Mark Johnston
Author: markj Date: Wed Nov 11 15:01:17 2020 New Revision: 367593 URL: https://svnweb.freebsd.org/changeset/base/367593 Log: vmm: Make pmap_invalidate_ept() wait synchronously for guest exits Currently EPT TLB invalidation is done by incrementing a generation counter and issuing an IPI to

svn commit: r367592 - head/usr.bin/env

2020-11-11 Thread Mateusz Piotrowski
Author: 0mp (doc,ports committer) Date: Wed Nov 11 14:53:03 2020 New Revision: 367592 URL: https://svnweb.freebsd.org/changeset/base/367592 Log: Document in the synopsis that -0 cannot be used with the utility argument Modified: head/usr.bin/env/env.1 Modified: head/usr.bin/env/env.1 ===

svn commit: r367590 - head/sys/sys

2020-11-11 Thread Mark Johnston
Author: markj Date: Wed Nov 11 14:03:49 2020 New Revision: 367590 URL: https://svnweb.freebsd.org/changeset/base/367590 Log: Remove an extraneous parameter from SIGIO_ASSERT_LOCKED() Reported by: hselasky MFC with: r367588 Modified: head/sys/sys/signalvar.h Modified: head/sys/sys

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

2020-11-11 Thread Mark Johnston
On Wed, Nov 11, 2020 at 02:58:32PM +0100, Hans Petter Selasky wrote: > On 11/11/20 2:44 PM, Mark Johnston wrote: > > +#defineSIGIO_ASSERT_LOCKED(type) mtx_assert(&sigio_lock, MA_OWNED) > > > > Minor nit: "type" argument can be removed from macro. Fixed, thanks.

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

2020-11-11 Thread Hans Petter Selasky
On 11/11/20 2:44 PM, Mark Johnston wrote: +#defineSIGIO_ASSERT_LOCKED(type) mtx_assert(&sigio_lock, MA_OWNED) Minor nit: "type" argument can be removed from macro. --HPS ___ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/m

svn commit: r367589 - in head/sys: geom ufs/ffs

2020-11-11 Thread Mark Johnston
Author: markj Date: Wed Nov 11 13:48:07 2020 New Revision: 367589 URL: https://svnweb.freebsd.org/changeset/base/367589 Log: ffs: Clamp BIO_SPEEDUP length On 32-bit platforms, the computed size of the BIO_SPEEDUP requested by softdep_request_cleanup() may be negative when assigned to bp->

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

2020-11-11 Thread Mark Johnston
Author: markj Date: Wed Nov 11 13:44:27 2020 New Revision: 367588 URL: https://svnweb.freebsd.org/changeset/base/367588 Log: Fix a pair of races in SIGIO registration First, funsetownlst() list looks at the first element of the list to see whether it's processing a process or a process gr

svn commit: r367585 - head/sys/kern

2020-11-11 Thread Mateusz Guzik
Author: mjg Date: Wed Nov 11 08:51:04 2020 New Revision: 367585 URL: https://svnweb.freebsd.org/changeset/base/367585 Log: thread: add more fine-grained tidhash locking Note this still does not scale but is enough to move it out of the way for the foreseable future. In particular a t

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

2020-11-11 Thread Mateusz Guzik
Author: mjg Date: Wed Nov 11 08:50:04 2020 New Revision: 367584 URL: https://svnweb.freebsd.org/changeset/base/367584 Log: thread: rework tidhash vs proc lock interaction Apart from minor clean up this gets rid of proc unlock/lock cycle on thread exit to work around LOR against tidhash lo

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

2020-11-11 Thread Mateusz Guzik
Author: mjg Date: Wed Nov 11 08:48:43 2020 New Revision: 367583 URL: https://svnweb.freebsd.org/changeset/base/367583 Log: thread: fix thread0 tid allocation Startup code hardcodes the value instead of allocating it. The first spawned thread would then be a duplicate. Pointy hat: m