svn commit: r366507 - head/sys/cam/scsi

2020-10-06 Thread Warner Losh
Author: imp Date: Wed Oct 7 05:44:35 2020 New Revision: 366507 URL: https://svnweb.freebsd.org/changeset/base/366507 Log: cam: Add quirk for Samsung MZ7* behind a SATA-to-SAS interposer Sometimes, this drive will be present in the system such that the the firmware identification string

svn commit: r366506 - head/sbin/nvmecontrol/modules/wdc

2020-10-06 Thread Warner Losh
Author: imp Date: Wed Oct 7 05:36:05 2020 New Revision: 366506 URL: https://svnweb.freebsd.org/changeset/base/366506 Log: nvmecontrol: Update wdc module for newer WDC NVMe products Update the to log fetch operation for latest WDC NVMe products. Tested on HGST SN100 (a few years old)

svn commit: r366505 - head/sys/cam/nvme

2020-10-06 Thread Warner Losh
Author: imp Date: Tue Oct 6 23:35:26 2020 New Revision: 366505 URL: https://svnweb.freebsd.org/changeset/base/366505 Log: nvme: Note where the CCB was released for passthrough command Modified: head/sys/cam/nvme/nvme_da.c Modified: head/sys/cam/nvme/nvme_da.c

svn commit: r366504 - head/sys/cam

2020-10-06 Thread Warner Losh
Author: imp Date: Tue Oct 6 23:33:56 2020 New Revision: 366504 URL: https://svnweb.freebsd.org/changeset/base/366504 Log: cam: Assert we have a reference when freeing sim Before we decrement refcount to sleep on the sim, assert that the refcount >= 1. If it were 0 here, we'd never wake

svn commit: r366503 - in head/sys: kern sys x86/x86

2020-10-06 Thread Mitchell Horne
Author: mhorne Date: Tue Oct 6 23:16:56 2020 New Revision: 366503 URL: https://svnweb.freebsd.org/changeset/base/366503 Log: Remove unused function cpu_boot() The prototype was added with the creation of kern_shutdown.c in r17658, but it appears to have never been implemented. Remove it

svn commit: r366502 - head/share/man/man8

2020-10-06 Thread John-Mark Gurney
Author: jmg Date: Tue Oct 6 22:53:11 2020 New Revision: 366502 URL: https://svnweb.freebsd.org/changeset/base/366502 Log: add the FILESYSTEMS placeholder and note that it's the default early_late_divider Modified: head/share/man/man8/rc.8 Modified: head/share/man/man8/rc.8

svn commit: r366501 - head/sys/fs/ext2fs

2020-10-06 Thread Pedro F. Giffuni
Author: pfg Date: Tue Oct 6 21:31:04 2020 New Revision: 366501 URL: https://svnweb.freebsd.org/changeset/base/366501 Log: ext2fs: minor typo. Obtained from:Dragonfly MFC after:3 days Modified: head/sys/fs/ext2fs/ext2_alloc.c Modified: head/sys/fs/ext2fs/ext2_alloc.c

svn commit: r366500 - head/sys/net

2020-10-06 Thread Kristof Provost
Author: kp Date: Tue Oct 6 19:19:56 2020 New Revision: 366500 URL: https://svnweb.freebsd.org/changeset/base/366500 Log: bridge: call member interface ioctl() without NET_EPOCH We're not allowed to hold NET_EPOCH while sleeping, so when we call ioctl() handlers for member interfaces we

svn commit: r366499 - stable/12/tools/tools/netmap

2020-10-06 Thread Vincenzo Maffione
Author: vmaffione Date: Tue Oct 6 19:15:11 2020 New Revision: 366499 URL: https://svnweb.freebsd.org/changeset/base/366499 Log: MFC r366394 netmap: tools: extend CFLAGS after including bsd.prog.mk MFC after: 1 week Modified: stable/12/tools/tools/netmap/Makefile Directory

svn commit: r366498 - stable/12/tools/tools/netmap

2020-10-06 Thread Vincenzo Maffione
Author: vmaffione Date: Tue Oct 6 19:14:03 2020 New Revision: 366498 URL: https://svnweb.freebsd.org/changeset/base/366498 Log: MFC r366393 netmap: tools: fix several compiler warnings MFC after: 1 week Modified: stable/12/tools/tools/netmap/Makefile

