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

2016-06-14 Thread Alexander Motin
Author: mav Date: Wed Jun 15 01:39:43 2016 New Revision: 301902 URL: https://svnweb.freebsd.org/changeset/base/301902 Log: MFC r300610: Re-enable write combining, disabled by default at r295486. if_ntb(4) strongly benefits from WC, improving throughput from 350Mbit/s to 8-10Gbit/s on my t

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

2016-06-14 Thread Alexander Motin
Author: mav Date: Wed Jun 15 01:41:43 2016 New Revision: 301903 URL: https://svnweb.freebsd.org/changeset/base/301903 Log: MFC r301292: When negotiating MSIX parameters, give other head time to see our NTB_MSIX_RECEIVED status, before making upper layers overwrite it. This is not complete

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

2016-06-14 Thread Alexander Motin
Author: mav Date: Wed Jun 15 01:42:53 2016 New Revision: 301904 URL: https://svnweb.freebsd.org/changeset/base/301904 Log: MFC r301293: When negotiating NTB_SB01BASE_LOCKUP workaround, don't try to limit the BAR size to 1MB. According to Xeon v3 specifications and my tests, that size regi

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

2016-07-13 Thread Alexander Motin
Author: mav Date: Thu Jul 14 00:26:57 2016 New Revision: 302791 URL: https://svnweb.freebsd.org/changeset/base/302791 Log: MFC r302402: Fix ahci(4) driver attach to controller with 32 ports. Incorrect sign expansion in variables that supposed to be a bit fields caused infinite loop. Fixi

svn commit: r303137 - stable/10/sys/dev/vmware/vmxnet3

2016-07-21 Thread Alexander Motin
Author: mav Date: Thu Jul 21 11:41:27 2016 New Revision: 303137 URL: https://svnweb.freebsd.org/changeset/base/303137 Log: MFC r303000: Update if_hwassist when interface options are changed. In particular for me this fixes checksum problem when if_bridge attached to the interface requests

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

2016-07-21 Thread Alexander Motin
Author: mav Date: Thu Jul 21 11:58:47 2016 New Revision: 303139 URL: https://svnweb.freebsd.org/changeset/base/303139 Log: MFC r302957: Fix NCQ TRIM emulation. When this code was written, there was no guests using it to test. Modified: stable/10/usr.sbin/bhyve/pci_ahci.c Directory Proper

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
v/ntb/if_ntb/if_ntb.c Thu Aug 18 10:39:00 2016 (r304380) @@ -1,4 +1,5 @@ /*- + * Copyright (c) 2016 Alexander Motin * Copyright (C) 2013 Intel Corporation * Copyright (C) 2015 EMC Corporation * All rights reserved. @@ -25,25 +26,28 @@ * SUCH DAMAGE. */ +/* + * Th

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
/man/man4/if_ntb.4) @@ -0,0 +1,86 @@ +.\" +.\" Copyright (c) 2016 Alexander Motin +.\" All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\"

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
_ntb.num_queues Number of transport queues to use per interface. -Default is 1. +Default is unlimited. .El .Sh DESCRIPTION The @@ -84,3 +84,6 @@ Later improvements were done by .An Conrad E. Meyer Aq Mt c...@freebsd.org and .An Alexander Motin Aq Mt m...@freebsd.org . +.Sh BUGS +Linux supports onl

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
(r304419) +++ stable/10/usr.sbin/bhyve/pci_ahci.c Thu Aug 18 11:45:02 2016 (r304420) @@ -1,5 +1,6 @@ /*- * Copyright (c) 2013 Zhixiang Yu + * Copyright (c) 2015-2016 Alexander Motin * All rights reserved. * * Redistribution and use in source and binary forms, with or w

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/

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

2016-08-21 Thread Alexander Motin
Author: mav Date: Sun Aug 21 17:57:32 2016 New Revision: 304569 URL: https://svnweb.freebsd.org/changeset/base/304569 Log: MFC r298355: Don't use SYSDIR to avoid conflicts with existing usage. Also, use SRCTOP to locate the top of the source tree instead of a relative path. PR: 2088

svn commit: r304737 - stable/10/sys/cam/ctl

2016-08-24 Thread Alexander Motin
Author: mav Date: Wed Aug 24 07:50:28 2016 New Revision: 304737 URL: https://svnweb.freebsd.org/changeset/base/304737 Log: Fix HA mode configuration on FreeBSD 10.x. This is direct commit, compensating CTLFLAG_RDTUN difference between FreeBSD 10.x and 11.x branches. Modified: stable/10

svn commit: r305118 - stable/10/sbin/camcontrol

2016-08-31 Thread Alexander Motin
Author: mav Date: Wed Aug 31 09:50:02 2016 New Revision: 305118 URL: https://svnweb.freebsd.org/changeset/base/305118 Log: MFC r304751: Fix minor copy/paste bug. Modified: stable/10/sbin/camcontrol/camcontrol.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sbin/ca

svn commit: r305765 - stable/10/sys/cddl/compat/opensolaris/sys

2016-09-13 Thread Alexander Motin
Author: mav Date: Tue Sep 13 09:25:38 2016 New Revision: 305765 URL: https://svnweb.freebsd.org/changeset/base/305765 Log: MFC r305679: Switch random_get_pseudo_bytes() shim to arc4rand(). Our shim for Solaris random_get_bytes() uses read_random(), that looks reasonable, since it guaranti

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

2016-09-14 Thread Alexander Motin
Author: mav Date: Wed Sep 14 09:11:03 2016 New Revision: 305798 URL: https://svnweb.freebsd.org/changeset/base/305798 Log: MFC r305536: Fix channel initialization in FBS mode. Due to reading initialized variable, FIS receive area was always allocated as 256 bytes, suitable for command-bas

svn commit: r305800 - stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2016-09-14 Thread Alexander Motin
Author: mav Date: Wed Sep 14 09:13:17 2016 New Revision: 305800 URL: https://svnweb.freebsd.org/changeset/base/305800 Log: MFC r305123: Fix kernel panic when inheriting properties without default. There are two writable hidden properties "iscsioptions" and "stmf_sbd_lu", that have no defa

svn commit: r306154 - stable/10/sys/cam/scsi

2016-09-21 Thread Alexander Motin
Author: mav Date: Thu Sep 22 03:33:46 2016 New Revision: 306154 URL: https://svnweb.freebsd.org/changeset/base/306154 Log: MFC r305608: "ATA pass through information available" is not an error. Modified: stable/10/sys/cam/scsi/scsi_all.c Directory Properties: stable/10/ (props changed) M

svn commit: r306155 - stable/10/sys/cam/scsi

2016-09-21 Thread Alexander Motin
Author: mav Date: Thu Sep 22 03:34:26 2016 New Revision: 306155 URL: https://svnweb.freebsd.org/changeset/base/306155 Log: MFC r305609: "Extended copy information available" is not an error either. Modified: stable/10/sys/cam/scsi/scsi_all.c Directory Properties: stable/10/ (props changed

svn commit: r306156 - stable/10/sys/cam

2016-09-21 Thread Alexander Motin
Author: mav Date: Thu Sep 22 03:35:02 2016 New Revision: 306156 URL: https://svnweb.freebsd.org/changeset/base/306156 Log: MFC r305610: Don't report to devd statuses that CAM doesn't consider errors. Some statuses, such as "ATA pass through information available", are part part of absolut

svn commit: r306750 - stable/10/sys/cam

2016-10-05 Thread Alexander Motin
Author: mav Date: Thu Oct 6 03:20:47 2016 New Revision: 306750 URL: https://svnweb.freebsd.org/changeset/base/306750 Log: Fix ABI compat shims for FreeBSD 9.0-9.1 binaries (CAM_VERSION 0x16). This is a direct commit to stable/10, inspired by some commits to later branches. Modified: s

svn commit: r306765 - in stable/10/sys/geom: bde concat gate journal linux_lvm mirror mountver raid3 shsec stripe vinum virstor

2016-10-06 Thread Alexander Motin
Author: mav Date: Thu Oct 6 15:36:13 2016 New Revision: 306765 URL: https://svnweb.freebsd.org/changeset/base/306765 Log: MFC r306279: Use g_wither_provider() where applicable. It is just a helper function combining G_PF_WITHER setting with g_orphan_provider(). Modified: stable/10/sys

svn commit: r306797 - stable/10/usr.sbin/sesutil

2016-10-06 Thread Alexander Motin
Author: mav Date: Fri Oct 7 01:33:03 2016 New Revision: 306797 URL: https://svnweb.freebsd.org/changeset/base/306797 Log: MFC r306528: Fix `sesutil fault` operation. Fault and ident bits are located in different control bytes, so previous code was just doing nothing, writing into reserve

svn commit: r307052 - stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2016-10-11 Thread Alexander Motin
Author: mav Date: Tue Oct 11 16:46:16 2016 New Revision: 307052 URL: https://svnweb.freebsd.org/changeset/base/307052 Log: MFC r305193: MFV r302642: 6876 Stack corruption after importing a pool with a too-long name illumos/illumos-gate@c971037baa5d64dfecf6d87ed602fc3116ebec41 https://g

svn commit: r307053 - in stable/10: cddl/contrib/opensolaris/cmd/zfs cddl/contrib/opensolaris/lib/libzfs/common sys/cddl/contrib/opensolaris/uts/common/fs/zfs sys/cddl/contrib/opensolaris/uts/commo...

2016-10-11 Thread Alexander Motin
Author: mav Date: Tue Oct 11 16:47:21 2016 New Revision: 307053 URL: https://svnweb.freebsd.org/changeset/base/307053 Log: MFC r305195: MFV r302643: 6902 speed up listing of snapshots if requesting name only and sorting by name This was our change from the beginning, so just reduce the up

svn commit: r307054 - in stable/10/sys/cddl/contrib/opensolaris: common/zfs uts/common/fs/zfs uts/common/fs/zfs/sys

2016-10-11 Thread Alexander Motin
Author: mav Date: Tue Oct 11 16:48:12 2016 New Revision: 307054 URL: https://svnweb.freebsd.org/changeset/base/307054 Log: MFC r305197: MFV r302646: 6980 6902 causes zfs send to break due to 32-bit/64-bit struct mismatch illumos/illumos-gate@ea4a67f462de0a39a9adea8197bcdef849de5371 htt

svn commit: r307055 - in stable/10/sys/cddl/contrib/opensolaris/uts/common: fs/zfs sys/sysevent

2016-10-11 Thread Alexander Motin
Author: mav Date: Tue Oct 11 16:49:16 2016 New Revision: 307055 URL: https://svnweb.freebsd.org/changeset/base/307055 Log: MFC r305198: MFV r302647: 6922 Emit ESC_ZFS_VDEV_REMOVE_AUX after removing an aux device illumos/illumos-gate@63364b0ee2604783e7a55f842567768eafa4 https://gith

svn commit: r307056 - stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2016-10-11 Thread Alexander Motin
Author: mav Date: Tue Oct 11 16:50:45 2016 New Revision: 307056 URL: https://svnweb.freebsd.org/changeset/base/307056 Log: MFC r305199: MFV r302648: 7019 zfsdev_ioctl skips secpolicy when FKIOCTL is set Note that the bulk of the upstream change is not applicable to FreeBSD and the affect

svn commit: r307057 - in stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs: . sys

2016-10-11 Thread Alexander Motin
Author: mav Date: Tue Oct 11 16:52:57 2016 New Revision: 307057 URL: https://svnweb.freebsd.org/changeset/base/307057 Log: MFC r305200: MFV r302651: 7054 dmu_tx_hold_t should use refcount_t to track space illumos/illumos-gate@0c779ad424a92a84d1e07d47cab7f8009189202b https://github.com/

svn commit: r307058 - in stable/10: cddl/contrib/opensolaris/lib/libzfs/common sys/cddl/contrib/opensolaris/common/zfs

2016-10-11 Thread Alexander Motin
Author: mav Date: Tue Oct 11 16:53:50 2016 New Revision: 307058 URL: https://svnweb.freebsd.org/changeset/base/307058 Log: MFC r305207: MFV r302659: 6931 lib/libzfs: cleanup gcc warnings illumos/illumos-gate@88f61dee20b358671b1b643e9d1dbf220a1d69be https://github.com/illumos/illumos-gate

svn commit: r307116 - stable/10/cddl/contrib/opensolaris/lib/libzfs/common

2016-10-11 Thread Alexander Motin
Author: mav Date: Wed Oct 12 05:36:55 2016 New Revision: 307116 URL: https://svnweb.freebsd.org/changeset/base/307116 Log: MFC r305194: MFV r302642: 6876 Stack corruption after importing a pool with a too-long name illumos/illumos-gate@c971037baa5d64dfecf6d87ed602fc3116ebec41 https://g

svn commit: r307117 - stable/10/cddl/contrib/opensolaris/lib/libzfs/common

2016-10-11 Thread Alexander Motin
Author: mav Date: Wed Oct 12 05:37:54 2016 New Revision: 307117 URL: https://svnweb.freebsd.org/changeset/base/307117 Log: MFC r305201: MFV r302653: 6111 zfs send should ignore datasets created after the ending snapshot illumos/illumos-gate@4a20c933b148de8a1c1d3538391c64284e636653 http

svn commit: r307118 - stable/10/cddl/contrib/opensolaris/lib/libzfs/common

2016-10-11 Thread Alexander Motin
Author: mav Date: Wed Oct 12 05:38:44 2016 New Revision: 307118 URL: https://svnweb.freebsd.org/changeset/base/307118 Log: MFC r305202: MFV r302654: 6879 incorrect endianness swap for drr_spill.drr_length in libzfs_sendrecv.c illumos/illumos-gate@20fea7a47472aceb64d3ed48cc2a3ea268bc4795

svn commit: r307119 - stable/10/cddl/contrib/opensolaris/lib/libzfs/common

2016-10-11 Thread Alexander Motin
Author: mav Date: Wed Oct 12 05:39:29 2016 New Revision: 307119 URL: https://svnweb.freebsd.org/changeset/base/307119 Log: MFC r305203: MFV r302655: 6873 zfs_destroy_snaps_nvl leaks errlist illumos/illumos-gate@4cde22c2ffb907ca39d2ebd512812f7e5168 https://github.com/illumos/illumos-g

svn commit: r307120 - in stable/10/cddl/contrib/opensolaris: cmd/zfs lib/libzfs/common

2016-10-11 Thread Alexander Motin
Author: mav Date: Wed Oct 12 05:41:10 2016 New Revision: 307120 URL: https://svnweb.freebsd.org/changeset/base/307120 Log: MFC r305205: MFV r302657: 4521 zfstest is trying to execute evil "zfs unmount -a" illumos/illumos-gate@8808ac5dae118369991f158b6ab736cb2691ecde https://github.com/

svn commit: r307121 - in stable/10/cddl/contrib/opensolaris: cmd/zpool lib/libzfs/common

2016-10-11 Thread Alexander Motin
Author: mav Date: Wed Oct 12 05:42:00 2016 New Revision: 307121 URL: https://svnweb.freebsd.org/changeset/base/307121 Log: MFC r305206: MFV r302658: 6872 zfs libraries should not allow uninitialized variables illumos/illumos-gate@f83b46baf98d276f5f84fa84c8b461f412ac1f5e https://github.

svn commit: r307122 - in stable/10: cddl/contrib/opensolaris/cmd/zdb cddl/contrib/opensolaris/cmd/zfs cddl/contrib/opensolaris/cmd/zhack cddl/contrib/opensolaris/cmd/zpool cddl/contrib/opensolaris/...

2016-10-11 Thread Alexander Motin
Author: mav Date: Wed Oct 12 05:43:25 2016 New Revision: 307122 URL: https://svnweb.freebsd.org/changeset/base/307122 Log: MFC r305209: MFV r302660: 6314 buffer overflow in dsl_dataset_name illumos/illumos-gate@9adfa60d484ce2435f5af77cc99dcd4e692b6660 https://github.com/illumos/illumos-g

svn commit: r307123 - stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2016-10-11 Thread Alexander Motin
Author: mav Date: Wed Oct 12 05:44:12 2016 New Revision: 307123 URL: https://svnweb.freebsd.org/changeset/base/307123 Log: MFC r305210: MFV r302661: 7082 bptree_iterate() passes wrong args to zfs_dbgmsg() illumos/illumos-gate@10e67aa0db0823d5464aafdd681f3c966155c68e https://github.com/

svn commit: r307125 - stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2016-10-11 Thread Alexander Motin
Author: mav Date: Wed Oct 12 05:45:40 2016 New Revision: 307125 URL: https://svnweb.freebsd.org/changeset/base/307125 Log: MFC r305221: MFV r302992: 7071 lzc_snapshot does not fill in errlist on ENOENT illumos/illumos-gate@25f7d993adbfb3452ac4625b3791670746d35ae3 https://github.com/ill

svn commit: r307124 - in stable/10: cddl/contrib/opensolaris/lib/libnvpair sys/cddl/contrib/opensolaris/common/nvpair

2016-10-11 Thread Alexander Motin
Author: mav Date: Wed Oct 12 05:44:54 2016 New Revision: 307124 URL: https://svnweb.freebsd.org/changeset/base/307124 Log: MFC r305211: MFV r302662: 6447 handful of nvpair cleanups illumos/illumos-gate@759e89be359f2af635e4122d147df56bce948773 https://github.com/illumos/illumos-gate/commi

svn commit: r307126 - in stable/10/sys/cddl/contrib/opensolaris/uts/common: fs/zfs fs/zfs/sys sys/fs

2016-10-11 Thread Alexander Motin
Author: mav Date: Wed Oct 12 05:46:21 2016 New Revision: 307126 URL: https://svnweb.freebsd.org/changeset/base/307126 Log: MFC r305222: MFV r302993: 7104 increase indirect block size illumos/illumos-gate@4b5c8e93cab28d3c65ba9d407fd8f46e3be1db1c https://github.com/illumos/illumos-gate/com

svn commit: r307127 - stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2016-10-11 Thread Alexander Motin
Author: mav Date: Wed Oct 12 05:47:06 2016 New Revision: 307127 URL: https://svnweb.freebsd.org/changeset/base/307127 Log: MFC r305224: MFV r304158: 7136 ESC_VDEV_REMOVE_AUX ought to always include vdev information 7115 6922 generates ESC_ZFS_VDEV_REMOVE_AUX a bit too often illumos/i

svn commit: r307129 - stable/10/sys/cam/scsi

2016-10-11 Thread Alexander Motin
Author: mav Date: Wed Oct 12 05:50:47 2016 New Revision: 307129 URL: https://svnweb.freebsd.org/changeset/base/307129 Log: MFC 306699: Do not retry on some security sense codes. Modified: stable/10/sys/cam/scsi/scsi_all.c Directory Properties: stable/10/ (props changed) Modified: stable/

svn commit: r307266 - in stable/10: cddl/contrib/opensolaris/cmd/zdb cddl/contrib/opensolaris/cmd/ztest sys/cddl/contrib/opensolaris/uts/common/fs/zfs sys/cddl/contrib/opensolaris/uts/common/fs/zfs...

2016-10-14 Thread Alexander Motin
Author: mav Date: Fri Oct 14 07:14:35 2016 New Revision: 307266 URL: https://svnweb.freebsd.org/changeset/base/307266 Log: MFC r305323: MFV r302991: 6950 ARC should cache compressed data illumos/illumos-gate@dcbf3bd6a1f1360fc1afcee9e22c6dcff7844bf2 https://github.com/illumos/illumos-gate

svn commit: r307268 - stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2016-10-14 Thread Alexander Motin
Author: mav Date: Fri Oct 14 07:16:51 2016 New Revision: 307268 URL: https://svnweb.freebsd.org/changeset/base/307268 Log: MFC r305324: MFV r303077: 7072 zfs fails to expand if lun added when os is in shutdown state illumos/illumos-gate@c39a2aae1e2c439d156021edfc20910dad7f9891 https://

svn commit: r307270 - stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2016-10-14 Thread Alexander Motin
Author: mav Date: Fri Oct 14 07:19:08 2016 New Revision: 307270 URL: https://svnweb.freebsd.org/changeset/base/307270 Log: MFC r305325: MFV r303078: 7086 ztest attempts dva_get_dsize_sync on an embedded blockpointer illumos/illumos-gate@926549256b71acd595f69b236779ff6b78fa08ef https://

svn commit: r307272 - stable/10/cddl/contrib/opensolaris/cmd/ztest

2016-10-14 Thread Alexander Motin
Author: mav Date: Fri Oct 14 07:20:49 2016 New Revision: 307272 URL: https://svnweb.freebsd.org/changeset/base/307272 Log: MFC r305326: MFV r303079: 7147 ztest: ztest_ddt_repair fails with ztest_pattern_match assertion illumos/illumos-gate@aab80726335c76a7cae32c7300890248d73a51e3 https

svn commit: r307274 - stable/10/cddl/contrib/opensolaris/cmd/ztest

2016-10-14 Thread Alexander Motin
Author: mav Date: Fri Oct 14 07:22:44 2016 New Revision: 307274 URL: https://svnweb.freebsd.org/changeset/base/307274 Log: MFC r305327: MFV r303080: 6451 ztest fails due to checksum errors illumos/illumos-gate@f9eb9fdf196b6ed476e4ffc69cecd8b0da3cb7e7 https://github.com/illumos/illumos-ga

svn commit: r307276 - stable/10/cddl/contrib/opensolaris/cmd/ztest

2016-10-14 Thread Alexander Motin
Author: mav Date: Fri Oct 14 07:24:43 2016 New Revision: 307276 URL: https://svnweb.freebsd.org/changeset/base/307276 Log: MFC r305328: MFV r303081: 7163 ztest failures due to excess error injection illumos/illumos-gate@f34284d835bc555f987c1310df46c034c3101155 https://github.com/illumos/

svn commit: r307279 - in stable/10/sys/cddl/contrib/opensolaris/uts/common: fs/zfs fs/zfs/sys sys/fs

2016-10-14 Thread Alexander Motin
Author: mav Date: Fri Oct 14 07:27:40 2016 New Revision: 307279 URL: https://svnweb.freebsd.org/changeset/base/307279 Log: MFC r305331: MFV r304155: 7090 zfs should improve allocation order and throttle allocations illumos/illumos-gate@0f7643c7376dd69a08acbfc9d1d7d548b10c846a https://g

svn commit: r307281 - stable/10/cddl/contrib/opensolaris/cmd/zdb

2016-10-14 Thread Alexander Motin
Author: mav Date: Fri Oct 14 07:29:23 2016 New Revision: 307281 URL: https://svnweb.freebsd.org/changeset/base/307281 Log: MFC r305332: MFV r304159: 7277 zdb should be able to print zfs_dbgmsg's illumos/illumos-gate@29bdd2f916366ece37c4748bca6b3d61f57a223b https://github.com/illumos/illu

svn commit: r307283 - in stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs: . sys

2016-10-14 Thread Alexander Motin
Author: mav Date: Fri Oct 14 07:30:54 2016 New Revision: 307283 URL: https://svnweb.freebsd.org/changeset/base/307283 Log: MFC r305333: MFV r304156: 7235 remove unused func dsl_dataset_set_blkptr illumos/illumos-gate@bd56f80007857b960e0981ed0797ad8ec844a96b https://github.com/illumos/ill

svn commit: r307285 - in stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs: . sys

2016-10-14 Thread Alexander Motin
Author: mav Date: Fri Oct 14 07:32:24 2016 New Revision: 307285 URL: https://svnweb.freebsd.org/changeset/base/307285 Log: MFC r305334: MFV r304157: 7230 add assertions to dmu_send_impl() to verify that stream includes BEGIN and END records illumos/illumos-gate@12b90ee2d3b10689fc45f493

svn commit: r307287 - in stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs: . sys

2016-10-14 Thread Alexander Motin
Author: mav Date: Fri Oct 14 07:35:43 2016 New Revision: 307287 URL: https://svnweb.freebsd.org/changeset/base/307287 Log: MFC r305338: MFV r305335: 7003 zap_lockdir() should tag hold zap_lockdir() / zap_unlockdir() should take a "void *tag" argument which tags the hold on the zap. This w

svn commit: r307289 - stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2016-10-14 Thread Alexander Motin
Author: mav Date: Fri Oct 14 07:37:08 2016 New Revision: 307289 URL: https://svnweb.freebsd.org/changeset/base/307289 Log: MFC r305339: MFV r305336: 7247 zfs receive of deduplicated stream fails This resolves two 'zfs recv' issues. First, when receiving into an existing filesystem, a snap

svn commit: r307292 - in stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs: . sys

2016-10-14 Thread Alexander Motin
Author: mav Date: Fri Oct 14 07:40:20 2016 New Revision: 307292 URL: https://svnweb.freebsd.org/changeset/base/307292 Log: MFC r305340: MFC r305337: 7004 dmu_tx_hold_zap() does dnode_hold() 7x on same object Using a benchmark which has 32 threads creating 2 million files in the same dir

svn commit: r307294 - stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2016-10-14 Thread Alexander Motin
Author: mav Date: Fri Oct 14 07:41:44 2016 New Revision: 307294 URL: https://svnweb.freebsd.org/changeset/base/307294 Log: MFC r305342: Missed FreeBSD-specific piece of r305338. Modified: stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zap_micro.c Directory Properties: stable/10/

svn commit: r307296 - stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2016-10-14 Thread Alexander Motin
Author: mav Date: Fri Oct 14 07:43:28 2016 New Revision: 307296 URL: https://svnweb.freebsd.org/changeset/base/307296 Log: MFC r305456 (by avg): fix zfs pool creation accidentally broken by r305331 The upstream change introduced a new load state, SPA_LOAD_CREATE, and vdev_geom code needs

svn commit: r307298 - stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2016-10-14 Thread Alexander Motin
Author: mav Date: Fri Oct 14 07:45:10 2016 New Revision: 307298 URL: https://svnweb.freebsd.org/changeset/base/307298 Log: MFC r305561: MFV r305560: 7278 tuning zfs_arc_max does not impact arc_c_min When changing zfs_arc_max (e.g. as zdb does), it may be set to less than the default arc

svn commit: r307300 - stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys

2016-10-14 Thread Alexander Motin
Author: mav Date: Fri Oct 14 07:47:07 2016 New Revision: 307300 URL: https://svnweb.freebsd.org/changeset/base/307300 Log: MFC r305563: MFV r305562: 7259 DS_FIELD_LARGE_BLOCKS is unused The DS_FIELD_LARGE_BLOCKS macro has been unused since the integration of this patch: commit ca

svn commit: r307331 - stable/10/sys/sys

2016-10-14 Thread Alexander Motin
Author: mav Date: Fri Oct 14 18:43:17 2016 New Revision: 307331 URL: https://svnweb.freebsd.org/changeset/base/307331 Log: Bump __FreeBSD_version for todays ZFS merges. Modified: stable/10/sys/sys/param.h Modified: stable/10/sys/sys/param.h ===

svn commit: r307378 - stable/10/sys/dev/iscsi

2016-10-15 Thread Alexander Motin
Author: mav Date: Sat Oct 15 17:39:40 2016 New Revision: 307378 URL: https://svnweb.freebsd.org/changeset/base/307378 Log: MFC r282970: Close some potential races around socket start/close. There are some reports about panics on ic->ic_socket NULL derefence. This kind of races is the only

svn commit: r307666 - stable/10/sys/geom/mirror

2016-10-20 Thread Alexander Motin
Author: mav Date: Thu Oct 20 09:06:39 2016 New Revision: 307666 URL: https://svnweb.freebsd.org/changeset/base/307666 Log: MFC r306762: Fix possible geom destruction before final provider close. Introduce internal counter to track opens. Using provider's counters is not very successfull

svn commit: r307957 - stable/10/sys/cam/scsi

2016-10-26 Thread Alexander Motin
Author: mav Date: Wed Oct 26 07:45:48 2016 New Revision: 307957 URL: https://svnweb.freebsd.org/changeset/base/307957 Log: MFC r307132: Use copyout() instead of pointing sbuf to user-space buffer. Modified: stable/10/sys/cam/scsi/scsi_enc_ses.c Directory Properties: stable/10/ (props chan

  1   2   3   4   5   6   7   8   9   >