Re: svn commit: r278473 - in head/sys: amd64/amd64 amd64/include amd64/vmm contrib/dev/acpica/include i386/i386 i386/include x86/acpica x86/include x86/x86 x86/xen

2015-02-27 Thread Adrian Chadd
I'll follow this up with the machine dmesg and such, but transcribed from the laptop hang with -HEAD as of this morning + your patch in this thread (with DELAY, debugging) and some of my debugging: ... native_start_all_aps: cpu=1, apic_id=1 start_ap: calling ipi_startup(1, 158) LAPIC write 30 c500

svn commit: r279391 - head/share/mk

2015-02-27 Thread Garrett Cooper
Author: ngie Date: Sat Feb 28 05:14:42 2015 New Revision: 279391 URL: https://svnweb.freebsd.org/changeset/base/279391 Log: Fix typo (_DP_grom -> _DP_geom) so applications that need to link against libgeom do so successfully Tested by running `geom part list` produced from a -DWITHOUT_DYN

svn commit: r279390 - head/sys/kern

2015-02-27 Thread Konstantin Belousov
Author: kib Date: Sat Feb 28 04:19:02 2015 New Revision: 279390 URL: https://svnweb.freebsd.org/changeset/base/279390 Log: The umtx_lock mutex is used by top-half of the kernel, but is currently a spin lock. Apparently, the only reason for this is that umtx_thread_exit() is called under the

Re: svn commit: r279361 - in head: sys/kern sys/sys usr.sbin/jail

2015-02-27 Thread Garrett Cooper
> On Feb 27, 2015, at 08:28, Ian Lepore wrote: > > Author: ian > Date: Fri Feb 27 16:28:55 2015 > New Revision: 279361 > URL: https://svnweb.freebsd.org/changeset/base/279361 This change broke the pgrep/pkill tests because the jail commands are currently broken, with the message: unknown para

Re: svn commit: r279338 - head/sys/arm/include

2015-02-27 Thread Bruce Evans
On Fri, 27 Feb 2015, Ian Lepore wrote: On Fri, 2015-02-27 at 13:35 +1100, Bruce Evans wrote: On Thu, 26 Feb 2015, Ian Lepore wrote: Log: Add casting to make atomic ops work for pointers. (Apparently nobody has ever done atomic ops on pointers before now on arm). Apparently, arm code hand

Re: svn commit: r278479 - in head: etc sys/kern

2015-02-27 Thread Warner Losh
[[ I know I’m a little behind… ]] > On Feb 10, 2015, at 7:16 AM, John Baldwin wrote: > > On Monday, February 09, 2015 11:13:51 PM Rui Paulo wrote: >> Author: rpaulo >> Date: Mon Feb 9 23:13:50 2015 >> New Revision: 278479 >> URL: https://svnweb.freebsd.org/changeset/base/278479 >> >> Log: >>

svn commit: r279388 - in head/sys/mips/nlm/dev: net net/ucore sec

2015-02-27 Thread Jayachandran C.
Author: jchandra Date: Sat Feb 28 00:22:10 2015 New Revision: 279388 URL: https://svnweb.freebsd.org/changeset/base/279388 Log: Whitespace fixes for sys/mips/nlm/dev Clean up whitespace issues under sys/mips/nlm/dev. No functional change in this commit. Modified: head/sys/mips/nlm/dev/

svn commit: r279387 - in head/sys/mips/nlm: . hal

2015-02-27 Thread Jayachandran C.
Author: jchandra Date: Sat Feb 28 00:17:29 2015 New Revision: 279387 URL: https://svnweb.freebsd.org/changeset/base/279387 Log: Whitespace fixes for files in sys/mips/nlm Clean up whitespace issues under sys/mips/nlm (except dev). No functional change in this commit. Modified: head/sys

svn commit: r279384 - in head/sys/mips/nlm: . dev

2015-02-27 Thread Jayachandran C.
Author: jchandra Date: Fri Feb 27 23:33:53 2015 New Revision: 279384 URL: https://svnweb.freebsd.org/changeset/base/279384 Log: Add subclass of simplebus for Broadcom XLP This will override the resource allocation of simplebus, and also merge the resource allocation code which was in xlp_

svn commit: r279383 - head/sys/kern

2015-02-27 Thread Warner Losh
Author: imp Date: Fri Feb 27 23:14:08 2015 New Revision: 279383 URL: https://svnweb.freebsd.org/changeset/base/279383 Log: Put back Andy's void for gcc happiness. Submitted by: jchandra@ Modified: head/sys/kern/sched_ule.c Modified: head/sys/kern/sched_ule.c

