Re: svn commit: r322969 - in head: sbin/mdconfig sys/dev/md sys/sys

2017-08-28 Thread Bruce Evans
On Mon, 28 Aug 2017, Ryan Libby wrote: On Mon, Aug 28, 2017 at 11:24 AM, Maxim Sobolev wrote: Hi John, Thanks for your feedback! To address the points that you've raised: 1. I've tested on both 32 and 64 bit platforms, it seems not to be the case. See imp's comment and my reply here https://

svn commit: r322995 - in head/sys: conf dev/nvme

2017-08-28 Thread Warner Losh
Author: imp Date: Mon Aug 28 23:54:25 2017 New Revision: 322995 URL: https://svnweb.freebsd.org/changeset/base/322995 Log: Add new compile-time option NVME_USE_NVD that sets the default value of the runtime hw.nvme.use_vnd tunable. We still default to nvd unless otherwise requested. Spo

svn commit: r322992 - head/sbin/nvmecontrol

2017-08-28 Thread Warner Losh
Author: imp Date: Mon Aug 28 23:54:08 2017 New Revision: 322992 URL: https://svnweb.freebsd.org/changeset/base/322992 Log: Print the controller's ID in identify. Submitted by: Matt Williams Sponsored by: Netflix Modified: head/sbin/nvmecontrol/identify.c Modified: head/sbin/nvmecontro

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

2017-08-28 Thread Warner Losh
Author: imp Date: Mon Aug 28 23:54:20 2017 New Revision: 322994 URL: https://svnweb.freebsd.org/changeset/base/322994 Log: Set the max transactions for NVMe drives better. Provided a better estimate for the number of transactions that can be pending at one time. This will be number of que

svn commit: r322993 - head/sys/modules/nvme

2017-08-28 Thread Warner Losh
Author: imp Date: Mon Aug 28 23:54:16 2017 New Revision: 322993 URL: https://svnweb.freebsd.org/changeset/base/322993 Log: Add nvme_sim.c since that's not runtime switchable. Sponsored by: Netflix Modified: head/sys/modules/nvme/Makefile Modified: head/sys/modules/nvme/Makefile

Re: svn commit: r322969 - in head: sbin/mdconfig sys/dev/md sys/sys

2017-08-28 Thread Maxim Sobolev
John, well, this depends on how you look at it. The padding element size is "int", which when you account for the alignment has the nice property on both 32 and 64-bit arches that no matter what kind of element you add (char, short, int or void *), you only need to bring down MDNPAD by 1 to keep th

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

2017-08-28 Thread Ravi Pokala
Author: rpokala Date: Mon Aug 28 23:30:11 2017 New Revision: 322991 URL: https://svnweb.freebsd.org/changeset/base/322991 Log: Fix a day-one typo in tty.4 - the sysctls in question are "tty", not "tk" Sponsored by: Panasas, Inc. Modified: head/share/man/man4/tty.4 Modified: head/share/m

svn commit: r322990 - head/sys/dev/cxgbe

2017-08-28 Thread Navdeep Parhar
Author: np Date: Mon Aug 28 22:41:15 2017 New Revision: 322990 URL: https://svnweb.freebsd.org/changeset/base/322990 Log: cxgbe(4): Do not access the mailbox without appropriate locks while creating hardware VIs. This fixes a bad race on systems with hw.cxgbe.num_vis > 1. Reported by

svn commit: r322989 - in head/sys: amd64/include i386/include sys

2017-08-28 Thread Conrad Meyer
Author: cem Date: Mon Aug 28 22:28:41 2017 New Revision: 322989 URL: https://svnweb.freebsd.org/changeset/base/322989 Log: Drop CACHE_LINE_SIZE to 64 bytes on x86 The actual cache line size has always been 64 bytes. The 128 number arose as an optimization for Core 2 era Intel processor

svn commit: r322988 - in head/sys/dev/rtwn: . rtl8188e rtl8192c rtl8192e rtl8812a

2017-08-28 Thread Andriy Voskoboinyk
Author: avos Date: Mon Aug 28 22:14:16 2017 New Revision: 322988 URL: https://svnweb.freebsd.org/changeset/base/322988 Log: rtwn(4): some initial preparations for (basic) VHT support. Rename RTWN_RIDX_MCS to RTWN_RIDX_HT_MCS before adding 802.11ac MCS rate indexes (they have different off

