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

2015-07-21 Thread Ed Schouten
Author: ed Date: Tue Jul 21 15:08:13 2015 New Revision: 285754 URL: https://svnweb.freebsd.org/changeset/base/285754 Log: Make clock_gettime() and clock_getres() work for CloudABI programs. Though the standard C library uses a 'struct timespec' using a 64-bit 'time_t', there is no need to

svn commit: r285755 - head/sys/arm64/arm64

2015-07-21 Thread Zbigniew Bodek
Author: zbb Date: Tue Jul 21 15:28:07 2015 New Revision: 285755 URL: https://svnweb.freebsd.org/changeset/base/285755 Log: Don't allow malloc() to wait for resource while holding a lock in ITS malloc() should not go to sleep in case of lack of resource while the kernel thread is holding a

Re: svn commit: r285752 - in head/sys: arm64/arm64 dev/pci

2015-07-21 Thread Zbigniew Bodek
Hello Andrew, Please check in-line. Best regards zbb 2015-07-21 17:01 GMT+02:00 Andrew Turner : > On Tue, 21 Jul 2015 14:47:24 + (UTC) > Zbigniew Bodek wrote: > >> Author: zbb >> Date: Tue Jul 21 14:47:23 2015 >> New Revision: 285752 >> URL: https://svnweb.freebsd.org/changeset/base/285752

Re: svn commit: r285752 - in head/sys: arm64/arm64 dev/pci

2015-07-21 Thread Warner Losh
Hi Zbigniew, This is a great brief explanation. Perhaps a one or two line comment to this effect would be useful for others trying to figure it out later? Warner > On Jul 21, 2015, at 10:02 AM, Zbigniew Bodek wrote: > > Hello Andrew, > > Please check in-line. > > Best regards > zbb > > 20

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

2015-07-21 Thread Adrian Chadd
Heh, well, the sysctl tree changes for me multiple times an hour. How about we revert this for now and then play around with the better longer term solution outside of -HEAD? I'm worried that this'll trip up other developers who load/unload drivers. Note suspend will also delete sysctl nodes as d

Re: svn commit: r285752 - in head/sys: arm64/arm64 dev/pci

2015-07-21 Thread Zbigniew Bodek
Hello Warner, Do you think this will do the trick (please check out the attachment)? Best regards zbb 2015-07-21 18:24 GMT+02:00 Warner Losh : > > > Hi Zbigniew, > > This is a great brief explanation. Perhaps a one or two line comment > to this effect would be useful for others trying to figure

svn commit: r285758 - head/sys/arm64/arm64

2015-07-21 Thread Zbigniew Bodek
Author: zbb Date: Tue Jul 21 17:14:24 2015 New Revision: 285758 URL: https://svnweb.freebsd.org/changeset/base/285758 Log: Add some more explanation to r285752 Add brief commentary to vendor-specific devid function in ITS and remove redundant spaces by the way. Obtained from: Semihal

svn commit: r285761 - head/sys/arm64/arm64

2015-07-21 Thread Andrew Turner
Author: andrew Date: Tue Jul 21 18:08:10 2015 New Revision: 285761 URL: https://svnweb.freebsd.org/changeset/base/285761 Log: Teach the GICv2 driver about the Qualcomm GICv2 compatible string. Obtained from:ABT Systems Ltd Sponsored by: The FreeBSD Foundation Modified: head/sys

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

2015-07-21 Thread John Baldwin
On Tuesday, July 21, 2015 10:39:22 AM Mateusz Guzik wrote: > Cc'ing jhb@ who made relevant changes to rmlocks > > On Mon, Jul 20, 2015 at 11:21:30PM -0700, Adrian Chadd wrote: > > this happend whilst doing 'sysctl -vmstat 1' in one window, 'top' in > > another window, and 'kldunload uhci' as root:

svn commit: r285765 - head/sys/dev/vt

2015-07-21 Thread Conrad E. Meyer
Author: cem Date: Tue Jul 21 20:30:06 2015 New Revision: 285765 URL: https://svnweb.freebsd.org/changeset/base/285765 Log: vt: De-static VT_SYSCTL_INT-defined objects Explicitly mark existing VT_SYSCTL_INTs static. This is in preparation for D2181. Reviewed by: dumbbell, emaste Ap

svn commit: r285766 - in head/sys: conf dev/vt dev/vt/logo

