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

2017-12-19 Thread Konstantin Belousov
Author: kib Date: Tue Dec 19 14:11:41 2017 New Revision: 326977 URL: https://svnweb.freebsd.org/changeset/base/326977 Log: mlx5en: Avoid SFENCe on x86 The IA32 memory model guarantees that all writes are seen in the program order. Also, any access to the uncacheable memory flushes the

svn commit: r326978 - head/sys/conf

2017-12-19 Thread Nathan Whitehorn
Author: nwhitehorn Date: Tue Dec 19 15:50:46 2017 New Revision: 326978 URL: https://svnweb.freebsd.org/changeset/base/326978 Log: Make __startkernel line up with KERNBASE, so that the math to compute the applied relocation offset in link_elf.c works as intended. We may want to revisit how

svn commit: r326981 - in head/sys/powerpc: booke powerpc

2017-12-19 Thread Nathan Whitehorn
Author: nwhitehorn Date: Tue Dec 19 16:45:40 2017 New Revision: 326981 URL: https://svnweb.freebsd.org/changeset/base/326981 Log: The highest-order bit of the bootloader cookie is 1, with the result that the 32-bit cookie can be sign-extended on its way out of the loader and through Open

svn commit: r326982 - head/share/man/man9

2017-12-19 Thread Alan Cox
Author: alc Date: Tue Dec 19 17:07:50 2017 New Revision: 326982 URL: https://svnweb.freebsd.org/changeset/base/326982 Log: Document the semantics of atomic_thread_fence operations. Add atomic_load_ and atomic_store_, and explain why they exist. Define the synchronizes-with

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

2017-12-19 Thread Mark Johnston
Author: markj Date: Tue Dec 19 17:13:04 2017 New Revision: 326983 URL: https://svnweb.freebsd.org/changeset/base/326983 Log: Avoid using bioq_* in gmirror. gmirror does not perform any sorting of I/O requests, so the bioq API doesn't provide any advantages over plain TAILQs. The API also

svn commit: r327000 - head/sys/dev/bnxt

2017-12-19 Thread Stephen Hurd
Author: shurd Date: Tue Dec 19 21:07:30 2017 New Revision: 327000 URL: https://svnweb.freebsd.org/changeset/base/327000 Log: Support short HWRM commands New Stratus bnxt devices require support for short HWRM commands for VFs to function. Enable their use, but only use them if it's both

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

2017-12-19 Thread John Baldwin
Author: jhb Date: Tue Dec 19 23:54:44 2017 New Revision: 327009 URL: https://svnweb.freebsd.org/changeset/base/327009 Log: Don't return early for non-failure for one of the EMLINK checks. r326987 enabled two #if 0'd-out EMLINK checks in zfs_link_create() for link overflow. However, one

svn commit: r327001 - head/sys/dev/bnxt

2017-12-19 Thread Stephen Hurd
Author: shurd Date: Tue Dec 19 22:06:25 2017 New Revision: 327001 URL: https://svnweb.freebsd.org/changeset/base/327001 Log: On Link up & down, update media types It's possible to change the SFP module when link is down, which would change the available media types. This is part of

svn commit: r326988 - head/sys/fs/fuse

2017-12-19 Thread John Baldwin
Author: jhb Date: Tue Dec 19 19:09:06 2017 New Revision: 326988 URL: https://svnweb.freebsd.org/changeset/base/326988 Log: Add a custom VOP_PATHCONF method for fuse. This method handles _PC_FILESIZEBITS, _PC_SYMLINK_MAX, and _PC_NO_TRUNC. For other values it defers to vop_stdpathconf().

svn commit: r326987 - in head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs: . sys

2017-12-19 Thread John Baldwin
Author: jhb Date: Tue Dec 19 19:07:24 2017 New Revision: 326987 URL: https://svnweb.freebsd.org/changeset/base/326987 Log: Adjust ZFS' link count handling for ino64. - Define a ZFS_LINK_MAX as the ZFS version of LINK_MAX which is set to UINT64_MAX to match the on-disk format. -

svn commit: r327003 - head/sys/dev/bnxt

2017-12-19 Thread Stephen Hurd
Author: shurd Date: Tue Dec 19 22:15:46 2017 New Revision: 327003 URL: https://svnweb.freebsd.org/changeset/base/327003 Log: Add log messages for unknown and unhandled phy types Previously, it silently only supported auto, instead, log a message indicating why only auto is supported.

svn commit: r327006 - head/sys/fs/fuse

2017-12-19 Thread John Baldwin
Author: jhb Date: Tue Dec 19 22:40:54 2017 New Revision: 327006 URL: https://svnweb.freebsd.org/changeset/base/327006 Log: Update link count handling in fuse for post-ino64. Set FUSE_LINK_MAX to UINT32_MAX instead of LINK_MAX to match the maximum link count possible in the 'nlink' field

