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

2017-03-05 Thread Alexander Motin
Author: mav Date: Mon Mar 6 06:39:42 2017 New Revision: 314759 URL: https://svnweb.freebsd.org/changeset/base/314759 Log: MFC r314302: Return better error code in case of too long CDB. Its more important for SPI HBAs, as they don't support CDBs above 12 bytes. The new error code makes CA

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

2017-03-05 Thread Alexander Motin
Author: mav Date: Mon Mar 6 06:41:06 2017 New Revision: 314761 URL: https://svnweb.freebsd.org/changeset/base/314761 Log: MFC r314387: Make ctl_queue_sense() not sleep. It may be called in non-sleepable frontend context. Modified: stable/10/sys/cam/ctl/ctl.c Directory Properties: stab

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

2017-03-05 Thread Alexander Motin
Author: mav Date: Mon Mar 6 06:43:17 2017 New Revision: 314763 URL: https://svnweb.freebsd.org/changeset/base/314763 Log: MFC r314496: Add check missed in r314257. Modified: stable/10/sys/cam/ctl/ctl.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/cam/ctl/ctl.

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

2017-03-05 Thread Alexander Motin
Author: mav Date: Mon Mar 6 06:45:35 2017 New Revision: 314765 URL: https://svnweb.freebsd.org/changeset/base/314765 Log: MFC r314326: Send TERMINATE to firmware when aborting active ATIO. Modified: stable/10/sys/dev/isp/isp.c stable/10/sys/dev/isp/isp_freebsd.c stable/10/sys/dev/isp/isp

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

2017-03-05 Thread Alexander Motin
Author: mav Date: Mon Mar 6 06:47:05 2017 New Revision: 314767 URL: https://svnweb.freebsd.org/changeset/base/314767 Log: MFC r314338: Polish handling of different reset flavours. The biggest change is that ctl_remove_initiator() now generates I_T NEXUS LOSS event, cleaning part of LUs s

svn commit: r314836 - stable/10/sys/dev/firewire

2017-03-06 Thread Alexander Motin
Author: mav Date: Tue Mar 7 05:57:18 2017 New Revision: 314836 URL: https://svnweb.freebsd.org/changeset/base/314836 Log: MFC r314374: Add safety check against too long CDB. SBP-2 specification defined maximum CDB length as 12 bytes. Newer SBP-3 specification allows CDB of any size, but

svn commit: r314992 - stable/10/usr.bin/ctlstat

2017-03-09 Thread Alexander Motin
Author: mav Date: Fri Mar 10 06:18:27 2017 New Revision: 314992 URL: https://svnweb.freebsd.org/changeset/base/314992 Log: MFC r314592: Fix JSON output. Modified: stable/10/usr.bin/ctlstat/ctlstat.c Directory Properties: stable/10/ (props changed) Modified: stable/10/usr.bin/ctlstat/ctls

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

2017-03-11 Thread Alexander Motin
Author: mav Date: Sun Mar 12 06:18:41 2017 New Revision: 315138 URL: https://svnweb.freebsd.org/changeset/base/315138 Log: MFC r314307: Add support for SIMs without autosense. If we asked to send sense data by setting CAM_SEND_SENSE, but SIM didn't confirm transmission by setting CAM_SENT

svn commit: r315140 - stable/10/sys/dev/aic7xxx

2017-03-11 Thread Alexander Motin
Author: mav Date: Sun Mar 12 06:20:28 2017 New Revision: 315140 URL: https://svnweb.freebsd.org/changeset/base/315140 Log: MFC r314308: Fix LUN enabling on wildcard target, as done by CTL. Modified: stable/10/sys/dev/aic7xxx/aic79xx.c stable/10/sys/dev/aic7xxx/aic7xxx.c Directory Properties

svn commit: r315189 - in stable/10/sys/dev/mpr: . mpi

