svn commit: r314194 - in head/sys: cddl/compat/opensolaris/kern cddl/compat/opensolaris/sys cddl/contrib/opensolaris/uts/common/fs cddl/contrib/opensolaris/uts/common/sys conf modules/zfs

2017-02-23 Thread Andriy Gapon
Author: avg Date: Fri Feb 24 07:53:56 2017 New Revision: 314194 URL: https://svnweb.freebsd.org/changeset/base/314194 Log: zfs: clean up unused files and definitions MFC after:1 month X-MFC after: r314048 Deleted: head/sys/cddl/contrib/opensolaris/uts/common/fs/gfs.c

svn commit: r314193 - head/sys/cam/ctl

2017-02-23 Thread Alexander Motin
Author: mav Date: Fri Feb 24 07:47:50 2017 New Revision: 314193 URL: https://svnweb.freebsd.org/changeset/base/314193 Log: Some code cleanup. MFC after:2 weeks Modified: head/sys/cam/ctl/scsi_ctl.c Modified: head/sys/cam/ctl/scsi_ctl.c

svn commit: r314192 - in head/sys: conf dev/iwm modules/iwm

2017-02-23 Thread Adrian Chadd
Author: adrian Date: Fri Feb 24 07:07:58 2017 New Revision: 314192 URL: https://svnweb.freebsd.org/changeset/base/314192 Log: [iwm] Add support for Firmware paging, needed for newer 8000C firmware. * Uses the IWM_FW_PAGING_BLOCK_CMD firmware command to tell the firmware what memory

svn commit: r314191 - head/lib/libcam

2017-02-23 Thread Ngie Cooper
Author: ngie Date: Fri Feb 24 06:49:31 2017 New Revision: 314191 URL: https://svnweb.freebsd.org/changeset/base/314191 Log: Fix up r314189 The conditional in do_buff_decode(..) after the while loop was accidentally inverted. Only increment the pointer for fmt if it's not NUL. MFC

svn commit: r314190 - head/lib/libcam

2017-02-23 Thread Ngie Cooper
Author: ngie Date: Fri Feb 24 06:28:58 2017 New Revision: 314190 URL: https://svnweb.freebsd.org/changeset/base/314190 Log: Fix some minor style nits: put parentheses around return values MFC after:2 weeks Sponsored by: Dell EMC Isilon Modified: head/lib/libcam/scsi_cmdparse.c

svn commit: r314189 - head/lib/libcam

2017-02-23 Thread Ngie Cooper
Author: ngie Date: Fri Feb 24 06:24:39 2017 New Revision: 314189 URL: https://svnweb.freebsd.org/changeset/base/314189 Log: Fix up NULL/'\0' uses and fix 2 derefs after NULL MFC after:2 weeks Reported by: Coverity CID: 1018898, 1018899 Differential Revision:

Re: svn commit: r314142 - head/sys/dev/ce

2017-02-23 Thread Pedro Giffuni
Hello, On 2/23/2017 10:05 PM, Alexey Dokuchaev wrote: On Thu, Feb 23, 2017 at 12:49:01PM -0500, Pedro Giffuni wrote: On 2/23/2017 12:13 PM, Benjamin Kaduk wrote: On Thu, Feb 23, 2017 at 9:30 AM, Pedro F. Giffuni > wrote: @@ -632,8 +632,8 @@ void

Re: svn commit: r314142 - head/sys/dev/ce

2017-02-23 Thread Alexey Dokuchaev
On Thu, Feb 23, 2017 at 12:49:01PM -0500, Pedro Giffuni wrote: > On 2/23/2017 12:13 PM, Benjamin Kaduk wrote: > > On Thu, Feb 23, 2017 at 9:30 AM, Pedro F. Giffuni > > wrote: > > @@ -632,8 +632,8 @@ void ce_stop_chan (ce_chan_t *c) > >

svn commit: r314188 - head/sys/kern

