svn commit: r300015 - in head/sys: conf dev/bhnd dev/bhnd/bhndb dev/bhnd/cores/chipc dev/bhnd/cores/pci dev/bhnd/cores/pcie2 dev/bhnd/siba modules/bhnd/cores/bhnd_pci modules/bhnd/cores/bhnd_pci_ho...

2016-05-16 Thread Adrian Chadd
Author: adrian Date: Tue May 17 06:52:53 2016 New Revision: 300015 URL: https://svnweb.freebsd.org/changeset/base/300015 Log: [bhnd] Finish bhnd(4) PCI/PCIe-G1 hostb support. Now that we've got access to SPROM and can access board identification, this implements all known remaining hardwa

svn commit: r300014 - in head/sys: boot/fdt/dts/mips mips/mediatek

2016-05-16 Thread Stanislav Galabov
Author: sgalabov Date: Tue May 17 06:45:25 2016 New Revision: 300014 URL: https://svnweb.freebsd.org/changeset/base/300014 Log: Add proper PCIe init for MT7628/MT7688 SoCs PCIe PHY needs different initialization on MT7628/MT7688 SoCs than it does on MT7620. However, LEDE (and OpenWRT) d

svn commit: r300013 - in head/sys: boot/fdt/dts/mips gnu/dts/mips

2016-05-16 Thread Stanislav Galabov
Author: sgalabov Date: Tue May 17 06:42:24 2016 New Revision: 300013 URL: https://svnweb.freebsd.org/changeset/base/300013 Log: Import LEDE dts files for Ralink/Mediatek This is an import of the reworked LEDE dts files. Besides other things they make it easier for us to reuse. The on

svn commit: r300012 - head/sys/dev/etherswitch/mtkswitch

2016-05-16 Thread Stanislav Galabov
Author: sgalabov Date: Tue May 17 06:30:46 2016 New Revision: 300012 URL: https://svnweb.freebsd.org/changeset/base/300012 Log: Fix issues with mt762x etherswitch driver Fix issues that crept in with initial import. Approved by: adrian (mentor) Sponsored by: Smartcom - Bulgaria AD

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

2016-05-16 Thread Andrew Rybchenko
Author: arybchik Date: Tue May 17 06:28:03 2016 New Revision: 300011 URL: https://svnweb.freebsd.org/changeset/base/300011 Log: sfxge(4): only raise an exception after MC assert or reboot in the common code Fix efx_mcdi_request_poll so it only raises an exception if EIO is reported from a

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

2016-05-16 Thread Andrew Rybchenko
Author: arybchik Date: Tue May 17 06:27:19 2016 New Revision: 300010 URL: https://svnweb.freebsd.org/changeset/base/300010 Log: sfxge(4): restore clearing of MCDI new epoch flag in common code Submitted by: Andy Moreton Sponsored by: Solarflare Communications, Inc. MFC after:

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

2016-05-16 Thread Andrew Rybchenko
Author: arybchik Date: Tue May 17 06:26:02 2016 New Revision: 39 URL: https://svnweb.freebsd.org/changeset/base/39 Log: sfxge(4): fix Medford timer quantum calculation in common code The event/timer block used sysclk in Huntington, but has been moved to the dpcpu clock domain for

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

2016-05-16 Thread Andrew Rybchenko
Author: arybchik Date: Tue May 17 06:25:00 2016 New Revision: 38 URL: https://svnweb.freebsd.org/changeset/base/38 Log: sfxge(4): query and use current MTU if setting the MTU fails This allows the driver to fall back to the largest usable MTU if a user attempts to configure an unp

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

2016-05-16 Thread Andrew Rybchenko
Author: arybchik Date: Tue May 17 06:23:50 2016 New Revision: 37 URL: https://svnweb.freebsd.org/changeset/base/37 Log: sfxge(4): store licensing state in efx_lic Check licensing support at NIC startup to avoid multiple checks later. As state is stored, licensing initialisation is

Re: svn commit: r300005 - head/usr.bin/ncal

2016-05-16 Thread Don Lewis
On 16 May, Conrad Meyer wrote: > On Mon, May 16, 2016 at 10:05 PM, Don Lewis wrote: >> Author: truckman >> Date: Tue May 17 05:05:30 2016 >> New Revision: 35 >> URL: https://svnweb.freebsd.org/changeset/base/35 >> >> Log: >> swprintf() and apparently wcsftime() want the their output buff

svn commit: r300006 - head/sys/dev/ral

2016-05-16 Thread Kevin Lo
Author: kevlo Date: Tue May 17 06:04:33 2016 New Revision: 36 URL: https://svnweb.freebsd.org/changeset/base/36 Log: The EEPROM is lying about antennas. Don't hardcode things based on the chip version which is not what the vendor driver happens to do. Modified: head/sys/dev/ral/rt2

Re: svn commit: r300005 - head/usr.bin/ncal

2016-05-16 Thread Conrad Meyer
On Mon, May 16, 2016 at 10:05 PM, Don Lewis wrote: > Author: truckman > Date: Tue May 17 05:05:30 2016 > New Revision: 35 > URL: https://svnweb.freebsd.org/changeset/base/35 > > Log: > swprintf() and apparently wcsftime() want the their output buffer size > specified in terms of the th

Re: svn commit: r300000 - head/sys/mips/conf

