svn commit: r367410 - head/sys/opencrypto

2020-11-05 Thread John Baldwin
Author: jhb Date: Fri Nov 6 00:15:52 2020 New Revision: 367410 URL: https://svnweb.freebsd.org/changeset/base/367410 Log: Move cryptof_ioctl() below the routines it calls. Reviewed by: markj Sponsored by: Chelsio Communications Differential Revision:

svn commit: r367409 - head/sys/opencrypto

2020-11-05 Thread John Baldwin
Author: jhb Date: Fri Nov 6 00:10:58 2020 New Revision: 367409 URL: https://svnweb.freebsd.org/changeset/base/367409 Log: Split logic to create new sessions into a separate function. This simplifies cryptof_ioctl as it now a wrapper around functions that contain the bulk of the

svn commit: r367407 - head/sys/opencrypto

2020-11-05 Thread John Baldwin
Author: jhb Date: Thu Nov 5 23:42:36 2020 New Revision: 367407 URL: https://svnweb.freebsd.org/changeset/base/367407 Log: Move cryptodev_cb earlier before it is used. This is consistent with cryptodevkey_cb being defined before it is used and removes a prototype in the middle of the

svn commit: r367406 - head/sys/crypto/aesni

2020-11-05 Thread John Baldwin
Author: jhb Date: Thu Nov 5 23:31:58 2020 New Revision: 367406 URL: https://svnweb.freebsd.org/changeset/base/367406 Log: Check cipher key lengths during probesession. OCF drivers in general should perform as many session parameter checks as possible during probesession rather than when

svn commit: r367404 - head/sys/opencrypto

2020-11-05 Thread John Baldwin
Author: jhb Date: Thu Nov 5 23:28:05 2020 New Revision: 367404 URL: https://svnweb.freebsd.org/changeset/base/367404 Log: Style fixes for function prototypes and definitions. Reviewed by: markj Sponsored by: Chelsio Communications Differential Revision:

svn commit: r367403 - head/sys/opencrypto

2020-11-05 Thread John Baldwin
Author: jhb Date: Thu Nov 5 23:26:02 2020 New Revision: 367403 URL: https://svnweb.freebsd.org/changeset/base/367403 Log: Don't modify the destination pointer in ioctl requests. This breaks the case where the original pointer was NULL but an in-line IV was used. Reviewed by: markj

svn commit: r367400 - head/sys/dev/nvme

2020-11-05 Thread Mateusz Guzik
Author: mjg Date: Thu Nov 5 21:44:58 2020 New Revision: 367400 URL: https://svnweb.freebsd.org/changeset/base/367400 Log: nvme: change namei_request_zone into a malloc type Both the size (128 bytes) and ephemeral nature of allocations make it a great fit for malloc. A dedicated

svn commit: r367399 - head/contrib/bsnmp/snmpd

2020-11-05 Thread Enji Cooper
Author: ngie Date: Thu Nov 5 21:37:24 2020 New Revision: 367399 URL: https://svnweb.freebsd.org/changeset/base/367399 Log: snmpmod(3): fix typo under the COMMUNITIES section "recipte" should be spelled like "receipt". .Dd is intentionally not being bumped for the change. MFC

svn commit: r367398 - in head/sys: dev/acpica dev/xen/control kern sys

2020-11-05 Thread Konstantin Belousov
Author: kib Date: Thu Nov 5 20:52:49 2020 New Revision: 367398 URL: https://svnweb.freebsd.org/changeset/base/367398 Log: Suspend all writeable local filesystems on power suspend. This ensures that no writes are pending in memory, either metadata or user data, but not including dirty

svn commit: r367397 - head/sys/powerpc/include

2020-11-05 Thread Leandro Lupori
Author: luporl Date: Thu Nov 5 20:18:00 2020 New Revision: 367397 URL: https://svnweb.freebsd.org/changeset/base/367397 Log: Fix powerpc and powerpcspe builds This change fixes 32-bit PowerPC builds, that r367390 broke (shift count >= width of type). Modified:

svn commit: r367395 - in head/sys: amd64/linux amd64/linux32 arm64/linux compat/linux conf i386/linux modules/linux modules/linux64 modules/linux_common x86/linux

