svn commit: r358691 - head/lib/libc/powerpc64/string

2020-03-05 Thread Justin Hibbits
Author: jhibbits Date: Fri Mar 6 03:46:48 2020 New Revision: 358691 URL: https://svnweb.freebsd.org/changeset/base/358691 Log: powerpc/memcpy: Don't predict the src and dst will be misaligned Predicting misalignment will pessimize the expected common case. Don't predict true or false

svn commit: r358690 - head/lib/libc/powerpc64/string

2020-03-05 Thread Justin Hibbits
Author: jhibbits Date: Fri Mar 6 02:30:04 2020 New Revision: 358690 URL: https://svnweb.freebsd.org/changeset/base/358690 Log: Finish revert of r358672, missed in r358688. Manual reverts never succeed correctly. Reported by: luporl Modified:

svn commit: r358689 - head/sys/dev/mfi

2020-03-05 Thread Justin Hibbits
Author: jhibbits Date: Fri Mar 6 01:50:15 2020 New Revision: 358689 URL: https://svnweb.freebsd.org/changeset/base/358689 Log: Fix a mistaken conditional in mfi_tbolt_send_frame() As written, the condition of (cdb[0] != 0x28 || cdb[0] != 0x2A) will always be true, since if it's one,

svn commit: r358688 - head/lib/libc/powerpc64/string

2020-03-05 Thread Justin Hibbits
Author: jhibbits Date: Fri Mar 6 01:45:03 2020 New Revision: 358688 URL: https://svnweb.freebsd.org/changeset/base/358688 Log: powerpc/powerpc64: Enforce natural alignment in memcpy Summary: POWER architecture CPUs (Book-S) require natural alignment for cache-inhibited storage

Re: svn commit: r358687 - head/libexec/tftpd/tests

2020-03-05 Thread John Baldwin
On 3/5/20 2:45 PM, Kyle Evans wrote: > Author: kevans > Date: Thu Mar 5 22:45:16 2020 > New Revision: 358687 > URL: https://svnweb.freebsd.org/changeset/base/358687 > > Log: > tftpd: tests: raise targeted cstd to c11 > > r358556 added alignas() use to the functional tests, which isn't

svn commit: r358687 - head/libexec/tftpd/tests

2020-03-05 Thread Kyle Evans
Author: kevans Date: Thu Mar 5 22:45:16 2020 New Revision: 358687 URL: https://svnweb.freebsd.org/changeset/base/358687 Log: tftpd: tests: raise targeted cstd to c11 r358556 added alignas() use to the functional tests, which isn't defined until C11. Raise the -std to C11 to fix the

Re: svn commit: r358655 - head/sbin/mount_nfs

2020-03-05 Thread Dimitry Andric
On 5 Mar 2020, at 22:01, Gleb Smirnoff wrote: > > On Thu, Mar 05, 2020 at 09:30:41PM +0300, Slawa Olhovchenkov wrote: > S> > > On Thu, Mar 05, 2020 at 08:35:15PM +0300, Slawa Olhovchenkov wrote: > S> > > S> > > D> sbin/mount_nfs/mount_nfs.c:549:10: error: cast from 'char *' > to 'struct > S> >

svn commit: r358686 - head/sbin/mount_nfs

2020-03-05 Thread Gleb Smirnoff
Author: glebius Date: Thu Mar 5 21:01:47 2020 New Revision: 358686 URL: https://svnweb.freebsd.org/changeset/base/358686 Log: Align the buffer to the alignment of the structure we expect. Submitted by: Slawa Olhovchenkov Modified: head/sbin/mount_nfs/mount_nfs.c Modified:

Re: svn commit: r358655 - head/sbin/mount_nfs

2020-03-05 Thread Gleb Smirnoff
On Thu, Mar 05, 2020 at 09:30:41PM +0300, Slawa Olhovchenkov wrote: S> > > On Thu, Mar 05, 2020 at 08:35:15PM +0300, Slawa Olhovchenkov wrote: S> > > S> > > D> sbin/mount_nfs/mount_nfs.c:549:10: error: cast from 'char *' to 'struct S> > > S> > > D> if_msghdr *' increases required alignment from 1

svn commit: r358685 - head/contrib/elftoolchain/libelf

2020-03-05 Thread Ed Maste
Author: emaste Date: Thu Mar 5 20:53:43 2020 New Revision: 358685 URL: https://svnweb.freebsd.org/changeset/base/358685 Log: libelf: rationalize error handling in ELF note conversion Previously _libelf_cvt_NOTE_tom (to host) returned false if a note's namesz + descsz exceeded the buffer

svn commit: r358684 - in head/sys: amd64/conf conf dev/aacraid modules modules/aacraid powerpc/conf

