Re: svn commit: r280327 - in head/sys: kern vm

2015-03-29 Thread Don Lewis
On 28 Mar, Alan Cox wrote: > On 03/28/2015 12:29, Bryan Drewery wrote: >> On 3/27/2015 9:41 PM, Don Lewis wrote: >>> On 21 Mar, Alan Cox wrote: Author: alc Date: Sat Mar 21 17:56:55 2015 New Revision: 280327 URL: https://svnweb.freebsd.org/changeset/base/280327 Log: >>

Re: svn commit: r280308 - head/sys/fs/devfs

2015-03-29 Thread Bruce Evans
On Mon, 30 Mar 2015, Bruce Evans wrote: On Sun, 29 Mar 2015, Konstantin Belousov wrote: Interesting complication with the devfs timestamp update is that devfs_read_f() and devfs_write_f() do not lock the vnode. So whatever update method is used, stat(2) on devfs might return inconsistent value

Re: svn commit: r280308 - head/sys/fs/devfs

2015-03-29 Thread Bruce Evans
On Sun, 29 Mar 2015, Konstantin Belousov wrote: Interesting complication with the devfs timestamp update is that devfs_read_f() and devfs_write_f() do not lock the vnode. So whatever update method is used, stat(2) on devfs might return inconsistent value, since tv_src/tv_nsec cannot be updated o

svn commit: r280837 - head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/ip

2015-03-29 Thread Mark Johnston
Author: markj Date: Mon Mar 30 04:06:36 2015 New Revision: 280837 URL: https://svnweb.freebsd.org/changeset/base/280837 Log: Fix ping(8) and ping6(8) usage in a couple of ip provider tests, and update expected test output to reflect differences in default TTL and payload length. MFC aft

svn commit: r280836 - head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/funcs

2015-03-29 Thread Mark Johnston
Author: markj Date: Mon Mar 30 04:03:01 2015 New Revision: 280836 URL: https://svnweb.freebsd.org/changeset/base/280836 Log: Fix ping(8) usage in funcs/tst.system.d so that the test actually completes. MFC after:1 week Modified: head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/commo

svn commit: r280835 - in head/cddl/usr.sbin/dtrace/tests: . tools

2015-03-29 Thread Mark Johnston
Author: markj Date: Mon Mar 30 04:01:49 2015 New Revision: 280835 URL: https://svnweb.freebsd.org/changeset/base/280835 Log: Replace dtest.pl, the upstream DTrace test suite harness, with a shell script. This reimplementation is much simpler than dtest.pl and is more amenable to being run un

svn commit: r280834 - in head/sys/cddl/dev/dtrace: amd64 i386

2015-03-29 Thread Mark Johnston
Author: markj Date: Mon Mar 30 03:55:51 2015 New Revision: 280834 URL: https://svnweb.freebsd.org/changeset/base/280834 Log: Import a missing piece of commit b8fac8e162eda7e98d from illumos-gate. This adds an upper bound, dtrace_ustackdepth_max, to the number of frames traversed when comp

Re: svn commit: r280308 - head/sys/fs/devfs

2015-03-29 Thread Bruce Evans
On Sun, 29 Mar 2015, Jilles Tjoelker wrote: On Sun, Mar 22, 2015 at 11:25:07AM -0700, Don Lewis wrote: It's not totally worthless. I think the mtime on tty devices is used to calculate the idle time that is printed by the w command. We just don't need nanosecond accuracy for that. Hmm. The

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

2015-03-29 Thread Bruce Evans
On Sun, 29 Mar 2015, Ian Lepore wrote: On Mon, 2015-03-30 at 00:07 +0300, Gleb Smirnoff wrote: On Sun, Mar 29, 2015 at 08:16:46AM -0700, Adrian Chadd wrote: A> On 29 March 2015 at 01:13, Hans Petter Selasky wrote: A> > On 03/28/15 20:16, Gleb Smirnoff wrote: A> >> A> >> +uint16_t A> >> +ip_new

