svn commit: r302483 - head/sys/dev/ntb/ntb_hw

2016-07-09 Thread Alexander Motin
Author: mav Date: Sat Jul 9 09:47:11 2016 New Revision: 302483 URL: https://svnweb.freebsd.org/changeset/base/302483 Log: Remove some dead code found by Clang static analyzer. Modified: head/sys/dev/ntb/ntb_hw/ntb_hw.c Modified: head/sys/dev/ntb/ntb_hw/ntb_hw.c

svn commit: r302486 - head/sys/dev/ntb

2016-07-09 Thread Alexander Motin
Author: mav Date: Sat Jul 9 11:36:09 2016 New Revision: 302486 URL: https://svnweb.freebsd.org/changeset/base/302486 Log: Fix operation with multiple qps. Modified: head/sys/dev/ntb/ntb_transport.c Modified: head/sys/dev/ntb/ntb_transport.c

svn commit: r302495 - in head/sys/dev/ntb: . if_ntb

2016-07-09 Thread Alexander Motin
Author: mav Date: Sat Jul 9 12:00:04 2016 New Revision: 302495 URL: https://svnweb.freebsd.org/changeset/base/302495 Log: Improve memory allocation errors handling on receive. Modified: head/sys/dev/ntb/if_ntb/if_ntb.c head/sys/dev/ntb/ntb_transport.c Modified:

svn commit: r302489 - head/sys/dev/ntb

2016-07-09 Thread Alexander Motin
Author: mav Date: Sat Jul 9 11:45:18 2016 New Revision: 302489 URL: https://svnweb.freebsd.org/changeset/base/302489 Log: Remove rx_completion_task taskqueue. It is not needed after RX lock removed in previous commit. Modified: head/sys/dev/ntb/ntb_transport.c Modified:

svn commit: r302484 - in head/sys: conf dev/ntb dev/ntb/if_ntb dev/ntb/ntb_hw modules/ntb modules/ntb/ntb modules/ntb/ntb_hw modules/ntb/ntb_transport

2016-07-09 Thread Alexander Motin
Author: mav Date: Sat Jul 9 11:20:42 2016 New Revision: 302484 URL: https://svnweb.freebsd.org/changeset/base/302484 Log: NewBus'ify NTB subsystem. This follows NTB subsystem modularization in Linux, tuning it to FreeBSD native NewBus interfaces. This change allows to support different

svn commit: r302490 - head/sys/dev/ntb

2016-07-09 Thread Alexander Motin
Author: mav Date: Sat Jul 9 11:46:32 2016 New Revision: 302490 URL: https://svnweb.freebsd.org/changeset/base/302490 Log: Create separate RX taskqueue for each qp. Modified: head/sys/dev/ntb/ntb_transport.c Modified: head/sys/dev/ntb/ntb_transport.c

svn commit: r302491 - head/sys/dev/ntb/ntb_hw

2016-07-09 Thread Alexander Motin
Author: mav Date: Sat Jul 9 11:47:52 2016 New Revision: 302491 URL: https://svnweb.freebsd.org/changeset/base/302491 Log: Switch ctx_lock from mutex to rmlock. It is odd idea to serialize different MSI-X vectors. Use of rmlocks here allows them to execute in parallel, but still

svn commit: r302496 - head/sys/dev/ntb/if_ntb

2016-07-09 Thread Alexander Motin
Author: mav Date: Sat Jul 9 12:10:08 2016 New Revision: 302496 URL: https://svnweb.freebsd.org/changeset/base/302496 Log: Rewrite if_ntb to use modern interface KPIs and features. It includes: link state, if_transmit, buf_ring, multiple queues, bpf, etc. Sponsored by: iXsystems, Inc.

svn commit: r302482 - head/sys/dev/ntb/ntb_hw

2016-07-09 Thread Alexander Motin
Author: mav Date: Sat Jul 9 09:34:24 2016 New Revision: 302482 URL: https://svnweb.freebsd.org/changeset/base/302482 Log: Fix NTB_SDOORBELL_LOCKUP workaround. Since SBARxSZ register can be write-once, it can be unusable for disabling the SBAR. For such case also set SBARxBASE to zero

svn commit: r302487 - head/sys/dev/ntb

2016-07-09 Thread Alexander Motin
Author: mav Date: Sat Jul 9 11:40:59 2016 New Revision: 302487 URL: https://svnweb.freebsd.org/changeset/base/302487 Log: Reduce code divergence from Linux, preparing for DMA support. Modified: head/sys/dev/ntb/ntb_transport.c Modified: head/sys/dev/ntb/ntb_transport.c

