svn commit: r315930 - stable/11/sys/dev/usb/input

2017-03-24 Thread Peter Grehan
Author: grehan Date: Sat Mar 25 05:41:34 2017 New Revision: 315930 URL: https://svnweb.freebsd.org/changeset/base/315930 Log: MFC r315716 Bring the handling of the y axis in the ums driver in-line with the other axes. No functional change. Modified: stable/11/sys/dev/usb/input/

svn commit: r315929 - stable/11/usr.sbin/bhyve

2017-03-24 Thread Peter Grehan
Author: grehan Date: Sat Mar 25 05:21:49 2017 New Revision: 315929 URL: https://svnweb.freebsd.org/changeset/base/315929 Log: MFC r315715 Fix a type in bhyve's USB mouse emulation. Modified: stable/11/usr.sbin/bhyve/usb_mouse.c Directory Properties: stable/11/ (props changed) Modified:

svn commit: r315928 - in stable/10/sys: amd64/vmm x86/include x86/x86

2017-03-24 Thread Peter Grehan
Author: grehan Date: Sat Mar 25 05:09:03 2017 New Revision: 315928 URL: https://svnweb.freebsd.org/changeset/base/315928 Log: MFC r315361 and r315364: Hide MONITORX/MWAITX from guests. r315361 Add the AMD MONITORX/MWAITX feature definition introduced in Bulldozer/Ryzen CPUs.

svn commit: r315927 - in stable/11/sys: amd64/vmm x86/include x86/x86

2017-03-24 Thread Peter Grehan
Author: grehan Date: Sat Mar 25 05:05:12 2017 New Revision: 315927 URL: https://svnweb.freebsd.org/changeset/base/315927 Log: MFC r315361 and r315364: Hide MONITORX/MWAITX from guests. r315361 Add the AMD MONITORX/MWAITX feature definition introduced in Bulldozer/Ryzen CPUs.

svn commit: r315926 - head/sys/dev/iwm

2017-03-24 Thread Adrian Chadd
Author: adrian Date: Sat Mar 25 02:55:13 2017 New Revision: 315926 URL: https://svnweb.freebsd.org/changeset/base/315926 Log: [iwm] Add the BSS's basic rates to iwm's LQ command, not all the rates. Makes the firmware use appropriate Tx rates for ACKs. Obtained from: dragonflybsd.git ab

svn commit: r315923 - head/sys/dev/iwm

2017-03-24 Thread Adrian Chadd
Author: adrian Date: Sat Mar 25 02:42:52 2017 New Revision: 315923 URL: https://svnweb.freebsd.org/changeset/base/315923 Log: [iwm] Tiny cleanup in iwm_rx_addbuf(). Obtained from:dragonflybsd.git 3370bc5504ebb3c1b9bb960a185cd0c8052a2845 Modified: head/sys/dev/iwm/if_iwm.c Modi

svn commit: r315925 - head/sys/dev/iwm

2017-03-24 Thread Adrian Chadd
Author: adrian Date: Sat Mar 25 02:49:20 2017 New Revision: 315925 URL: https://svnweb.freebsd.org/changeset/base/315925 Log: [iwm] Enable Energy Based Scan (EBS). This can significantly reduce scan duration thus saving time and power. EBS failure reported by FW disables EBS for current c

svn commit: r315924 - head/sys/dev/iwm

2017-03-24 Thread Adrian Chadd
Author: adrian Date: Sat Mar 25 02:44:25 2017 New Revision: 315924 URL: https://svnweb.freebsd.org/changeset/base/315924 Log: [iwm] GC unused code from if_iwm_scan.c, copyied from iwn or iwlwifi/dvm. Obtained from:dragonflybsd.git 10881df269b93c26e5ee6af629c36db5672e6e52 Modified:

svn commit: r315922 - head/sys/dev/cxgbe/iw_cxgbe

2017-03-24 Thread Navdeep Parhar
Author: np Date: Sat Mar 25 02:28:21 2017 New Revision: 315922 URL: https://svnweb.freebsd.org/changeset/base/315922 Log: cxgbe/iw_cxgbe: allocations that use GFP_KERNEL (which is M_WAITOK on FreeBSD) cannot fail. MFC after:3 days Modified: head/sys/dev/cxgbe/iw_cxgbe/cm.c Modifie

svn commit: r315921 - head/sys/dev/cxgbe/iw_cxgbe