svn commit: r280833 - head/sys/arm/arm

2015-03-29 Thread Andrew Turner
Author: andrew Date: Sun Mar 29 22:46:07 2015 New Revision: 280833 URL: https://svnweb.freebsd.org/changeset/base/280833 Log: arm11_sleep is no longer needed, remove it. Modified: head/sys/arm/arm/cpufunc_asm_arm11.S Modified: head/sys/arm/arm/cpufunc_asm_arm11.S

svn commit: r280832 - head/sys/arm/include

2015-03-29 Thread Andrew Turner
Author: andrew Date: Sun Mar 29 22:45:33 2015 New Revision: 280832 URL: https://svnweb.freebsd.org/changeset/base/280832 Log: pj4b_config and pj4bv7_setup are only used when CPU_MV_PJ4B is defined. Modified: head/sys/arm/include/cpufunc.h Modified: head/sys/arm/include/cpufunc.h

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

2015-03-29 Thread Steven Hartland
On 29/03/2015 22:52, Alexander Motin wrote: On 30.03.2015 00:44, Steven Hartland wrote: Given the upstream nature of this code it may be better to not do cosmetic changes like unless they are first upstreamed as it makes comparing with the upstream when bringing update harder. My changes didn

svn commit: r280831 - in head/sys: arm/allwinner arm/allwinner/a20 arm/altera/socfpga arm/at91 arm/broadcom/bcm2835 arm/cavium/cns11xx arm/freescale/imx arm/freescale/vybrid arm/lpc arm/mv arm/rock...

2015-03-29 Thread Andrew Turner
Author: andrew Date: Sun Mar 29 22:43:39 2015 New Revision: 280831 URL: https://svnweb.freebsd.org/changeset/base/280831 Log: Build the cpufunc_asm_* files based on the cpu type, not which config file we happen to be building. Modified: head/sys/arm/allwinner/a20/files.a20 head/sys/arm/al

svn commit: r280830 - head/tools/regression/lib/libc/gen

2015-03-29 Thread Jilles Tjoelker
Author: jilles Date: Sun Mar 29 22:00:24 2015 New Revision: 280830 URL: https://svnweb.freebsd.org/changeset/base/280830 Log: wordexp(): Add testcase for non-default IFS in environment. The non-default IFS is expected to be used. MFC after:1 week Modified: head/tools/regression/

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

2015-03-29 Thread Ian Lepore
On Mon, 2015-03-30 at 00:07 +0300, Gleb Smirnoff wrote: > On Sun, Mar 29, 2015 at 08:16:46AM -0700, Adrian Chadd wrote: > A> On 29 March 2015 at 01:13, Hans Petter Selasky wrote: > A> > On 03/28/15 20:16, Gleb Smirnoff wrote: > A> >> > A> >> +uint16_t > A> >> +ip_newid(void) > A> >> +{ > A> >> + >

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

2015-03-29 Thread Alexander Motin
On 30.03.2015 00:44, Steven Hartland wrote: > Given the upstream nature of this code it may be better to not do > cosmetic changes like unless they are first upstreamed as it makes > comparing with the upstream when bringing update harder. My changes didn't move the code away from the upstream, ma

svn commit: r280829 - head/sys/contrib/dev/ath/ath_hal/ar9300

2015-03-29 Thread Adrian Chadd
Author: adrian Date: Sun Mar 29 21:53:08 2015 New Revision: 280829 URL: https://svnweb.freebsd.org/changeset/base/280829 Log: Add initial support for the HAL channel survey support to the AR9300 HAL. This is used by the 'athsurvey' command to print out channel survey statistics - % busy t

svn commit: r280828 - in head/sys/dev/ath/ath_hal: . ar5212 ar5416

2015-03-29 Thread Adrian Chadd
Author: adrian Date: Sun Mar 29 21:50:21 2015 New Revision: 280828 URL: https://svnweb.freebsd.org/changeset/base/280828 Log: Move the HAL channel survey support out to be in the top-level HAL, rathe than private in each HAL module. Whilst here, modify ath_hal_private to always have the p

svn commit: r280826 - in head/sys/arm: allwinner allwinner/a20 altera/socfpga freescale/imx freescale/vybrid rockchip samsung/exynos ti xilinx

2015-03-29 Thread Andrew Turner
Author: andrew Date: Sun Mar 29 21:45:28 2015 New Revision: 280826 URL: https://svnweb.freebsd.org/changeset/base/280826 Log: Remove cpufunc_asm_arm11.S from the ARMv7 configs, it's not used. Modified: head/sys/arm/allwinner/a20/files.a20 head/sys/arm/allwinner/files.a10 head/sys/arm/alte

svn commit: r280827 - head/sys/dev/ath/ath_hal

2015-03-29 Thread Adrian Chadd
Author: adrian Date: Sun Mar 29 21:45:48 2015 New Revision: 280827 URL: https://svnweb.freebsd.org/changeset/base/280827 Log: Add a new field to HAL_ANISTATS - the extension channel busy count. This is only used by the AR9300 HAL for now - but just be careful if you decide to recompile th

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

2015-03-29 Thread Steven Hartland
Given the upstream nature of this code it may be better to not do cosmetic changes like unless they are first upstreamed as it makes comparing with the upstream when bringing update harder. On 29/03/2015 21:28, Alexander Motin wrote: Author: mav Date: Sun Mar 29 20:28:18 2015 New Revision: 280

svn commit: r280825 - head/sys/dev/ath

2015-03-29 Thread Adrian Chadd
Author: adrian Date: Sun Mar 29 21:41:05 2015 New Revision: 280825 URL: https://svnweb.freebsd.org/changeset/base/280825 Log: Fix more ticks wrapping bugs exposed by the ticks wrapping bug check. This symptom is "calibrations don't ever run", which may cause some pretty spectacularly bad

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

2015-03-29 Thread Gleb Smirnoff
On Sun, Mar 29, 2015 at 02:15:43PM -0700, Adrian Chadd wrote: A> > To illustrate the probability of 1 instruction race, I would suggest to A> > look at PCPU_ADD() implementation for all arches except amd64/i386 and A> > find out that it is prone to this race. Hitting the race in PCPU_ADD() A> > wil

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

2015-03-29 Thread Gleb Smirnoff
On Sat, Mar 28, 2015 at 01:43:33PM -0700, John-Mark Gurney wrote: J> > J> > I think we can use per-cpu ID counters, each CPU incrementing its J> > J> > own. If we start with random values, then probability of two packets with J> > J> > the same ID emitting at the allowed timeframe will be acceptab

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

2015-03-29 Thread Adrian Chadd
> To illustrate the probability of 1 instruction race, I would suggest to > look at PCPU_ADD() implementation for all arches except amd64/i386 and > find out that it is prone to this race. Hitting the race in PCPU_ADD() > will usually lead to mangling vm_meter statistics. Did we ever observe > this

svn commit: r280824 - in head/sys: arm/arm arm/include conf

2015-03-29 Thread Andrew Turner
Author: andrew Date: Sun Mar 29 21:12:59 2015 New Revision: 280824 URL: https://svnweb.freebsd.org/changeset/base/280824 Log: Remove arm1136 support. We don't have any configs that use it, and I don't expect us to add support for any more arm11 SoCs. Modified: head/sys/arm/arm/cpufunc.c h

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

2015-03-29 Thread Gleb Smirnoff
On Sun, Mar 29, 2015 at 08:16:46AM -0700, Adrian Chadd wrote: A> On 29 March 2015 at 01:13, Hans Petter Selasky wrote: A> > On 03/28/15 20:16, Gleb Smirnoff wrote: A> >> A> >> +uint16_t A> >> +ip_newid(void) A> >> +{ A> >> + A> >> + counter_u64_add(V_ip_id, 1); A> >> + return (htons((*

svn commit: r280823 - in head: . sys/arm/arm sys/arm/at91 sys/arm/cavium/cns11xx sys/arm/include sys/arm/samsung/s3c2xx0 sys/arm/xscale/i80321 sys/arm/xscale/i8134x sys/arm/xscale/ixp425 sys/arm/xs...

2015-03-29 Thread Andrew Turner
; # done +# 20150329 +.if ${TARGET_ARCH} == "arm" +OLD_FILES+=usr/include/bootconfig.h +.endif # 20150326 OLD_FILES+=usr/share/man/man1/pmcstudy.1.gz # 20150315: new clang import which bumps version from 3.5.1 to 3.6.0. Modified: head/sys/arm/arm

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

2015-03-29 Thread Alexander Motin
Author: mav Date: Sun Mar 29 20:28:18 2015 New Revision: 280822 URL: https://svnweb.freebsd.org/changeset/base/280822 Log: Some cosmetic polishing. No functional change. MFC after:1 week Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c Modified: head/sys/cddl/con

svn commit: r280821 - head/sys/arm/broadcom/bcm2835

2015-03-29 Thread Andrew Turner
Author: andrew Date: Sun Mar 29 20:21:59 2015 New Revision: 280821 URL: https://svnweb.freebsd.org/changeset/base/280821 Log: We only need cpufunc_asm_arm11.S on bcm2835, not bcm2836 Modified: head/sys/arm/broadcom/bcm2835/files.bcm2835 head/sys/arm/broadcom/bcm2835/files.bcm283x Modified:

svn commit: r280820 - head/include

2015-03-29 Thread Pedro F. Giffuni
Author: pfg Date: Sun Mar 29 20:20:45 2015 New Revision: 280820 URL: https://svnweb.freebsd.org/changeset/base/280820 Log: Clean some spaces vs tabs. No, this file doesn't conform with KNF at all. Modified: head/include/pthread.h Modified: head/include/pthread.h

Re: svn commit: r280308 - head/sys/fs/devfs

2015-03-29 Thread Don Lewis
On 29 Mar, Jilles Tjoelker wrote: > On Sun, Mar 22, 2015 at 11:25:07AM -0700, Don Lewis wrote: >> It's not totally worthless. I think the mtime on tty devices is used to >> calculate the idle time that is printed by the w command. We just don't >> need nanosecond accuracy for that. > > Hmm. The

svn commit: r280819 - head/share/man/man3

2015-03-29 Thread Konstantin Belousov
Author: kib Date: Sun Mar 29 19:37:41 2015 New Revision: 280819 URL: https://svnweb.freebsd.org/changeset/base/280819 Log: Formatting changes to the pthread_testcancel(3). Use list for the cancellation points enumeration. Move notes about functions into the list inline. The discussi

svn commit: r280818 - in head: lib/libc/include lib/libc/sys lib/libthr/thread share/man/man3

2015-03-29 Thread Konstantin Belousov
Author: kib Date: Sun Mar 29 19:14:41 2015 New Revision: 280818 URL: https://svnweb.freebsd.org/changeset/base/280818 Log: Make kevent(2) a cancellation point. Note that to cancel blocked kevent(2) call, changelist must be empty, since we cannot cancel a call which already made changes to

svn commit: r280817 - in head/sys: arm/arm arm/include conf

2015-03-29 Thread Andrew Turner
Author: andrew Date: Sun Mar 29 18:59:04 2015 New Revision: 280817 URL: https://svnweb.freebsd.org/changeset/base/280817 Log: Remove ARM9_CACHE_WRITE_THROUGH, none of our configs define it. Modified: head/sys/arm/arm/cpufunc.c head/sys/arm/arm/pmap.c head/sys/arm/include/pmap.h head/sys

svn commit: r280816 - in head/libexec/rtld-elf: . amd64 i386

2015-03-29 Thread Konstantin Belousov
Author: kib Date: Sun Mar 29 18:53:21 2015 New Revision: 280816 URL: https://svnweb.freebsd.org/changeset/base/280816 Log: Change compiler setting to make default visibility of the symbols for rtld on x86 to be hidden. This is a micro-optimization, which allows intrinsic references inside r

svn commit: r280815 - head/sys/arm/arm

2015-03-29 Thread Andrew Turner
Author: andrew Date: Sun Mar 29 18:46:12 2015 New Revision: 280815 URL: https://svnweb.freebsd.org/changeset/base/280815 Log: Remove the unused armv5 cpufunc code. Deleted: head/sys/arm/arm/cpufunc_asm_armv5.S ___ svn-src-head@freebsd.org mailing li

svn commit: r280814 - head/sys/dev/drm2

2015-03-29 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Sun Mar 29 18:45:51 2015 New Revision: 280814 URL: https://svnweb.freebsd.org/changeset/base/280814 Log: drm: Import Linux commit 9bc3cd5673d84d29272fa7181a4dfca83cbb48c1 Author: Ville Syrjälä Date: Fri May 31 12:17:08 2013 + drm: Sort connector mode

svn commit: r280813 - in head/sys/arm: arm include

2015-03-29 Thread Andrew Turner
Author: andrew Date: Sun Mar 29 18:44:15 2015 New Revision: 280813 URL: https://svnweb.freebsd.org/changeset/base/280813 Log: Remove unused cpufunc arm11 and armv6 code. While here only define the remaining functions in the context we use them in. Modified: head/sys/arm/arm/cpufunc_asm_arm1

Re: svn commit: r280308 - head/sys/fs/devfs

2015-03-29 Thread Konstantin Belousov
On Sun, Mar 29, 2015 at 07:51:37PM +0200, Jilles Tjoelker wrote: > On Sun, Mar 22, 2015 at 11:25:07AM -0700, Don Lewis wrote: > > It's not totally worthless. I think the mtime on tty devices is used to > > calculate the idle time that is printed by the w command. We just don't > > need nanosecond

svn commit: r280812 - in head/sys/arm: broadcom/bcm2835 freescale/imx lpc mv versatile

2015-03-29 Thread Andrew Turner
Author: andrew Date: Sun Mar 29 18:41:43 2015 New Revision: 280812 URL: https://svnweb.freebsd.org/changeset/base/280812 Log: We don't use cpufunc_asm_armv5.S in any of these configs, remove it. Modified: head/sys/arm/broadcom/bcm2835/files.bcm283x head/sys/arm/freescale/imx/files.imx51 h

Re: svn commit: r280308 - head/sys/fs/devfs

2015-03-29 Thread Jilles Tjoelker
On Sun, Mar 22, 2015 at 11:25:07AM -0700, Don Lewis wrote: > It's not totally worthless. I think the mtime on tty devices is used to > calculate the idle time that is printed by the w command. We just don't > need nanosecond accuracy for that. Hmm. The idle time on tty devices breaking is a clea

svn commit: r280811 - in head/sys/arm: arm include

2015-03-29 Thread Andrew Turner
Author: andrew Date: Sun Mar 29 17:42:32 2015 New Revision: 280811 URL: https://svnweb.freebsd.org/changeset/base/280811 Log: Remove unused arm10_* functions. The remaining functions are only used in mv configs. Modified: head/sys/arm/arm/cpufunc_asm_arm10.S head/sys/arm/include/cpufunc.h

svn commit: r280810 - in head/sys/arm: allwinner allwinner/a20 altera/socfpga freescale/vybrid rockchip samsung/exynos ti xilinx

2015-03-29 Thread Andrew Turner
Author: andrew Date: Sun Mar 29 17:33:03 2015 New Revision: 280810 URL: https://svnweb.freebsd.org/changeset/base/280810 Log: Stop building unused cpuvunc_* files, we don't need anything from these. Modified: head/sys/arm/allwinner/a20/files.a20 head/sys/arm/allwinner/files.a10 head/sys/a

svn commit: r280809 - in head/sys/arm: arm include

2015-03-29 Thread Andrew Turner
Author: andrew Date: Sun Mar 29 17:13:44 2015 New Revision: 280809 URL: https://svnweb.freebsd.org/changeset/base/280809 Log: Remove support for CPU_ARM10. No kernel configs could possibly use this as it's not an available option. Along with this we will never support this cpu type as very f

svn commit: r280808 - head/sys/boot

2015-03-29 Thread Andrew Turner
Author: andrew Date: Sun Mar 29 15:43:24 2015 New Revision: 280808 URL: https://svnweb.freebsd.org/changeset/base/280808 Log: Reorder to help with moving the efi loader parts to sys/boot/efi. As these will depend on ficl having been built, and are set via bsd.arch.inc.mk we need to place thi

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

2015-03-29 Thread Alexander Motin
On 29.03.2015 18:17, Adrian Chadd wrote: > You know, I exactly wanted this about two days ago, but from userland. > > Do we expose this to userland? Actually my first attempt was to make a tool alike to umastat, but appeared that all vmem(9) structures are internal in C file, so I had to do it th

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

2015-03-29 Thread Andrew Rybchenko
Author: arybchik Date: Sun Mar 29 15:18:04 2015 New Revision: 280807 URL: https://svnweb.freebsd.org/changeset/base/280807 Log: sfxge: fix bug in TSO when a DMA segment has both header and data Reviewed by:gnn Sponsored by: Solarflare Communications, Inc. MFC after: 2 days

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

2015-03-29 Thread Adrian Chadd
You know, I exactly wanted this about two days ago, but from userland. Do we expose this to userland? -a On 29 March 2015 at 03:02, Alexander Motin wrote: > Author: mav > Date: Sun Mar 29 10:02:29 2015 > New Revision: 280805 > URL: https://svnweb.freebsd.org/changeset/base/280805 > > Log: >

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

2015-03-29 Thread Adrian Chadd
On 29 March 2015 at 01:13, Hans Petter Selasky wrote: > On 03/28/15 20:16, Gleb Smirnoff wrote: >> >> +uint16_t >> +ip_newid(void) >> +{ >> + >> + counter_u64_add(V_ip_id, 1); >> + return (htons((*(uint64_t *)zpcpu_get(V_ip_id)) & 0x)); >> +} > > > Technically you would need to ent

svn commit: r280805 - head/sys/kern

2015-03-29 Thread Alexander Motin
Author: mav Date: Sun Mar 29 10:02:29 2015 New Revision: 280805 URL: https://svnweb.freebsd.org/changeset/base/280805 Log: Add four new DDB commands to display vmem(9) statistics. In particular, such DDB commands were added: show vmem show all vmem show vmemdu

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

2015-03-29 Thread Hans Petter Selasky
On 03/28/15 20:16, Gleb Smirnoff wrote: +uint16_t +ip_newid(void) +{ + + counter_u64_add(V_ip_id, 1); + return (htons((*(uint64_t *)zpcpu_get(V_ip_id)) & 0x)); +} Technically you would need to enter a critical section here, so that the current process doesn't get swapped to a d

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

2015-03-29 Thread Slawa Olhovchenkov
On Sat, Mar 28, 2015 at 11:22:16PM -0400, Benjamin Kaduk wrote: > On Sat, Mar 28, 2015 at 9:15 PM, John-Mark Gurney wrote: > > > Slawa Olhovchenkov wrote this message on Sun, Mar 29, 2015 at 00:34 +0300: > > > On Sat, Mar 28, 2015 at 01:43:33PM -0700, John-Mark Gurney wrote: > > > > > > In this