2020-03-05 Thread Leandro Lupori
Author: luporl Date: Thu Mar 5 20:04:41 2020 New Revision: 358684 URL: https://svnweb.freebsd.org/changeset/base/358684 Log: [aacraid] Port driver to big-endian Port aacraid driver to big-endian (BE) hosts. The immediate goal of this change is to make it possible to use the aacraid

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

2020-03-05 Thread Alexander Motin
Author: mav Date: Thu Mar 5 19:43:43 2020 New Revision: 358683 URL: https://svnweb.freebsd.org/changeset/base/358683 Log: Remove vfs.zfs.top_maxinflight tunable/sysctl. It is dead since sorted scrub import at r334844. MFC after:1 week Sponsored by: iXsystems, Inc. Modified:

Re: svn commit: r358655 - head/sbin/mount_nfs

2020-03-05 Thread Slawa Olhovchenkov
On Thu, Mar 05, 2020 at 07:19:59PM +0100, Dimitry Andric wrote: > On 5 Mar 2020, at 18:44, Gleb Smirnoff wrote: > > > > On Thu, Mar 05, 2020 at 08:35:15PM +0300, Slawa Olhovchenkov wrote: > > S> > > D> sbin/mount_nfs/mount_nfs.c:549:10: error: cast from 'char *' to > > 'struct > > S> > > D>

Re: svn commit: r358655 - head/sbin/mount_nfs

2020-03-05 Thread Dimitry Andric
On 5 Mar 2020, at 18:44, Gleb Smirnoff wrote: > > On Thu, Mar 05, 2020 at 08:35:15PM +0300, Slawa Olhovchenkov wrote: > S> > > D> sbin/mount_nfs/mount_nfs.c:549:10: error: cast from 'char *' to > 'struct > S> > > D> if_msghdr *' increases required alignment from 1 to 4 > S> > > D>

Re: svn commit: r358556 - in head: libexec/tftpd libexec/tftpd/tests usr.bin/tftp

2020-03-05 Thread Mitchell Horne
On Mon, Mar 2, 2020 at 5:19 PM John Baldwin wrote: > > Author: jhb > Date: Mon Mar 2 22:19:30 2020 > New Revision: 358556 > URL: https://svnweb.freebsd.org/changeset/base/358556 > > Log: > Add support for the TFTP windowsize option described in RFC 7440. > > The windowsize option permits

svn commit: r358677 - head

2020-03-05 Thread Dimitry Andric
Author: dim Date: Thu Mar 5 17:53:38 2020 New Revision: 358677 URL: https://svnweb.freebsd.org/changeset/base/358677 Log: Remove duplicate usr/libexec/cc1plus entry from ObsoleteFiles.inc. Modified: head/ObsoleteFiles.inc Modified: head/ObsoleteFiles.inc

Re: svn commit: r358655 - head/sbin/mount_nfs

2020-03-05 Thread Gleb Smirnoff
On Thu, Mar 05, 2020 at 08:35:15PM +0300, Slawa Olhovchenkov wrote: S> > > D> sbin/mount_nfs/mount_nfs.c:549:10: error: cast from 'char *' to 'struct S> > > D> if_msghdr *' increases required alignment from 1 to 4 S> > > D> [-Werror,-Wcast-align] S> > > D> ifm = (struct

Re: svn commit: r358655 - head/sbin/mount_nfs

2020-03-05 Thread Slawa Olhovchenkov
On Thu, Mar 05, 2020 at 08:24:54PM +0300, Slawa Olhovchenkov wrote: > On Thu, Mar 05, 2020 at 08:33:50AM -0800, Gleb Smirnoff wrote: > > > On Thu, Mar 05, 2020 at 03:29:23PM +0100, Dimitry Andric wrote: > > D> On 2020-03-04 23:27, Gleb Smirnoff wrote: > > D> > Author: glebius > > D> > Date: Wed

Re: svn commit: r358655 - head/sbin/mount_nfs

2020-03-05 Thread Slawa Olhovchenkov
On Thu, Mar 05, 2020 at 08:33:50AM -0800, Gleb Smirnoff wrote: > On Thu, Mar 05, 2020 at 03:29:23PM +0100, Dimitry Andric wrote: > D> On 2020-03-04 23:27, Gleb Smirnoff wrote: > D> > Author: glebius > D> > Date: Wed Mar 4 22:27:16 2020 > D> > New Revision: 358655 > D> > URL:

Re: svn commit: r358655 - head/sbin/mount_nfs

2020-03-05 Thread Gleb Smirnoff
On Thu, Mar 05, 2020 at 03:29:23PM +0100, Dimitry Andric wrote: D> On 2020-03-04 23:27, Gleb Smirnoff wrote: D> > Author: glebius D> > Date: Wed Mar 4 22:27:16 2020 D> > New Revision: 358655 D> > URL: https://svnweb.freebsd.org/changeset/base/358655 D> > D> > Log: D> >When a machine boots

svn commit: r358676 - head/sys/kern

2020-03-05 Thread Konstantin Belousov
Author: kib Date: Thu Mar 5 15:52:34 2020 New Revision: 358676 URL: https://svnweb.freebsd.org/changeset/base/358676 Log: buffer pager: deref ucred immediately after read. Ucred is passed to bread(9) so that non-local filesystems use proper credentials. But, since clean buffer might be

svn commit: r358675 - head/lib/libc/sys

2020-03-05 Thread Ed Maste
Author: emaste Date: Thu Mar 5 15:51:44 2020 New Revision: 358675 URL: https://svnweb.freebsd.org/changeset/base/358675 Log: umtx_op.2: correct typo PR: 244611 Submitted by: John F. Carr MFC after:3 days Modified: head/lib/libc/sys/_umtx_op.2 Modified:

Re: svn commit: r346018 - head/sys/conf

2020-03-05 Thread Alan Somers
Wow, what a speedy response, and so late at night! Thanks! On Wed, Mar 4, 2020 at 11:22 PM Warner Losh wrote: > > > On Wed, Mar 4, 2020 at 10:27 PM Alan Somers wrote: > >> On Sun, Apr 7, 2019 at 12:40 PM Warner Losh wrote: >> >>> Author: imp >>> Date: Sun Apr 7 18:39:55 2019 >>> New

svn commit: r358674 - head/lib/libc/gen

2020-03-05 Thread Mateusz Piotrowski
Author: 0mp (doc,ports committer) Date: Thu Mar 5 14:52:24 2020 New Revision: 358674 URL: https://svnweb.freebsd.org/changeset/base/358674 Log: ftw.3: Add examples PR: 173448 [1] Submitted by: fernape@ (previous version) [1] Reviewed by: jilles Approved by: bcr (mentor)

Re: svn commit: r358483 - head/sys/compat/linux

2020-03-05 Thread Tijl Coosemans
On Thu, 5 Mar 2020 16:15:10 +0300 Yuri Pankov wrote: > Tijl Coosemans wrote: >> Author: tijl >> Date: Sun Mar 1 13:12:04 2020 >> New Revision: 358483 >> URL: https://svnweb.freebsd.org/changeset/base/358483 >> >> Log: >>linuxulator: Map scheduler priorities to Linux priorities. >> >>

svn commit: r358673 - head/sys/compat/linux

2020-03-05 Thread Tijl Coosemans
Author: tijl Date: Thu Mar 5 14:41:27 2020 New Revision: 358673 URL: https://svnweb.freebsd.org/changeset/base/358673 Log: Move compat.linux.map_sched_prio sysctl definition to linux_mib.c so it is only defined by linux_common kernel module and not both linux and linux64 modules.

Re: svn commit: r358655 - head/sbin/mount_nfs

2020-03-05 Thread Dimitry Andric
On 2020-03-04 23:27, Gleb Smirnoff wrote: Author: glebius Date: Wed Mar 4 22:27:16 2020 New Revision: 358655 URL: https://svnweb.freebsd.org/changeset/base/358655 Log: When a machine boots the NFS mounting script is executed after interfaces are configured, but for many interfaces (e.g.

svn commit: r358672 - head/lib/libc/powerpc64/string

2020-03-05 Thread Alfredo Dal'Ava Junior
Author: alfredo Date: Thu Mar 5 14:13:22 2020 New Revision: 358672 URL: https://svnweb.freebsd.org/changeset/base/358672 Log: [PowerPC64] restrict memcpy/bcopy optimization to POWER ISA >=V2.07 VSX instructions were added in POWER ISA V2.06 (POWER7), but it requires data to be

Re: svn commit: r358483 - head/sys/compat/linux

2020-03-05 Thread Yuri Pankov
Tijl Coosemans wrote: Author: tijl Date: Sun Mar 1 13:12:04 2020 New Revision: 358483 URL: https://svnweb.freebsd.org/changeset/base/358483 Log: linuxulator: Map scheduler priorities to Linux priorities. On Linux the valid range of priorities for the SCHED_FIFO and SCHED_RR

svn commit: r358670 - head/sys/powerpc/powerpc

2020-03-05 Thread Alfredo Dal'Ava Junior
Author: alfredo Date: Thu Mar 5 12:24:48 2020 New Revision: 358670 URL: https://svnweb.freebsd.org/changeset/base/358670 Log: [PowerPC64] fix uma_small_free panic Fix panic "Freeing UMA block at 0xn with no associated page". Also replaces pmap_remove call by pmap_kremove, for symmetry.

svn commit: r358669 - head/sys/arm64/include

2020-03-05 Thread Andrew Turner
Author: andrew Date: Thu Mar 5 10:52:16 2020 New Revision: 358669 URL: https://svnweb.freebsd.org/changeset/base/358669 Log: Mark the arm64 machdep.h as kernel only None of this is useful for userspace. Sponsored by: Innovate UK Modified: head/sys/arm64/include/machdep.h