2017-03-24 Thread Navdeep Parhar
Author: np Date: Sat Mar 25 01:45:04 2017 New Revision: 315921 URL: https://svnweb.freebsd.org/changeset/base/315921 Log: cxgbe/iw_cxgbe: alloc_ep expects a gfp_t, and it's always ok to sleep during alloc_ep. Modified: head/sys/dev/cxgbe/iw_cxgbe/cm.c Modified: head/sys/dev/cxgbe/iw_cxgbe/

svn commit: r315920 - head/sys/dev/cxgbe/iw_cxgbe

2017-03-24 Thread Navdeep Parhar
Author: np Date: Sat Mar 25 01:38:17 2017 New Revision: 315920 URL: https://svnweb.freebsd.org/changeset/base/315920 Log: cxgbe/iw_cxgbe: c4iw_connect should always returns a -ve errno on failure. MFC after:3 days Modified: head/sys/dev/cxgbe/iw_cxgbe/cm.c Modified: head/sys/dev/cxg

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

2017-03-24 Thread Eric van Gyzen
Author: vangyzen Date: Sat Mar 25 00:52:33 2017 New Revision: 315919 URL: https://svnweb.freebsd.org/changeset/base/315919 Log: MFC r315694 clock_gettime.2: add some clock IDs Add the CLOCK_PROCESS_CPUTIME_ID and CLOCK_THREAD_CPUTIME_ID clock_id values to the clock_gettime(2) man pag

svn commit: r315918 - head/sys/arm64/conf

2017-03-24 Thread Warner Losh
Author: imp Date: Fri Mar 24 22:33:03 2017 New Revision: 315918 URL: https://svnweb.freebsd.org/changeset/base/315918 Log: Add 'device iic' to bring in userland I2C driver. Submitted by: karl@ Modified: head/sys/arm64/conf/GENERIC Modified: head/sys/arm64/conf/GENERIC ==

svn commit: r315917 - head/sys/net80211

2017-03-24 Thread Andriy Voskoboinyk
Author: avos Date: Fri Mar 24 22:29:51 2017 New Revision: 315917 URL: https://svnweb.freebsd.org/changeset/base/315917 Log: net80211: fix possible panic when wlan(4) interface is destroyed. If this is the last running vap wait until device will be powered off (fixes panic when 'ifconfig w

Re: svn commit: r315901 - head/sbin/devd

2017-03-24 Thread Cy Schubert
In message <201703241346.v2odkqtj019...@repo.freebsd.org>, Warner Losh writes: > Author: imp > Date: Fri Mar 24 13:46:26 2017 > New Revision: 315901 > URL: https://svnweb.freebsd.org/changeset/base/315901 > > Log: > Use a more stream-lined version of fix_value. > > Submitted by: ian@ > >

Re: svn commit: r315662 - in head: contrib/bsnmp/snmp_mibII contrib/ipfilter/ipsend lib/libprocstat sys/netinet sys/sys usr.bin/netstat usr.bin/sockstat usr.bin/systat usr.sbin/tcpdrop usr.sbin/trpt

2017-03-24 Thread John Baldwin
On Friday, March 24, 2017 10:45:09 AM Gleb Smirnoff wrote: > John, > > On Tue, Mar 21, 2017 at 02:24:30PM -0700, John Baldwin wrote: > J> > I have very much anticipated this comment from you, John. > J> > > J> > I would like to remind you, that we have had this very exact conversation > J> > ba

svn commit: r315916 - stable/10/sys/dev/ixgbe

2017-03-24 Thread Eric Joyner
Author: erj Date: Fri Mar 24 18:28:48 2017 New Revision: 315916 URL: https://svnweb.freebsd.org/changeset/base/315916 Log: ixgbe(4): Re-add mutex lock call that was dropped in a previous commit. PR: 218062 Reported by: Terry Kennedy Sponsored by: Intel Corporation Modified:

svn commit: r315915 - in stable: 10/contrib/libc++/include 9/contrib/libc++/include

2017-03-24 Thread Dimitry Andric
Author: dim Date: Fri Mar 24 18:28:13 2017 New Revision: 315915 URL: https://svnweb.freebsd.org/changeset/base/315915 Log: Pull in r283944 from upstream libc++ trunk (by Eric Fiselier): Fix std::pair on FreeBSD Summary: FreeBSD ships an old ABI for std::pair which requires that

svn commit: r315915 - in stable: 10/contrib/libc++/include 9/contrib/libc++/include