svn commit: r327005 - in head: sbin/ipfw sys/sys usr.sbin/watch

2017-12-19 Thread Pedro F. Giffuni
Author: pfg Date: Tue Dec 19 22:40:16 2017 New Revision: 327005 URL: https://svnweb.freebsd.org/changeset/base/327005 Log: SPDX: These are fundamentally BSD-2-Clause. They just omit the introductory line and numbering. Modified: head/sbin/ipfw/altq.c head/sbin/ipfw/dummynet.c

svn commit: r327004 - in head/sys: cddl/contrib/opensolaris/uts/common/fs/zfs fs/ext2fs fs/fifofs fs/nandfs fs/nfsclient fs/tmpfs fs/udf kern ufs/ufs

2017-12-19 Thread John Baldwin
Author: jhb Date: Tue Dec 19 22:39:05 2017 New Revision: 327004 URL: https://svnweb.freebsd.org/changeset/base/327004 Log: Rework pathconf handling for FIFOs. On the one hand, FIFOs should respect other variables not supported by the fifofs vnode operation (such as _PC_NAME_MAX,

svn commit: r327007 - head/sys/fs/nfs

2017-12-19 Thread John Baldwin
Author: jhb Date: Tue Dec 19 22:43:39 2017 New Revision: 327007 URL: https://svnweb.freebsd.org/changeset/base/327007 Log: Replace one more LINK_MAX with NFS_LINK_MAX missed in r326991. Sponsored by: Chelsio Communications Modified: head/sys/fs/nfs/nfs_commonsubs.c Modified:

svn commit: r326990 - head/sys/fs/smbfs

2017-12-19 Thread John Baldwin
Author: jhb Date: Tue Dec 19 19:14:01 2017 New Revision: 326990 URL: https://svnweb.freebsd.org/changeset/base/326990 Log: Handle _PC_FILESIZEBITS and _PC_NO_TRUNC for smbfs' VOP_PATHCONF(). MFC after:1 month Sponsored by: Chelsio Communications Modified:

svn commit: r326994 - head/sys/fs/devfs

2017-12-19 Thread John Baldwin
Author: jhb Date: Tue Dec 19 19:53:34 2017 New Revision: 326994 URL: https://svnweb.freebsd.org/changeset/base/326994 Log: Handle _PC_FILESIZEBITS and _PC_SYMLINK_MAX for devfs' VOP_PATHCONF(). MFC after:1 month Sponsored by: Chelsio Communications Modified:

svn commit: r326984 - in head: share/man/man4 sys/compat/linuxkpi/common/src sys/dev/e1000 sys/net sys/sys

2017-12-19 Thread Stephen Hurd
Author: shurd Date: Tue Dec 19 17:59:00 2017 New Revision: 326984 URL: https://svnweb.freebsd.org/changeset/base/326984 Log: Update Matthew Macy contact info Email address has changed, uses consistent name (Matthew, not Matt) Reported by: Matthew Macy

svn commit: r326985 - head/sys/dev/bnxt

2017-12-19 Thread Stephen Hurd
Author: shurd Date: Tue Dec 19 18:12:18 2017 New Revision: 326985 URL: https://svnweb.freebsd.org/changeset/base/326985 Log: Add byte swapping in bnxt_cfg_async_cr() request The firmware is always in little endian, use htole*() for all request fields larger than one byte. Submitted

svn commit: r326986 - in head/sys: fs/fdescfs kern sys

2017-12-19 Thread John Baldwin
Author: jhb Date: Tue Dec 19 18:20:38 2017 New Revision: 326986 URL: https://svnweb.freebsd.org/changeset/base/326986 Log: Add a custom VOP_PATHCONF method for fdescfs. The method handles NAME_MAX and LINK_MAX explicitly. For all other pathconf variables, the method passes the request

svn commit: r326999 - head/sys/dev/bnxt

2017-12-19 Thread Stephen Hurd
Author: shurd Date: Tue Dec 19 20:32:45 2017 New Revision: 326999 URL: https://svnweb.freebsd.org/changeset/base/326999 Log: Don't populate NVRAM sysctls for VFs Only the PF allows NVRAM interaction on bnxt devices. Submitted by: Bhargava Chenna Marreddy

svn commit: r326989 - head/sys/fs/msdosfs

2017-12-19 Thread John Baldwin
Author: jhb Date: Tue Dec 19 19:10:00 2017 New Revision: 326989 URL: https://svnweb.freebsd.org/changeset/base/326989 Log: Support _PC_FILESIZEBITS in msdosfs' VOP_PATHCONF(). MFC after:1 month Sponsored by: Chelsio Communications Modified: head/sys/fs/msdosfs/msdosfs_vnops.c