2020-11-05 Thread Conrad Meyer
Author: cem Date: Thu Nov 5 19:30:31 2020 New Revision: 367395 URL: https://svnweb.freebsd.org/changeset/base/367395 Log: linux(4): Deduplicate unimpl/dummy syscall handlers No functional change. Reviewed by: emaste, trasz Differential Revision:

svn commit: r367394 - in head/sys/arm: arm include

2020-11-05 Thread Edward Tomasz Napierala
Author: trasz Date: Thu Nov 5 18:10:03 2020 New Revision: 367394 URL: https://svnweb.freebsd.org/changeset/base/367394 Log: Remove the 'nap' field from ARM's 'struct syscall_args', to bring it in sync with (most) other architectures. No functional changes. Reviewed by: manu Tested

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

2020-11-05 Thread Allan Jude
Author: allanjude Date: Thu Nov 5 17:10:14 2020 New Revision: 367393 URL: https://svnweb.freebsd.org/changeset/base/367393 Log: VirtIO: Make sure the guest knows the TRIM alignment requirements If bhyve is used to emulate 512e access in guest OS, then discard addresses should be properly

svn commit: r367392 - head/lib/libpmcstat

2020-11-05 Thread Leandro Lupori
Author: luporl Date: Thu Nov 5 16:47:23 2020 New Revision: 367392 URL: https://svnweb.freebsd.org/changeset/base/367392 Log: pmcstat: fix PPC kernel symbol resolution PowerPC kernel is of DYN type and it has a base address where it is initially loaded, before being relocated. As the

svn commit: r367391 - head/lib/libpmc

2020-11-05 Thread Leandro Lupori
Author: luporl Date: Thu Nov 5 16:41:28 2020 New Revision: 367391 URL: https://svnweb.freebsd.org/changeset/base/367391 Log: libpmc: add support for POWER8/9 PMCs This change adds support for POWER8/9 performance counters. Reviewed by: jhibbits Sponsored by: Eldorado Research

svn commit: r367390 - in head/sys: dev/hwpmc modules/hwpmc powerpc/include sys

2020-11-05 Thread Leandro Lupori
Author: luporl Date: Thu Nov 5 16:36:39 2020 New Revision: 367390 URL: https://svnweb.freebsd.org/changeset/base/367390 Log: [PowerPC] hwpmc: add support for POWER8/9 PMCs This change adds support for POWER8 and POWER9 PMCs (bare metal and pseries). All PowerISA 2.07B non-random

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

2020-11-05 Thread Mateusz Guzik
Author: mjg Date: Thu Nov 5 16:21:21 2020 New Revision: 367389 URL: https://svnweb.freebsd.org/changeset/base/367389 Log: malloc: add a helper returning size allocated for given request Sample usage: kernel modules can decide whether to stick to malloc or create their own zone.

svn commit: r367388 - head/tests/sys/opencrypto

2020-11-05 Thread Mark Johnston
Author: markj Date: Thu Nov 5 16:00:57 2020 New Revision: 367388 URL: https://svnweb.freebsd.org/changeset/base/367388 Log: cryptotest: Add qat(4) coverage MFC after:3 days Sponsored by: Rubicon Communications, LLC (Netgate) Modified: head/tests/sys/opencrypto/cryptotest.py

svn commit: r367387 - in head/sys: contrib/dev/qat modules modules/qatfw modules/qatfw/qat_c2xxx modules/qatfw/qat_c3xxx modules/qatfw/qat_c62x modules/qatfw/qat_d15xx modules/qatfw/qat_dh895xcc

2020-11-05 Thread Mark Johnston
Author: markj Date: Thu Nov 5 16:00:30 2020 New Revision: 367387 URL: https://svnweb.freebsd.org/changeset/base/367387 Log: Add firmware modules for qat(4) MFC after:3 days Sponsored by: Rubicon Communications, LLC (Netgate) Added: head/sys/contrib/dev/qat/

svn commit: r367386 - in head: share/man/man4 sys/amd64/conf sys/conf sys/dev/qat sys/modules sys/modules/qat

2020-11-05 Thread Mark Johnston
Author: markj Date: Thu Nov 5 15:55:23 2020 New Revision: 367386 URL: https://svnweb.freebsd.org/changeset/base/367386 Log: Add qat(4) This provides an OpenCrypto driver for Intel QuickAssist devices. The driver was initially ported from NetBSD and comes with a few improvements: -

svn commit: r367384 - in head/sys: kern sys vm