2017-03-24 Thread Dimitry Andric
Author: dim Date: Fri Mar 24 18:28:13 2017 New Revision: 315915 URL: https://svnweb.freebsd.org/changeset/base/315915 Log: Pull in r283944 from upstream libc++ trunk (by Eric Fiselier): Fix std::pair on FreeBSD Summary: FreeBSD ships an old ABI for std::pair which requires that

Re: svn commit: r315662 - in head: contrib/bsnmp/snmp_mibII contrib/ipfilter/ipsend lib/libprocstat sys/netinet sys/sys usr.bin/netstat usr.bin/sockstat usr.bin/systat usr.sbin/tcpdrop usr.sbin/trpt

2017-03-24 Thread Gleb Smirnoff
John, On Tue, Mar 21, 2017 at 02:24:30PM -0700, John Baldwin wrote: J> > I have very much anticipated this comment from you, John. J> > J> > I would like to remind you, that we have had this very exact conversation J> > back when I removed kvm support from netstat/route.c. Let me search the J>

svn commit: r315914 - in head/sys: amd64/amd64 i386/i386

2017-03-24 Thread Bruce Evans
Author: bde Date: Fri Mar 24 17:34:55 2017 New Revision: 315914 URL: https://svnweb.freebsd.org/changeset/base/315914 Log: Remove buggy adjustment of page tables in db_write_bytes(). Long ago, perhaps only on i386, kernel text was mapped read-only and it was necessary to change the mappin

svn commit: r315913 - head/sys/dev/isp

2017-03-24 Thread Alexander Motin
Author: mav Date: Fri Mar 24 16:26:11 2017 New Revision: 315913 URL: https://svnweb.freebsd.org/changeset/base/315913 Log: Add brackets to fix incorrect macro expansion. Reported by: Andreas Hollmann / PVS-Studio MFC after:2 weeks Modified: head/sys/dev/isp/ispmbox.h Modified: he

svn commit: r315912 - head/usr.sbin/pw

2017-03-24 Thread Eugene Grosbein
Author: eugen (ports committer) Date: Fri Mar 24 16:18:57 2017 New Revision: 315912 URL: https://svnweb.freebsd.org/changeset/base/315912 Log: Properly initialise with content of pw.conf(5) that was mistakenly ignored. Also, respect "defaultgroup" if specified there. PR: 217934

svn commit: r315911 - head/sys/x86/x86

2017-03-24 Thread Gavin Atkinson
Author: gavin Date: Fri Mar 24 16:18:20 2017 New Revision: 315911 URL: https://svnweb.freebsd.org/changeset/base/315911 Log: Improve grammar on a warning, and only use one line rather than two when printing it. Modified: head/sys/x86/x86/mp_x86.c Modified: head/sys/x86/x86/mp_x86.c ===

svn commit: r315910 - head/sys/kern

2017-03-24 Thread Gleb Smirnoff
Author: glebius Date: Fri Mar 24 16:01:19 2017 New Revision: 315910 URL: https://svnweb.freebsd.org/changeset/base/315910 Log: Make sendfile(2) more robust against file change. This fixes a possible crash when the file shrinks. This also fixes sendfile(2) not sending more data in a case wh

svn commit: r315909 - in head/contrib/openpam: include/security lib/libpam

2017-03-24 Thread Dag-Erling Smørgrav
Author: des Date: Fri Mar 24 14:45:58 2017 New Revision: 315909 URL: https://svnweb.freebsd.org/changeset/base/315909 Log: Restore the NULL check that was removed in upstream r913. It is not unreasonable to call pam_end() with a NULL pamh in error handling code. Reported by: rwatson Mo

svn commit: r315908 - head/sys/dev/isp

2017-03-24 Thread Alexander Motin
Author: mav Date: Fri Mar 24 14:44:03 2017 New Revision: 315908 URL: https://svnweb.freebsd.org/changeset/base/315908 Log: Unify initiator and target DMA setup and command sending. The code is so alike that it is pointless to keep it separate. MFC after:2 weeks Modified: head/sy

svn commit: r315907 - stable/10/contrib/openpam/lib/libpam

2017-03-24 Thread Dag-Erling Smørgrav
Author: des Date: Fri Mar 24 14:40:53 2017 New Revision: 315907 URL: https://svnweb.freebsd.org/changeset/base/315907 Log: Subset of upstream r902 which fixes custom prompts. PR: 216172 Modified: stable/10/contrib/openpam/lib/libpam/pam_get_authtok.c stable/10/contrib/openpam

svn commit: r315906 - stable/11/contrib/openpam/lib/libpam