Re: svn commit: r279381 - head/sys/boot/amd64/efi

2015-02-27 Thread Warner Losh
> On Feb 27, 2015, at 3:22 PM, David E. O'Brien wrote: > > Author: obrien > Date: Fri Feb 27 22:22:05 2015 > New Revision: 279381 > URL: https://svnweb.freebsd.org/changeset/base/279381 > > Log: > Use sys/boot/userboot/libstand/ and not /usr/lib/libstand.a. > > Modified: > head/sys/boot/amd6

svn commit: r279382 - head/sys/boot/userboot/libstand

2015-02-27 Thread David E. O'Brien
Author: obrien Date: Fri Feb 27 22:23:35 2015 New Revision: 279382 URL: https://svnweb.freebsd.org/changeset/base/279382 Log: sys/boot/userboot/libstand/libstand.a should also include strtoul.c; as lib/libstand/ and sys/boot/libstand32/ already does. Modified: head/sys/boot/userboot/libstan

svn commit: r279381 - head/sys/boot/amd64/efi

2015-02-27 Thread David E. O'Brien
Author: obrien Date: Fri Feb 27 22:22:05 2015 New Revision: 279381 URL: https://svnweb.freebsd.org/changeset/base/279381 Log: Use sys/boot/userboot/libstand/ and not /usr/lib/libstand.a. Modified: head/sys/boot/amd64/efi/Makefile Modified: head/sys/boot/amd64/efi/Makefile ===

svn commit: r279380 - in head/sys/boot/amd64: boot1.efi efi

2015-02-27 Thread David E. O'Brien
Author: obrien Date: Fri Feb 27 22:20:07 2015 New Revision: 279380 URL: https://svnweb.freebsd.org/changeset/base/279380 Log: Remove duplicated -I. Modified: head/sys/boot/amd64/boot1.efi/Makefile head/sys/boot/amd64/efi/Makefile Modified: head/sys/boot/amd64/boot1.efi/Makefile ===

svn commit: r279379 - vendor/device-tree/ian-c8c1b3a7

2015-02-27 Thread Warner Losh
Author: imp Date: Fri Feb 27 22:19:49 2015 New Revision: 279379 URL: https://svnweb.freebsd.org/changeset/base/279379 Log: Note import from git://xenbits.xen.org/people/ianc/device-tree-rebasing.git at commit c8c1b3a77934768c7f7a4a9c10140c8bec529059 into vendor tree. Added: vendor/device-tr

svn commit: r279378 - head/share/mk

2015-02-27 Thread David E. O'Brien
Author: obrien Date: Fri Feb 27 22:18:33 2015 New Revision: 279378 URL: https://svnweb.freebsd.org/changeset/base/279378 Log: Update r279018 so it only applies to Clang version 3.5+ and not 3.4.[1-9]. Modified: head/share/mk/bsd.sys.mk Modified: head/share/mk/bsd.sys.mk =

svn commit: r279376 - in head/cddl/usr.bin: ctfconvert ctfmerge

2015-02-27 Thread David E. O'Brien
Author: obrien Date: Fri Feb 27 22:10:31 2015 New Revision: 279376 URL: https://svnweb.freebsd.org/changeset/base/279376 Log: These CTF tools do not use anything from libctf, so no need to link with it. Modified: head/cddl/usr.bin/ctfconvert/Makefile head/cddl/usr.bin/ctfmerge/Makefile Mod

svn commit: r279375 - head/sys/cam

2015-02-27 Thread Kenneth D. Merry
Author: ken Date: Fri Feb 27 21:35:36 2015 New Revision: 279375 URL: https://svnweb.freebsd.org/changeset/base/279375 Log: Fix I/O size calculation for pass(4) driver requests and add latency tracking. It is important to subtract the residual from the requested transfer size to see how

svn commit: r279373 - head/sys/kern

2015-02-27 Thread Warner Losh
Author: imp Date: Fri Feb 27 21:15:12 2015 New Revision: 279373 URL: https://svnweb.freebsd.org/changeset/base/279373 Log: Make sched_random() return an unsigned number, and use uint32_t consistently. This also matches the per-cpu pointer declaration anyway. This changes the tweak we gi

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

2015-02-27 Thread Justin Hibbits
On Fri, Feb 27, 2015 at 12:52 PM, Benjamin Kaduk wrote: > On Fri, 27 Feb 2015, Ian Lepore wrote: > >> I wonder if it would be useful to have the system itself mail the >> summary line of every new review that's created to some list? It would >> probably need to be several lists -- I sure don't wa

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

