svn commit: r304338 - stable/10/sys/dev/e1000

2016-08-18 Thread Sean Bruno
Author: sbruno Date: Thu Aug 18 07:32:02 2016 New Revision: 304338 URL: https://svnweb.freebsd.org/changeset/base/304338 Log: MFC r304149 e1000: Add support for Kaby Lake IDs Fixup some errors when transitioning to/from low power states. Modified: stable/10/sys/dev/e1000/e1000_api.

svn commit: r304375 - stable/10/sys/dev/ntb/if_ntb

2016-08-18 Thread Alexander Motin
Author: mav Date: Thu Aug 18 10:23:51 2016 New Revision: 304375 URL: https://svnweb.freebsd.org/changeset/base/304375 Log: MFC r302014: Fix if_ntb interface setup to include IFF_MULTICAST. This allows IPv6 link local addresses (and other IPv6 functionality) to work. Modified: stable/10/s

svn commit: r304376 - stable/10/sys/dev/ntb/ntb_hw

2016-08-18 Thread Alexander Motin
Author: mav Date: Thu Aug 18 10:24:31 2016 New Revision: 304376 URL: https://svnweb.freebsd.org/changeset/base/304376 Log: MFC r302482: 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 SBARxBA

svn commit: r304377 - stable/10/sys/dev/ntb/ntb_hw

2016-08-18 Thread Alexander Motin
Author: mav Date: Thu Aug 18 10:25:07 2016 New Revision: 304377 URL: https://svnweb.freebsd.org/changeset/base/304377 Log: MFC r302483: Remove some dead code found by Clang static analyzer. Modified: stable/10/sys/dev/ntb/ntb_hw/ntb_hw.c Directory Properties: stable/10/ (props changed) M

svn commit: r304380 - in stable/10/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-08-18 Thread Alexander Motin
Author: mav Date: Thu Aug 18 10:39:00 2016 New Revision: 304380 URL: https://svnweb.freebsd.org/changeset/base/304380 Log: MFC r302484: NewBus'ify NTB subsystem. This follows NTB subsystem modularization in Linux, tuning it to FreeBSD native NewBus interfaces. This change allows to suppo

svn commit: r304381 - stable/10/sys/dev/ntb

2016-08-18 Thread Alexander Motin
Author: mav Date: Thu Aug 18 10:39:42 2016 New Revision: 304381 URL: https://svnweb.freebsd.org/changeset/base/304381 Log: MFC r302486: Fix operation with multiple qps. Modified: stable/10/sys/dev/ntb/ntb_transport.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sy

svn commit: r304382 - stable/10/sys/dev/ntb

2016-08-18 Thread Alexander Motin
Author: mav Date: Thu Aug 18 10:40:18 2016 New Revision: 304382 URL: https://svnweb.freebsd.org/changeset/base/304382 Log: MFC r302487: Reduce code divergence from Linux, preparing for DMA support. Modified: stable/10/sys/dev/ntb/ntb_transport.c Directory Properties: stable/10/ (props cha

svn commit: r304383 - stable/10/sys/dev/ntb

2016-08-18 Thread Alexander Motin
Author: mav Date: Thu Aug 18 10:40:59 2016 New Revision: 304383 URL: https://svnweb.freebsd.org/changeset/base/304383 Log: MFC r302488: Remove unneeded RX lock, and make TX lock per-qp. Modified: stable/10/sys/dev/ntb/ntb_transport.c Directory Properties: stable/10/ (props changed) Modif

svn commit: r304384 - stable/10/sys/dev/ntb

2016-08-18 Thread Alexander Motin
Author: mav Date: Thu Aug 18 10:41:34 2016 New Revision: 304384 URL: https://svnweb.freebsd.org/changeset/base/304384 Log: MFC r302489: Remove rx_completion_task taskqueue. It is not needed after RX lock removed in previous commit. Modified: stable/10/sys/dev/ntb/ntb_transport.c Director

svn commit: r304385 - stable/10/sys/dev/ntb

2016-08-18 Thread Alexander Motin
Author: mav Date: Thu Aug 18 10:42:12 2016 New Revision: 304385 URL: https://svnweb.freebsd.org/changeset/base/304385 Log: MFC r302490: Create separate RX taskqueue for each qp. Modified: stable/10/sys/dev/ntb/ntb_transport.c Directory Properties: stable/10/ (props changed) Modified: sta

svn commit: r304386 - stable/10/sys/dev/ntb/ntb_hw

2016-08-18 Thread Alexander Motin
Author: mav Date: Thu Aug 18 10:42:48 2016 New Revision: 304386 URL: https://svnweb.freebsd.org/changeset/base/304386 Log: MFC r302491: 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 s

svn commit: r304387 - stable/10/sys/dev/ntb

2016-08-18 Thread Alexander Motin
Author: mav Date: Thu Aug 18 10:43:23 2016 New Revision: 304387 URL: https://svnweb.freebsd.org/changeset/base/304387 Log: MFC r302492: 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 event

svn commit: r304388 - in stable/10/sys/dev/ntb: . ntb_hw

2016-08-18 Thread Alexander Motin
Author: mav Date: Thu Aug 18 10:43:59 2016 New Revision: 304388 URL: https://svnweb.freebsd.org/changeset/base/304388 Log: MFC r302493: Reimplement doorbell register emulation for NTB_SB01BASE_LOCKUP. This allows at least first three doorbells to work very close to normal hardware, proper

svn commit: r304389 - in stable/10/sys/dev/ntb: . if_ntb

2016-08-18 Thread Alexander Motin
Author: mav Date: Thu Aug 18 10:44:35 2016 New Revision: 304389 URL: https://svnweb.freebsd.org/changeset/base/304389 Log: MFC r302494: Synchronize MTU code with Linux. It is mandatory for transport compatibility. Modified: stable/10/sys/dev/ntb/if_ntb/if_ntb.c stable/10/sys/dev/ntb/nt

svn commit: r304390 - in stable/10/sys/dev/ntb: . if_ntb

2016-08-18 Thread Alexander Motin
Author: mav Date: Thu Aug 18 10:45:15 2016 New Revision: 304390 URL: https://svnweb.freebsd.org/changeset/base/304390 Log: MFC r302495: Improve memory allocation errors handling on receive. Modified: stable/10/sys/dev/ntb/if_ntb/if_ntb.c stable/10/sys/dev/ntb/ntb_transport.c Directory Prope

svn commit: r304391 - stable/10/sys/dev/ntb/if_ntb

2016-08-18 Thread Alexander Motin
Author: mav Date: Thu Aug 18 10:45:53 2016 New Revision: 304391 URL: https://svnweb.freebsd.org/changeset/base/304391 Log: MFC r302496: Rewrite if_ntb to use modern interface KPIs and features. It includes: link state, if_transmit, buf_ring, multiple queues, bpf, etc. Sponsored by: i

svn commit: r304392 - stable/10/sys/dev/ntb/if_ntb

2016-08-18 Thread Alexander Motin
Author: mav Date: Thu Aug 18 10:46:29 2016 New Revision: 304392 URL: https://svnweb.freebsd.org/changeset/base/304392 Log: MFC r302499: 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: r304393 - stable/10/sys/dev/ntb/if_ntb

2016-08-18 Thread Alexander Motin
Author: mav Date: Thu Aug 18 10:47:22 2016 New Revision: 304393 URL: https://svnweb.freebsd.org/changeset/base/304393 Log: Direct commit to stable/10 to fix build without newer interface KPIs. Modified: stable/10/sys/dev/ntb/if_ntb/if_ntb.c Modified: stable/10/sys/dev/ntb/if_ntb/if_ntb.c ===

svn commit: r304394 - stable/10/sys/dev/ntb/ntb_hw

2016-08-18 Thread Alexander Motin
Author: mav Date: Thu Aug 18 10:50:27 2016 New Revision: 304394 URL: https://svnweb.freebsd.org/changeset/base/304394 Log: MFC r302508: Disable SB01BASE_LOCKUP workaround when split BARs disabled. For some reason hack with sending MSI-X interrupts by writing to remote LAPIC memory works o

svn commit: r304396 - stable/10/sys/dev/ntb/ntb_hw

2016-08-18 Thread Alexander Motin
Author: mav Date: Thu Aug 18 10:51:18 2016 New Revision: 304396 URL: https://svnweb.freebsd.org/changeset/base/304396 Log: MFC r302510: Simplify MSIX MW BAR xlat setup, and don't forget to unlock its limit. The last fixes SB01BASE_LOCKUP workaround after driver reload. Modified: stable

svn commit: r304397 - stable/10/sys/dev/ntb

2016-08-18 Thread Alexander Motin
Author: mav Date: Thu Aug 18 10:51:53 2016 New Revision: 304397 URL: https://svnweb.freebsd.org/changeset/base/304397 Log: MFC r302529: Remove callout_reset(link_work) from ntb_transport_attach(). At that point link is quite likely not established yet, so messing with scratch registers is

svn commit: r304398 - stable/10/sys/dev/ntb/ntb_hw

2016-08-18 Thread Alexander Motin
Author: mav Date: Thu Aug 18 10:52:29 2016 New Revision: 304398 URL: https://svnweb.freebsd.org/changeset/base/304398 Log: MFC r302530: Fix wrong copy/paste in r302510. Modified: stable/10/sys/dev/ntb/ntb_hw/ntb_hw.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sy

svn commit: r304399 - stable/10/sys/dev/ntb/ntb_hw

2016-08-18 Thread Alexander Motin
Author: mav Date: Thu Aug 18 10:53:03 2016 New Revision: 304399 URL: https://svnweb.freebsd.org/changeset/base/304399 Log: MFC r302531: Revert odd change, setting limit registers before base. I don't know what errata is mentioned there, I was unable to find it, but setting limit before th

svn commit: r304400 - in stable/10/sys/dev/ntb: . ntb_hw

2016-08-18 Thread Alexander Motin
Author: mav Date: Thu Aug 18 10:53:44 2016 New Revision: 304400 URL: https://svnweb.freebsd.org/changeset/base/304400 Log: MFC r302622 (by sephe): ntb: Fix LINT Modified: stable/10/sys/dev/ntb/ntb_hw/ntb_hw.c stable/10/sys/dev/ntb/ntb_transport.c Directory Properties: stable/10/ (props

svn commit: r304401 - stable/10/sys/dev/ntb/ntb_hw

2016-08-18 Thread Alexander Motin
Author: mav Date: Thu Aug 18 10:54:21 2016 New Revision: 304401 URL: https://svnweb.freebsd.org/changeset/base/304401 Log: MFC r303266: Postpone ntb_get_msix_info() till we need to negotiate MSIX. Calling it earlier increases the window when MSIX info may change. This change does not solv

svn commit: r304403 - stable/10/share/man/man4

2016-08-18 Thread Alexander Motin
Author: mav Date: Thu Aug 18 10:57:18 2016 New Revision: 304403 URL: https://svnweb.freebsd.org/changeset/base/304403 Log: MFC r302520: Replace NTB man page with more detailed and up to date. Sponsored by: iXsystems, Inc. Added: stable/10/share/man/man4/if_ntb.4 - copied unchanged

svn commit: r304404 - in stable/10: share/man/man4 sys/dev/ntb sys/dev/ntb/ntb_hw

2016-08-18 Thread Alexander Motin
Author: mav Date: Thu Aug 18 10:59:12 2016 New Revision: 304404 URL: https://svnweb.freebsd.org/changeset/base/304404 Log: MFC r303429, r303437, r303551: Once more refactor KPI between NTB hardware and consumers. New design allows hardware resources to be split between several consumers.

svn commit: r304405 - in stable/10: share/man/man4 sys/dev/ntb sys/dev/ntb/if_ntb

2016-08-18 Thread Alexander Motin
Author: mav Date: Thu Aug 18 11:00:48 2016 New Revision: 304405 URL: https://svnweb.freebsd.org/changeset/base/304405 Log: MFC r303494: Once more refactor KPI between ntb_transport(4) and if_ntb(4). New design allows to attach multiple consumers to ntb_transport(4) instance. Previous desi

svn commit: r304406 - stable/10/sys/dev/ntb/ntb_hw

2016-08-18 Thread Alexander Motin
Author: mav Date: Thu Aug 18 11:01:26 2016 New Revision: 304406 URL: https://svnweb.freebsd.org/changeset/base/304406 Log: MFC r303510: Clear scratchpad after MSIX negotiation to not leak garbage. Modified: stable/10/sys/dev/ntb/ntb_hw/ntb_hw.c Directory Properties: stable/10/ (props chan

svn commit: r304407 - stable/10/sys/dev/ntb

2016-08-18 Thread Alexander Motin
Author: mav Date: Thu Aug 18 11:02:01 2016 New Revision: 304407 URL: https://svnweb.freebsd.org/changeset/base/304407 Log: MFC r303514: Fix NTBT_QP_LINKS negotiation. I believe it never worked correctly for more the one queue even in Linux. This fixes case when one of consumer drivers is

svn commit: r304408 - stable/10/sys/dev/ntb/if_ntb

2016-08-18 Thread Alexander Motin
Author: mav Date: Thu Aug 18 11:02:42 2016 New Revision: 304408 URL: https://svnweb.freebsd.org/changeset/base/304408 Log: MFC r303553: Make MAC address generation more random. 'ticks' approach does not work at boot time. Modified: stable/10/sys/dev/ntb/if_ntb/if_ntb.c Directory Properti

svn commit: r304409 - stable/10/sys/dev/ntb/ntb_hw

2016-08-18 Thread Alexander Motin
Author: mav Date: Thu Aug 18 11:03:21 2016 New Revision: 304409 URL: https://svnweb.freebsd.org/changeset/base/304409 Log: MFC r303554: Block MSIX negotiation until SMP started and IRQ reshuffled. Modified: stable/10/sys/dev/ntb/ntb_hw/ntb_hw.c Directory Properties: stable/10/ (props chan

svn commit: r304410 - stable/10/sys/dev/ntb/ntb_hw

2016-08-18 Thread Alexander Motin
Author: mav Date: Thu Aug 18 11:09:43 2016 New Revision: 304410 URL: https://svnweb.freebsd.org/changeset/base/304410 Log: MFC r303561: Wrap previous MSIX workaround into #ifndef EARLY_AP_STARTUP. With EARLY_AP_STARTUP we can successfully negotiate MSIX earlier. Modified: stable/10/sys/d

svn commit: r304413 - stable/10/sys/dev/ahci

2016-08-18 Thread Alexander Motin
Author: mav Date: Thu Aug 18 11:17:01 2016 New Revision: 304413 URL: https://svnweb.freebsd.org/changeset/base/304413 Log: MFC r302946: Do not consider the last interrupt shared if there are enough interrupts for all channels. Modified: stable/10/sys/dev/ahci/ahci.c Directory Properties:

svn commit: r304414 - stable/10/sys/dev/ahci

2016-08-18 Thread Alexander Motin
Author: mav Date: Thu Aug 18 11:17:36 2016 New Revision: 304414 URL: https://svnweb.freebsd.org/changeset/base/304414 Log: MFC r302947: In AHCI_IRQ_MODE_AFTER mode do not clear interrupts below. This is probably a NOP change since IS register is not activery used for interrupts below the

svn commit: r304416 - stable/10/sys/dev/isp

2016-08-18 Thread Alexander Motin
Author: mav Date: Thu Aug 18 11:37:38 2016 New Revision: 304416 URL: https://svnweb.freebsd.org/changeset/base/304416 Log: MFC r300222: Fix delaying requests to unknown virtual ports 2s after init. This code was originally implemented 7 years ago, but never really worked due to trivial er

svn commit: r304417 - in stable/10/sys: cam cam/ctl dev/isp

2016-08-18 Thread Alexander Motin
Author: mav Date: Thu Aug 18 11:38:47 2016 New Revision: 304417 URL: https://svnweb.freebsd.org/changeset/base/304417 Log: MFC r300293: Pass task management response information from CTL through CAM to isp(4), utilizing previously unused arg field of struct ccb_notify_acknowledge. This

svn commit: r304418 - stable/10/sys/dev/isp

2016-08-18 Thread Alexander Motin
Author: mav Date: Thu Aug 18 11:39:30 2016 New Revision: 304418 URL: https://svnweb.freebsd.org/changeset/base/304418 Log: MFC r300296: Pass proper for 23xx arguments to isp_endcmd(). Modified: stable/10/sys/dev/isp/isp_freebsd.c Directory Properties: stable/10/ (props changed) Modified:

svn commit: r304420 - stable/10/usr.sbin/bhyve

2016-08-18 Thread Alexander Motin
Author: mav Date: Thu Aug 18 11:45:02 2016 New Revision: 304420 URL: https://svnweb.freebsd.org/changeset/base/304420 Log: MFC r302459: Allow AHCI controller to support up to 32 arbitrary devices. While old syntax is still supported, new syntax looks like this: -s 3,ahci,hd:/dev/zvol/X

svn commit: r304421 - stable/10/usr.sbin/bhyve

2016-08-18 Thread Alexander Motin
Author: mav Date: Thu Aug 18 11:45:46 2016 New Revision: 304421 URL: https://svnweb.freebsd.org/changeset/base/304421 Log: MFC r302460: Add emulation for multiple (up to 16) MSI vectors for AHCI. It was useless before, but may improve performance now if multiple devices are configured and

svn commit: r304425 - stable/10/usr.sbin/bhyve

2016-08-18 Thread Alexander Motin
Author: mav Date: Thu Aug 18 11:56:07 2016 New Revision: 304425 URL: https://svnweb.freebsd.org/changeset/base/304425 Log: MFC r302504, r302666, r302668, r302932, r302933: Add emulation for Intel e1000 (e82545) network adapter. The code was successfully tested with FreeBSD, Linux, Solaris

svn commit: r304427 - stable/10/sys/net

2016-08-18 Thread Alexander Motin
Author: mav Date: Thu Aug 18 12:09:20 2016 New Revision: 304427 URL: https://svnweb.freebsd.org/changeset/base/304427 Log: MFC r303009: Negotiate/disable TXCSUM_IPV6 same as TXCSUM. Modified: stable/10/sys/net/if_bridge.c Directory Properties: stable/10/ (props changed) Modified: stable/