2017-03-24 Thread Dag-Erling Smørgrav
Author: des Date: Fri Mar 24 14:39:00 2017 New Revision: 315906 URL: https://svnweb.freebsd.org/changeset/base/315906 Log: Subset of upstream r902 which fixes custom prompts. PR: 216172 Modified: stable/11/contrib/openpam/lib/libpam/pam_get_authtok.c stable/11/contrib/openpam

svn commit: r315904 - stable/10/lib/libfetch

2017-03-24 Thread Dag-Erling Smørgrav
Author: des Date: Fri Mar 24 14:26:01 2017 New Revision: 315904 URL: https://svnweb.freebsd.org/changeset/base/315904 Log: MFH (r313974,r314596): open .netrc early in case we want to drop privs MFH (r314396,r315143): fix a crash caused by an incorrect format string MFH (r314701): fix handlin

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

2017-03-24 Thread Sean Bruno
Author: sbruno Date: Fri Mar 24 14:27:29 2017 New Revision: 315905 URL: https://svnweb.freebsd.org/changeset/base/315905 Log: Add missing 'else' to conditional. This doesn't really affect the code flow or configuration in any way. Modified: head/sys/dev/e1000/if_em.c Modified: head/sys/de

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

2017-03-24 Thread Sean Bruno
Author: sbruno Date: Fri Mar 24 14:25:56 2017 New Revision: 315903 URL: https://svnweb.freebsd.org/changeset/base/315903 Log: Add missing 'else' to 3-state conditional during setup of interrupts. We don't want to overwrite the 82574 interrupt setup with a different configuration. PR:

svn commit: r315902 - stable/11/lib/libfetch

2017-03-24 Thread Dag-Erling Smørgrav
Author: des Date: Fri Mar 24 14:19:52 2017 New Revision: 315902 URL: https://svnweb.freebsd.org/changeset/base/315902 Log: MFH (r313974,r314596): open .netrc early in case we want to drop privs MFH (r314396,r315143): fix a crash caused by an incorrect format string MFH (r314701): fix handlin

svn commit: r315901 - head/sbin/devd

2017-03-24 Thread Warner Losh
Author: imp Date: Fri Mar 24 13:46:26 2017 New Revision: 315901 URL: https://svnweb.freebsd.org/changeset/base/315901 Log: Use a more stream-lined version of fix_value. Submitted by: ian@ Modified: head/sbin/devd/devd.cc head/sbin/devd/devd.hh Modified: head/sbin/devd/devd.cc

svn commit: r315900 - in head: lib/libthread_db/arch/arm sys/arm/arm sys/arm/include

2017-03-24 Thread Michal Meloun
Author: mmel Date: Fri Mar 24 11:46:49 2017 New Revision: 315900 URL: https://svnweb.freebsd.org/changeset/base/315900 Log: Cleanup structures related to VFP and/or mcontext_t. - in mcontext_t, rename newer used 'union __vfp' to equaly sized 'mc_spare'. Space allocated by 'union __vfp' is

svn commit: r315896 - in head: cddl/contrib/opensolaris/cmd/zdb cddl/contrib/opensolaris/cmd/ztest cddl/contrib/opensolaris/lib/libzpool/common sys/cddl/compat/opensolaris/kern sys/cddl/compat/open...

2017-03-24 Thread Alexander Motin
Author: mav Date: Fri Mar 24 09:37:00 2017 New Revision: 315896 URL: https://svnweb.freebsd.org/changeset/base/315896 Log: MFV r315290, r315291: 7303 dynamic metaslab selection illumos/illumos-gate@8363e80ae72609660f6090766ca8c2c18aa53f0c https://github.com/illumos/illumos-gate/commit/83

svn commit: r315895 - stable/11/sys/sys

2017-03-24 Thread Mateusz Guzik
Author: mjg Date: Fri Mar 24 08:06:00 2017 New Revision: 315895 URL: https://svnweb.freebsd.org/changeset/base/315895 Log: MFC r305383: fd: fix up fdeget_file It was supposed to return NULL if a fp is not installed. Modified: stable/11/sys/sys/filedesc.h Directory Properties: stab

Re: svn commit: r315850 - head/sys/boot/forth

2017-03-24 Thread Dag-Erling Smørgrav
Conrad Meyer writes: > Yep. In this context an 'em' dash should be used instead of an 'en' > dash. Theoretically, there also should not be spaces around the > dashes. I'm not sure that's easy to do in manual pages, though. The Chicago Manual of Style agrees with you. The Oxford Style Manual a

