svn commit: r327763 - in head/sys: conf contrib/zstd/lib/freebsd

2018-01-09 Thread Conrad Meyer
Author: cem Date: Wed Jan 10 06:30:59 2018 New Revision: 327763 URL: https://svnweb.freebsd.org/changeset/base/327763 Log: Finally, fix Zstd kernel build on MIPS and RISC-V Add an implementation of the intrinsics invoked by __builtin_ctz{,ll} and __builtin_clz{,ll}, and include this

svn commit: r327762 - head/sbin/camcontrol

2018-01-09 Thread Scott Long
Author: scottl Date: Wed Jan 10 05:52:24 2018 New Revision: 327762 URL: https://svnweb.freebsd.org/changeset/base/327762 Log: Refactor code related to 'camcontrol devlist' Obtained from:Netflix Modified: head/sbin/camcontrol/camcontrol.c Modified:

svn commit: r327761 - head/sbin/camcontrol

2018-01-09 Thread Scott Long
Author: scottl Date: Wed Jan 10 05:29:02 2018 New Revision: 327761 URL: https://svnweb.freebsd.org/changeset/base/327761 Log: Implement the ability to query NVME for its controller data so that it will be shown when issueing the 'camcontrol devlist' command. Obtained from:Netflix

svn commit: r327760 - head/sys/geom/mirror

2018-01-09 Thread Mark Johnston
Author: markj Date: Wed Jan 10 05:06:21 2018 New Revision: 327760 URL: https://svnweb.freebsd.org/changeset/base/327760 Log: Avoid referencing a possibly freed consumer after r327496. g_mirror_regular_request() may free the gmirror consumer for a disk if that disk is being disconnected,

svn commit: r327759 - head/lib/libcasper/services/cap_dns

2018-01-09 Thread Mariusz Zaborski
Author: oshogbo Date: Wed Jan 10 02:57:22 2018 New Revision: 327759 URL: https://svnweb.freebsd.org/changeset/base/327759 Log: Fix markup. Modified: head/lib/libcasper/services/cap_dns/cap_dns.3 Modified: head/lib/libcasper/services/cap_dns/cap_dns.3

svn commit: r327758 - head/sys/dev/iicbus

2018-01-09 Thread Ian Lepore
Author: ian Date: Wed Jan 10 02:57:03 2018 New Revision: 327758 URL: https://svnweb.freebsd.org/changeset/base/327758 Log: Convert a collection of unrelated bitwise flags to a collection of boolean vars in the softc. It makes the code more compact and readable, and actually uses less

svn commit: r327757 - head/sys/dev/iicbus

2018-01-09 Thread Ian Lepore
Author: ian Date: Wed Jan 10 02:31:59 2018 New Revision: 327757 URL: https://svnweb.freebsd.org/changeset/base/327757 Log: Bugfix: don't lose the am/pm mode flag when setting the time. Unlike most RTC chips that have a control register bit for am/pm mode, the DS13xx series uses one of the

svn commit: r327756 - head/sys/dev/iicbus

2018-01-09 Thread Ian Lepore
Author: ian Date: Wed Jan 10 02:28:10 2018 New Revision: 327756 URL: https://svnweb.freebsd.org/changeset/base/327756 Log: Bugfix: on RTC chips with a 32-bit binary counter, after reading the time, return immediately rather than falling through to the logic that reads BCD-encoded time.

svn commit: r327755 - head/sys/kern

2018-01-09 Thread John Baldwin
Author: jhb Date: Wed Jan 10 00:18:47 2018 New Revision: 327755 URL: https://svnweb.freebsd.org/changeset/base/327755 Log: Allow the fast-path for disk AIO requests to fail requests. - If aio_qphysio() returns a non-zero error code, fail the request rather than queueing it to the AIO

svn commit: r327754 - head/sys/dev/md