2017-02-23 Thread Warner Losh
Author: imp Date: Fri Feb 24 01:39:12 2017 New Revision: 314188 URL: https://svnweb.freebsd.org/changeset/base/314188 Log: Cast values to (int) before comparing them to the range of the enum. This ensures they are in range w/o the warnings. Modified: head/sys/kern/kern_pmc.c Modified:

svn commit: r314187 - head/sys/kern

2017-02-23 Thread Warner Losh
Author: imp Date: Fri Feb 24 01:39:08 2017 New Revision: 314187 URL: https://svnweb.freebsd.org/changeset/base/314187 Log: KDTRACE_HOOKS isn't guaranteed to be defined. Change to check to see if it is defined or not rather than if it is non-zero. Sponsored by: Netflix, Inc Modified:

Re: svn commit: r314142 - head/sys/dev/ce

2017-02-23 Thread Warner Losh
On Thu, Feb 23, 2017 at 5:28 PM, Gleb Smirnoff wrote: > On Thu, Feb 23, 2017 at 03:30:21PM +, Pedro F. Giffuni wrote: > P> Author: pfg > P> Date: Thu Feb 23 15:30:21 2017 > P> New Revision: 314142 > P> URL: https://svnweb.freebsd.org/changeset/base/314142 > P> > P> Log: >

Re: svn commit: r314186 - head/sys/arm/at91

2017-02-23 Thread Olivier Houchard
On Thu, Feb 23, 2017 at 07:23:36PM -0500, Pedro Giffuni wrote: > Hi; > > > Il giorno 23 feb 2017, alle ore 19:05, Ian Lepore ha > > scritto: > > > > On Thu, 2017-02-23 at 23:48 +, Pedro F. Giffuni wrote: > >> Author: pfg > >> Date: Thu Feb 23 23:48:44 2017 > >> New

Re: svn commit: r314142 - head/sys/dev/ce

2017-02-23 Thread Gleb Smirnoff
On Thu, Feb 23, 2017 at 03:30:21PM +, Pedro F. Giffuni wrote: P> Author: pfg P> Date: Thu Feb 23 15:30:21 2017 P> New Revision: 314142 P> URL: https://svnweb.freebsd.org/changeset/base/314142 P> P> Log: P> dev/ce: double assignment. P> P> The code is not operational right now so just

Re: svn commit: r314186 - head/sys/arm/at91

2017-02-23 Thread Pedro Giffuni
Hi; > Il giorno 23 feb 2017, alle ore 19:05, Ian Lepore ha > scritto: > > On Thu, 2017-02-23 at 23:48 +, Pedro F. Giffuni wrote: >> Author: pfg >> Date: Thu Feb 23 23:48:44 2017 >> New Revision: 314186 >> URL: https://svnweb.freebsd.org/changeset/base/314186 >> >> Log:

Re: svn commit: r314186 - head/sys/arm/at91

2017-02-23 Thread Warner Losh
On Thu, Feb 23, 2017 at 5:05 PM, Ian Lepore wrote: > On Thu, 2017-02-23 at 23:48 +, Pedro F. Giffuni wrote: >> Author: pfg >> Date: Thu Feb 23 23:48:44 2017 >> New Revision: 314186 >> URL: https://svnweb.freebsd.org/changeset/base/314186 >> >> Log: >> at91: double

Re: svn commit: r314186 - head/sys/arm/at91

2017-02-23 Thread Ian Lepore
On Thu, 2017-02-23 at 23:48 +, Pedro F. Giffuni wrote: > Author: pfg > Date: Thu Feb 23 23:48:44 2017 > New Revision: 314186 > URL: https://svnweb.freebsd.org/changeset/base/314186 > > Log: >   at91: double assignment. >    >   Found with: coccinelle (da.cocci) >   Suggested by: cognet

svn commit: r314186 - head/sys/arm/at91

2017-02-23 Thread Pedro F. Giffuni
Author: pfg Date: Thu Feb 23 23:48:44 2017 New Revision: 314186 URL: https://svnweb.freebsd.org/changeset/base/314186 Log: at91: double assignment. Found with: coccinelle (da.cocci) Suggested by: cognet Modified: head/sys/arm/at91/at91sam9260.c Modified:

Re: svn commit: r314179 - in head: contrib/netbsd-tests/lib/librt include lib/libc/gen lib/libc/include share/man/man3 sys/kern

2017-02-23 Thread Ngie Cooper
On Thu, Feb 23, 2017 at 11:36 AM, Eric van Gyzen wrote: > Author: vangyzen > Date: Thu Feb 23 19:36:38 2017 > New Revision: 314179 > URL: https://svnweb.freebsd.org/changeset/base/314179 > > Log: > Add sem_clockwait_np() > > This function allows the caller to specify the

svn commit: r314185 - head/sys/kern

2017-02-23 Thread Mateusz Guzik
Author: mjg Date: Thu Feb 23 22:46:01 2017 New Revision: 314185 URL: https://svnweb.freebsd.org/changeset/base/314185 Log: mtx: microoptimize lockstat handling in spin mutexes and thread lock While here make the code compilablle on kernels with LOCK_PROFILING but without KDTRACE_HOOKS.

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

2017-02-23 Thread Andriy Gapon
Author: avg Date: Thu Feb 23 22:08:35 2017 New Revision: 314183 URL: https://svnweb.freebsd.org/changeset/base/314183 Log: add jedec_ts.4 to the list of manual pages Reported by: rpokala MFC after:3 days Modified: head/share/man/man4/Makefile Modified:

Re: svn commit: r314151 - head/sys/modules/iwm