svn commit: r366497 - in stable/12: share/man/man4 tools/tools/netmap

2020-10-06 Thread Vincenzo Maffione
Author: vmaffione Date: Tue Oct 6 19:12:43 2020 New Revision: 366497 URL: https://svnweb.freebsd.org/changeset/base/366497 Log: MFC r366389 netmap: minor documentation fix Also update date of pkt-gen.8 (not done in r366387). Submitted by: milosz.kaniew...@gmail.com Modified:

svn commit: r366496 - stable/12/sys/net

2020-10-06 Thread Vincenzo Maffione
Author: vmaffione Date: Tue Oct 6 19:11:55 2020 New Revision: 366496 URL: https://svnweb.freebsd.org/changeset/base/366496 Log: MFC r366388 netmap: fix constness warnings generated by "-Wcast-qual" Submitted by: milosz.kaniew...@gmail.com Modified:

svn commit: r366495 - stable/12/tools/tools/netmap

2020-10-06 Thread Vincenzo Maffione
Author: vmaffione Date: Tue Oct 6 19:10:32 2020 New Revision: 366495 URL: https://svnweb.freebsd.org/changeset/base/366495 Log: MFC r366387 netmap: pkt-gen: minor corrections to documentation Submitted by: Brian Poole Modified: stable/12/tools/tools/netmap/pkt-gen.8

svn commit: r366494 - head/sys/dev/drm2

2020-10-06 Thread John Baldwin
Author: jhb Date: Tue Oct 6 18:13:15 2020 New Revision: 366494 URL: https://svnweb.freebsd.org/changeset/base/366494 Log: Don't permit DRM buffer mappings to be upgraded to executable. Reviewed by: kib MFC after:1 month Sponsored by: DARPA Differential Revision:

svn commit: r366493 - head/sys/opencrypto

2020-10-06 Thread John Baldwin
Author: jhb Date: Tue Oct 6 18:07:52 2020 New Revision: 366493 URL: https://svnweb.freebsd.org/changeset/base/366493 Log: Simplify swcr_authcompute() after removal of deprecated algorithms. - Just use sw->octx != NULL to handle the HMAC case when finalizing the MAC. - Explicitly

svn commit: r366492 - head/sys/netinet

2020-10-06 Thread John Baldwin
Author: jhb Date: Tue Oct 6 18:02:33 2020 New Revision: 366492 URL: https://svnweb.freebsd.org/changeset/base/366492 Log: Check if_capenable, not if_capabilities when enabling rate limiting. if_capabilities is a read-only mask of supported capabilities. if_capenable is a mask under

svn commit: r366491 - in head/sys: dev/cxgbe dev/cxgbe/crypto dev/mlx5/mlx5_en kern net sys

2020-10-06 Thread John Baldwin
Author: jhb Date: Tue Oct 6 17:58:56 2020 New Revision: 366491 URL: https://svnweb.freebsd.org/changeset/base/366491 Log: Store the send tag type in the common send tag header. Both cxgbe(4) and mlx5(4) wrapped the existing send tag header with their own identical headers that stored

svn commit: r366490 - releng/12.2/cddl/contrib/opensolaris/lib/libzfs/common

2020-10-06 Thread Glen Barber
Author: gjb Date: Tue Oct 6 15:17:41 2020 New Revision: 366490 URL: https://svnweb.freebsd.org/changeset/base/366490 Log: MFS12 r366180, r366341: r366180 (asomers): Fix resuming receive stream to dataset with mounted clone r366341 (asomers): Fix "zfs receive" of interrupted

svn commit: r366489 - head/sys/netinet

2020-10-06 Thread Michael Tuexen
Author: tuexen Date: Tue Oct 6 14:26:05 2020 New Revision: 366489 URL: https://svnweb.freebsd.org/changeset/base/366489 Log: Reset delayed SACK state when restarting an SCTP association. MFC after:3 days Modified: head/sys/netinet/sctp_input.c Modified:

svn commit: r366488 - in stable/12/sys: kern sys