2016-05-16 Thread Sepherosa Ziehau
On Tue, May 17, 2016 at 8:31 AM, Adrian Chadd wrote: > Author: adrian > Date: Tue May 17 00:31:37 2016 > New Revision: 30 > URL: https://svnweb.freebsd.org/changeset/base/30 30! Congrats! :P ___ svn-src-head@freebsd.org mailing list https:/

svn commit: r300005 - head/usr.bin/ncal

2016-05-16 Thread Don Lewis
Author: truckman Date: Tue May 17 05:05:30 2016 New Revision: 35 URL: https://svnweb.freebsd.org/changeset/base/35 Log: swprintf() and apparently wcsftime() want the their output buffer size specified in terms of the the number of wide characters and not sizeof(buffer). Reported

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

2016-05-16 Thread Greg Lehey
Author: grog Date: Tue May 17 04:40:00 2016 New Revision: 33 URL: https://svnweb.freebsd.org/changeset/base/33 Log: Correct use of incorrect grammar. Modified: head/share/man/man4/gdb.4 Modified: head/share/man/man4/gdb.4 ==

svn commit: r300002 - head/usr.sbin/rarpd

2016-05-16 Thread Don Lewis
Author: truckman Date: Tue May 17 04:03:45 2016 New Revision: 32 URL: https://svnweb.freebsd.org/changeset/base/32 Log: When clearing rtmsg, pass &rtmsg to bzero() instead of the address of just the header Reported by: Coverity CID: 1007568, 1194256 MFC after:1 w

Re: svn commit: r299997 - head/sys/boot/i386/zfsboot

2016-05-16 Thread Ngie Cooper
On Mon, May 16, 2016 at 5:24 PM, Peter Wemm wrote: > Author: peter > Date: Tue May 17 00:24:53 2016 > New Revision: 27 > URL: https://svnweb.freebsd.org/changeset/base/27 > > Log: > Attempt to fix r299660: > slba is used only for the GPT case. > elba is used if either GPT or LOADER_G

Re: svn commit: r299995 - head/usr.bin/kdump

2016-05-16 Thread Simon J. Gerraty
Ngie Cooper wrote: > Please use `!= 0` for explicitness. Sure. ___ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

svn commit: r300001 - head/sys/net

2016-05-16 Thread Bjoern A. Zeeb
Author: bz Date: Tue May 17 00:32:36 2016 New Revision: 31 URL: https://svnweb.freebsd.org/changeset/base/31 Log: Mark the unused arguments of various SYSINIT functions __unused. MFC after:2 weeks Sponsored by: The FreeBSD Foundation Modified: head/sys/net/vnet.c Modified:

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

2016-05-16 Thread Adrian Chadd
Author: adrian Date: Tue May 17 00:31:37 2016 New Revision: 30 URL: https://svnweb.freebsd.org/changeset/base/30 Log: [mips] also add otus/urtwn USB modules. I'm using both AR933x (because the boards fit in small boxes) as well as AR934x for doing USB wifi testing on MIPS. So

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

2016-05-16 Thread Adrian Chadd
Author: adrian Date: Tue May 17 00:30:34 2016 New Revision: 29 URL: https://svnweb.freebsd.org/changeset/base/29 Log: [mips] add urtwn and otus NIC modules. I'm using this platform for testing USB wifi on MIPS. Modified: head/sys/mips/conf/AR934X_BASE Modified: head/sys/mips/con

Re: svn commit: r299556 - head/sys/dev/ixl

2016-05-16 Thread Adrian Chadd
Hi, ixl doesn't build on -HEAD. The netmap ixl bits also aren't building for me. What gives? :) -a ___ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr

svn commit: r299998 - head/usr.bin/kdump

2016-05-16 Thread Simon J. Gerraty
Author: sjg Date: Tue May 17 00:27:18 2016 New Revision: 28 URL: https://svnweb.freebsd.org/changeset/base/28 Log: Use != 0 to be clear Modified: head/usr.bin/kdump/kdump.c Modified: head/usr.bin/kdump/kdump.c ==

svn commit: r299997 - head/sys/boot/i386/zfsboot

2016-05-16 Thread Peter Wemm
Author: peter Date: Tue May 17 00:24:53 2016 New Revision: 27 URL: https://svnweb.freebsd.org/changeset/base/27 Log: Attempt to fix r299660: slba is used only for the GPT case. elba is used if either GPT or LOADER_GELI_SUPPORT is enabled. Modified: head/sys/boot/i386/zfsboot/zfsbo

svn commit: r299996 - in head/sys/dev/bhnd: . bcma bhndb cores/chipc cores/pci nvram siba

2016-05-16 Thread Adrian Chadd
Author: adrian Date: Tue May 17 00:23:46 2016 New Revision: 26 URL: https://svnweb.freebsd.org/changeset/base/26 Log: [bhnd] Centralize fetching of board information Centralizes fetching of board information (vendor, type, revision, etc), and adds support for matching quirks again

Re: svn commit: r299995 - head/usr.bin/kdump

2016-05-16 Thread Ngie Cooper
On Mon, May 16, 2016 at 5:08 PM, Simon J. Gerraty wrote: > Author: sjg > Date: Tue May 17 00:08:43 2016 > New Revision: 25 > URL: https://svnweb.freebsd.org/changeset/base/25 > > Log: > Allow -f - to read from stdin. > > Modified: > head/usr.bin/kdump/kdump.c > > Modified: head/usr.bin