2017-03-12 Thread Alexander Motin
Author: mav Date: Mon Mar 13 06:52:29 2017 New Revision: 315189 URL: https://svnweb.freebsd.org/changeset/base/315189 Log: MFC r314786: Import mpr(4) driver P12 to P14 diff from vendor site. This is mostly a version bump to stay in version number sync with firmware. The only change there

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

2017-03-16 Thread Alexander Motin
Author: mav Date: Thu Mar 16 07:09:47 2017 New Revision: 315385 URL: https://svnweb.freebsd.org/changeset/base/315385 Log: MFC r314548: Completely skip cache flushing for not supporting log devices. Modified: stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zil.c Directory Properties:

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

2017-03-16 Thread Alexander Motin
Author: mav Date: Thu Mar 16 07:11:35 2017 New Revision: 315388 URL: https://svnweb.freebsd.org/changeset/base/315388 Log: MFC r314549: Execute last ZIO of log commit synchronously. For short transactions overhead of context switch can be too large. Skipping it gives significant latency r

svn commit: r315705 - stable/10/sys/geom

2017-03-22 Thread Alexander Motin
Author: mav Date: Wed Mar 22 07:54:29 2017 New Revision: 315705 URL: https://svnweb.freebsd.org/changeset/base/315705 Log: MFC r314908: When chunking large DIOCGDELETE, do it on stripe edge. Modified: stable/10/sys/geom/geom_dev.c Directory Properties: stable/10/ (props changed) Modified

svn commit: r315806 - stable/10/sys/dev/cxgb/ulp/tom

2017-03-22 Thread Alexander Motin
Author: mav Date: Thu Mar 23 06:29:47 2017 New Revision: 315806 URL: https://svnweb.freebsd.org/changeset/base/315806 Log: MFC r314952: Fix unused variable when built without INVARIANT_SUPPORT. Modified: stable/10/sys/dev/cxgb/ulp/tom/cxgb_cpl_io.c Directory Properties: stable/10/ (props

svn commit: r315809 - stable/10/sys/dev/mpt

2017-03-22 Thread Alexander Motin
Author: mav Date: Thu Mar 23 06:34:45 2017 New Revision: 315809 URL: https://svnweb.freebsd.org/changeset/base/315809 Log: MFC r303874 (by trasz): Remove NULL check after M_WAITOK allocation from mpt(4). Modified: stable/10/sys/dev/mpt/mpt_pci.c Directory Properties: stable/10/ (props c

svn commit: r315811 - stable/10/sys/dev/mpt

2017-03-22 Thread Alexander Motin
Author: mav Date: Thu Mar 23 06:37:23 2017 New Revision: 315811 URL: https://svnweb.freebsd.org/changeset/base/315811 Log: MFC r308423 (by scottl): Fix the fallout from r308268 (mpt driver causes endless witness warnings in VMWare and elsewhere) with the precision of a dull, rusty butter kni

svn commit: r315813 - in stable/10/sys: cam cam/ctl cam/scsi dev/aac dev/aacraid dev/advansys dev/aha dev/ahb dev/ahci dev/aic dev/aic7xxx dev/amr dev/arcmsr dev/ata dev/buslogic dev/ciss dev/dpt d...

2017-03-22 Thread Alexander Motin
Author: mav Date: Thu Mar 23 06:41:13 2017 New Revision: 315813 URL: https://svnweb.freebsd.org/changeset/base/315813 Log: MFC r311305 (by asomers): Always null-terminate ccb_pathinq.(sim_vid|hba_vid|dev_name) The sim_vid, hba_vid, and dev_name fields of struct ccb_pathinq are fixed-len

svn commit: r315815 - stable/10/sys/dev/mpt

2017-03-22 Thread Alexander Motin
Author: mav Date: Thu Mar 23 06:42:27 2017 New Revision: 315815 URL: https://svnweb.freebsd.org/changeset/base/315815 Log: MFC r314966: Report FC link speed. Modified: stable/10/sys/dev/mpt/mpt_cam.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/dev/mpt/mpt_cam

svn commit: r315817 - stable/10/sys/dev/mpt

2017-03-22 Thread Alexander Motin
Author: mav Date: Thu Mar 23 06:45:57 2017 New Revision: 315817 URL: https://svnweb.freebsd.org/changeset/base/315817 Log: MFC r314968: Report some more data in XPT_PATH_INQ. I am not sure they are used anywhere, but why not. Modified: stable/10/sys/dev/mpt/mpt.h stable/10/sys/dev/mpt/

svn commit: r315819 - stable/10/sys/dev/mpt

2017-03-22 Thread Alexander Motin
Author: mav Date: Thu Mar 23 06:47:48 2017 New Revision: 315819 URL: https://svnweb.freebsd.org/changeset/base/315819 Log: MFC r314967: Add support for XPT_GET_SIM_KNOB in FC mode. Modified: stable/10/sys/dev/mpt/mpt.h stable/10/sys/dev/mpt/mpt_cam.c Directory Properties: stable/10/ (pr

svn commit: r315821 - stable/10/sys/dev/mpt

2017-03-22 Thread Alexander Motin
Author: mav Date: Thu Mar 23 06:49:01 2017 New Revision: 315821 URL: https://svnweb.freebsd.org/changeset/base/315821 Log: MFC r314998: Fix FC target mode in mpt(4), broken in multiple ways. - Not set BufferLength caused receive of empty ATIOs. - CDB length guessing was broken at least

svn commit: r315824 - stable/10/sys/dev/mpt

2017-03-22 Thread Alexander Motin
Author: mav Date: Thu Mar 23 06:50:46 2017 New Revision: 315824 URL: https://svnweb.freebsd.org/changeset/base/315824 Log: MFC r315002: Improve residuals reporting in target mode. Modified: stable/10/sys/dev/mpt/mpt.h stable/10/sys/dev/mpt/mpt_cam.c Directory Properties: stable/10/ (pro

svn commit: r315826 - stable/10/sys/dev/mpt

2017-03-22 Thread Alexander Motin
Author: mav Date: Thu Mar 23 06:52:29 2017 New Revision: 315826 URL: https://svnweb.freebsd.org/changeset/base/315826 Log: MFC r315004: Add PIM_EXTLUNS support to mpt(4). Target mode is still limited to 256 LUNs due to the way driver is written, but initiator can now use full 8 byte LUN s

svn commit: r315828 - stable/10/sys/dev/mpt

2017-03-22 Thread Alexander Motin
Author: mav Date: Thu Mar 23 06:55:32 2017 New Revision: 315828 URL: https://svnweb.freebsd.org/changeset/base/315828 Log: MFC r315067: Partially fix target task management requests handling. - XPT_NOTIFY_ACKNOWLEDGE was not handled, causing stuck requests. - XPT_ABORT was not even tryi

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

2017-03-24 Thread Alexander Motin
Author: mav Date: Fri Mar 24 07:00:16 2017 New Revision: 315887 URL: https://svnweb.freebsd.org/changeset/base/315887 Log: MFC r315025: Switch work_queue from TAILQ to STAILQ. It is mostly FIFO and we don't need random removal there. Modified: stable/10/sys/cam/ctl/scsi_ctl.c Directory P

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

2017-03-24 Thread Alexander Motin
Author: mav Date: Fri Mar 24 07:02:03 2017 New Revision: 315889 URL: https://svnweb.freebsd.org/changeset/base/315889 Log: MFC r315030: Abort all ATIOs and INOTs queued to SIM on LUN disable. Some SIMs may not abort them implicitly, that either fail the LUN disable request or just make us

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

2017-03-24 Thread Alexander Motin
Author: mav Date: Fri Mar 24 07:03:26 2017 New Revision: 315891 URL: https://svnweb.freebsd.org/changeset/base/315891 Log: MFC r315022: Request change of SIM target role only when it is different. Separate WWNs change into separate request to know what actually failed. Modified: stable/1

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

2017-03-25 Thread Alexander Motin
Author: mav Date: Sat Mar 25 11:36:06 2017 New Revision: 315937 URL: https://svnweb.freebsd.org/changeset/base/315937 Log: MFC r315082: Allow XPT_GDEV_STATS for UNCONFIGURED devices. Queue statistics has nothing to do with presence or absence of INQUIRY data, etc. Target mode devices are

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

2017-03-25 Thread Alexander Motin
Author: mav Date: Sat Mar 25 11:45:19 2017 New Revision: 315939 URL: https://svnweb.freebsd.org/changeset/base/315939 Log: MFC r315084: Increase device openings to tagged maximum. Some SIMs report much less untagged device openings then tagged ones. Target mode devices are not handled by

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

2017-03-25 Thread Alexander Motin
) @@ -1,5 +1,5 @@ .\" Copyright (c) 2013 Edward Tomasz Napierala -.\" Copyright (c) 2015 Alexander Motin +.\" Copyright (c) 2015-2017 Alexander Motin .\" All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without @@ -24

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

2017-03-26 Thread Alexander Motin
Author: mav Date: Sun Mar 26 08:51:22 2017 New Revision: 315976 URL: https://svnweb.freebsd.org/changeset/base/315976 Log: MFC r315163: Remove strange config_intrhook_establish() magic. Interrupts are enabled as part of chip reset just during driver attach. Later "enabling" of already ena

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

2017-03-26 Thread Alexander Motin
Author: mav Date: Sun Mar 26 08:52:44 2017 New Revision: 315978 URL: https://svnweb.freebsd.org/changeset/base/315978 Log: MFC r315160: Remove code for unsupported FreeBSD versions. Modified: stable/10/sys/dev/isp/isp.c stable/10/sys/dev/isp/isp_freebsd.c stable/10/sys/dev/isp/isp_freebsd

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

2017-03-26 Thread Alexander Motin
Author: mav Date: Sun Mar 26 08:54:08 2017 New Revision: 315980 URL: https://svnweb.freebsd.org/changeset/base/315980 Log: MFC r315161: Try to slight untangle I/O and loop status handling. Modified: stable/10/sys/dev/isp/isp.c stable/10/sys/dev/isp/isp_freebsd.c stable/10/sys/dev/isp/isp_

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

2017-03-27 Thread Alexander Motin
Author: mav Date: Mon Mar 27 08:29:46 2017 New Revision: 316016 URL: https://svnweb.freebsd.org/changeset/base/316016 Log: MFC 315229: Remove remnant of r315163. Modified: stable/10/sys/dev/isp/isp_freebsd.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/dev/isp

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

2017-03-28 Thread Alexander Motin
Author: mav Date: Tue Mar 28 10:15:30 2017 New Revision: 316085 URL: https://svnweb.freebsd.org/changeset/base/316085 Log: MFC r299849 (by trasz): Remove NULL checks after M_WAITOK allocations from isp(4). Modified: stable/10/sys/dev/isp/isp_pci.c stable/10/sys/dev/isp/isp_sbus.c Director

svn commit: r316086 - stable/10

2017-03-28 Thread Alexander Motin
Author: mav Date: Tue Mar 28 10:19:52 2017 New Revision: 316086 URL: https://svnweb.freebsd.org/changeset/base/316086 Log: MFC r313568 (by ken): Change the isp(4) driver to not adjust the tag type for REQUEST SENSE. The isp(4) driver was changing the tag type for REQUEST SENSE commands

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

2017-03-28 Thread Alexander Motin
Author: mav Date: Tue Mar 28 10:22:55 2017 New Revision: 316087 URL: https://svnweb.freebsd.org/changeset/base/316087 Log: MFC r315234: Improvements around attach, reset and detach. This change fixes DMA resource leak on driver unload. Also it removes DMA resources allocation for hardcod

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

2017-03-28 Thread Alexander Motin
Author: mav Date: Tue Mar 28 10:24:01 2017 New Revision: 316089 URL: https://svnweb.freebsd.org/changeset/base/316089 Log: MFC r315236: Remove dangerous and questionable isp_mboxcmd_qnw() call. Modified: stable/10/sys/dev/isp/isp.c Directory Properties: stable/10/ (props changed) Modifie

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

2017-03-28 Thread Alexander Motin
Author: mav Date: Tue Mar 28 10:25:10 2017 New Revision: 316091 URL: https://svnweb.freebsd.org/changeset/base/316091 Log: MFC r315273: Remove tangled isp_mbox_continue() mechanism. It was implemented to reduce context switches when uploading firmware to card's RAM. But this mechanism is

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

2017-03-28 Thread Alexander Motin
Author: mav Date: Tue Mar 28 10:26:27 2017 New Revision: 316093 URL: https://svnweb.freebsd.org/changeset/base/316093 Log: MFC r315279: Remove some dead/broken code paths around async handling Modified: stable/10/sys/dev/isp/isp.c stable/10/sys/dev/isp/isp_freebsd.c stable/10/sys/dev/isp/

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

2017-03-29 Thread Alexander Motin
Author: mav Date: Wed Mar 29 14:58:15 2017 New Revision: 316138 URL: https://svnweb.freebsd.org/changeset/base/316138 Log: MFC r315711: Fix printing bits above first eight. Modified: stable/10/sbin/camcontrol/camcontrol.c Directory Properties: stable/10/ (props changed) Modified: stable/

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

2017-03-29 Thread Alexander Motin
Author: mav Date: Wed Mar 29 15:39:47 2017 New Revision: 316142 URL: https://svnweb.freebsd.org/changeset/base/316142 Log: MFC r315298: Fix ancient bug from r84597, which broke 23xx after r315234. Modified: stable/10/sys/dev/isp/isp_pci.c Directory Properties: stable/10/ (props changed)

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

2017-03-29 Thread Alexander Motin
Author: mav Date: Wed Mar 29 15:41:14 2017 New Revision: 316144 URL: https://svnweb.freebsd.org/changeset/base/316144 Log: MFC r315303: Fix panic when SIM dereferenced before allocation. Modified: stable/10/sys/dev/isp/isp_freebsd.c Directory Properties: stable/10/ (props changed) Modifi

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

2017-03-29 Thread Alexander Motin
Author: mav Date: Wed Mar 29 15:43:07 2017 New Revision: 316146 URL: https://svnweb.freebsd.org/changeset/base/316146 Log: MFC r315307: Refactor interrupt handling. Instead of single isp_intr() function doing all possible magic, introduce four different functions to handle mailbox operati

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

2017-03-29 Thread Alexander Motin
Author: mav Date: Wed Mar 29 15:44:22 2017 New Revision: 316148 URL: https://svnweb.freebsd.org/changeset/base/316148 Log: MFC r315327: Remove not very useful ATIO/INOT stats. While there polish respective debug logging. Modified: stable/10/sys/dev/isp/isp_freebsd.c stable/10/sys/dev/i

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

2017-03-29 Thread Alexander Motin
Author: mav Date: Wed Mar 29 15:45:34 2017 New Revision: 316151 URL: https://svnweb.freebsd.org/changeset/base/316151 Log: MFC r315478: Do some notify acks cleanup. ISPASYNC_TARGET_NOTIFY_ACK makes no sense without argument. Modified: stable/10/sys/dev/isp/isp_freebsd.c stable/10/sys/d

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

2017-03-29 Thread Alexander Motin
Author: mav Date: Wed Mar 29 15:56:57 2017 New Revision: 316153 URL: https://svnweb.freebsd.org/changeset/base/316153 Log: MFC r315482: Use isp_target_put_entry() in places where it can be. This unifies the code and removes some duplication. Modified: stable/10/sys/dev/isp/isp_freebsd.c

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

2017-03-29 Thread Alexander Motin
Author: mav Date: Wed Mar 29 15:58:25 2017 New Revision: 316155 URL: https://svnweb.freebsd.org/changeset/base/316155 Log: MFC r315485: Remove dead remnants of SPI target. Modified: stable/10/sys/dev/isp/isp.c stable/10/sys/dev/isp/isp_library.c stable/10/sys/dev/isp/isp_library.h stabl

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

2017-03-29 Thread Alexander Motin
Author: mav Date: Wed Mar 29 16:02:50 2017 New Revision: 316157 URL: https://svnweb.freebsd.org/changeset/base/316157 Log: MFC r315488: Extend nt_lun to full 8 byte. Modified: stable/10/sys/dev/isp/isp_freebsd.c stable/10/sys/dev/isp/isp_target.c stable/10/sys/dev/isp/isp_target.h Directo

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

2017-03-29 Thread Alexander Motin
Author: mav Date: Wed Mar 29 16:04:02 2017 New Revision: 316159 URL: https://svnweb.freebsd.org/changeset/base/316159 Log: MFC r315489: Move RQSTYPE_ABTS_RCVD parsing into generic code. Modified: stable/10/sys/dev/isp/isp_freebsd.c stable/10/sys/dev/isp/isp_target.c Directory Properties:

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

2017-03-29 Thread Alexander Motin
Author: mav Date: Wed Mar 29 16:04:42 2017 New Revision: 316160 URL: https://svnweb.freebsd.org/changeset/base/316160 Log: MFC r315507: Reorganize RQSTYPE_NOTIFY handling for chips <= 23xx. There were two copies of the code: one in generic code was half-broken, and another in platform cod

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

2017-03-29 Thread Alexander Motin
Author: mav Date: Wed Mar 29 16:13:24 2017 New Revision: 316163 URL: https://svnweb.freebsd.org/changeset/base/316163 Log: MFC r315533: Move 24xx RQSTYPE_NOTIFY handling to generic code. This code has nothing to do with specific platform. Modified: stable/10/sys/dev/isp/isp_freebsd.c s

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

2017-03-29 Thread Alexander Motin
Author: mav Date: Wed Mar 29 16:14:33 2017 New Revision: 316165 URL: https://svnweb.freebsd.org/changeset/base/316165 Log: MFC r315534: Remove some dead stuff. Modified: stable/10/sys/dev/isp/isp_target.h Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/dev/isp/is

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

2017-03-29 Thread Alexander Motin
Author: mav Date: Wed Mar 29 16:15:52 2017 New Revision: 316167 URL: https://svnweb.freebsd.org/changeset/base/316167 Log: MFC r315536: Move <= 23xx PDB workaround to generic code. It is chip-specific and has nothing to do with platform. Modified: stable/10/sys/dev/isp/isp_freebsd.c st

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

2017-03-29 Thread Alexander Motin
Author: mav Date: Wed Mar 29 16:17:10 2017 New Revision: 316169 URL: https://svnweb.freebsd.org/changeset/base/316169 Log: MFC r315545: Remove hackish code delaying ATIOs to unknown virtual port. Since we support RQSTYPE_RPT_ID_ACQ, that functionality is only useful in loop mode, which pr

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

2017-03-29 Thread Alexander Motin
Author: mav Date: Wed Mar 29 19:25:42 2017 New Revision: 316173 URL: https://svnweb.freebsd.org/changeset/base/316173 Log: Fix build broken by different size of lun_id_t. Modified: stable/10/sys/dev/isp/isp_freebsd.c stable/10/sys/dev/isp/isp_target.c Modified: stable/10/sys/dev/isp/isp_fr

svn commit: r316399 - in stable/10/sys: dev/isp modules/isp

2017-04-02 Thread Alexander Motin
Author: mav Date: Sun Apr 2 10:52:00 2017 New Revision: 316399 URL: https://svnweb.freebsd.org/changeset/base/316399 Log: MFC r315579, r315670: Add initial support for multiple MSI-X vectors. For 24xx and above use 2 vectors (default and response queue). For 26xx and above use 3 vectors

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

2017-04-02 Thread Alexander Motin
Author: mav Date: Sun Apr 2 10:53:37 2017 New Revision: 316401 URL: https://svnweb.freebsd.org/changeset/base/316401 Log: MFC r315587, r315652: Remove some dead/useless code. Modified: stable/10/sys/dev/isp/isp.c stable/10/sys/dev/isp/isp_freebsd.c stable/10/sys/dev/isp/isp_freebsd.h s

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

2017-04-02 Thread Alexander Motin
Author: mav Date: Sun Apr 2 10:54:58 2017 New Revision: 316403 URL: https://svnweb.freebsd.org/changeset/base/316403 Log: MFC r315677: Clean/unify some macro usage. Modified: stable/10/sys/dev/isp/isp_freebsd.c stable/10/sys/dev/isp/isp_freebsd.h stable/10/sys/dev/isp/isp_pci.c stable/

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

2017-04-02 Thread Alexander Motin
Author: mav Date: Sun Apr 2 10:56:09 2017 New Revision: 316405 URL: https://svnweb.freebsd.org/changeset/base/316405 Log: MFC r315678: Remove questionable reqp->req_time access. Modified: stable/10/sys/dev/isp/isp.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sy

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

2017-04-02 Thread Alexander Motin
Author: mav Date: Sun Apr 2 10:57:49 2017 New Revision: 316407 URL: https://svnweb.freebsd.org/changeset/base/316407 Log: MFC r315681: Improve command timeout handling. Let firmware do its best first, and if it can't, try software recovery. I would remove software timeout handler complet

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

2017-04-02 Thread Alexander Motin
Author: mav Date: Sun Apr 2 10:59:30 2017 New Revision: 316409 URL: https://svnweb.freebsd.org/changeset/base/316409 Log: MFC r315682, r315683: Remove some dead code left after r246713. Modified: stable/10/sys/dev/isp/isp_pci.c stable/10/sys/dev/isp/isp_sbus.c Directory Properties: stabl

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

2017-04-02 Thread Alexander Motin
Author: mav Date: Sun Apr 2 11:00:18 2017 New Revision: 316410 URL: https://svnweb.freebsd.org/changeset/base/316410 Log: MFC r315709: Switch from using periph_links to sim_links. periph_links field belongs to periph drivers and must not be used here. Modified: stable/10/sys/dev/isp/isp

svn commit: r316499 - in stable/10/sys: cam sys

2017-04-04 Thread Alexander Motin
Author: mav Date: Tue Apr 4 18:01:35 2017 New Revision: 316499 URL: https://svnweb.freebsd.org/changeset/base/316499 Log: MFC r315673, r315674: Make CAM SIM lock optional. For three years now CAM does not use SIM lock, but still enforces SIM to use it. Remove this requirement, allowing

svn commit: r316651 - stable/10/sys/dev/usb/controller

2017-04-08 Thread Alexander Motin
Author: mav Date: Sun Apr 9 06:44:31 2017 New Revision: 316651 URL: https://svnweb.freebsd.org/changeset/base/316651 Log: MFC r316412: Add IDs for Intel Cougar Point USB 2.0 controller. Modified: stable/10/sys/dev/usb/controller/ehci_pci.c Directory Properties: stable/10/ (props changed)

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

2017-04-15 Thread Alexander Motin
Author: mav Date: Sun Apr 16 06:00:14 2017 New Revision: 317001 URL: https://svnweb.freebsd.org/changeset/base/317001 Log: MFC r316427, r316428: Add Log directory and SATA NCQ Send and Receive Log. Those are used at least by Linux guests to detect queued TRIM support. Modified: stable/10

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

2017-04-23 Thread Alexander Motin
Author: mav Date: Sun Apr 23 07:35:51 2017 New Revision: 317320 URL: https://svnweb.freebsd.org/changeset/base/317320 Log: MFC r316653: Fix few minor issues found by Clang Analyzer. Modified: stable/10/sys/cam/ctl/ctl.c stable/10/sys/cam/ctl/ctl_frontend_iscsi.c Directory Properties: stab

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

2017-04-23 Thread Alexander Motin
Author: mav Date: Sun Apr 23 07:37:14 2017 New Revision: 317322 URL: https://svnweb.freebsd.org/changeset/base/317322 Log: MFC r316652: Fix few minor issues found by Clang Analyzer. Modified: stable/10/sys/dev/isp/isp.c stable/10/sys/dev/isp/isp_freebsd.c Directory Properties: stable/10/

svn commit: r317352 - stable/10/usr.sbin/ctld

2017-04-23 Thread Alexander Motin
Author: mav Date: Mon Apr 24 06:33:08 2017 New Revision: 317352 URL: https://svnweb.freebsd.org/changeset/base/317352 Log: MFC r316677: Do not register in CTL portal groups without portals. From config synthax point of view such portal groups are not incorrect, but they are useless since

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

2017-04-24 Thread Alexander Motin
Author: mav Date: Mon Apr 24 11:19:47 2017 New Revision: 317363 URL: https://svnweb.freebsd.org/changeset/base/317363 Log: MFC r315708: Cleanup response queue processing. Modified: stable/10/sys/dev/isp/isp.c stable/10/sys/dev/isp/isp_freebsd.c stable/10/sys/dev/isp/isp_freebsd.h stable

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

2017-04-24 Thread Alexander Motin
Author: mav Date: Mon Apr 24 11:20:21 2017 New Revision: 317364 URL: https://svnweb.freebsd.org/changeset/base/317364 Log: MFC r315869: Remove write-only crn field from struct isp_pcmd. Modified: stable/10/sys/dev/isp/isp_freebsd.c stable/10/sys/dev/isp/isp_freebsd.h Directory Properties:

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

2017-04-24 Thread Alexander Motin
Author: mav Date: Mon Apr 24 11:20:55 2017 New Revision: 317365 URL: https://svnweb.freebsd.org/changeset/base/317365 Log: MFC r315870: isp field in struct isp_pcmd is also unused. Modified: stable/10/sys/dev/isp/isp_freebsd.h Directory Properties: stable/10/ (props changed) Modified: st

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

2017-04-24 Thread Alexander Motin
Author: mav Date: Mon Apr 24 11:21:32 2017 New Revision: 317366 URL: https://svnweb.freebsd.org/changeset/base/317366 Log: MFC r315908: Unify initiator and target DMA setup and command sending. The code is so alike that it is pointless to keep it separate. Modified: stable/10/sys/dev/isp

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

2017-04-24 Thread Alexander Motin
Author: mav Date: Mon Apr 24 11:22:06 2017 New Revision: 317367 URL: https://svnweb.freebsd.org/changeset/base/317367 Log: MFC r315913: Add brackets to fix incorrect macro expansion. Modified: stable/10/sys/dev/isp/ispmbox.h Directory Properties: stable/10/ (props changed) Modified: stab

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

2017-05-01 Thread Alexander Motin
Author: mav Date: Mon May 1 06:05:04 2017 New Revision: 317636 URL: https://svnweb.freebsd.org/changeset/base/317636 Log: MFC r317356: Switch isp_reset to scratchpad not requiring ISP_MBOXDMASETUP. Modified: stable/10/sys/dev/isp/isp.c Directory Properties: stable/10/ (props changed) Mo

svn commit: r317634 - stable/10/lib/libc/gen

2017-05-01 Thread Alexander Motin
Author: mav Date: Mon May 1 06:03:44 2017 New Revision: 317634 URL: https://svnweb.freebsd.org/changeset/base/317634 Log: MFC r317064: Optimize pathologic case of telldir() for Samba. When application reads large directory, calling telldir() for each entry, like Samba does, it creates ex

svn commit: r318910 - stable/10/cddl/contrib/opensolaris/lib/libzpool/common

2017-05-25 Thread Alexander Motin
Author: mav Date: Fri May 26 00:26:08 2017 New Revision: 318910 URL: https://svnweb.freebsd.org/changeset/base/318910 Log: MFC r318516: Fix time handling in cv_timedwait_hires(). pthread_cond_timedwait() receives absolute time, not relative. Passing wrong time there caused two threads of

<    4   5   6   7   8   9