2015-07-21 Thread Conrad E. Meyer
Author: cem Date: Tue Jul 21 20:33:36 2015 New Revision: 285766 URL: https://svnweb.freebsd.org/changeset/base/285766 Log: vt: Draw logos per CPU core This feature is inspired by another Unix-alike OS commonly found on airplane headrests. A number of beasties[0] are drawn at top of f

svn commit: r285767 - head/sys/dev/nvd

2015-07-21 Thread Jim Harris
Author: jimharris Date: Tue Jul 21 20:53:21 2015 New Revision: 285767 URL: https://svnweb.freebsd.org/changeset/base/285767 Log: nvd: set d_delmaxsize to full capacity of NVMe namespace The NVMe specification has no ability to specify a maximum delete size that is less than the full capac

svn commit: r285768 - head/sys/dev/ixl

2015-07-21 Thread Eric Joyner
Author: erj Date: Tue Jul 21 21:07:18 2015 New Revision: 285768 URL: https://svnweb.freebsd.org/changeset/base/285768 Log: Fix for a customer issue with ixl(4): - Add required MAC/VLAN filter when adding an LAA - Fix bug where code did not check for I40E_SUCCESS from a successful i40e

svn commit: r285770 - in head/sys: netinet netipsec

2015-07-21 Thread Ermal Luçi
Author: eri Date: Tue Jul 21 21:46:24 2015 New Revision: 285770 URL: https://svnweb.freebsd.org/changeset/base/285770 Log: IPSEC, remove variable argument function its already due. Differential Revision:https://reviews.freebsd.org/D3080 Reviewed by: gnn, ae Approved by:

svn commit: r285771 - head/sys/kern

2015-07-21 Thread Konstantin Belousov
Author: kib Date: Tue Jul 21 22:56:46 2015 New Revision: 285771 URL: https://svnweb.freebsd.org/changeset/base/285771 Log: The smp_rendezvous_cpus() function should ensure that all accesses done by the functions called on other CPUs, are visible to the caller. Pair otherwise useless acquire

svn commit: r285772 - head/usr.bin/patch

2015-07-21 Thread Conrad E. Meyer
Author: cem Date: Tue Jul 21 22:57:27 2015 New Revision: 285772 URL: https://svnweb.freebsd.org/changeset/base/285772 Log: patch(1): Add -Vnone option to disable backup files Differential Revision:https://reviews.freebsd.org/D3146 Reviewed by: pfg Approved by: markj (mentor)

svn commit: r285773 - head/sys/amd64/amd64

2015-07-21 Thread Mark Johnston
Author: markj Date: Tue Jul 21 23:03:21 2015 New Revision: 285773 URL: https://svnweb.freebsd.org/changeset/base/285773 Log: Remove some dead code from DDB's amd64 stack unwinder. The amd64 port copied some code from i386 to fetch function arguments and display them in backtraces. However

svn commit: r285774 - head/sys/ddb

2015-07-21 Thread Mark Johnston
Author: markj Date: Tue Jul 21 23:07:55 2015 New Revision: 285774 URL: https://svnweb.freebsd.org/changeset/base/285774 Log: Don't return undefined symbols to a DDB symbol lookup. Undefined symbols have a value of zero, so it makes no sense to return such a symbol when performing a lookup

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

2015-07-21 Thread Mark Johnston
Author: markj Date: Tue Jul 21 23:13:11 2015 New Revision: 285775 URL: https://svnweb.freebsd.org/changeset/base/285775 Log: Improve stack unwinding on i386 and amd64 after an IP fault. If we can't find a symbol corresponding to the faulting instruction, assume that the previously-execute

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

2015-07-21 Thread Mark Johnston
Author: markj Date: Tue Jul 21 23:22:23 2015 New Revision: 285776 URL: https://svnweb.freebsd.org/changeset/base/285776 Log: Let the unwinder handle faults during function prologues or epilogues. The i386 and amd64 DDB stack unwinders contain code to detect and handle the case where the f

svn commit: r285777 - head/sys/netinet

2015-07-21 Thread Xin LI
Author: delphij Date: Tue Jul 21 23:42:15 2015 New Revision: 285777 URL: https://svnweb.freebsd.org/changeset/base/285777 Log: Fix resource exhaustion due to sessions stuck in LAST_ACK state. Submitted by: Jonathan Looney (Juniper SIRT) Reviewed by: lstewart Security: CVE-2015-5358