2020-10-06 Thread Mark Johnston
Author: markj Date: Tue Oct 6 14:03:59 2020 New Revision: 366488 URL: https://svnweb.freebsd.org/changeset/base/366488 Log: MFC r365759-r365765, r365788: Simplify unix domain socket locking. Modified: stable/12/sys/kern/uipc_usrreq.c stable/12/sys/sys/unpcb.h Directory Properties:

svn commit: r366487 - head/sys/riscv/riscv

2020-10-06 Thread Jessica Clarke
Author: jrtc27 Date: Tue Oct 6 13:03:31 2020 New Revision: 366487 URL: https://svnweb.freebsd.org/changeset/base/366487 Log: riscv: Remove outdated condition in page_fault_handler Since r366355 and r366284 we panic on access faults rather than treating them like page faults so this

svn commit: r366486 - head/sys/riscv/riscv

2020-10-06 Thread Jessica Clarke
Author: jrtc27 Date: Tue Oct 6 13:02:20 2020 New Revision: 366486 URL: https://svnweb.freebsd.org/changeset/base/366486 Log: riscv: Handle supervisor instruction page faults We should never take instruction page faults when in the kernel, but by using the standard page fault code we

svn commit: r366485 - head/tests/sys/capsicum

2020-10-06 Thread Li-Wen Hsu
Author: lwhsu Date: Tue Oct 6 12:57:54 2020 New Revision: 366485 URL: https://svnweb.freebsd.org/changeset/base/366485 Log: Temporarily skip failing test cases in CI: sys.capsicum.functional.ForkedOpenatTest_WithFlagInCapabilityMode___ sys.capsicum.functional.OpenatTest__WithFlag

svn commit: r366484 - head/sys/riscv/riscv

2020-10-06 Thread Jessica Clarke
Author: jrtc27 Date: Tue Oct 6 12:56:29 2020 New Revision: 366484 URL: https://svnweb.freebsd.org/changeset/base/366484 Log: riscv: De-Arm a few names These names were inherited from the arm64 port and should be changed to the RISC-V terminology. Reviewed by: jhb (mentor), kp,

svn commit: r366483 - head/sys/netinet

2020-10-06 Thread Michael Tuexen
Author: tuexen Date: Tue Oct 6 11:29:08 2020 New Revision: 366483 URL: https://svnweb.freebsd.org/changeset/base/366483 Log: Ensure variables are initialized before used. MFC after:3 days Modified: head/sys/netinet/sctp_input.c head/sys/netinet/sctp_pcb.c Modified:

svn commit: r366482 - head/sys/netinet

2020-10-06 Thread Michael Tuexen
Author: tuexen Date: Tue Oct 6 11:08:52 2020 New Revision: 366482 URL: https://svnweb.freebsd.org/changeset/base/366482 Log: Remove dead stores reported by clang static code analysis MFC after:3 days Modified: head/sys/netinet/sctp_input.c head/sys/netinet/sctp_output.c

svn commit: r366481 - head/share/man/man3

2020-10-06 Thread Gordon Bergling
Author: gbe (doc committer) Date: Tue Oct 6 10:51:47 2020 New Revision: 366481 URL: https://svnweb.freebsd.org/changeset/base/366481 Log: intro(3): Update the list of included libraries - Extend the list of main libraries of section 3 - Extend the library functions that are included in

svn commit: r366480 - head/sys/netinet

2020-10-06 Thread Michael Tuexen
Author: tuexen Date: Tue Oct 6 10:41:04 2020 New Revision: 366480 URL: https://svnweb.freebsd.org/changeset/base/366480 Log: Cleanup, no functional change intended. MFC after:3 days Modified: head/sys/netinet/sctp_usrreq.c Modified: head/sys/netinet/sctp_usrreq.c

svn commit: r366479 - head/sys/compat/linuxkpi/common/include/linux

2020-10-06 Thread Emmanuel Vadot
Author: manu Date: Tue Oct 6 10:41:00 2020 New Revision: 366479 URL: https://svnweb.freebsd.org/changeset/base/366479 Log: linuxkpi: Add pagemap.h Add release_pages needed by drm which simply calls put_page for all the pages provided Reviewed by: bz Sponsored by: The FreeBSD

svn commit: r366478 - head/sys/compat/linuxkpi/common/include/linux