svn commit: r302485 - head/share/misc

2016-07-09 Thread Tobias C. Berner
Author: tcberner (ports committer) Date: Sat Jul 9 11:22:11 2016 New Revision: 302485 URL: https://svnweb.freebsd.org/changeset/base/302485 Log: Add myself (tcberner) as ports committer, and update mentor/mentee relationships. Approved by: rakuco (mentor) Modified:

svn commit: r302488 - head/sys/dev/ntb

2016-07-09 Thread Alexander Motin
Author: mav Date: Sat Jul 9 11:43:51 2016 New Revision: 302488 URL: https://svnweb.freebsd.org/changeset/base/302488 Log: Remove unneeded RX lock, and make TX lock per-qp. Modified: head/sys/dev/ntb/ntb_transport.c Modified: head/sys/dev/ntb/ntb_transport.c

svn commit: r302493 - in head/sys/dev/ntb: . ntb_hw

2016-07-09 Thread Alexander Motin
Author: mav Date: Sat Jul 9 11:57:21 2016 New Revision: 302493 URL: https://svnweb.freebsd.org/changeset/base/302493 Log: Reimplement doorbell register emulation for NTB_SB01BASE_LOCKUP. This allows at least first three doorbells to work very close to normal hardware, properly signaling

svn commit: r302481 - head/usr.bin/mkcsmapper

2016-07-09 Thread Baptiste Daroussin
Author: bapt Date: Sat Jul 9 06:52:55 2016 New Revision: 302481 URL: https://svnweb.freebsd.org/changeset/base/302481 Log: Revert the change from errx/strerror to errc to appease gcc 4.2 Modified: head/usr.bin/mkcsmapper/yacc.y Modified: head/usr.bin/mkcsmapper/yacc.y

svn commit: r302492 - head/sys/dev/ntb

2016-07-09 Thread Alexander Motin
Author: mav Date: Sat Jul 9 11:48:57 2016 New Revision: 302492 URL: https://svnweb.freebsd.org/changeset/base/302492 Log: Bring some more order into link and qp state handling. Do not touch scratchpad registers until link is reported up. Mask and do not handle doorbell events until

svn commit: r302494 - in head/sys/dev/ntb: . if_ntb

2016-07-09 Thread Alexander Motin
Author: mav Date: Sat Jul 9 11:58:59 2016 New Revision: 302494 URL: https://svnweb.freebsd.org/changeset/base/302494 Log: Synchronize MTU code with Linux. It is mandatory for transport compatibility. Modified: head/sys/dev/ntb/if_ntb/if_ntb.c head/sys/dev/ntb/ntb_transport.c

svn commit: r302497 - head/sys/netpfil/pf

2016-07-09 Thread Kristof Provost
Author: kp Date: Sat Jul 9 12:17:01 2016 New Revision: 302497 URL: https://svnweb.freebsd.org/changeset/base/302497 Log: pf: Map hook returns onto the correct error values pf returns PF_PASS, PF_DROP, ... in the netpfil hooks, but the hook callers expect to get E error codes. Map the

svn commit: r302500 - head/bin/dd

2016-07-09 Thread Conrad E. Meyer
Author: cem Date: Sat Jul 9 17:11:54 2016 New Revision: 302500 URL: https://svnweb.freebsd.org/changeset/base/302500 Log: dd(1): Enable access to SIZE_T_MAX character devices On machines where SIZE_T_MAX exceeds OFF_MAX (signed 64-bit), permit seeking character devices to negative off_t

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

2016-07-09 Thread Ian Lepore
Author: ian Date: Sat Jul 9 20:42:57 2016 New Revision: 302505 URL: https://svnweb.freebsd.org/changeset/base/302505 Log: Consolidate debugging options from all arm kernel configs to std.arm[v6]. Modified: head/sys/arm/conf/A10 head/sys/arm/conf/ALLWINNER head/sys/arm/conf/ALPINE

svn commit: r302502 - in head/sys/arm: lpc samsung/exynos

2016-07-09 Thread Ian Lepore
Author: ian Date: Sat Jul 9 18:43:15 2016 New Revision: 302502 URL: https://svnweb.freebsd.org/changeset/base/302502 Log: Correct syntax errors that only show up when compiled with INVARIANTS. Modified: head/sys/arm/lpc/if_lpe.c head/sys/arm/samsung/exynos/chrome_kb.c Modified:

svn commit: r302503 - head/usr.sbin/ctld

2016-07-09 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Jul 9 20:01:07 2016 New Revision: 302503 URL: https://svnweb.freebsd.org/changeset/base/302503 Log: Fix ctld(8) to not exit when reloading configuration with invalid initiator-portal clause. MFC after:3 days Modified: head/usr.sbin/ctld/ctld.c Modified:

svn commit: r302504 - head/usr.sbin/bhyve

2016-07-09 Thread Alexander Motin
Author: mav Date: Sat Jul 9 20:41:59 2016 New Revision: 302504 URL: https://svnweb.freebsd.org/changeset/base/302504 Log: Add emulation for Intel e1000 (e82545) network adapter. The code was successfully tested with FreeBSD, Linux, Solaris and Windows guests. This interface is

svn commit: r302499 - head/sys/dev/ntb/if_ntb

2016-07-09 Thread Alexander Motin
Author: mav Date: Sat Jul 9 14:59:16 2016 New Revision: 302499 URL: https://svnweb.freebsd.org/changeset/base/302499 Log: Improve checksum "offload" support. For compatibility reasons make driver not report any checksum offload by default, since there is indeed none. But if

svn commit: r302498 - head/sys/arm/nvidia

2016-07-09 Thread Andrew Turner
Author: andrew Date: Sat Jul 9 13:27:14 2016 New Revision: 302498 URL: https://svnweb.freebsd.org/changeset/base/302498 Log: Remove an unneeded call to fdt_get_unit, the return value is unused. MFC after:1 month Sponsored by: ABT Systems Ltd Modified:

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

2016-07-09 Thread Ian Lepore
Author: ian Date: Sat Jul 9 21:14:59 2016 New Revision: 302506 URL: https://svnweb.freebsd.org/changeset/base/302506 Log: Remove HZ= from all armv6 configs, put HZ=1000 in std.armv6. All armv6 processors are plenty fast enough for HZ=1000. No changes are made for older arm systems,

svn commit: r302509 - head/sys/dev/bhnd/nvram

2016-07-09 Thread Landon J. Fuller
Author: landonf Date: Sun Jul 10 00:08:40 2016 New Revision: 302509 URL: https://svnweb.freebsd.org/changeset/base/302509 Log: Fix heap overflow in bhnd(4) SPROM parsing. The bus_region_* APIs accept the number of data items to be read, while the code was passing the total number of

svn commit: r302510 - head/sys/dev/ntb/ntb_hw

2016-07-09 Thread Alexander Motin
Author: mav Date: Sun Jul 10 01:09:16 2016 New Revision: 302510 URL: https://svnweb.freebsd.org/changeset/base/302510 Log: Simplify MSIX MW BAR xlat setup, and don't forget to unlock its limit. The last fixes SB01BASE_LOCKUP workaround after driver reload. Modified:

svn commit: r302508 - head/sys/dev/ntb/ntb_hw

2016-07-09 Thread Alexander Motin
Author: mav Date: Sat Jul 9 23:22:44 2016 New Revision: 302508 URL: https://svnweb.freebsd.org/changeset/base/302508 Log: Disable SB01BASE_LOCKUP workaround when split BARs disabled. For some reason hack with sending MSI-X interrupts by writing to remote LAPIC memory works only for

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

2016-07-09 Thread Mark Johnston
Author: markj Date: Sat Jul 9 22:41:21 2016 New Revision: 302507 URL: https://svnweb.freebsd.org/changeset/base/302507 Log: Avoid truncating the return value of DTrace predicates. Predicates are DIF objects whose return value is compared with zero to determine whether the corresponding

svn commit: r302511 - head/usr.bin/mail

2016-07-09 Thread Pedro F. Giffuni
Author: pfg Date: Sun Jul 10 02:46:20 2016 New Revision: 302511 URL: https://svnweb.freebsd.org/changeset/base/302511 Log: mail(1): Invert calloc(3) argument order. calloc(3) is documented to have first a number and then a size. Obtained from:OpenBSD (through NetBSD)

svn commit: r302512 - in head/lib/libc: gen locale regex stdio

2016-07-09 Thread Andrey A. Chernov
Author: ache Date: Sun Jul 10 03:49:38 2016 New Revision: 302512 URL: https://svnweb.freebsd.org/changeset/base/302512 Log: Remove broken support for collation in [a-z] type ranges. Only first 256 wide chars are considered currently, all other are just dropped from the range. Proper

svn commit: r302513 - stable/10/sys/vm

2016-07-09 Thread Konstantin Belousov
Author: kib Date: Sun Jul 10 04:33:16 2016 New Revision: 302513 URL: https://svnweb.freebsd.org/changeset/base/302513 Log: MFC r302236: Handle the vm_fault() handler race with the vm_object_collapse() sleepable scan. MFC r302317: Change type of the 'dead' variable to boolean.