svn commit: r322987 - head/sys/vm

2017-08-28 Thread Mark Johnston
Author: markj Date: Mon Aug 28 22:10:15 2017 New Revision: 322987 URL: https://svnweb.freebsd.org/changeset/base/322987 Log: Synchronize page laundering with pmap_extract_and_hold(). Before r207410, the hold count of a page in a page queue was protected by the queue lock, and, before laun

svn commit: r322986 - head/sys/dev/e1000

2017-08-28 Thread Marius Strobl
Author: marius Date: Mon Aug 28 22:09:12 2017 New Revision: 322986 URL: https://svnweb.freebsd.org/changeset/base/322986 Log: Don't set any WOL enabling hardware bits if WOL isn't requested according to the enabled interface capability bits. Also remove some dead code, which tried to preserv

Re: svn commit: r322969 - in head: sbin/mdconfig sys/dev/md sys/sys

2017-08-28 Thread John Baldwin
On Monday, August 28, 2017 12:46:48 PM Ryan Libby wrote: > On Mon, Aug 28, 2017 at 11:24 AM, Maxim Sobolev wrote: > > Hi John, > > > > Thanks for your feedback! To address the points that you've raised: > > > > 1. I've tested on both 32 and 64 bit platforms, it seems not to be the > > case. See im

svn commit: r322985 - head/sys/dev/cxgbe

2017-08-28 Thread Navdeep Parhar
Author: np Date: Mon Aug 28 21:44:25 2017 New Revision: 322985 URL: https://svnweb.freebsd.org/changeset/base/322985 Log: cxgbe(4): Maintain one ifmedia per physical port instead of one per Virtual Interface (VI). All autonomous VIs that share a port share the same media. MFC after:

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

2017-08-28 Thread Konstantin Belousov
Author: kib Date: Mon Aug 28 21:04:56 2017 New Revision: 322984 URL: https://svnweb.freebsd.org/changeset/base/322984 Log: Style. Sponsored by: The FreeBSD Foundation MFC after:2 weeks Modified: head/sys/fs/msdosfs/msdosfs_fat.c Modified: head/sys/fs/msdosfs/msdosfs_fat.c

svn commit: r322983 - stable/11/usr.bin/mkuzip

2017-08-28 Thread Maxim Sobolev
Author: sobomax Date: Mon Aug 28 20:55:13 2017 New Revision: 322983 URL: https://svnweb.freebsd.org/changeset/base/322983 Log: MFC r320048+r320301+r320277: o Move logic that determines size of the input image into its own file. That logic has grown quite significantly now; o

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

2017-08-28 Thread Konstantin Belousov
Author: kib Date: Mon Aug 28 20:52:32 2017 New Revision: 322982 URL: https://svnweb.freebsd.org/changeset/base/322982 Log: Verify that the BPB media descriptor and FAT ID match. FAT specification requires that for valid FAT, FAT cluster 0 has a specific value derived from the BPB media de

svn commit: r322981 - head/sys/dev/ntb

2017-08-28 Thread Alexander Motin
Author: mav Date: Mon Aug 28 20:00:21 2017 New Revision: 322981 URL: https://svnweb.freebsd.org/changeset/base/322981 Log: Mask doorbells while processing them. This fixes interrupt storms on hardware using legacy level-triggered interrupts, since doorbell processing could take time after

svn commit: r322980 - head/sys/dev/ntb/ntb_hw

2017-08-28 Thread Alexander Motin
Author: mav Date: Mon Aug 28 19:52:57 2017 New Revision: 322980 URL: https://svnweb.freebsd.org/changeset/base/322980 Log: Fix fake interrupt when set doorbell is unmasked. Since the doorbell bit is already set when interrupt handler is called, the event was not propagated to upper layer.

Re: svn commit: r322969 - in head: sbin/mdconfig sys/dev/md sys/sys

2017-08-28 Thread Ryan Libby
On Mon, Aug 28, 2017 at 11:24 AM, Maxim Sobolev wrote: > Hi John, > > Thanks for your feedback! To address the points that you've raised: > > 1. I've tested on both 32 and 64 bit platforms, it seems not to be the > case. See imp's comment and my reply here > https://reviews.freebsd.org/D10457#2168