Re: svn commit: r315773 - head/sbin/devd

2017-03-24 Thread Cy Schubert
In message <201703240340.v2o3eekh002...@slippy.cwsent.com>, Cy Schubert writes: > In message <1490297671.58015.102.ca...@freebsd.org>, Ian Lepore writes: > > On Thu, 2017-03-23 at 19:58 +0100, Roman Divacky wrote: > > > On Thu, Mar 23, 2017 at 02:36:51AM +, Warner Losh wrote: > > > > > > > >

svn commit: r315894 - stable/10/sys/kern

2017-03-24 Thread Konstantin Belousov
Author: kib Date: Fri Mar 24 07:22:32 2017 New Revision: 315894 URL: https://svnweb.freebsd.org/changeset/base/315894 Log: MFC r315453: When clearing altsigstack settings on exec, do it to the right thread. Modified: stable/10/sys/kern/kern_sig.c Directory Properties: stable/10/ (props

svn commit: r315893 - stable/11/sys/kern

2017-03-24 Thread Konstantin Belousov
Author: kib Date: Fri Mar 24 07:14:46 2017 New Revision: 315893 URL: https://svnweb.freebsd.org/changeset/base/315893 Log: MFC r315453: When clearing altsigstack settings on exec, do it to the right thread. Modified: stable/11/sys/kern/kern_sig.c Directory Properties: stable/11/ (props

svn commit: r315892 - head/sys/compat/cloudabi

2017-03-24 Thread Ed Schouten
Author: ed Date: Fri Mar 24 07:09:33 2017 New Revision: 315892 URL: https://svnweb.freebsd.org/changeset/base/315892 Log: Include to obtain the memcpy() prototype. I got a report of this source file not building on Raspberry Pi. It's interesting that this only fails for that target and n

svn commit: r315891 - stable/10/sys/cam/ctl

2017-03-24 Thread Alexander Motin
Author: mav Date: Fri Mar 24 07:03:26 2017 New Revision: 315891 URL: https://svnweb.freebsd.org/changeset/base/315891 Log: MFC r315022: Request change of SIM target role only when it is different. Separate WWNs change into separate request to know what actually failed. Modified: stable/1

svn commit: r315890 - stable/11/sys/cam/ctl

2017-03-24 Thread Alexander Motin
Author: mav Date: Fri Mar 24 07:02:51 2017 New Revision: 315890 URL: https://svnweb.freebsd.org/changeset/base/315890 Log: MFC r315022: Request change of SIM target role only when it is different. Separate WWNs change into separate request to know what actually failed. Modified: stable/1

svn commit: r315889 - stable/10/sys/cam/ctl

2017-03-24 Thread Alexander Motin
Author: mav Date: Fri Mar 24 07:02:03 2017 New Revision: 315889 URL: https://svnweb.freebsd.org/changeset/base/315889 Log: MFC r315030: Abort all ATIOs and INOTs queued to SIM on LUN disable. Some SIMs may not abort them implicitly, that either fail the LUN disable request or just make us

svn commit: r315888 - stable/11/sys/cam/ctl

2017-03-24 Thread Alexander Motin
Author: mav Date: Fri Mar 24 07:01:31 2017 New Revision: 315888 URL: https://svnweb.freebsd.org/changeset/base/315888 Log: MFC r315030: Abort all ATIOs and INOTs queued to SIM on LUN disable. Some SIMs may not abort them implicitly, that either fail the LUN disable request or just make us

svn commit: r315887 - stable/10/sys/cam/ctl

2017-03-24 Thread Alexander Motin
Author: mav Date: Fri Mar 24 07:00:16 2017 New Revision: 315887 URL: https://svnweb.freebsd.org/changeset/base/315887 Log: MFC r315025: Switch work_queue from TAILQ to STAILQ. It is mostly FIFO and we don't need random removal there. Modified: stable/10/sys/cam/ctl/scsi_ctl.c Directory P

svn commit: r315886 - stable/11/sys/cam/ctl

2017-03-24 Thread Alexander Motin
Author: mav Date: Fri Mar 24 06:59:40 2017 New Revision: 315886 URL: https://svnweb.freebsd.org/changeset/base/315886 Log: MFC r315025: Switch work_queue from TAILQ to STAILQ. It is mostly FIFO and we don't need random removal there. Modified: stable/11/sys/cam/ctl/scsi_ctl.c Directory P