svn commit: r299995 - head/usr.bin/kdump

2016-05-16 Thread Simon J. Gerraty
Author: sjg Date: Tue May 17 00:08:43 2016 New Revision: 25 URL: https://svnweb.freebsd.org/changeset/base/25 Log: Allow -f - to read from stdin. Modified: head/usr.bin/kdump/kdump.c Modified: head/usr.bin/kdump/kdump.c

svn commit: r299994 - in head/sys/mips: broadcom conf

2016-05-16 Thread Adrian Chadd
Author: adrian Date: Tue May 17 00:00:01 2016 New Revision: 24 URL: https://svnweb.freebsd.org/changeset/base/24 Log: [mips/broadcom] Add initial support for Broadcom MIPS processor Relies on BHND(4) driver. There files contains machine-dependent code for Broadcom MIPS processo

svn commit: r299993 - head/sys/conf

2016-05-16 Thread Adrian Chadd
Author: adrian Date: Mon May 16 23:56:31 2016 New Revision: 23 URL: https://svnweb.freebsd.org/changeset/base/23 Log: [mips] Improve MIPS trampoline code This patch fix trampoline build. inckern.S increases stack and calls _startC of elf_trampoline, so inckern.S should be called b

svn commit: r299992 - head/sys/mips/broadcom

2016-05-16 Thread Adrian Chadd
Author: adrian Date: Mon May 16 23:54:28 2016 New Revision: 22 URL: https://svnweb.freebsd.org/changeset/base/22 Log: [mips/broadcom] Add initial code for interrupts on the Broadcom MIPS processor Broadcom MIPS processor doesn't reset TI flag if additional manipulation is done.

svn commit: r299991 - head/usr.sbin/ppp

2016-05-16 Thread Don Lewis
Author: truckman Date: Mon May 16 23:47:08 2016 New Revision: 21 URL: https://svnweb.freebsd.org/changeset/base/21 Log: Don't walk off the end of the array when proto isn't explicitly listed above. Instead update the catch-all "Others" bucket. Reported by: Coverity CID:

svn commit: r299990 - in head/sys: conf dev/bhnd

2016-05-16 Thread Adrian Chadd
Author: adrian Date: Mon May 16 23:40:32 2016 New Revision: 20 URL: https://svnweb.freebsd.org/changeset/base/20 Log: [bhnd] Add logging macros to BHND. There are 5 logging levels: * ERROR * WARN * INFO * DEBUG * TRACE There are 2 logging context: * with * w

svn commit: r299989 - head/sys/dev/bhnd

2016-05-16 Thread Adrian Chadd
Author: adrian Date: Mon May 16 23:37:18 2016 New Revision: 299989 URL: https://svnweb.freebsd.org/changeset/base/299989 Log: [bhnd] Add support for matching of MIPS & ARM cores Extend macros for MIPS & ARM cores. Now only BCM cores can be matched by matching mechanism. Submitted by:

svn commit: r299988 - head/usr.sbin/rpc.statd

2016-05-16 Thread Don Lewis
Author: truckman Date: Mon May 16 23:29:04 2016 New Revision: 299988 URL: https://svnweb.freebsd.org/changeset/base/299988 Log: Set ai2 to NULL in in find_host() before the loop and after calling freeaddrinfo() on it to indicate that it doesn't point to a valid addrinfo list. This fixes thi

svn commit: r299986 - head/usr.sbin/rpc.lockd

2016-05-16 Thread Don Lewis
Author: truckman Date: Mon May 16 23:00:48 2016 New Revision: 299986 URL: https://svnweb.freebsd.org/changeset/base/299986 Log: Actually use the loop interation limit so carefully computed on the previous line to prevent buffer overflow. This turns out to not be important because the upstre

svn commit: r299985 - head/sys/dev/bwn

2016-05-16 Thread Adrian Chadd
Author: adrian Date: Mon May 16 22:57:36 2016 New Revision: 299985 URL: https://svnweb.freebsd.org/changeset/base/299985 Log: [bwn] add opt_wlan.h / opt_bwn.h for build-time control This is a separate commit as I have local changes to bwn for now and this needs a manual merge/commit.

Re: svn commit: r299753 - head/sys/fs/fuse

2016-05-16 Thread Rick Macklem
Alexey Dokuchaev wrote: > On Sat, May 14, 2016 at 08:03:22PM +, Rick Macklem wrote: > > New Revision: 299753 > > URL: https://svnweb.freebsd.org/changeset/base/299753 > > > > Log: > > Fix fuse to use DIRECT_IO when required. > > > > When a file is opened write-only and a partial block w

svn commit: r299984 - head/sys/dev/bwn

2016-05-16 Thread Adrian Chadd
Author: adrian Date: Mon May 16 22:56:45 2016 New Revision: 299984 URL: https://svnweb.freebsd.org/changeset/base/299984 Log: [bwn] add opt_wlan.h and opt_bwn.h so we can enable bwn debugging as appropriate. Tested: * BCM4322, STA mode (11a) Sponsored by: Palm Springs Modified:

svn commit: r299982 - head/sys/dev/bwn

2016-05-16 Thread Adrian Chadd
Author: adrian Date: Mon May 16 22:39:17 2016 New Revision: 299982 URL: https://svnweb.freebsd.org/changeset/base/299982 Log: [bwn] switch to ieee80211_add_channel() This is an updated version of D6140. Tested: * BCM4321 11abgn, STA mode (11a) Submitted by: avos Differentia