2020-10-06 Thread Emmanuel Vadot
Author: manu Date: Tue Oct 6 10:39:40 2020 New Revision: 366478 URL: https://svnweb.freebsd.org/changeset/base/366478 Log: linuxkpi: Add power_supply.h Add power_supply_is_system_supplied which is needed by drm. Reviewed by: bz Sponsored by: The FreeBSD Foundation Differential

svn commit: r366477 - head/sys/compat/linuxkpi/common/include/linux

2020-10-06 Thread Emmanuel Vadot
Author: manu Date: Tue Oct 6 10:37:21 2020 New Revision: 366477 URL: https://svnweb.freebsd.org/changeset/base/366477 Log: linuxkpi: Add prefetch.h Only add prefetchw as it is the only function used by drm. Simply use the __builtin_prefetch which is available in all compiler for a

svn commit: r366476 - head/sys/compat/linuxkpi/common/include/linux

2020-10-06 Thread Emmanuel Vadot
Author: manu Date: Tue Oct 6 10:36:16 2020 New Revision: 366476 URL: https://svnweb.freebsd.org/changeset/base/366476 Log: linuxkpi: Add numa.h Only contain NUMA_NO_NODE needed by drm Reviewed by: bz Sponsored by: The FreeBSD Foundation Differential Revision:

svn commit: r366475 - head/sys/compat/linuxkpi/common/include/linux

2020-10-06 Thread Emmanuel Vadot
Author: manu Date: Tue Oct 6 10:35:03 2020 New Revision: 366475 URL: https://svnweb.freebsd.org/changeset/base/366475 Log: linuxkpi: Add gcd function This compute the common greater divider Taken from OpenBSD Reviewed by: bz, imp Sponsored by: The FreeBSD Foundation

svn commit: r366474 - head/sys/netinet

2020-10-06 Thread Michael Tuexen
Author: tuexen Date: Tue Oct 6 09:51:40 2020 New Revision: 366474 URL: https://svnweb.freebsd.org/changeset/base/366474 Log: Whitespace changes. MFC after:3 days Modified: head/sys/netinet/sctp_input.c Modified: head/sys/netinet/sctp_input.c

svn commit: r366473 - in stable/12/sys: amd64/include x86/include

2020-10-06 Thread Konstantin Belousov
Author: kib Date: Tue Oct 6 09:28:24 2020 New Revision: 366473 URL: https://svnweb.freebsd.org/changeset/base/366473 Log: MFC r366415: Move ctx_switch_xsave declaration to amd64 md_var.h. Modified: stable/12/sys/amd64/include/md_var.h stable/12/sys/x86/include/x86_var.h Directory

svn commit: r366472 - head/usr.bin/backlight

2020-10-06 Thread Baptiste Daroussin
Author: bapt Date: Tue Oct 6 08:18:09 2020 New Revision: 366472 URL: https://svnweb.freebsd.org/changeset/base/366472 Log: backlight: check the lenght if the input before trimming '%' Reported by: hps Reviewed by: manu Differential Revision:https://reviews.freebsd.org/D26693

Re: svn commit: r366471 - head/usr.bin/backlight

2020-10-06 Thread Hans Petter Selasky
On 2020-10-06 10:05, Baptiste Daroussin wrote: Author: bapt Date: Tue Oct 6 08:05:19 2020 New Revision: 366471 URL: https://svnweb.freebsd.org/changeset/base/366471 Log: backlight: accept '%' in the brightness input value Improve friendlyness of the command line by accepting the

svn commit: r366471 - head/usr.bin/backlight

2020-10-06 Thread Baptiste Daroussin
Author: bapt Date: Tue Oct 6 08:05:19 2020 New Revision: 366471 URL: https://svnweb.freebsd.org/changeset/base/366471 Log: backlight: accept '%' in the brightness input value Improve friendlyness of the command line by accepting the percent brightness in both format: with or without a

svn commit: r366470 - in head: share/mk tests/sys/capsicum

2020-10-06 Thread Li-Wen Hsu
Author: lwhsu Date: Tue Oct 6 06:45:52 2020 New Revision: 366470 URL: https://svnweb.freebsd.org/changeset/base/366470 Log: Make capsicum test cases fine-grained Add a wrapping script to use ATF to run tests written with Googletest one by one. This helps locating and tracking the