2020-11-05 Thread Mateusz Guzik
Author: mjg Date: Thu Nov 5 15:08:56 2020 New Revision: 367384 URL: https://svnweb.freebsd.org/changeset/base/367384 Log: Rationalize per-cpu zones. The 2 provided zones had inconsistent naming between each other ("int" and "64") and other allocator zones (which use bytes). Follow

svn commit: r367383 - in head/sys: dev/hwpmc powerpc/include powerpc/powerpc

2020-11-05 Thread Leandro Lupori
Author: luporl Date: Thu Nov 5 14:15:50 2020 New Revision: 367383 URL: https://svnweb.freebsd.org/changeset/base/367383 Log: [PowerPC] Make PPC 970 PMC SPRs the standard ones And add a _74XX suffix to 74XX SPRs. This is a preparation for adding support to POWER8/9 PMCs, which have

svn commit: r367379 - head/sys/kern

2020-11-05 Thread Mateusz Guzik
Author: mjg Date: Thu Nov 5 12:24:37 2020 New Revision: 367379 URL: https://svnweb.freebsd.org/changeset/base/367379 Log: poll/select: change selfd_zone into a malloc type On a sample box vmstat -z shows: ITEM SIZE LIMIT USED FREE REQ 64:

Re: svn commit: r367343 - in head/sys/contrib/openzfs/include/os: freebsd/zfs/sys linux/zfs/sys

2020-11-05 Thread Mateusz Guzik
On 11/5/20, Alexey Dokuchaev wrote: > On Wed, Nov 04, 2020 at 09:18:52PM +, Mateusz Guzik wrote: >> New Revision: 367343 >> URL: https://svnweb.freebsd.org/changeset/base/367343 >> >> Log: >> zfs: add branch prediction to ZFS_ENTER and ZFS_VERIFY_ZP macros >> >> They are expected to fail

svn commit: r367372 - head/sys/kern

2020-11-05 Thread Mateusz Guzik
Author: mjg Date: Thu Nov 5 12:06:50 2020 New Revision: 367372 URL: https://svnweb.freebsd.org/changeset/base/367372 Log: vfs: change nt_zone into a malloc type Elements are small in size and allocated for short periods. Modified: head/sys/kern/vfs_lookup.c Modified:

Re: svn commit: r367280 - head/lib/libc/gen

2020-11-05 Thread Stefan Esser
Am 04.11.20 um 20:49 schrieb Konstantin Belousov: On Mon, Nov 02, 2020 at 11:51:12PM +0100, Stefan Esser wrote: Am 02.11.20 um 23:10 schrieb Konstantin Belousov: On Mon, Nov 02, 2020 at 10:49:07PM +0100, Emmanuel Vadot wrote: I think that the first question we want to ask is : Do we want

svn commit: r367368 - head/sys/fs/tmpfs

2020-11-05 Thread Mateusz Guzik
Author: mjg Date: Thu Nov 5 11:24:45 2020 New Revision: 367368 URL: https://svnweb.freebsd.org/changeset/base/367368 Log: tmpfs: reorder struct tmpfs_node to shrink it by 8 bytes The reduction (232 -> 224 bytes) allows UMA to fit one more item (17 -> 18) per slab as reported in

Re: svn commit: r367280 - head/lib/libc/gen

2020-11-05 Thread Stefan Esser
Am 04.11.20 um 20:40 schrieb Baptiste Daroussin: On Wed, Nov 04, 2020 at 11:04:37AM -0800, Rodney W. Grimes wrote: For 25 years PREFIX has been rigidly a part of the ports infustructure, why is it that the BASE system has been allowed to de-evolve from this concept as documented and REQUIRED

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

2020-11-05 Thread Andrew Turner
Author: andrew Date: Thu Nov 5 09:55:55 2020 New Revision: 367365 URL: https://svnweb.freebsd.org/changeset/base/367365 Log: Stop trying to bounce in memory allocated by bus dma Memory allocated by bus_dmamem_alloc will take into account any alignment requirements of the CPU it's

svn commit: r367364 - head/usr.bin/calendar

2020-11-05 Thread Stefan Eßer
Author: se Date: Thu Nov 5 08:58:21 2020 New Revision: 367364 URL: https://svnweb.freebsd.org/changeset/base/367364 Log: Restrict locale settings to the file they occur in This prevents LANG= in an included file from affecting the interpretation of month and day names in the including