2018-01-09 Thread Jonathan T. Looney
Author: jtl Date: Wed Jan 10 00:08:57 2018 New Revision: 327754 URL: https://svnweb.freebsd.org/changeset/base/327754 Log: Fix backwards MD_VERIFY logic for md devices. If the MD_VERIFY flag is set, we should use O_VERIFY. If the MD_VERIFY flag is not set, we should not. Reviewed

svn commit: r327753 - head/sys/kern

2018-01-09 Thread John Baldwin
Author: jhb Date: Wed Jan 10 00:02:06 2018 New Revision: 327753 URL: https://svnweb.freebsd.org/changeset/base/327753 Log: Simplify some logic by merging an if test with a subsequent switch. Specifically, in aio_queue_file() the code was doing this: if (opcode == LIO_SYNC) {

svn commit: r327752 - head/sys/kern

2018-01-09 Thread John Baldwin
Author: jhb Date: Tue Jan 9 23:57:29 2018 New Revision: 327752 URL: https://svnweb.freebsd.org/changeset/base/327752 Log: Add a counter to track in-flight AIO requests using unmapped I/O. MFC after:2 weeks Sponsored by: Chelsio Communications Modified: head/sys/kern/vfs_aio.c

svn commit: r327751 - head/include

2018-01-09 Thread Pedro F. Giffuni
Author: pfg Date: Tue Jan 9 22:48:13 2018 New Revision: 327751 URL: https://svnweb.freebsd.org/changeset/base/327751 Log: Use the __result_use_check attribute also for reallocf(3). The GCC attribute causes a warning to be emitted if a caller of the function with this attribute does not

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

2018-01-09 Thread Scott Long
Author: scottl Date: Tue Jan 9 21:24:05 2018 New Revision: 327742 URL: https://svnweb.freebsd.org/changeset/base/327742 Log: Release the held refcount on the probe periph when probing is done, now that r327741 lets this happen. Obtained from:Netflix Modified:

svn commit: r327741 - head/sys/cam

2018-01-09 Thread Scott Long
Author: scottl Date: Tue Jan 9 21:23:16 2018 New Revision: 327741 URL: https://svnweb.freebsd.org/changeset/base/327741 Log: Hold a refcount on the periph while running the allocation queue. This will allow sub-transports to release their probe pseudo-device with fewer convoluted

svn commit: r327740 - head/sys/sys

2018-01-09 Thread Bryan Drewery
Author: bdrewery Date: Tue Jan 9 21:12:53 2018 New Revision: 327740 URL: https://svnweb.freebsd.org/changeset/base/327740 Log: Bump version for r327597 adding cpucontrol -e support Modified: head/sys/sys/param.h Modified: head/sys/sys/param.h

svn commit: r327739 - head/contrib/subversion/subversion/svn svnadmin/hooks/scripts

2018-01-09 Thread Alan Somers
Author: asomers Date: Tue Jan 9 21:02:39 2018 New Revision: 327739 URL: https://svnweb.freebsd.org/changeset/base/327739 Log: Add Pull Request to the Subversion commit template Reviewed by: emaste MFC after:2 weeks Differential Revision:https://reviews.freebsd.org/D13178

svn commit: r327738 - head/sys/conf

2018-01-09 Thread Conrad Meyer
Author: cem Date: Tue Jan 9 20:53:30 2018 New Revision: 327738 URL: https://svnweb.freebsd.org/changeset/base/327738 Log: Fix Zstd x86 kernel build with -march= Disable Zstd experimental support for __BMI__ intrinsics, when built with -march=foo supporting such intrinsics, to avoid

svn commit: r327737 - head/etc/rc.d

2018-01-09 Thread Cy Schubert
Author: cy Date: Tue Jan 9 20:35:58 2018 New Revision: 327737 URL: https://svnweb.freebsd.org/changeset/base/327737 Log: USNO and possibly others have misinterpreted the maining of the leapseconds last-update field and incorrectly increment it when changing the file even though the