svn commit: r285781 - head/sys/cddl/dev/fbt

2015-07-21 Thread Mark Johnston
Author: markj Date: Tue Jul 21 23:44:36 2015 New Revision: 285781 URL: https://svnweb.freebsd.org/changeset/base/285781 Log: Remove checks for a NULL return value from M_WAITOK allocations. Modified: head/sys/cddl/dev/fbt/fbt.c Modified: head/sys/cddl/dev/fbt/fbt.c ==

svn commit: r285782 - head/usr.bin/netstat

2015-07-21 Thread Mark Johnston
Author: markj Date: Tue Jul 21 23:57:38 2015 New Revision: 285782 URL: https://svnweb.freebsd.org/changeset/base/285782 Log: Fix counter reads on platforms where sizeof(uint64_t) != sizeof(uint64_t *). In the kernel, structs such as tcpstat are manipulated as an array of counter_u64_t (ui

svn commit: r285783 - in head/sys: amd64/amd64 ddb i386/i386

2015-07-21 Thread John Baldwin
Author: jhb Date: Wed Jul 22 01:09:02 2015 New Revision: 285783 URL: https://svnweb.freebsd.org/changeset/base/285783 Log: Various changes to the registers displayed in DDB for x86. - Fix segment registers to only display the low 16 bits. - Remove unused handlers and entries for the debug re

svn commit: r285784 - head/sys/dev/gpio

2015-07-21 Thread Luiz Otavio O Souza
Author: loos Date: Wed Jul 22 04:18:33 2015 New Revision: 285784 URL: https://svnweb.freebsd.org/changeset/base/285784 Log: Cosmetic change. When printing the child's mapped pins, use the plural only when necessary. Reported by: Daniel O'Connor , Sulev-Madis Silber (keta

Re: svn commit: r285766 - in head/sys: conf dev/vt dev/vt/logo

2015-07-21 Thread Luiz Otavio O Souza
On Tue, Jul 21, 2015 at 5:33 PM, Conrad E. Meyer wrote: > Author: cem > Date: Tue Jul 21 20:33:36 2015 > New Revision: 285766 > URL: https://svnweb.freebsd.org/changeset/base/285766 > > Log: > vt: Draw logos per CPU core > > This feature is inspired by another Unix-alike OS commonly found on >

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

2015-07-21 Thread Mateusz Guzik
On Tue, Jul 21, 2015 at 11:50:12AM -0700, John Baldwin wrote: > On Tuesday, July 21, 2015 10:39:22 AM Mateusz Guzik wrote: > > Cc'ing jhb@ who made relevant changes to rmlocks > > > > On Mon, Jul 20, 2015 at 11:21:30PM -0700, Adrian Chadd wrote: > > > this happend whilst doing 'sysctl -vmstat 1' i

svn commit: r285785 - head/sys/dev/hyperv/netvsc

2015-07-21 Thread Wei Hu
Author: whu Date: Wed Jul 22 05:05:01 2015 New Revision: 285785 URL: https://svnweb.freebsd.org/changeset/base/285785 Log: Do not enable UDP checksum offloading when running on the Hyper-V on Windows Server 2012 and earlier hosts. Submitted by: whu Reviewed by: royger Approved by: roy

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

2015-07-21 Thread Adrian Chadd
Hi, Test it out and then give me a patch. I'll go sacrifice this laptop to the testing gods. Thanks! -a On 21 July 2015 at 21:33, Mateusz Guzik wrote: > On Tue, Jul 21, 2015 at 11:50:12AM -0700, John Baldwin wrote: >> On Tuesday, July 21, 2015 10:39:22 AM Mateusz Guzik wrote: >> > Cc'ing jhb

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

2015-07-21 Thread Mateusz Guzik
Cc'ing jhb@ who made relevant changes to rmlocks On Mon, Jul 20, 2015 at 11:21:30PM -0700, Adrian Chadd wrote: > this happend whilst doing 'sysctl -vmstat 1' in one window, 'top' in > another window, and 'kldunload uhci' as root: > > Unread portion of the kernel message buffer: > uhci5: detached

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

2015-07-21 Thread Sergey Kandaurov
Author: pluknet Date: Tue Jul 21 09:44:45 2015 New Revision: 285739 URL: https://svnweb.freebsd.org/changeset/base/285739 Log: Add missing priority argument in example code in BUGS section. PR: 201725 Submitted by: Thomas Cort MFC after:1 week Modified: head/lib/libc/ge