svn commit: r299977 - head/sys/dev/acpica/Osd

2016-05-16 Thread John Baldwin
Author: jhb Date: Mon May 16 21:33:31 2016 New Revision: 299977 URL: https://svnweb.freebsd.org/changeset/base/299977 Log: Use polling spin loops for timeouts during early boot. Some ACPI operations such as mutex acquires and event waits accept a timeout. The ACPI OSD layer implements th

Re: svn commit: r299753 - head/sys/fs/fuse

2016-05-16 Thread Rick Macklem
Alexey Dokuchaev wrote: > On Sat, May 14, 2016 at 08:03:22PM +, Rick Macklem wrote: > > New Revision: 299753 > > URL: https://svnweb.freebsd.org/changeset/base/299753 > > > > Log: > > Fix fuse to use DIRECT_IO when required. > > > > When a file is opened write-only and a partial block w

svn commit: r299976 - head/sys/dev/bwn

2016-05-16 Thread Adrian Chadd
Author: adrian Date: Mon May 16 20:26:30 2016 New Revision: 299976 URL: https://svnweb.freebsd.org/changeset/base/299976 Log: [bwn] check DUALPHY; add BCM4322 to the don't-override list. * DUALPHY in TGSHIGH tells us there's a phy that is dualband, rather than two separate PHYs/MACs (wh

svn commit: r299975 - head/sys/dev/siba

2016-05-16 Thread Adrian Chadd
Author: adrian Date: Mon May 16 20:22:52 2016 New Revision: 299975 URL: https://svnweb.freebsd.org/changeset/base/299975 Log: [siba] fix up debugging. * unbreak non-debug builds - don't default to debugging SCAN; that was left-over from my testing. * include opt_siba.h, now that it's

svn commit: r299974 - head/sys/conf

2016-05-16 Thread Adrian Chadd
Author: adrian Date: Mon May 16 20:18:54 2016 New Revision: 299974 URL: https://svnweb.freebsd.org/changeset/base/299974 Log: [siba] add SIBA_DEBUG option. Sponsored by: Palm Springs Modified: head/sys/conf/options Modified: head/sys/conf/options

Re: svn commit: r299930 - in head/sys/compat/linuxkpi/common: include/linux src

2016-05-16 Thread Conrad Meyer
On Mon, May 16, 2016 at 2:16 AM, Hans Petter Selasky wrote: > Author: hselasky > Date: Mon May 16 09:16:15 2016 > New Revision: 299930 > URL: https://svnweb.freebsd.org/changeset/base/299930 > > Log: > Properly implement "cpu_has_clflush" macro. > ... > @@ -51,6 +51,10 @@ __FBSDID("$FreeBSD$");

svn commit: r299973 - head/sys/dev/ow

2016-05-16 Thread Pedro F. Giffuni
Author: pfg Date: Mon May 16 20:04:38 2016 New Revision: 299973 URL: https://svnweb.freebsd.org/changeset/base/299973 Log: dev/ow: Tag an unreachable switch default. Coverity reports an uninitialized "dir" in case the switch defaults without hitting any case. Respect the original intent a

svn commit: r299972 - head/sys/boot/efi/libefi

2016-05-16 Thread Pedro F. Giffuni
Author: pfg Date: Mon May 16 20:00:09 2016 New Revision: 299972 URL: https://svnweb.freebsd.org/changeset/base/299972 Log: libefi: Tag an unreachable switch default. Coverity reports an uninitialized "len" in case the switch defaults without hitting any case. Respect the original intent a

Re: svn commit: r299839 - head/etc/rc.d

2016-05-16 Thread Ngie Cooper
On Sun, May 15, 2016 at 9:45 AM, Ian Lepore wrote: > On Sun, 2016-05-15 at 04:38 +, Garrett Cooper wrote: >> Author: ngie >> Date: Sun May 15 04:38:50 2016 >> New Revision: 299839 >> URL: https://svnweb.freebsd.org/changeset/base/299839 >> >> Log: >> Make FILESYSTEMS, dumpon, and var not dep

svn commit: r299971 - head/usr.bin/chat

2016-05-16 Thread Don Lewis
Author: truckman Date: Mon May 16 19:48:02 2016 New Revision: 299971 URL: https://svnweb.freebsd.org/changeset/base/299971 Log: Fix off by one error that overflowed the rep_len array when doing the final NUL termination. Reported by: Coverity CID: 1007617 MFC after:1 wee

svn commit: r299970 - head/sys/ddb

2016-05-16 Thread Pedro F. Giffuni
Author: pfg Date: Mon May 16 19:42:38 2016 New Revision: 299970 URL: https://svnweb.freebsd.org/changeset/base/299970 Log: Add a small set of logical operators to DDB command language. This are based on Mach3. Documentation is pending but has been promised. Submitted by: Dan Partelly

svn commit: r299969 - head/sys/dev/siba

2016-05-16 Thread Adrian Chadd
Author: adrian Date: Mon May 16 19:39:05 2016 New Revision: 299969 URL: https://svnweb.freebsd.org/changeset/base/299969 Log: [siba] make the debug code somewhat useful again. It's still not configurable by a kernel option; that'll come next. Sponsored by: Palm Springs Modified: hea

svn commit: r299965 - head/sys/dev/urtwn