2015-02-27 Thread Benjamin Kaduk
On Fri, 27 Feb 2015, Ian Lepore wrote: > I wonder if it would be useful to have the system itself mail the > summary line of every new review that's created to some list? It would > probably need to be several lists -- I sure don't want to see every > ports phab that gets created, but getting a s

svn commit: r279372 - head/sys/conf

2015-02-27 Thread Nathan Whitehorn
Author: nwhitehorn Date: Fri Feb 27 20:32:50 2015 New Revision: 279372 URL: https://svnweb.freebsd.org/changeset/base/279372 Log: Use appropriate alternative to -msoft-float for clang-built PowerPC kernels. Modified: head/sys/conf/kern.mk Modified: head/sys/conf/kern.mk =

svn commit: r279371 - head/sys/powerpc/aim

2015-02-27 Thread Nathan Whitehorn
Author: nwhitehorn Date: Fri Feb 27 20:32:09 2015 New Revision: 279371 URL: https://svnweb.freebsd.org/changeset/base/279371 Log: Fix unitialized variable. Modified: head/sys/powerpc/aim/moea64_native.c Modified: head/sys/powerpc/aim/moea64_native.c ==

svn commit: r279368 - head/sys/dev/fdt

2015-02-27 Thread Jayachandran C.
Author: jchandra Date: Fri Feb 27 20:11:02 2015 New Revision: 279368 URL: https://svnweb.freebsd.org/changeset/base/279368 Log: Allow creating subclass of FDT simplebus Provide sys/dev/fdt/simplebus.h with the class declaration so that it is possible to subclass FDT simplebus. Differ

svn commit: r279367 - head/lib/libc/gen

2015-02-27 Thread Konstantin Belousov
Author: kib Date: Fri Feb 27 19:23:01 2015 New Revision: 279367 URL: https://svnweb.freebsd.org/changeset/base/279367 Log: Fix typo. Note that this is mostly innocent, since libthr no longer interposes the symbol. Noted by: rpaulo MFC after:3 days Modified: head/lib/libc/gen

svn commit: r279366 - head/cddl/contrib/opensolaris/cmd/zpool

2015-02-27 Thread Xin LI
Author: delphij Date: Fri Feb 27 19:13:13 2015 New Revision: 279366 URL: https://svnweb.freebsd.org/changeset/base/279366 Log: Set altroot if the user have specified it via -o altroot. MFC after:2 weeks Modified: head/cddl/contrib/opensolaris/cmd/zpool/zpool_main.c Modified: head/cd

svn commit: r279365 - head/sys/dev/xen/netfront

2015-02-27 Thread Gleb Smirnoff
Author: glebius Date: Fri Feb 27 19:12:35 2015 New Revision: 279365 URL: https://svnweb.freebsd.org/changeset/base/279365 Log: Use m_getjcl() instead of old mbuf(9) KPIs. Tested by:royger Modified: head/sys/dev/xen/netfront/netfront.c Modified: head/sys/dev/xen/netfront/netfront.c =

svn commit: r279364 - head/libexec/rtld-elf

2015-02-27 Thread Jung-uk Kim
Author: jkim Date: Fri Feb 27 19:05:23 2015 New Revision: 279364 URL: https://svnweb.freebsd.org/changeset/base/279364 Log: When a file is executed and the path starts with `/', AT_EXECPATH is set without any translation. If the file is a symbolic link, $ORIGIN may not be expanded to the ac

svn commit: r279363 - head/lib/libc/net

2015-02-27 Thread Pedro F. Giffuni
Author: pfg Date: Fri Feb 27 18:13:06 2015 New Revision: 279363 URL: https://svnweb.freebsd.org/changeset/base/279363 Log: eui64_line(): plug memory leak. CID: 978412 Reviewed by: brooks, delphij CodeReview: https://reviews.freebsd.org/D1976 Modified: head/lib/libc/net/eu

Re: svn commit: r278473 - in head/sys: amd64/amd64 amd64/include amd64/vmm contrib/dev/acpica/include i386/i386 i386/include x86/acpica x86/include x86/x86 x86/xen

2015-02-27 Thread Adrian Chadd
Cool, I can get this done today. -a ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

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

2015-02-27 Thread Warner Losh
https://reviews.freebsd.org/D1981 contains the fix. Please continue the conversation there. I believe I fixed everything, including a bug in the original code. Warner > On Feb 27, 2015, at 8:56 AM, Ian Lepore wrote: > > On Fri, 2015-02-27 at 08:46 -0700, Warner Losh wrote: >> Sure wish my co

svn commit: r279362 - in head/sys: fs/devfs kern sys

2015-02-27 Thread Konstantin Belousov
Author: kib Date: Fri Feb 27 16:43:50 2015 New Revision: 279362 URL: https://svnweb.freebsd.org/changeset/base/279362 Log: The VNASSERT in vflush() FORCECLOSE case is trying to panic early to prevent errors from yanking devices out from under filesystems. Only care about special vnodes on d

svn commit: r279361 - in head: sys/kern sys/sys usr.sbin/jail

2015-02-27 Thread Ian Lepore
Author: ian Date: Fri Feb 27 16:28:55 2015 New Revision: 279361 URL: https://svnweb.freebsd.org/changeset/base/279361 Log: Allow the kern.osrelease and kern.osreldate sysctl values to be set in a jail's creation parameters. This allows the kernel version to be reliably spoofed within the ja

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

2015-02-27 Thread Ian Lepore
On Fri, 2015-02-27 at 08:46 -0700, Warner Losh wrote: > Sure wish my code review got this much love… > > Warner > IMO, the biggest problem with phab reviews is advertising them. You can guess who might be interested and add them as reviewers. You can try posting a summary and the url to some m

svn commit: r279360 - head/sys/dev/sdhci

2015-02-27 Thread Ian Lepore
Author: ian Date: Fri Feb 27 15:47:30 2015 New Revision: 279360 URL: https://svnweb.freebsd.org/changeset/base/279360 Log: Detect, report and use 8-bit bus if is available. Differential Revision:https://reviews.freebsd.org/D1921 Submitted by: Michal Meloun Modified: head/sys/de

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

2015-02-27 Thread Warner Losh
Sure wish my code review got this much love… Warner > On Feb 27, 2015, at 8:30 AM, Ed Maste wrote: > > On 27 February 2015 at 10:12, Benjamin Kaduk wrote: >> >> As of r278229, the kernel is compiled with -fwrapv, so signed integer >> overflow in the FreeBSD kernel is defined behavior. > > Th

Re: svn commit: r279357 - head/sys/arm/conf

2015-02-27 Thread Ian Lepore
On Fri, 2015-02-27 at 12:40 +, Andrew Turner wrote: > Author: andrew > Date: Fri Feb 27 12:40:44 2015 > New Revision: 279357 > URL: https://svnweb.freebsd.org/changeset/base/279357 > > Log: > Remove SMP support from the Wandboard-Solo and have it run as part of > universe as a config with

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

2015-02-27 Thread Ed Maste
On 27 February 2015 at 10:12, Benjamin Kaduk wrote: > > As of r278229, the kernel is compiled with -fwrapv, so signed integer > overflow in the FreeBSD kernel is defined behavior. This is primarily a workaround to accommodate existing code though; it's not a result of an explicit decision that we

Re: svn commit: r279338 - head/sys/arm/include

2015-02-27 Thread Ian Lepore
On Fri, 2015-02-27 at 13:35 +1100, Bruce Evans wrote: > On Thu, 26 Feb 2015, Ian Lepore wrote: > > > Log: > > Add casting to make atomic ops work for pointers. (Apparently nobody has > > ever done atomic ops on pointers before now on arm). > > Apparently, arm code handled pointers correctly be

svn commit: r279359 - head/sys/dev/mmc

2015-02-27 Thread Ian Lepore
Author: ian Date: Fri Feb 27 15:14:25 2015 New Revision: 279359 URL: https://svnweb.freebsd.org/changeset/base/279359 Log: MMC: Signal HC capability to (e)MMC. Summary: For new eMMC chips, we must signal controller HC capability in OP_COND command. Reviewers: imp, ian Reviewed

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

2015-02-27 Thread Benjamin Kaduk
On Fri, Feb 27, 2015 at 4:56 AM, Bruce Evans wrote: > On Fri, 27 Feb 2015, Andrew Turner wrote: > > On Fri, 27 Feb 2015 02:56:59 + (UTC) >> Warner Losh wrote: >> ... >> >>> >>> Didn't we recently have issues with signed integer overflow being >> undefined? Even though we worked around it wi

svn commit: r279358 - head/sys/kern

2015-02-27 Thread Andrew Turner
Author: andrew Date: Fri Feb 27 15:05:20 2015 New Revision: 279358 URL: https://svnweb.freebsd.org/changeset/base/279358 Log: Fix sched_ule on sparc64, gcc complains sched_random is not a correct prototype. Sponsored by: The FreeBSD Foundation Modified: head/sys/kern/sched_ule.c Modif