2017-02-23 Thread Adrian Chadd
thanks! was busy in meetings this morning :( -a On 23 February 2017 at 09:47, Ngie Cooper (yaneurabeya) wrote: > >> On Feb 23, 2017, at 09:44, Ngie Cooper wrote: >> >> Author: ngie >> Date: Thu Feb 23 17:44:06 2017 >> New Revision: 314151 >> URL:

svn commit: r314181 - head/sbin/ifconfig

2017-02-23 Thread Adrian Chadd
Author: adrian Date: Thu Feb 23 20:49:17 2017 New Revision: 314181 URL: https://svnweb.freebsd.org/changeset/base/314181 Log: [ifconfig] handle illegal WPS frames Some APs broadcast WPS IE frames with totally broken data. Ifconfig's printwpsie() loops through WPS frames printing the

svn commit: r314180 - head/sys/mips/conf

2017-02-23 Thread Brooks Davis
Author: brooks Date: Thu Feb 23 20:41:55 2017 New Revision: 314180 URL: https://svnweb.freebsd.org/changeset/base/314180 Log: Fix and shorten BERI kernel builds during universe. Stop building BERI_DE4_BASE and BERI_SIM_BASE, they aren't particularly valid as they don't have a root dev.

Re: svn commit: r314155 - head/sys/netinet

2017-02-23 Thread Steven Hartland
You might also be interested in reviewing my fix for TCP buffer scaling too Michael. https://reviews.freebsd.org/D9668 This fixes slow transfers due to no receive buffer scaling if TCP timestamps aren't negotiated. Its still got debug stuff in it ATM and I'm toying with removing the

svn commit: r314179 - in head: contrib/netbsd-tests/lib/librt include lib/libc/gen lib/libc/include share/man/man3 sys/kern

2017-02-23 Thread Eric van Gyzen
Author: vangyzen Date: Thu Feb 23 19:36:38 2017 New Revision: 314179 URL: https://svnweb.freebsd.org/changeset/base/314179 Log: Add sem_clockwait_np() This function allows the caller to specify the reference clock and choose between absolute and relative mode. In relative mode, the

svn commit: r314176 - head/contrib/ofed/libcxgb4/src

2017-02-23 Thread Navdeep Parhar
Author: np Date: Thu Feb 23 19:21:47 2017 New Revision: 314176 URL: https://svnweb.freebsd.org/changeset/base/314176 Log: Add support for RDMA from userspace with T6 cards. Submitted by: Krishnamraju Eraparaju @ Chelsio Sponsored by: Chelsio Communications Modified:

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

2017-02-23 Thread Navdeep Parhar
Author: np Date: Thu Feb 23 19:02:40 2017 New Revision: 314167 URL: https://svnweb.freebsd.org/changeset/base/314167 Log: cxgbe/iw_cxgbe: Minor changes for T6. Submitted by: Krishnamraju Eraparaju at Chelsio Sponsored by: Chelsio Communications Modified:

Re: svn commit: r314145 - in head/sys/dev/vxge: . vxgehal

2017-02-23 Thread Pedro Giffuni
On 02/23/17 13:16, John Baldwin wrote: On Thursday, February 23, 2017 04:10:16 PM Pedro F. Giffuni wrote: Author: pfg Date: Thu Feb 23 16:10:15 2017 New Revision: 314145 URL: https://svnweb.freebsd.org/changeset/base/314145 Log: dev/vxe: double assignments. Fix some suspicious code,

svn commit: r314158 - head/sys/dev/vxge

2017-02-23 Thread Pedro F. Giffuni
Author: pfg Date: Thu Feb 23 18:56:31 2017 New Revision: 314158 URL: https://svnweb.freebsd.org/changeset/base/314158 Log: vxge(4): Yet another (minor) mismatch. VXGE_DEFAULT_TTI_RTIMER_VAL and VXGE_DEFAULT_RTI_RTIMER_VAL have value zero but nevertheless we should use the right value on

Re: svn commit: r314145 - in head/sys/dev/vxge: . vxgehal

2017-02-23 Thread John Baldwin
On Thursday, February 23, 2017 04:10:16 PM Pedro F. Giffuni wrote: > Author: pfg > Date: Thu Feb 23 16:10:15 2017 > New Revision: 314145 > URL: https://svnweb.freebsd.org/changeset/base/314145 > > Log: > dev/vxe: double assignments. > > Fix some suspicious code, likely caused by excessive

svn commit: r314156 - head/sys/dev/rt

2017-02-23 Thread Pedro F. Giffuni
Author: pfg Date: Thu Feb 23 18:15:04 2017 New Revision: 314156 URL: https://svnweb.freebsd.org/changeset/base/314156 Log: rt_attach(): double assignment. Found with: coccinelle (da.cocci) Modified: head/sys/dev/rt/if_rt.c Modified: head/sys/dev/rt/if_rt.c

svn commit: r314155 - head/sys/netinet

2017-02-23 Thread Michael Tuexen
Author: tuexen Date: Thu Feb 23 18:14:36 2017 New Revision: 314155 URL: https://svnweb.freebsd.org/changeset/base/314155 Log: TCP window updates are only sent if the window can be increased by at least 2 * MSS. However, if the receive buffer size is small, this might be impossible. Add back

Re: svn commit: r314153 - head/cddl/contrib/opensolaris/lib/libctf/common

2017-02-23 Thread Mark Johnston
On Thu, Feb 23, 2017 at 05:54:17PM +, Mark Johnston wrote: > Author: markj > Date: Thu Feb 23 17:54:17 2017 > New Revision: 314153 > URL: https://svnweb.freebsd.org/changeset/base/314153 > > Log: > Fix a memory leak in an error case in libctf. > > Submitted by: Tom Rix

svn commit: r314154 - head/cddl/contrib/opensolaris/lib/libdtrace/common

2017-02-23 Thread Mark Johnston
Author: markj Date: Thu Feb 23 17:56:24 2017 New Revision: 314154 URL: https://svnweb.freebsd.org/changeset/base/314154 Log: Fix memory leaks in error cases in libdtrace. Submitted by: Tom Rix MFC after:1 week Differential Revision:

svn commit: r314153 - head/cddl/contrib/opensolaris/lib/libctf/common

2017-02-23 Thread Mark Johnston
Author: markj Date: Thu Feb 23 17:54:17 2017 New Revision: 314153 URL: https://svnweb.freebsd.org/changeset/base/314153 Log: Fix a memory leak in an error case in libctf. Submitted by: Tom Rix MFC after:1 week Modified:

Re: svn commit: r314151 - head/sys/modules/iwm

2017-02-23 Thread Ngie Cooper (yaneurabeya)
> On Feb 23, 2017, at 09:44, Ngie Cooper wrote: > > Author: ngie > Date: Thu Feb 23 17:44:06 2017 > New Revision: 314151 > URL: https://svnweb.freebsd.org/changeset/base/314151 > > Log: > Unbreak if_iwm.ko after r314076 > > Add if_iwm_7000.c/if_iwm_8000.c to SRCS to match

svn commit: r314152 - head/lib/libcompiler_rt

2017-02-23 Thread Jung-uk Kim
Author: jkim Date: Thu Feb 23 17:46:38 2017 New Revision: 314152 URL: https://svnweb.freebsd.org/changeset/base/314152 Log: Remove an assembler flag, which is redundant since r309124. The upstream took care of it by introducing a macro NO_EXEC_STACK_DIRECTIVE.

Re: svn commit: r314142 - head/sys/dev/ce

2017-02-23 Thread Pedro Giffuni
On 2/23/2017 12:13 PM, Benjamin Kaduk wrote: On Thu, Feb 23, 2017 at 9:30 AM, Pedro F. Giffuni > wrote: Author: pfg Date: Thu Feb 23 15:30:21 2017 New Revision: 314142 URL: https://svnweb.freebsd.org/changeset/base/314142

svn commit: r314151 - head/sys/modules/iwm

2017-02-23 Thread Ngie Cooper
Author: ngie Date: Thu Feb 23 17:44:06 2017 New Revision: 314151 URL: https://svnweb.freebsd.org/changeset/base/314151 Log: Unbreak if_iwm.ko after r314076 Add if_iwm_7000.c/if_iwm_8000.c to SRCS to match similar additions made to sys/conf/files after refactoring done in the commit

Re: svn commit: r314142 - head/sys/dev/ce

2017-02-23 Thread Mateusz Guzik
On Thu, Feb 23, 2017 at 03:30:21PM +, Pedro F. Giffuni wrote: > Author: pfg > Date: Thu Feb 23 15:30:21 2017 > New Revision: 314142 > URL: https://svnweb.freebsd.org/changeset/base/314142 > > Log: > dev/ce: double assignment. > > The code is not operational right now so just comment

Re: svn commit: r313996 - in head/sys: kern sys

2017-02-23 Thread Mateusz Guzik
On Wed, Feb 22, 2017 at 03:09:24PM -0800, Gleb Smirnoff wrote: > Mateusz, > > why do you __predict_false() the recursion scenario? I'm afraid > that performance loss for mispredictions could outweight the > gain due to predictions. AFAIK, mutex recursion is still a pretty > common event in

Re: svn commit: r314142 - head/sys/dev/ce

2017-02-23 Thread Benjamin Kaduk
On Thu, Feb 23, 2017 at 9:30 AM, Pedro F. Giffuni wrote: > Author: pfg > Date: Thu Feb 23 15:30:21 2017 > New Revision: 314142 > URL: https://svnweb.freebsd.org/changeset/base/314142 > > Log: > dev/ce: double assignment. > > The code is not operational right now so just

svn commit: r314150 - head/sys/dev/xen/netback

2017-02-23 Thread Alan Somers
Author: asomers Date: Thu Feb 23 16:54:30 2017 New Revision: 314150 URL: https://svnweb.freebsd.org/changeset/base/314150 Log: Fix the xnb(4) unit tests One test was inadvertently expecting a bug in the kernel's sscanf implementation circa 2012. I don't know when that bug got fixed.

svn commit: r314149 - head/etc

2017-02-23 Thread Takahashi Yoshihiro
Author: nyan Date: Thu Feb 23 16:42:48 2017 New Revision: 314149 URL: https://svnweb.freebsd.org/changeset/base/314149 Log: The ct driver was removed by r312910. Modified: head/etc/devd.conf Modified: head/etc/devd.conf

svn commit: r314148 - head/sys/dev/xen/netback

2017-02-23 Thread Alan Somers
Author: asomers Date: Thu Feb 23 16:31:04 2017 New Revision: 314148 URL: https://svnweb.freebsd.org/changeset/base/314148 Log: Misc Coverity fixes in xnb(4) Most of these are null pointer dereferences or missing error checks in the unit tests. One is a missing error check in

svn commit: r314147 - head/sys/dev/bktr

2017-02-23 Thread Pedro F. Giffuni
Author: pfg Date: Thu Feb 23 16:18:57 2017 New Revision: 314147 URL: https://svnweb.freebsd.org/changeset/base/314147 Log: bktr(4): double assignment. First assignment is obviously overwritten by the next line. Leave newest assignment: it was introduced in r29233. Found with:

svn commit: r314145 - in head/sys/dev/vxge: . vxgehal

2017-02-23 Thread Pedro F. Giffuni
Author: pfg Date: Thu Feb 23 16:10:15 2017 New Revision: 314145 URL: https://svnweb.freebsd.org/changeset/base/314145 Log: dev/vxe: double assignments. Fix some suspicious code, likely caused by excessive copy-pasting. Found with: coccinelle (da.cocci) MFC after:2 weeks

svn commit: r314142 - head/sys/dev/ce

2017-02-23 Thread Pedro F. Giffuni
Author: pfg Date: Thu Feb 23 15:30:21 2017 New Revision: 314142 URL: https://svnweb.freebsd.org/changeset/base/314142 Log: dev/ce: double assignment. The code is not operational right now so just comment away an obviously useless assignment. Fix some typos while here. Found with:

svn commit: r314141 - head/usr.sbin/rtadvd

2017-02-23 Thread Pedro F. Giffuni
Author: pfg Date: Thu Feb 23 15:10:46 2017 New Revision: 314141 URL: https://svnweb.freebsd.org/changeset/base/314141 Log: rtadvd(8): double assignment. Remove doubtful initialization since the value will be overwritten immediately afterwards. Found with: coccinelle (da.cocci)

svn commit: r314140 - head/usr.sbin/camdd

2017-02-23 Thread Pedro F. Giffuni
Author: pfg Date: Thu Feb 23 15:05:01 2017 New Revision: 314140 URL: https://svnweb.freebsd.org/changeset/base/314140 Log: camdd(8): double assignment. Why do a calculation twice when you can do it just once. Found with: coccinelle (da.cocci) Modified: head/usr.sbin/camdd/camdd.c

svn commit: r314139 - head/usr.bin/vi/catalog

2017-02-23 Thread Ed Maste
Author: emaste Date: Thu Feb 23 14:39:51 2017 New Revision: 314139 URL: https://svnweb.freebsd.org/changeset/base/314139 Log: make vi message catalogues build independent of locale r275234 addressed sort automatically converting 8-bit locales to UTF-8 by using "LANG=C sort", but LC_ALL

svn commit: r314138 - head/sys/dev/xen/gntdev

2017-02-23 Thread Roger Pau Monné
Author: royger Date: Thu Feb 23 13:14:28 2017 New Revision: 314138 URL: https://svnweb.freebsd.org/changeset/base/314138 Log: xen/gndev: use UOFF_TO_IDX instead of OFF_TO_IDX The Xen grant table device treats the mmap offset parameter as an unsigned type, and as so it must use the newly

svn commit: r314136 - head/sys/compat/linuxkpi/common/include/linux

2017-02-23 Thread Hans Petter Selasky
Author: hselasky Date: Thu Feb 23 09:53:54 2017 New Revision: 314136 URL: https://svnweb.freebsd.org/changeset/base/314136 Log: Implement __test_and_clear_bit() and __test_and_set_bit() in the LinuxKPI. The clang compiler will optimise these functions down to three AMD64 instructions if

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

2017-02-23 Thread Dmitry Chagin
Author: dchagin Date: Thu Feb 23 08:17:42 2017 New Revision: 314132 URL: https://svnweb.freebsd.org/changeset/base/314132 Log: Right clock defines specified in linux_timer.h. Get rid of spirious clock defines from linux_misc.h. MFC after:1 week Modified: