Re: svn commit: r277860 - head/usr.sbin/sa

2015-01-29 Thread John-Mark Gurney
Dimitry Andric wrote this message on Wed, Jan 28, 2015 at 22:22 +: > Replace the VERSION_KEY define with a writable char array, so no const > qualifier needs to be dropped anymore. You do realize that you should juse use __DECONST for this instead? This moves the data from .rodata into .d

Re: svn commit: r277860 - head/usr.sbin/sa

2015-01-29 Thread Dimitry Andric
On 29 Jan 2015, at 09:23, John-Mark Gurney wrote: > > Dimitry Andric wrote this message on Wed, Jan 28, 2015 at 22:22 +: >> Replace the VERSION_KEY define with a writable char array, so no const >> qualifier needs to be dropped anymore. > > You do realize that you should juse use __DECONST

svn commit: r277877 - head/lib/libc/mips/gen

2015-01-29 Thread Ed Maste
Author: emaste Date: Thu Jan 29 15:30:04 2015 New Revision: 277877 URL: https://svnweb.freebsd.org/changeset/base/277877 Log: Use zero register instead of immediate 0x0 in MIPS assembly It seems GAS makes the substitution automatically, but Clang's integrated assembler does not (yet). It

svn commit: r277878 - head/contrib/amd/hlfsd

2015-01-29 Thread Pedro F. Giffuni
Author: pfg Date: Thu Jan 29 15:33:05 2015 New Revision: 277878 URL: https://svnweb.freebsd.org/changeset/base/277878 Log: Revert r277841: It will be re-merged through the vendor area. Modified: head/contrib/amd/hlfsd/homedir.c Modified: head/contrib/amd/hlfsd/homedir.c =

svn commit: r277879 - in head/contrib/amd: amd hlfsd

2015-01-29 Thread Pedro F. Giffuni
Author: pfg Date: Thu Jan 29 15:35:55 2015 New Revision: 277879 URL: https://svnweb.freebsd.org/changeset/base/277879 Log: MFV r277870 Fix compile warnings for gcc-4.4.x This also fixes at least a warning with clang 3.6.0 including the fix for r277841. MFC after:1 week Modified

Re: svn commit: r277878 - head/contrib/amd/hlfsd

2015-01-29 Thread Ed Maste
On 29 January 2015 at 10:33, Pedro F. Giffuni wrote: > Author: pfg > Date: Thu Jan 29 15:33:05 2015 > New Revision: 277878 > URL: https://svnweb.freebsd.org/changeset/base/277878 > > Log: > Revert r277841: It will be re-merged through the vendor area. Reverting this sort of change shouldn't be

Re: svn commit: r277878 - head/contrib/amd/hlfsd

2015-01-29 Thread Pedro Giffuni
On 01/29/15 10:43, Ed Maste wrote: On 29 January 2015 at 10:33, Pedro F. Giffuni wrote: Author: pfg Date: Thu Jan 29 15:33:05 2015 New Revision: 277878 URL: https://svnweb.freebsd.org/changeset/base/277878 Log: Revert r277841: It will be re-merged through the vendor area. Reverting this s

Re: svn commit: r277878 - head/contrib/amd/hlfsd

2015-01-29 Thread Ed Maste
On 29 January 2015 at 10:58, Pedro Giffuni wrote: > >> Reverting this sort of change shouldn't be necessary, where the change >> is trivial and identical to the one on the vendor branch. The net >> result would be the same after the merge from the vendor branch is >> done. > > The upstream version

Re: svn commit: r277877 - head/lib/libc/mips/gen

2015-01-29 Thread Davide Italiano
On Thu, Jan 29, 2015 at 7:30 AM, Ed Maste wrote: > Author: emaste > Date: Thu Jan 29 15:30:04 2015 > New Revision: 277877 > URL: https://svnweb.freebsd.org/changeset/base/277877 > > Log: > Use zero register instead of immediate 0x0 in MIPS assembly > > It seems GAS makes the substitution autom

svn commit: r277882 - in head/sys/arm: xilinx xscale/ixp425

2015-01-29 Thread Luiz Otavio O Souza
Author: loos Date: Thu Jan 29 18:08:50 2015 New Revision: 277882 URL: https://svnweb.freebsd.org/changeset/base/277882 Log: Rename the avila, cambria and zynq GPIO driver names to match the expected string. With this change it is not necessary redeclare the driver relations with gpiobus

svn commit: r277883 - head/sys/sys

2015-01-29 Thread Dimitry Andric
Author: dim Date: Thu Jan 29 18:44:21 2015 New Revision: 277883 URL: https://svnweb.freebsd.org/changeset/base/277883 Log: Ensure that lint does not pick up C11 keywords (e.g. _Noreturn), even if C11 mode is used. It does not support any C11 constructs. MFC after:3 days Modified:

svn commit: r277884 - head/sys/dev/sfxge

2015-01-29 Thread Andrew Rybchenko
Author: arybchik Date: Thu Jan 29 18:50:25 2015 New Revision: 277884 URL: https://svnweb.freebsd.org/changeset/base/277884 Log: sfxge: Change sfxge_ev_qpoll() proto to avoid EVQ pointers array access It was the only place on data path where sc->evq array is accessed. Sponsored by: So

svn commit: r277885 - head/sys/dev/sfxge

2015-01-29 Thread Andrew Rybchenko
Author: arybchik Date: Thu Jan 29 18:52:33 2015 New Revision: 277885 URL: https://svnweb.freebsd.org/changeset/base/277885 Log: sfxge: Move txq->next pointer to part writable on completion path In fact the pointer is used only if more than one TXQ is processed in one interrupt. It is us

svn commit: r277886 - in head/sys/dev/sfxge: . common

2015-01-29 Thread Andrew Rybchenko
Author: arybchik Date: Thu Jan 29 18:54:43 2015 New Revision: 277886 URL: https://svnweb.freebsd.org/changeset/base/277886 Log: sfxge: Make it possible to build without EVQ statistics Sponsored by: Solarflare Communications, Inc. Approved by:gnn (mentor) Modified: head/sys/dev/sf

svn commit: r277887 - head/sys/dev/sfxge

2015-01-29 Thread Andrew Rybchenko
Author: arybchik Date: Thu Jan 29 18:57:27 2015 New Revision: 277887 URL: https://svnweb.freebsd.org/changeset/base/277887 Log: sfxge: Remove extra cache-line alignment and reorder sfxge_evq_t Remove the first member alignment to cacheline since it is nop. Use __aligned() for the whole st

svn commit: r277888 - head/sys/dev/sfxge

2015-01-29 Thread Andrew Rybchenko
Author: arybchik Date: Thu Jan 29 18:59:22 2015 New Revision: 277888 URL: https://svnweb.freebsd.org/changeset/base/277888 Log: sfxge: fixed TSO code to cope with VLAN headers Submitted by: Artem V. Andreev Sponsored by: Solarflare Communications, Inc. Approved by:gnn (mentor)

svn commit: r277889 - head/sys/dev/sfxge

2015-01-29 Thread Andrew Rybchenko
Author: arybchik Date: Thu Jan 29 19:01:09 2015 New Revision: 277889 URL: https://svnweb.freebsd.org/changeset/base/277889 Log: sfxge: Add evq argument to sfxge_tx_qcomplete() It removes necessity to get evq pointer by its index in soft context. Sponsored by: Solarflare Communication

svn commit: r277890 - head/sys/dev/sfxge

2015-01-29 Thread Andrew Rybchenko
Author: arybchik Date: Thu Jan 29 19:02:25 2015 New Revision: 277890 URL: https://svnweb.freebsd.org/changeset/base/277890 Log: sfxge: Do not bzero() DMA allocated memory once again sfxge_dma_alloc() calls bus_dmamem_alloc() with BUS_DMA_ZERO flag, so allocated memory is already filled in

svn commit: r277891 - head/sys/dev/sfxge/common

2015-01-29 Thread Andrew Rybchenko
Author: arybchik Date: Thu Jan 29 19:03:33 2015 New Revision: 277891 URL: https://svnweb.freebsd.org/changeset/base/277891 Log: sfxge: Remove unused esm_size member of the efsys_mem_t structure esm_size is not even initialized properly when memory is allocated. Sponsored by: Solarfla