svn commit: r279357 - head/sys/arm/conf

2015-02-27 Thread Andrew Turner
Author: andrew Date: Fri Feb 27 12:40:44 2015 New Revision: 279357 URL: https://svnweb.freebsd.org/changeset/base/279357 Log: Remove SMP support from the Wandboard-Solo and have it run as part of universe as a config with sched_ule but without SMP. Sponsored by: The FreeBSD Foundation Mo

svn commit: r279356 - head/sys/kern

2015-02-27 Thread Andrew Turner
Author: andrew Date: Fri Feb 27 12:38:24 2015 New Revision: 279356 URL: https://svnweb.freebsd.org/changeset/base/279356 Log: sched_random is only called for SMP, only define it there. Sponsored by: The FreeBSD Foundation Modified: head/sys/kern/sched_ule.c Modified: head/sys/kern/sched

svn commit: r279355 - stable/8/sys/dev/usb/controller

2015-02-27 Thread Hans Petter Selasky
Author: hselasky Date: Fri Feb 27 12:23:30 2015 New Revision: 279355 URL: https://svnweb.freebsd.org/changeset/base/279355 Log: MFC r279233: Ensure that the XHCI driver will refresh the control endpoint settings when re-enumerating a FULL speed device. Else the wrong max packet setting mig

svn commit: r279354 - stable/9/sys/dev/usb/controller

2015-02-27 Thread Hans Petter Selasky
Author: hselasky Date: Fri Feb 27 12:22:07 2015 New Revision: 279354 URL: https://svnweb.freebsd.org/changeset/base/279354 Log: MFC r279233: Ensure that the XHCI driver will refresh the control endpoint settings when re-enumerating a FULL speed device. Else the wrong max packet setting mig

svn commit: r279353 - stable/10/sys/dev/usb/controller

2015-02-27 Thread Hans Petter Selasky
Author: hselasky Date: Fri Feb 27 12:20:03 2015 New Revision: 279353 URL: https://svnweb.freebsd.org/changeset/base/279353 Log: MFC r279233: Ensure that the XHCI driver will refresh the control endpoint settings when re-enumerating a FULL speed device. Else the wrong max packet setting mig

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

2015-02-27 Thread Konstantin Belousov
Author: kib Date: Fri Feb 27 11:13:46 2015 New Revision: 279352 URL: https://svnweb.freebsd.org/changeset/base/279352 Log: Since all generations of Intel CPUs have errata which causes hang on the cache line flush in the LAPIC page, keep direct map page covering LAPIC mapped uncached. To

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

2015-02-27 Thread Bruce Evans
On Fri, 27 Feb 2015, Andrew Turner wrote: On Fri, 27 Feb 2015 02:56:59 + (UTC) Warner Losh wrote: ... /* + * We need some randomness. Implement the classic Linear Congruential + * generator X_{n+1}=(aX_n+c) mod m. These values are optimized for + * m = 2^32, a = 69069 and c = 5. This is s

Re: svn commit: r278473 - in head/sys: amd64/amd64 amd64/include amd64/vmm contrib/dev/acpica/include i386/i386 i386/include x86/acpica x86/include x86/x86 x86/xen

2015-02-27 Thread Konstantin Belousov
On Thu, Feb 26, 2015 at 05:26:26PM -0800, Adrian Chadd wrote: > On 26 February 2015 at 17:17, Peter Grehan wrote: > >> Anyway - I have that model laptop, it hangs after calling > >> ipi_startup() to the first AP with x2apic enabled. What can I do to > >> continue debugging? > > > > > > Please pro

Re: svn commit: r279351 - head/sys/dev/sfxge

2015-02-27 Thread Alexey Dokuchaev
On Fri, Feb 27, 2015 at 07:39:10AM +, Andrew Rybchenko wrote: > New Revision: 279351 > URL: https://svnweb.freebsd.org/changeset/base/279351 > > Log: > sfxge: expect required init_state on data path and in periodic calls > > With the patch applied the number of instruction events is 1%

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

2015-02-27 Thread Andrew Turner
On Fri, 27 Feb 2015 02:56:59 + (UTC) Warner Losh wrote: ... > /* > + * We need some randomness. Implement the classic Linear Congruential > + * generator X_{n+1}=(aX_n+c) mod m. These values are optimized for > + * m = 2^32, a = 69069 and c = 5. This is signed so that we can get > + * both po