svn commit: r285740 - in head/sys: netinet netinet6

2015-07-21 Thread Randall Stewart
Author: rrs Date: Tue Jul 21 09:54:31 2015 New Revision: 285740 URL: https://svnweb.freebsd.org/changeset/base/285740 Log: When a tunneling protocol is being used with UDP we must release the lock on the INP before calling the tunnel protocol, else a LOR may occur (it does with SCTP for sure

svn commit: r285741 - head/sys/kern

2015-07-21 Thread Sergey Kandaurov
Author: pluknet Date: Tue Jul 21 09:57:13 2015 New Revision: 285741 URL: https://svnweb.freebsd.org/changeset/base/285741 Log: Fix sb_state constant names as used e.g. to display in DDB ``show sockbuf''. MFC after:1 week Modified: head/sys/kern/uipc_debug.c Modified: head/sys/kern/u

svn commit: r285742 - head/usr.bin/last

2015-07-21 Thread Ed Schouten
Author: ed Date: Tue Jul 21 10:52:05 2015 New Revision: 285742 URL: https://svnweb.freebsd.org/changeset/base/285742 Log: Unbreak "last reboot". According to the last(1) man page, the "reboot" pseudo-user should print all system reboot entries. This got broken by the utmpx import, as re

svn commit: r285743 - head/sys/arm64/include

2015-07-21 Thread Zbigniew Bodek
Author: zbb Date: Tue Jul 21 12:15:00 2015 New Revision: 285743 URL: https://svnweb.freebsd.org/changeset/base/285743 Log: Improve ARM64 CPU_MATCH Add a method to identify CPU based on RAW MIDR value. Obtained from: Semihalf Sponsored by: The FreeBSD Foundation Differential Revisi

svn commit: r285744 - in head/sys: amd64/cloudabi64 compat/cloudabi64

2015-07-21 Thread Ed Schouten
Author: ed Date: Tue Jul 21 12:47:15 2015 New Revision: 285744 URL: https://svnweb.freebsd.org/changeset/base/285744 Log: Make thread creation work for CloudABI processes. Summary: Remove the stub system call that was put in place during the system call import and replace it by a target

svn commit: r285745 - head/sys/arm64/include

2015-07-21 Thread Zbigniew Bodek
Author: zbb Date: Tue Jul 21 12:50:45 2015 New Revision: 285745 URL: https://svnweb.freebsd.org/changeset/base/285745 Log: Implement get_cyclecount() on ARM64 Use Vritual Counter register associated with Generic Timer to read the cyclecount. Obtained from: Semihalf Sponsored by: T

svn commit: r285746 - head/sys/amd64/conf

2015-07-21 Thread Ed Schouten
Author: ed Date: Tue Jul 21 12:53:47 2015 New Revision: 285746 URL: https://svnweb.freebsd.org/changeset/base/285746 Log: Describe COMPAT_CLOUDABI64 in the amd64 configuration NOTES file. Modified: head/sys/amd64/conf/NOTES Modified: head/sys/amd64/conf/NOTES

svn commit: r285751 - head/sys/kern

2015-07-21 Thread Konstantin Belousov
Author: kib Date: Tue Jul 21 14:39:34 2015 New Revision: 285751 URL: https://svnweb.freebsd.org/changeset/base/285751 Log: The part of r285680 which removed release semantic for two stores to it_need was wrong [*]. Restore the releases and add a comment explaining why it is needed. Not

svn commit: r285752 - in head/sys: arm64/arm64 dev/pci

2015-07-21 Thread Zbigniew Bodek
Author: zbb Date: Tue Jul 21 14:47:23 2015 New Revision: 285752 URL: https://svnweb.freebsd.org/changeset/base/285752 Log: Add support for vendor specific function for PCI devid acquisition in ITS It is possible that some HW will use different PCI devids, hence allow to replace the defaul

Re: svn commit: r285752 - in head/sys: arm64/arm64 dev/pci

2015-07-21 Thread Andrew Turner
On Tue, 21 Jul 2015 14:47:24 + (UTC) Zbigniew Bodek wrote: > Author: zbb > Date: Tue Jul 21 14:47:23 2015 > New Revision: 285752 > URL: https://svnweb.freebsd.org/changeset/base/285752 > > Log: > Add support for vendor specific function for PCI devid acquisition > in ITS > It is possibl