Re: svn commit: r327706 - in head/sys: conf contrib/zstd/lib/freebsd

2018-01-09 Thread O. Hartmann
Am Tue, 9 Jan 2018 15:06:23 -0500 Jung-uk Kim schrieb: > On 01/09/2018 04:47, O. Hartmann wrote: > > On Mon, 8 Jan 2018 20:14:16 + (UTC) > > Conrad Meyer wrote: > > > >> Author: cem > >> Date: Mon Jan 8 20:14:16 2018 > >> New Revision: 327706 > >>

Re: svn commit: r327706 - in head/sys: conf contrib/zstd/lib/freebsd

2018-01-09 Thread Jung-uk Kim
On 01/09/2018 04:47, O. Hartmann wrote: > On Mon, 8 Jan 2018 20:14:16 + (UTC) > Conrad Meyer wrote: > >> Author: cem >> Date: Mon Jan 8 20:14:16 2018 >> New Revision: 327706 >> URL: https://svnweb.freebsd.org/changeset/base/327706 >> >> Log: >> Integrate zstd into the

svn commit: r327736 - head/sys/powerpc/conf

2018-01-09 Thread Nathan Whitehorn
Author: nwhitehorn Date: Tue Jan 9 19:41:10 2018 New Revision: 327736 URL: https://svnweb.freebsd.org/changeset/base/327736 Log: Add XHCI support to powerpc64 GENERIC. This is useful to get input devices supported on newer POWER hardware and in graphical VMs run on the same, which are

svn commit: r327735 - head/tests/sys/netpfil/pf

2018-01-09 Thread Kristof Provost
Author: kp Date: Tue Jan 9 19:02:42 2018 New Revision: 327735 URL: https://svnweb.freebsd.org/changeset/base/327735 Log: pf tests: Fix pft_ping.py to work with scapy 2.3.3 Scapy requires the Raw payload to be a string, which was not the case. This caused the pft_ping.py script to fail,

Re: svn commit: r327705 - head/stand/mips/beri/common

2018-01-09 Thread Warner Losh
On Tue, Jan 9, 2018 at 10:05 AM, John Baldwin wrote: > On Monday, January 08, 2018 12:02:09 PM Warner Losh wrote: > > This should have been a nop... libsa specifically creates 'safe' headers > > for all the standard ones. > > > > Ah, libsa creates a perfectly fine stdint.h, but

Re: svn commit: r327705 - head/stand/mips/beri/common

2018-01-09 Thread John Baldwin
On Monday, January 08, 2018 12:02:09 PM Warner Losh wrote: > This should have been a nop... libsa specifically creates 'safe' headers > for all the standard ones. > > Ah, libsa creates a perfectly fine stdint.h, but not a inttypes.h... Would you prefer it to use stdint.h and stdio.h rather than

svn commit: r327731 - head/sys/dev/acpica

2018-01-09 Thread Warner Losh
Author: imp Date: Tue Jan 9 16:42:24 2018 New Revision: 327731 URL: https://svnweb.freebsd.org/changeset/base/327731 Log: Consolidate two identical copies of sysres_ids. Modified: head/sys/dev/acpica/acpi.c Modified: head/sys/dev/acpica/acpi.c

svn commit: r327730 - head/share/man/man4

2018-01-09 Thread Konstantin Belousov
Author: kib Date: Tue Jan 9 16:28:45 2018 New Revision: 327730 URL: https://svnweb.freebsd.org/changeset/base/327730 Log: Fix year. Noted by: oshogbo Sponsored by: The FreeBSD Foundation MFC after:3 days Modified: head/share/man/man4/smp.4 Modified:

svn commit: r327729 - in head/sys: cam/scsi i386/isa

2018-01-09 Thread Warner Losh
Author: imp Date: Tue Jan 9 16:11:33 2018 New Revision: 327729 URL: https://svnweb.freebsd.org/changeset/base/327729 Log: Remove ccbque.h from i386/isa. inline ccbque.h into scsi_low.h. The file isn't MD, so shouldn't live in i386/isa. It's only used by scsi_low, so move it there so no

svn commit: r327728 - head/sys/dev/psci

2018-01-09 Thread Andrew Turner
Author: andrew Date: Tue Jan 9 15:57:09 2018 New Revision: 327728 URL: https://svnweb.freebsd.org/changeset/base/327728 Log: Add a function to find the PSCI version the firmware implements from outside the PSCI driver. MFC after:1 week Sponsored by: DARPA, AFRL Modified:

svn commit: r327727 - in head/sys: arm64/arm64 arm64/include conf

2018-01-09 Thread Andrew Turner
Author: andrew Date: Tue Jan 9 14:33:05 2018 New Revision: 327727 URL: https://svnweb.freebsd.org/changeset/base/327727 Log: Add a framework to install CPU errata on arm64. Each erratum can encode a mask and value to compare with the Main ID Register. If these match then a function is

svn commit: r327726 - head/sys/amd64/vmm/amd

2018-01-09 Thread Andriy Gapon
Author: avg Date: Tue Jan 9 14:22:18 2018 New Revision: 327726 URL: https://svnweb.freebsd.org/changeset/base/327726 Log: vmm/svm: contigmalloc of the whole svm_softc is excessive This is a followup to r307903. struct svm_softc takes more than 200 kilobytes while what we really need

svn commit: r327725 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2018-01-09 Thread Andriy Gapon
Author: avg Date: Tue Jan 9 13:43:04 2018 New Revision: 327725 URL: https://svnweb.freebsd.org/changeset/base/327725 Log: zfs_mount: restore a bit of ifdef-out illumos code And correctly mark the end of the replacement FreeBSD code. MFC after:1 week Modified:

svn commit: r327724 - head/sys/dev/usb

2018-01-09 Thread Andriy Gapon
Author: avg Date: Tue Jan 9 13:42:08 2018 New Revision: 327724 URL: https://svnweb.freebsd.org/changeset/base/327724 Log: usbdevs: add ASMedia vendor ID MFC after:1 week Modified: head/sys/dev/usb/usbdevs Modified: head/sys/dev/usb/usbdevs

svn commit: r327723 - head/sys/ufs/ffs

2018-01-09 Thread Konstantin Belousov
Author: kib Date: Tue Jan 9 10:51:44 2018 New Revision: 327723 URL: https://svnweb.freebsd.org/changeset/base/327723 Log: Generalize the fix from r322757 and apply it to several more places. The code accesses bp->b_dep without owning the ufs mount softdep lock, which makes it possible

svn commit: r327722 - head/sys/ufs/ffs

2018-01-09 Thread Konstantin Belousov
Author: kib Date: Tue Jan 9 10:44:17 2018 New Revision: 327722 URL: https://svnweb.freebsd.org/changeset/base/327722 Log: When handling write completion, take SU lock around calls to handle_written_XXX() in case of processing the buffer with an error. Tested by:pho (as part of the

svn commit: r327721 - head/sys/ufs/ffs

2018-01-09 Thread Konstantin Belousov
Author: kib Date: Tue Jan 9 10:33:11 2018 New Revision: 327721 URL: https://svnweb.freebsd.org/changeset/base/327721 Log: Postpone the disassotiation of the background write buffer with devvp so that buf_complete() sees fully constructed buffer. This is a NOP right now, but will be

Re: svn commit: r327706 - in head/sys: conf contrib/zstd/lib/freebsd

2018-01-09 Thread O. Hartmann
On Mon, 8 Jan 2018 20:14:16 + (UTC) Conrad Meyer wrote: > Author: cem > Date: Mon Jan 8 20:14:16 2018 > New Revision: 327706 > URL: https://svnweb.freebsd.org/changeset/base/327706 > > Log: > Integrate zstd into the kernel > > Mock userspace headers and include