svn commit: r277892 - head/sys/dev/sfxge

2015-01-29 Thread Andrew Rybchenko
Author: arybchik Date: Thu Jan 29 19:04:42 2015 New Revision: 277892 URL: https://svnweb.freebsd.org/changeset/base/277892 Log: sfxge: Pass correct address to free allocated memory in the case of load error Most likely is was just memory leak on the error handling path since typically efs

svn commit: r277893 - head/sys/dev/sfxge

2015-01-29 Thread Andrew Rybchenko
Author: arybchik Date: Thu Jan 29 19:06:14 2015 New Revision: 277893 URL: https://svnweb.freebsd.org/changeset/base/277893 Log: sfxge: Use SFXGE_MODERATION to initialize event moderation Sponsored by: Solarflare Communications, Inc. Approved by:gnn (mentor) Modified: head/sys/dev

svn commit: r277894 - in head: share/man/man4 sys/dev/sfxge

2015-01-29 Thread Andrew Rybchenko
Author: arybchik Date: Thu Jan 29 19:09:14 2015 New Revision: 277894 URL: https://svnweb.freebsd.org/changeset/base/277894 Log: sfxge: implemented parameter to restrict RSS channels Submitted by: Artem V. Andreev Sponsored by: Solarflare Communications, Inc. Approved by:gnn (me

svn commit: r277895 - in head: share/man/man4 sys/dev/sfxge

2015-01-29 Thread Andrew Rybchenko
Author: arybchik Date: Thu Jan 29 19:11:37 2015 New Revision: 277895 URL: https://svnweb.freebsd.org/changeset/base/277895 Log: sfxge: Separate software Tx queue limit for non-TCP traffic Add separate software Tx queue limit for non-TCP traffic to make total limit higher and avoid local d

Re: svn commit: r277877 - head/lib/libc/mips/gen

2015-01-29 Thread Ed Maste
On 29 January 2015 at 12:36, Davide Italiano wrote: >> >> Log: >> Use zero register instead of immediate 0x0 in MIPS assembly >> > Ed, > did you open a bug for this on LLVM bugzilla? If yes, can you please > link it here, for the records? I've just submitted http://llvm.org/bugs/show_bug.cgi?id

svn commit: r277897 - head/sys/sys

2015-01-29 Thread John Baldwin
Author: jhb Date: Thu Jan 29 19:55:33 2015 New Revision: 277897 URL: https://svnweb.freebsd.org/changeset/base/277897 Log: Remove the d_thread_t compatibility shim provided in 5.0 to handle the struct thread (<= 4.x) vs struct proc (>= 5.0) argument to cdevsw routines. It is long past its ex

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

2015-01-29 Thread Dimitry Andric
Author: dim Date: Thu Jan 29 20:30:13 2015 New Revision: 277898 URL: https://svnweb.freebsd.org/changeset/base/277898 Log: Fix a bunch of -Wcast-qual warnings in msdosfs_conv.c, by using __DECONST. No functional change. MFC after:3 days Modified: head/sys/fs/msdosfs/msdosfs_conv.c

svn commit: r277899 - head/sys/fs/cd9660

2015-01-29 Thread Dimitry Andric
Author: dim Date: Thu Jan 29 20:40:25 2015 New Revision: 277899 URL: https://svnweb.freebsd.org/changeset/base/277899 Log: Fix a bunch of -Wcast-qual warnings in cd9660_util.c, by using __DECONST. No functional change. MFC after:3 days Modified: head/sys/fs/cd9660/cd9660_util.c M

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

2015-01-29 Thread John Baldwin
Author: jhb Date: Thu Jan 29 20:41:42 2015 New Revision: 277900 URL: https://svnweb.freebsd.org/changeset/base/277900 Log: Opt for performance over power-saving on Intel CPUs that have a P-state but not C-state invariant TSC by changing the default behavior to leaving the TSC enabled as the

Re: svn commit: r277900 - head/sys/x86/x86