Re: svn commit: r326958 - head

2017-12-19 Thread Rodney W. Grimes
> I give up. Not touching this anymore. If you feel like fixing it do it. I was not expecting an additional fix for this as there really isnt a clean way to fix it, just for future reference. > On 18 December 2017 at 19:51, Rodney W. Grimes > wrote: > > [ Charset

svn commit: r326992 - head/sys/tools

2017-12-19 Thread Ed Maste
Author: emaste Date: Tue Dec 19 19:44:06 2017 New Revision: 326992 URL: https://svnweb.freebsd.org/changeset/base/326992 Log: embed_mfs: support embedding mfs into loader The script originally supported embedding an mfs into ELF files or any other type of file, because it searched for

svn commit: r326993 - in head/sys: cddl/contrib/opensolaris/uts/common/fs/zfs fs/devfs fs/ext2fs fs/fuse fs/msdosfs fs/nandfs fs/smbfs fs/tmpfs kern ufs/ufs

2017-12-19 Thread John Baldwin
Author: jhb Date: Tue Dec 19 19:51:36 2017 New Revision: 326993 URL: https://svnweb.freebsd.org/changeset/base/326993 Log: Move NAME_MAX, LINK_MAX, and CHOWN_RESTRICTED out of vop_stdpathconf(). Having all filesystems fall through to default values isn't always correct and these values

svn commit: r326995 - head/sys/fs/fuse

2017-12-19 Thread John Baldwin
Author: jhb Date: Tue Dec 19 19:57:55 2017 New Revision: 326995 URL: https://svnweb.freebsd.org/changeset/base/326995 Log: Use FUSE_LINK_MAX for LINK_MAX in fuse' VOP_PATHCONF(). Should have included this in r326993. MFC after:1 month Sponsored by: Chelsio Communications

svn commit: r326996 - head/sys/fs/devfs

2017-12-19 Thread John Baldwin
Author: jhb Date: Tue Dec 19 20:07:57 2017 New Revision: 326996 URL: https://svnweb.freebsd.org/changeset/base/326996 Log: Report INT_MAX for LINK_MAX for devfs' VOP_PATHCONF(). devfs uses int's for link counts internally and already reports the the full link count via stat() post ino64.

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

2017-12-19 Thread John Baldwin
Author: jhb Date: Tue Dec 19 20:19:07 2017 New Revision: 326998 URL: https://svnweb.freebsd.org/changeset/base/326998 Log: Update tmpfs link count handling for ino64. Add a new TMPFS_LINK_MAX to use in place of LINK_MAX for link overflow checks and pathconf() reporting. Rather than

svn commit: r326997 - head/sys/fs/nandfs

2017-12-19 Thread John Baldwin
Author: jhb Date: Tue Dec 19 20:17:07 2017 New Revision: 326997 URL: https://svnweb.freebsd.org/changeset/base/326997 Log: Honor NANDFS_LINK_MAX for post-ino64. This uses NANDFS_LINK_MAX instead of LINK_MAX for link overflow checks and the value reported by pathconf() / fpathconf().

svn commit: r326991 - in head/sys/fs: nfs nfsclient

2017-12-19 Thread John Baldwin
Author: jhb Date: Tue Dec 19 19:18:48 2017 New Revision: 326991 URL: https://svnweb.freebsd.org/changeset/base/326991 Log: Update NFS to handle larger link counts post ino64. - Define a NFS_LINK_MAX as UINT32_MAX to match the wire protocol. - Use NFS_LINK_MAX instead of LINK_MAX as the

svn commit: r327013 - head/sys/net

2017-12-19 Thread Stephen Hurd
Author: shurd Date: Wed Dec 20 01:03:34 2017 New Revision: 327013 URL: https://svnweb.freebsd.org/changeset/base/327013 Log: Support attaching tx queues to cpus This will attempt to use a different thread/core on the same L2 cache when possible, or use the same cpu as the rx thread when

Re: svn commit: r327005 - in head: sbin/ipfw sys/sys usr.sbin/watch

2017-12-19 Thread Pedro Giffuni
> On Dec 19, 2017, at 19:15, Rodney W. Grimes > wrote: > >> Author: pfg >> Date: Tue Dec 19 22:40:16 2017 >> New Revision: 327005 >> URL: https://svnweb.freebsd.org/changeset/base/327005 >> >> Log: >> SPDX: These are fundamentally BSD-2-Clause. >> >> They

Re: svn commit: r327005 - in head: sbin/ipfw sys/sys usr.sbin/watch

2017-12-19 Thread Rodney W. Grimes
> > > > On Dec 19, 2017, at 19:15, Rodney W. Grimes > > wrote: > > > >> Author: pfg > >> Date: Tue Dec 19 22:40:16 2017 > >> New Revision: 327005 > >> URL: https://svnweb.freebsd.org/changeset/base/327005 > >> > >> Log: > >> SPDX: These are fundamentally

Re: svn commit: r326982 - head/share/man/man9

2017-12-19 Thread Bruce Evans
On Tue, 19 Dec 2017, Alan Cox wrote: Log: ... Reorder and revise some of the existing text. For example, more precisely describe when ordinary accesses are atomic. ... Modified: head/share/man/man9/atomic.9 == ---

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

2017-12-19 Thread John Baldwin
On Tuesday, December 19, 2017 11:54:44 PM John Baldwin wrote: > Author: jhb > Date: Tue Dec 19 23:54:44 2017 > New Revision: 327009 > URL: https://svnweb.freebsd.org/changeset/base/327009 > > Log: > Don't return early for non-failure for one of the EMLINK checks. > > r326987 enabled two

Re: svn commit: r326758 - in head/sys/i386: conf include

2017-12-19 Thread Nathan Whitehorn
On 12/12/17 11:32, John Baldwin wrote: On 12/11/17 5:26 AM, Eugene Grosbein wrote: On 11.12.2017 16:19, Konstantin Belousov wrote: On Mon, Dec 11, 2017 at 04:32:37AM +, Conrad Meyer wrote: Author: cem Date: Mon Dec 11 04:32:37 2017 New Revision: 326758 URL:

Re: svn commit: r327005 - in head: sbin/ipfw sys/sys usr.sbin/watch

2017-12-19 Thread Rodney W. Grimes
> Author: pfg > Date: Tue Dec 19 22:40:16 2017 > New Revision: 327005 > URL: https://svnweb.freebsd.org/changeset/base/327005 > > Log: > SPDX: These are fundamentally BSD-2-Clause. > > They just omit the introductory line and numbering. I again must assert that it would be better to not

Re: svn commit: r327005 - in head: sbin/ipfw sys/sys usr.sbin/watch

2017-12-19 Thread Pedro Giffuni
On 19/12/2017 21:55, Rodney W. Grimes wrote: On Dec 19, 2017, at 19:15, Rodney W. Grimes wrote: Author: pfg Date: Tue Dec 19 22:40:16 2017 New Revision: 327005 URL: https://svnweb.freebsd.org/changeset/base/327005 Log: SPDX: These are fundamentally

svn commit: r327017 - head/sys/net

2017-12-19 Thread Li-Wen Hsu
Author: lwhsu (ports committer) Date: Wed Dec 20 06:08:16 2017 New Revision: 327017 URL: https://svnweb.freebsd.org/changeset/base/327017 Log: Add missing `;` Approved by: kevlo Modified: head/sys/net/iflib.c Modified: head/sys/net/iflib.c

svn commit: r326971 - in head/sys: amd64/include arm/include arm64/include i386/include mips/include powerpc/include riscv/include sparc64/include sys

2017-12-19 Thread Konstantin Belousov
Author: kib Date: Tue Dec 19 09:59:20 2017 New Revision: 326971 URL: https://svnweb.freebsd.org/changeset/base/326971 Log: Add atomic_load(9) and atomic_store(9) operations. They provide relaxed-ordered atomic access semantic. Due to the FreeBSD memory model, the operations are

svn commit: r326973 - head/sys/kern

2017-12-19 Thread Konstantin Belousov
Author: kib Date: Tue Dec 19 10:05:45 2017 New Revision: 326973 URL: https://svnweb.freebsd.org/changeset/base/326973 Log: Use atomic_load(9) to read ppsinfo sequence numbers. In this case volatile qualifiers enusre that a compiler does not optimize the accesses out. Reviewed by:

svn commit: r326974 - head/sys/vm

2017-12-19 Thread Konstantin Belousov
Author: kib Date: Tue Dec 19 10:06:55 2017 New Revision: 326974 URL: https://svnweb.freebsd.org/changeset/base/326974 Log: Perform all accesses to uma_reclaim_needed using atomic(9) KPI. Reviewed by: alc, jhb Sponsored by: The FreeBSD Foundation MFC after:1 week Differential

Re: svn commit: r325841 - in head/sys: conf dev/mlx4 dev/mlx4/mlx4_core dev/mlx4/mlx4_en dev/mlx4/mlx4_ib modules/mlx4

2017-12-19 Thread Hans Petter Selasky
On 12/18/17 23:50, Colin Percival wrote: On 12/18/17 00:15, Hans Petter Selasky wrote: On 12/18/17 05:29, Colin Percival wrote: Also, it breaks some work I have in progress for instrumenting SYSINITs. Would you mind moving the DEFINE_MUTEX line to occur immediately prior to the set_port_type