2016-05-16 Thread Andriy Voskoboinyk
Author: avos Date: Mon May 16 19:10:59 2016 New Revision: 299965 URL: https://svnweb.freebsd.org/changeset/base/299965 Log: urtwn: add support for hardware multicast filter setup. Tested with RTL8188EU and RTL8188CUS. Modified: head/sys/dev/urtwn/if_urtwn.c Modified: head/sys/dev/urtwn/

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

2016-05-16 Thread Bjoern A. Zeeb
Author: bz Date: Mon May 16 19:07:58 2016 New Revision: 299963 URL: https://svnweb.freebsd.org/changeset/base/299963 Log: Add HWPMC_HOOKS to std.armv6 to make them available so the module could be loaded. Discussed with: andrew Reviewed by: andrew Sponsored by: DARPA/AFRL Dif

Re: svn commit: r299746 - in head/sys: cddl/dev/dtrace cddl/dev/dtrace/amd64 cddl/dev/dtrace/i386 cddl/dev/dtrace/powerpc conf dev/acpica dev/hwpmc dev/hyperv/vmbus dev/xen/control geom/eli kern net s

2016-05-16 Thread John Baldwin
On Monday, May 16, 2016 01:25:56 PM Julian Elischer wrote: > On 15/05/2016 2:22 AM, John Baldwin wrote: > > Author: jhb > > Date: Sat May 14 18:22:52 2016 > > New Revision: 299746 > > URL: https://svnweb.freebsd.org/changeset/base/299746 > > > > Log: > >Add an EARLY_AP_STARTUP option to start A

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

2016-05-16 Thread Ngie Cooper
On Mon, May 16, 2016 at 10:41 AM, Hans Petter Selasky wrote: > Author: hselasky > Date: Mon May 16 17:41:25 2016 > New Revision: 299960 > URL: https://svnweb.freebsd.org/changeset/base/299960 > > Log: > Only lock Giant when needed in the LinuxKPI. > > Suggested by: ngie @ > MFC after:1 w

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

2016-05-16 Thread Hans Petter Selasky
Author: hselasky Date: Mon May 16 17:41:25 2016 New Revision: 299960 URL: https://svnweb.freebsd.org/changeset/base/299960 Log: Only lock Giant when needed in the LinuxKPI. Suggested by: ngie @ MFC after:1 week Sponsored by: Mellanox Technologies Modified: head/sys/compat/linuxkp

Re: svn commit: r299933 - in head/sys: compat/linuxkpi/common/include/linux sys

2016-05-16 Thread Hans Petter Selasky
On 05/16/16 18:51, Ngie Cooper (yaneurabeya) wrote: On May 16, 2016, at 09:47, Hans Petter Selasky wrote: On 05/16/16 18:31, Ngie Cooper (yaneurabeya) wrote: Dumb question — couldn’t we run the check without locking Giant, then delete the child, e.g. if (bsddev != NULL) { mtx_lock(&Gian

Re: svn commit: r299944 - in head/sys: arm64/arm64 conf

2016-05-16 Thread Ed Maste
On 16 May 2016 at 12:08, Zbigniew Bodek wrote: > Hello Andrew, > > I think committing this code should be preceded by at least brief review. I agree, review makes sense especially in the case of GICv3 and other files that originated in the ThunderX work or are closely tied to that platform. _

svn commit: r299957 - head/sys/dev/isp

2016-05-16 Thread Alexander Motin
Author: mav Date: Mon May 16 17:18:26 2016 New Revision: 299957 URL: https://svnweb.freebsd.org/changeset/base/299957 Log: Reduce verbosity of "now sending synthesized status" message. MFC after:1 week Modified: head/sys/dev/isp/isp_freebsd.c Modified: head/sys/dev/isp/isp_freebsd.c

Re: svn commit: r299933 - in head/sys: compat/linuxkpi/common/include/linux sys

2016-05-16 Thread Ngie Cooper (yaneurabeya)
> On May 16, 2016, at 09:47, Hans Petter Selasky wrote: > > On 05/16/16 18:31, Ngie Cooper (yaneurabeya) wrote: >> Dumb question — couldn’t we run the check without locking Giant, then delete >> the child, e.g. >> >> if (bsddev != NULL) { >>mtx_lock(&Giant); >>device_delete_child(devic

Re: svn commit: r299933 - in head/sys: compat/linuxkpi/common/include/linux sys

2016-05-16 Thread Hans Petter Selasky
On 05/16/16 18:31, Ngie Cooper (yaneurabeya) wrote: Dumb question — couldn’t we run the check without locking Giant, then delete the child, e.g. if (bsddev != NULL) { mtx_lock(&Giant); device_delete_child(device_get_parent(bsddev), bsddev); mtx_unlock(&Giant); } put_device(dev); I

svn commit: r299955 - head/sys/dev/isp

2016-05-16 Thread Alexander Motin
Author: mav Date: Mon May 16 16:44:34 2016 New Revision: 299955 URL: https://svnweb.freebsd.org/changeset/base/299955 Log: No need to check login status for ZOMBIE ports. ZOMBIE ports are always logged out, and so initiator may try to relogin. MFC after:1 weeks Modified: head/sy

Re: svn commit: r299933 - in head/sys: compat/linuxkpi/common/include/linux sys

2016-05-16 Thread Ngie Cooper (yaneurabeya)
> On May 16, 2016, at 02:56, Hans Petter Selasky wrote: > > Author: hselasky > Date: Mon May 16 09:56:48 2016 > New Revision: 299933 > URL: https://svnweb.freebsd.org/changeset/base/299933 > > Log: > Implement more Linux device related functions in the LinuxKPI. While > at it use NULL for som

Re: svn commit: r299953 - head/usr.sbin/makefs

2016-05-16 Thread Don Lewis
On 16 May, To: src-committ...@freebsd.org wrote: > Author: truckman > Date: Mon May 16 16:16:46 2016 > New Revision: 299953 > URL: https://svnweb.freebsd.org/changeset/base/299953 > > Log: > Fix an off by one error to avoid overflowing rp[]. > > Reported by:Coverity > CID:

svn commit: r299953 - head/usr.sbin/makefs

2016-05-16 Thread Don Lewis
Author: truckman Date: Mon May 16 16:16:46 2016 New Revision: 299953 URL: https://svnweb.freebsd.org/changeset/base/299953 Log: Fix an off by one error to avoid overflowing rp[]. Reported by: Coverity CID: 1007579 Modified: head/usr.sbin/makefs/mtree.c Modified: head/usr.sbi

svn commit: r299952 - head/usr.bin/ldd

2016-05-16 Thread Don Lewis
Author: truckman Date: Mon May 16 16:01:46 2016 New Revision: 299952 URL: https://svnweb.freebsd.org/changeset/base/299952 Log: Increase size of argv[] array to avoid running off the end. Reported by: Coverity CID: 1193819 MFC after:1 week Modified: head/usr.bin/ldd/ldd

Re: svn commit: r299944 - in head/sys: arm64/arm64 conf

2016-05-16 Thread Zbigniew Bodek
Hello Andrew, I think committing this code should be preceded by at least brief review. Few remarks to the code found on the first glance below. Kind regards zbb 2016-05-16 16:07 GMT+02:00 Andrew Turner : > Author: andrew > Date: Mon May 16 14:07:43 2016 > New Revision: 299944 > URL: https://sv

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

2016-05-16 Thread Andriy Gapon
Author: avg Date: Mon May 16 15:48:56 2016 New Revision: 299951 URL: https://svnweb.freebsd.org/changeset/base/299951 Log: do not destroy 'snapdir' when it becomes inactive That was just wrong. In fact, we can safely keep this static entry when it's inactive. Now the destructive actio

svn commit: r299950 - head/lib/libbsdstat

2016-05-16 Thread Don Lewis
Author: truckman Date: Mon May 16 15:42:59 2016 New Revision: 299950 URL: https://svnweb.freebsd.org/changeset/base/299950 Log: Fix off by one error in index limit calculation Reported by: Coverity CID: 1193826 Modified: head/lib/libbsdstat/bsdstat.c Modified: head/lib/libbs

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

2016-05-16 Thread Andriy Gapon
Author: avg Date: Mon May 16 15:37:41 2016 New Revision: 299949 URL: https://svnweb.freebsd.org/changeset/base/299949 Log: try to recycle "snap" vnodes as soon as possible Those vnodes should not linger. "Stale" nodes may get out of synchronization with actual snapshots. For example if

Re: svn commit: r299926 - head/lib/libpam/modules/pam_unix

2016-05-16 Thread Don Lewis
On 16 May, Ed Maste wrote: > On 16 May 2016 at 04:34, Don Lewis wrote: >> Author: truckman >> Date: Mon May 16 08:34:17 2016 >> New Revision: 299926 >> URL: https://svnweb.freebsd.org/changeset/base/299926 >> >> Log: >> Hoist the getpwnam() call outside the first if/else block in >> pam_sm_cha

svn commit: r299948 - head/lib/libpam/modules/pam_unix

2016-05-16 Thread Don Lewis
Author: truckman Date: Mon May 16 15:32:02 2016 New Revision: 299948 URL: https://svnweb.freebsd.org/changeset/base/299948 Log: Set retval in the empty password case to avoid a path through the code that fails to set retval before falling through to the final return(). Reported by: ema

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

2016-05-16 Thread Andriy Gapon
Author: avg Date: Mon May 16 15:28:39 2016 New Revision: 299947 URL: https://svnweb.freebsd.org/changeset/base/299947 Log: fix locking in zfsctl_root_lookup Dropping the root vnode's lock after VFS_ROOT() didn't really help the fact that we acquired the lock while holding its child's, .zf

svn commit: r299946 - in head/sys/cddl/contrib/opensolaris/uts/common/fs: . zfs

2016-05-16 Thread Andriy Gapon
Author: avg Date: Mon May 16 15:13:16 2016 New Revision: 299946 URL: https://svnweb.freebsd.org/changeset/base/299946 Log: gfs_lookup_dot() does not have to acquire any locks In fact, that was dangerous. For example, zfsctl_snapshot_reclaim() calls gfs_dir_lookup() on ".." path and that

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

2016-05-16 Thread Andriy Gapon
Author: avg Date: Mon May 16 15:03:52 2016 New Revision: 299945 URL: https://svnweb.freebsd.org/changeset/base/299945 Log: avoid deadlock between zfsctl_snapdir_lookup and zfsctl_snapshot_reclaim The former acquired a snap vnode lock while holding sd_lock while the latter does the opposit

svn commit: r299944 - in head/sys: arm64/arm64 conf

2016-05-16 Thread Andrew Turner
Author: andrew Date: Mon May 16 14:07:43 2016 New Revision: 299944 URL: https://svnweb.freebsd.org/changeset/base/299944 Log: Add intrng support to the GICv3 driver. It lacks ITS support so won't handle MSI or MSI-X interrupts, however this is enought to boot FreeBSD under the ARM Foundation

Re: svn commit: r299926 - head/lib/libpam/modules/pam_unix

2016-05-16 Thread Ed Maste
On 16 May 2016 at 04:34, Don Lewis wrote: > Author: truckman > Date: Mon May 16 08:34:17 2016 > New Revision: 299926 > URL: https://svnweb.freebsd.org/changeset/base/299926 > > Log: > Hoist the getpwnam() call outside the first if/else block in > pam_sm_chauthtok(). Set user = getlogin() insi

svn commit: r299943 - head/lib/libthr

2016-05-16 Thread Jilles Tjoelker
Author: jilles Date: Mon May 16 13:39:04 2016 New Revision: 299943 URL: https://svnweb.freebsd.org/changeset/base/299943 Log: libthr(3): Fix xref to _umtx_op(2) now that we have it. Modified: head/lib/libthr/libthr.3 Modified: head/lib/libthr/libthr.3

Re: svn commit: r298230 - in head: lib/libstand sys/boot/common sys/boot/efi/libefi sys/boot/efi/loader sys/boot/i386/libfirewire sys/boot/i386/libi386 sys/boot/i386/loader sys/boot/mips/beri/loader s

2016-05-16 Thread Konstantin Belousov
On Tue, Apr 19, 2016 at 09:26:41AM -0700, John Baldwin wrote: > On Tuesday, April 19, 2016 07:05:00 PM Konstantin Belousov wrote: > > On Tue, Apr 19, 2016 at 11:49:31AM -0400, Allan Jude wrote: > > > On 2016-04-19 05:30, Konstantin Belousov wrote: > > > > On Mon, Apr 18, 2016 at 07:43:04PM -0400, A

Re: svn commit: r299942 - in head/usr.bin/xinstall: . tests

2016-05-16 Thread Baptiste Daroussin
On Mon, May 16, 2016 at 12:56:28PM +, Jilles Tjoelker wrote: > Author: jilles > Date: Mon May 16 12:56:28 2016 > New Revision: 299942 > URL: https://svnweb.freebsd.org/changeset/base/299942 > > Log: > install: Revert utimensat usage (r299850). > > This should fix the build on older stab

svn commit: r299942 - in head/usr.bin/xinstall: . tests

2016-05-16 Thread Jilles Tjoelker
Author: jilles Date: Mon May 16 12:56:28 2016 New Revision: 299942 URL: https://svnweb.freebsd.org/changeset/base/299942 Log: install: Revert utimensat usage (r299850). This should fix the build on older stable/10, since install is a bootstrap tool. Pending a decision how to fix this

svn commit: r299941 - head/sys/dev/pci

2016-05-16 Thread Andrew Turner
Author: andrew Date: Mon May 16 12:18:30 2016 New Revision: 299941 URL: https://svnweb.freebsd.org/changeset/base/299941 Log: Call ofw_bus_msimap to find the parent MSI controller, it may not use the msi-parent property. Obtained from:ABT Systems Ltd Sponsored by: The FreeBSD Fo

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

2016-05-16 Thread Andriy Gapon
Author: avg Date: Mon May 16 12:15:19 2016 New Revision: 299940 URL: https://svnweb.freebsd.org/changeset/base/299940 Log: fix a vnode reference leak caused by illumos compat traverse() This commit partially reverts r273641 which introduced the leak. It did so to accomodate for some consu

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

2016-05-16 Thread Andrew Turner
Author: andrew Date: Mon May 16 12:02:06 2016 New Revision: 299939 URL: https://svnweb.freebsd.org/changeset/base/299939 Log: Move the call to intr_pic_init_secondary to the same place as in the non-intrng case. Obtained from:ABT Systems Ltd Sponsored by: The FreeBSD Foundation

Re: svn commit: r299934 - head/sys/arm64/cavium

2016-05-16 Thread Andrew Turner
On Mon, 16 May 2016 12:52:39 +0200 Zbigniew Bodek wrote: > Are these ThunderX related commits going to be reviewed or tested by > anyone that uses ThunderX? I have been testing on the Pass 1.1 and Pass 2.0 ThunderX units in the cluster. Andrew ___ svn

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

2016-05-16 Thread Andriy Gapon
Author: avg Date: Mon May 16 11:48:43 2016 New Revision: 299938 URL: https://svnweb.freebsd.org/changeset/base/299938 Log: fix up r299902: mount_snapshot requires that the covered vnode is locked Previously that was not strictly enforced. MFC after:4 weeks X-MFC with: r299902

Re: svn commit: r299934 - head/sys/arm64/cavium

2016-05-16 Thread Zbigniew Bodek
Are these ThunderX related commits going to be reviewed or tested by anyone that uses ThunderX? Kind regards zbb 2016-05-16 12:03 GMT+02:00 Andrew Turner : > Author: andrew > Date: Mon May 16 10:03:57 2016 > New Revision: 299934 > URL: https://svnweb.freebsd.org/changeset/base/299934 > > Log: >

svn commit: r299937 - head/sys/dev/rtwn

2016-05-16 Thread Andriy Voskoboinyk
Author: avos Date: Mon May 16 10:51:35 2016 New Revision: 299937 URL: https://svnweb.freebsd.org/changeset/base/299937 Log: rtwn: fix double free in raw xmit path. Reported by: mva Modified: head/sys/dev/rtwn/if_rtwn.c Modified: head/sys/dev/rtwn/if_rtwn.c =

svn commit: r299936 - in head/sys: arm64/arm64 arm64/include conf

2016-05-16 Thread Andrew Turner
Author: andrew Date: Mon May 16 10:48:51 2016 New Revision: 299936 URL: https://svnweb.freebsd.org/changeset/base/299936 Log: Add support for intrng to arm64. As the GICv3 drivers will need to be updated, and until further testing can be done, this is disabled for now. It is expected arm6

svn commit: r299934 - head/sys/arm64/cavium

2016-05-16 Thread Andrew Turner
Author: andrew Date: Mon May 16 10:03:57 2016 New Revision: 299934 URL: https://svnweb.freebsd.org/changeset/base/299934 Log: Teach the ThunderX PCI PEM driver about intrng. This will be used later when arm64 is supported by intrng. Obtained from:ABT Systems Ltd Sponsored by: Th

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

2016-05-16 Thread Hans Petter Selasky
Author: hselasky Date: Mon May 16 09:56:48 2016 New Revision: 299933 URL: https://svnweb.freebsd.org/changeset/base/299933 Log: Implement more Linux device related functions in the LinuxKPI. While at it use NULL for some pointer checks. Bump the FreeBSD version to force recompilation of a

svn commit: r299932 - in head: share/man/man9 sys/arm64/arm64 sys/arm64/cavium sys/dev/ofw sys/dev/pci

2016-05-16 Thread Andrew Turner
Author: andrew Date: Mon May 16 09:31:44 2016 New Revision: 299932 URL: https://svnweb.freebsd.org/changeset/base/299932 Log: Add a pcib interface for use by interrupt controllers that need to translate the pci rid to a controller ID. The translation could be based on the 'msi-map' OFW prope

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

2016-05-16 Thread Hans Petter Selasky
Author: hselasky Date: Mon May 16 09:25:56 2016 New Revision: 299931 URL: https://svnweb.freebsd.org/changeset/base/299931 Log: Don't dereference parent pointer when it is NULL. MFC after:1 week Sponsored by: Mellanox Technologies Modified: head/sys/compat/linuxkpi/common/include/l

svn commit: r299930 - in head/sys/compat/linuxkpi/common: include/linux src

2016-05-16 Thread Hans Petter Selasky
Author: hselasky Date: Mon May 16 09:16:15 2016 New Revision: 299930 URL: https://svnweb.freebsd.org/changeset/base/299930 Log: Properly implement "cpu_has_clflush" macro. Suggested by: kib, jhb MFC after:1 week Sponsored by: Mellanox Technologies Modified: head/sys/compat/linuxk

svn commit: r299929 - in head: share/man/man9 sys/dev/pci

2016-05-16 Thread Andrew Turner
Author: andrew Date: Mon May 16 09:15:50 2016 New Revision: 299929 URL: https://svnweb.freebsd.org/changeset/base/299929 Log: Re-commit r299467 having fixed the build: Add a new get_id interface to pci and pcib. This will allow us to both detect failures, and get different PCI IDs. F

svn commit: r299928 - in head/sys: arm/arm conf dev/pci kern mips/mediatek sys

2016-05-16 Thread Andrew Turner
Author: andrew Date: Mon May 16 09:11:40 2016 New Revision: 299928 URL: https://svnweb.freebsd.org/changeset/base/299928 Log: Introduce MSI and MSI-X support to intrng. This adds a new msi device interface with 5 methods to mirror the 5 MSI/MSI-X methods in the pcib interface. The pcib drive

svn commit: r299927 - head/sys/dev/hyperv/vmbus

2016-05-16 Thread Sepherosa Ziehau
Author: sephe Date: Mon May 16 08:50:32 2016 New Revision: 299927 URL: https://svnweb.freebsd.org/changeset/base/299927 Log: hyperv/vmbus: Use atomic_testandclear Prepare to use unsigned long for event channel bit array. Sponsored by: Microsoft OSTC Differential Revision:http

svn commit: r299926 - head/lib/libpam/modules/pam_unix

2016-05-16 Thread Don Lewis
Author: truckman Date: Mon May 16 08:34:17 2016 New Revision: 299926 URL: https://svnweb.freebsd.org/changeset/base/299926 Log: Hoist the getpwnam() call outside the first if/else block in pam_sm_chauthtok(). Set user = getlogin() inside the true branch so that it is initialized for the fol

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

2016-05-16 Thread Andrew Rybchenko
Author: arybchik Date: Mon May 16 08:32:21 2016 New Revision: 299925 URL: https://svnweb.freebsd.org/changeset/base/299925 Log: sfxge(4): cleanup: quieten more common code MCDI handlers Submitted by: Andy Moreton Sponsored by: Solarflare Communications, Inc. MFC after: 1 week

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

2016-05-16 Thread Andrew Rybchenko
Author: arybchik Date: Mon May 16 08:28:27 2016 New Revision: 299924 URL: https://svnweb.freebsd.org/changeset/base/299924 Log: sfxge(4): cleanup: remove misnamed function declaration Submitted by: Richard Houldsworth Sponsored by: Solarflare Communications, Inc. MFC after: 1

  1   2   >