2015-01-29 Thread John Baldwin
On Thursday, January 29, 2015 08:41:43 PM John Baldwin wrote: > Author: jhb > Date: Thu Jan 29 20:41:42 2015 > New Revision: 277900 > URL: https://svnweb.freebsd.org/changeset/base/277900 > > Log: > Opt for performance over power-saving on Intel CPUs that have a > P-state but not C-state invar

svn commit: r277901 - head/sys/libkern

2015-01-29 Thread Dimitry Andric
Author: dim Date: Thu Jan 29 21:16:45 2015 New Revision: 277901 URL: https://svnweb.freebsd.org/changeset/base/277901 Log: Fix a -Wcast-qual warning in libkern's strtol(), by using __DECONST. No functional change. MFC after:3 days Modified: head/sys/libkern/strtol.c Modified: hea

Re: svn commit: r277835 - in head: lib/libpmc sys/arm/arm sys/arm/include sys/arm/ti sys/conf sys/dev/hwpmc sys/sys

2015-01-29 Thread George Neville-Neil
On 28 Jan 2015, at 14:27, Andrew Turner wrote: On Wed, 28 Jan 2015 18:39:13 + Ruslan Bukin wrote: On Wed, Jan 28, 2015 at 09:35:03AM -0700, Ian Lepore wrote: Just from a quick glance at the part that wasn't truncated, I notice all the inline asm stuff is wrong -- it duplicates what's alre

svn commit: r277903 - head/sys/libkern

2015-01-29 Thread Dimitry Andric
Author: dim Date: Thu Jan 29 21:54:01 2015 New Revision: 277903 URL: https://svnweb.freebsd.org/changeset/base/277903 Log: Similar to r277901, fix more -Wcast-qual warnings in libkern's strtoq(), strtoul() and strtouq(), by using __DECONST. No functional change. MFC after:3 days Mod

svn commit: r277904 - head/usr.sbin/config

2015-01-29 Thread Craig Rodrigues
Author: rodrigc Date: Thu Jan 29 22:49:30 2015 New Revision: 277904 URL: https://svnweb.freebsd.org/changeset/base/277904 Log: Add -s option to config. This option allows for specifying the directory to use as the location for kernel source files. This option was ported from NetBSD.

svn commit: r277907 - head/sys/dev/alc

2015-01-29 Thread Pyun YongHyeon
Author: yongari Date: Fri Jan 30 01:13:07 2015 New Revision: 277907 URL: https://svnweb.freebsd.org/changeset/base/277907 Log: Correct device description message. Modified: head/sys/dev/alc/if_alc.c Modified: head/sys/dev/alc/if_alc.c =

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

2015-01-29 Thread Ed Maste
Author: emaste Date: Fri Jan 30 03:17:07 2015 New Revision: 277908 URL: https://svnweb.freebsd.org/changeset/base/277908 Log: Add note that contigfree(9) does not accept NULL Differential Revision: https://reviews.freebsd.org/D1721 Modified: head/share/man/man9/contigmalloc.9 Modified:

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

2015-01-29 Thread Benjamin Kaduk
On Thu, Jan 29, 2015 at 10:17 PM, Ed Maste wrote: > Author: emaste > Date: Fri Jan 30 03:17:07 2015 > New Revision: 277908 > URL: https://svnweb.freebsd.org/changeset/base/277908 > > Log: > Add note that contigfree(9) does not accept NULL > Wouldn't it be like a two-line patch to change contig

Re: svn commit: r277900 - head/sys/x86/x86

2015-01-29 Thread Ryan Stone
On Thu, Jan 29, 2015 at 3:45 PM, John Baldwin wrote: > Also, note that we always use the TSC as the cpu ticker, even if it is not the > timecounter. Thus, if C2+ is enabled on the systems, the kernel idle threads > will have an artificially low runtime since their idle time is not properly > acco

svn commit: r277909 - head/cddl/contrib/opensolaris/cmd/dtrace/test/cmd/scripts

2015-01-29 Thread Mark Johnston
Author: markj Date: Fri Jan 30 04:11:30 2015 New Revision: 277909 URL: https://svnweb.freebsd.org/changeset/base/277909 Log: When searching for an accompanying test program, look in the directory containing the test script rather than the current directory. This is needed in order to run the

svn commit: r277910 - in head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common: pid proc