svn commit: r322979 - in head: share/misc usr.bin/calendar/calendars

2017-08-28 Thread Luca Pizzamiglio
Author: pizzamig (ports committer) Date: Mon Aug 28 19:34:39 2017 New Revision: 322979 URL: https://svnweb.freebsd.org/changeset/base/322979 Log: Adding personal information about pizzamig as port committer Approved by: olivier (mentor) Approved by: lme (mentor) Differential Revision:

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

2017-08-28 Thread Warner Losh
Author: imp Date: Mon Aug 28 19:25:49 2017 New Revision: 322976 URL: https://svnweb.freebsd.org/changeset/base/322976 Log: Add comment about where we need to place this routine, and why. Sponsored by: Netflix Modified: head/sys/cam/scsi/scsi_da.c Modified: head/sys/cam/scsi/scsi_da.c ==

svn commit: r322977 - in head/sys/cam: ata nvme

2017-08-28 Thread Warner Losh
Author: imp Date: Mon Aug 28 19:27:33 2017 New Revision: 322977 URL: https://svnweb.freebsd.org/changeset/base/322977 Log: Add comment about where we need to place this routine, and why. Sponsored by: Netflix Modified: head/sys/cam/ata/ata_da.c head/sys/cam/nvme/nvme_da.c Modified: he

svn commit: r322978 - head/sys/kern

2017-08-28 Thread Bryan Drewery
Author: bdrewery Date: Mon Aug 28 19:29:51 2017 New Revision: 322978 URL: https://svnweb.freebsd.org/changeset/base/322978 Log: Allow vdrop() of a vnode not yet on the per-mount list after r306512. The old code allowed calling vdrop() before insmntque() to place the vnode back onto the f

svn commit: r322975 - in stable/10/sys: dev/qlxgbe modules/qlxgbe

2017-08-28 Thread David C Somayajulu
Author: davidcs Date: Mon Aug 28 19:17:28 2017 New Revision: 322975 URL: https://svnweb.freebsd.org/changeset/base/322975 Log: MFC 322771 Upgrade FW to 5.4.66 sysctls to display stats, stats polled every 2 seconds Modify QLA_LOCK()/QLA_UNLOCK() to not sleep after acquiring mtx_lock Ad

svn commit: r322974 - stable/11/lib/libc/sys

2017-08-28 Thread Alan Somers
Author: asomers Date: Mon Aug 28 18:40:26 2017 New Revision: 322974 URL: https://svnweb.freebsd.org/changeset/base/322974 Log: MFC r320255 (note that part of 320255 was erroneously MFCed by 322889) Clarify usage of aio(4) with kqueue(2) Reviewed by:jhb MFC after: 3 week

Re: svn commit: r322969 - in head: sbin/mdconfig sys/dev/md sys/sys

2017-08-28 Thread Maxim Sobolev
Hi John, Thanks for your feedback! To address the points that you've raised: 1. I've tested on both 32 and 64 bit platforms, it seems not to be the case. See imp's comment and my reply here https://reviews.freebsd.org/D10457#216855 . Did I miss something? Can you post piece of C code that produce

svn commit: r322973 - in stable/9/sys: dev/qlxgbe modules/qlxgbe

2017-08-28 Thread David C Somayajulu
Author: davidcs Date: Mon Aug 28 18:01:36 2017 New Revision: 322973 URL: https://svnweb.freebsd.org/changeset/base/322973 Log: MFC 322771 Upgrade FW to 5.4.66 sysctls to display stats, stats polled every 2 seconds Modify QLA_LOCK()/QLA_UNLOCK() to not sleep after acquiring mtx_lock Ad

Re: svn commit: r322258 - head/sys/kern

2017-08-28 Thread Alan Somers
On Fri, Aug 25, 2017 at 9:00 PM, Bruce Evans wrote: > On Thu, 24 Aug 2017, Alan Somers wrote: > >> On Wed, Aug 9, 2017 at 1:05 AM, Bruce Evans wrote: >>> >>> On Tue, 8 Aug 2017, Alan Somers wrote: >>> ... >>> The compile-time definition of AIO_LISTIO_MAX seems to be broken. I >>> think >>> POSIX

svn commit: r322972 - in stable/11/sys: dev/qlxgbe modules/qlxgbe

2017-08-28 Thread David C Somayajulu
Author: davidcs Date: Mon Aug 28 17:21:33 2017 New Revision: 322972 URL: https://svnweb.freebsd.org/changeset/base/322972 Log: MFC 322771 Upgrade FW to 5.4.66 sysctls to display stats, stats polled every 2 seconds Modify QLA_LOCK()/QLA_UNLOCK() to not sleep after acquiring mtx_lock Ad

svn commit: r322971 - head/sys/vm

2017-08-28 Thread Alan Cox
Author: alc Date: Mon Aug 28 17:02:25 2017 New Revision: 322971 URL: https://svnweb.freebsd.org/changeset/base/322971 Log: Update a couple vm_object lock assertions in the swap pager to reflect the new use of the vm_object's lock to synchronize updates to a radix trie mapping per-vm object p

svn commit: r322970 - head/sys/vm

2017-08-28 Thread Alan Cox
Author: alc Date: Mon Aug 28 16:55:43 2017 New Revision: 322970 URL: https://svnweb.freebsd.org/changeset/base/322970 Log: Switching from a global hash table to per-vm_object radix tries for mapping vm_object page indices to on-disk swap space (r322913) has changed the synchronization requir

Re: svn commit: r322969 - in head: sbin/mdconfig sys/dev/md sys/sys

2017-08-28 Thread John Baldwin
On Monday, August 28, 2017 03:54:08 PM Maxim Sobolev wrote: > Author: sobomax > Date: Mon Aug 28 15:54:07 2017 > New Revision: 322969 > URL: https://svnweb.freebsd.org/changeset/base/322969 > > Log: > Add ability to label md(4) devices. > > This feature comes from the fact that we rely memo

svn commit: r322969 - in head: sbin/mdconfig sys/dev/md sys/sys

2017-08-28 Thread Maxim Sobolev
Author: sobomax Date: Mon Aug 28 15:54:07 2017 New Revision: 322969 URL: https://svnweb.freebsd.org/changeset/base/322969 Log: Add ability to label md(4) devices. This feature comes from the fact that we rely memory-backed md(4) in our build process heavily. However, if the build goes hay

svn commit: r322968 - head/release/tools

2017-08-28 Thread Glen Barber
Author: gjb Date: Mon Aug 28 14:49:26 2017 New Revision: 322968 URL: https://svnweb.freebsd.org/changeset/base/322968 Log: Increase the Amazon EC2 AMI image size from 2GB to 3GB to prevent image build failures due to a full md(4)-backed filesystem. Sponsored by: The FreeBSD Foundation Mo

svn commit: r322967 - head/sys/netinet

2017-08-28 Thread Michael Tuexen
Author: tuexen Date: Mon Aug 28 11:41:18 2017 New Revision: 322967 URL: https://svnweb.freebsd.org/changeset/base/322967 Log: Fix blackhole detection. There were two bugs related to the blackhole detection: * The smalles size was tried more than two times. * The restored MSS was not the

svn commit: r322966 - stable/11/sys/netipsec

2017-08-28 Thread Andrey V. Elsukov
Author: ae Date: Mon Aug 28 10:02:47 2017 New Revision: 322966 URL: https://svnweb.freebsd.org/changeset/base/322966 Log: MFC r322750: Fix the regression introduced in r275710. When a security policy should match TCP connection with specific ports, the SYN+ACK segment send by sync

svn commit: r322965 - head/sys/sys

2017-08-28 Thread Ed Schouten
Author: ed Date: Mon Aug 28 09:35:17 2017 New Revision: 322965 URL: https://svnweb.freebsd.org/changeset/base/322965 Log: Make _Static_assert() work with GCC in older C++ standards. GCC only activates C11 keywords in C mode, not C++ mode. This means that when targeting an older C++ standa

svn commit: r322964 - head/sys/dev/cxgbe

2017-08-28 Thread Navdeep Parhar
Author: np Date: Mon Aug 28 07:50:54 2017 New Revision: 322964 URL: https://svnweb.freebsd.org/changeset/base/322964 Log: cxgbe(4): vi_mac_funcs should include the base Ethernet function. It is already used in the driver as if it does. MFC after:3 days Sponsored by: Chelsio Communi