2015-01-29 Thread Mark Johnston
Author: markj Date: Fri Jan 30 04:14:19 2015 New Revision: 277910 URL: https://svnweb.freebsd.org/changeset/base/277910 Log: Use the correct field when reading the PID out of a struct proc. MFC after:1 week Modified: head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pid/tst.fo

svn commit: r277911 - in head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common: inline misc offsetof print probes profile-n scalars

2015-01-29 Thread Mark Johnston
Author: markj Date: Fri Jan 30 04:30:18 2015 New Revision: 277911 URL: https://svnweb.freebsd.org/changeset/base/277911 Log: Replace Solaris identifiers and types with their FreeBSD equivalents. MFC after:1 week Modified: head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/inli

svn commit: r277912 - in head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common: json nfs pid syscall usdt

2015-01-29 Thread Mark Johnston
Author: markj Date: Fri Jan 30 04:37:57 2015 New Revision: 277912 URL: https://svnweb.freebsd.org/changeset/base/277912 Log: Include required headers in DTrace test programs. MFC after:1 week Modified: head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/json/tst.usdt.c head/cd

svn commit: r277913 - head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/lexer

2015-01-29 Thread Mark Johnston
Author: markj Date: Fri Jan 30 04:41:49 2015 New Revision: 277913 URL: https://svnweb.freebsd.org/changeset/base/277913 Log: The DTrace harness (dtest.pl) executes DTrace scripts with the -C flag, which causes dtrace(1) to run the C preprocessor on input scripts before executing them. Suppre

svn commit: r277914 - head/sys/cddl/contrib/opensolaris/uts/common/dtrace

2015-01-29 Thread Mark Johnston
Author: markj Date: Fri Jan 30 04:51:59 2015 New Revision: 277914 URL: https://svnweb.freebsd.org/changeset/base/277914 Log: In fasttrap_sigtrap(), use tdsendsignal() rather than tdksignal() to send SIGTRAP. The latter requires that its thread argument be non-NULL, but fasttrap_sigtrap() doe

svn commit: r277915 - head/sys/cddl/contrib/opensolaris/uts/common/dtrace

2015-01-29 Thread Mark Johnston
Author: markj Date: Fri Jan 30 05:03:23 2015 New Revision: 277915 URL: https://svnweb.freebsd.org/changeset/base/277915 Log: Don't attempt to disable enabled fasttrap probes in an exiting process. There's no need to do so, and we can't hold an exiting process, so this race can result in pani

svn commit: r277916 - head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/usdt

2015-01-29 Thread Mark Johnston
Author: markj Date: Fri Jan 30 05:14:01 2015 New Revision: 277916 URL: https://svnweb.freebsd.org/changeset/base/277916 Log: pause() isn't a system call on FreeBSD; use sigsuspend(2) instead. MFC after:1 week Modified: head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/usdt/tst

svn commit: r277917 - in head/sys/cam: ctl scsi

2015-01-29 Thread Kenneth D. Merry
Author: ken Date: Fri Jan 30 05:23:39 2015 New Revision: 277917 URL: https://svnweb.freebsd.org/changeset/base/277917 Log: Improve SCSI Extended Inquiry VPD page (0x86) support. sys/cam/scsi/scsi_all.h: In struct scsi_extended_inquiry_data: - Increase the length field to 2 b

Re: svn commit: r277898 - head/sys/fs/msdosfs

2015-01-29 Thread Bruce Evans
On Thu, 29 Jan 2015, Dimitry Andric wrote: Log: Fix a bunch of -Wcast-qual warnings in msdosfs_conv.c, by using __DECONST. No functional change. My flamethrower was not warm enough when __DECONST() was committed. I only removed (never merged) it in my version, and backed out a few early us

Re: svn commit: r277903 - head/sys/libkern

2015-01-29 Thread Bruce Evans
On Thu, 29 Jan 2015, Dimitry Andric wrote: Log: Similar to r277901, fix more -Wcast-qual warnings in libkern's strtoq(), strtoul() and strtouq(), by using __DECONST. No functional change. Here the fix is no worse than the original code. Modified: head/sys/libkern/strtoq.c