svn commit: r368742 - head/share/man/man9

2020-12-17 Thread Alexander Motin
Author: mav Date: Thu Dec 17 21:02:58 2020 New Revision: 368742 URL: https://svnweb.freebsd.org/changeset/base/368742 Log: Fix f_pkt_into_t typo. MFC after:1 week Modified: head/share/man/man9/iflibtxrx.9 Modified: head/share/man/man9/iflibtxrx.9

svn commit: r368603 - in stable/12/sbin/nvmecontrol: . modules/wdc

2020-12-12 Thread Alexander Motin
Author: mav Date: Sun Dec 13 02:21:54 2020 New Revision: 368603 URL: https://svnweb.freebsd.org/changeset/base/368603 Log: MFC r367768: Stop using NVME_MAX_XFER_SIZE constant. This constant depends on MAXPHYS and does not respect device capabilities. Use proper dynamic

svn commit: r368602 - stable/12/sys/dev/nvme

2020-12-12 Thread Alexander Motin
Author: mav Date: Sun Dec 13 02:19:18 2020 New Revision: 368602 URL: https://svnweb.freebsd.org/changeset/base/368602 Log: MFC r368132: Increase nvme(4) maximum transfer size from 1MB to 2MB. With 4KB page size the 2MB is the maximum we can address with one page PRP. Going further would

svn commit: r368426 - stable/12/sys/dev/isp

2020-12-07 Thread Alexander Motin
Author: mav Date: Tue Dec 8 00:58:02 2020 New Revision: 368426 URL: https://svnweb.freebsd.org/changeset/base/368426 Log: MFC r367985: Remove unneeded locking around xpt_bus_[de]register(). Modified: stable/12/sys/dev/isp/isp_freebsd.c Directory Properties: stable/12/ (props changed)

svn commit: r368138 - head/sys/kern

2020-11-28 Thread Alexander Motin
Author: mav Date: Sun Nov 29 01:30:17 2020 New Revision: 368138 URL: https://svnweb.freebsd.org/changeset/base/368138 Log: Remove alignment requirements for KVA buffer mapping. After r368124 pbuf_zone has extra page to handle this particular case. Modified: head/sys/kern/kern_physio.c

svn commit: r368136 - head/sys/dev/nvme

2020-11-28 Thread Alexander Motin
Author: mav Date: Sun Nov 29 00:57:19 2020 New Revision: 368136 URL: https://svnweb.freebsd.org/changeset/base/368136 Log: Remove aligment requirements for passthrough buffer. After r368124 vmapbuf() should happily map misaligned maxphys-sized buffers thanks to extra page added to

svn commit: r368134 - head/sys/cam

2020-11-28 Thread Alexander Motin
Author: mav Date: Sun Nov 29 00:49:14 2020 New Revision: 368134 URL: https://svnweb.freebsd.org/changeset/base/368134 Log: Remove alignment requirements for KVA buffer mapping. After r368124 vmapbuf() should happily map misaligned maxphys-sized buffers thanks to extra page added to

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

2020-11-28 Thread Alexander Motin
Author: mav Date: Sun Nov 29 00:35:13 2020 New Revision: 368133 URL: https://svnweb.freebsd.org/changeset/base/368133 Log: Mark inline functions static. Modified: head/sys/dev/isp/isp_library.h Modified: head/sys/dev/isp/isp_library.h

svn commit: r368132 - head/sys/dev/nvme

2020-11-28 Thread Alexander Motin
Author: mav Date: Sun Nov 29 00:20:31 2020 New Revision: 368132 URL: https://svnweb.freebsd.org/changeset/base/368132 Log: Increase nvme(4) maximum transfer size from 1MB to 2MB. With 4KB page size the 2MB is the maximum we can address with one page PRP. Going further would require

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

2020-11-27 Thread Alexander Motin
Author: mav Date: Fri Nov 27 15:50:20 2020 New Revision: 368105 URL: https://svnweb.freebsd.org/changeset/base/368105 Log: Some code reorganization. - Remove code duplication by adding two new functions to execute prepared queue entry via either mbox or request queue and wait for

svn commit: r368104 - stable/12/sys/cam

2020-11-27 Thread Alexander Motin
Author: mav Date: Fri Nov 27 13:25:12 2020 New Revision: 368104 URL: https://svnweb.freebsd.org/changeset/base/368104 Log: MFC r367862: Microoptimize cam_num_doneqs math in xpt_done(). Modified: stable/12/sys/cam/cam_xpt.c Directory Properties: stable/12/ (props changed) Modified:

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

2020-11-26 Thread Alexander Motin
Author: mav Date: Fri Nov 27 05:13:52 2020 New Revision: 368091 URL: https://svnweb.freebsd.org/changeset/base/368091 Log: Restore break statement lost in r367857. Modified: head/sys/dev/isp/isp_target.c Modified: head/sys/dev/isp/isp_target.c

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

2020-11-26 Thread Alexander Motin
Author: mav Date: Thu Nov 26 18:47:23 2020 New Revision: 368079 URL: https://svnweb.freebsd.org/changeset/base/368079 Log: More cleanup in response queue and reset code. Modified: head/sys/dev/isp/isp.c head/sys/dev/isp/isp_freebsd.c head/sys/dev/isp/isp_freebsd.h

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

2020-11-25 Thread Alexander Motin
Author: mav Date: Thu Nov 26 02:14:52 2020 New Revision: 368044 URL: https://svnweb.freebsd.org/changeset/base/368044 Log: Some minor FCoE bits I had lying around. Modified: head/sys/dev/isp/isp.c head/sys/dev/isp/isp_library.c head/sys/dev/isp/ispmbox.h Modified: head/sys/dev/isp/isp.c

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

2020-11-25 Thread Alexander Motin
Author: mav Date: Thu Nov 26 01:59:44 2020 New Revision: 368043 URL: https://svnweb.freebsd.org/changeset/base/368043 Log: Remove some more dead code from pre-24xx. Modified: head/sys/dev/isp/isp_freebsd.c head/sys/dev/isp/isp_library.c head/sys/dev/isp/isp_library.h

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

2020-11-24 Thread Alexander Motin
Author: mav Date: Tue Nov 24 22:43:27 2020 New Revision: 368001 URL: https://svnweb.freebsd.org/changeset/base/368001 Log: Remove more legacy of parallel SCSI. Modified: head/sys/dev/isp/isp_freebsd.c head/sys/dev/isp/isp_freebsd.h head/sys/dev/isp/isp_pci.c head/sys/dev/isp/ispvar.h

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

2020-11-24 Thread Alexander Motin
Author: mav Date: Tue Nov 24 17:37:12 2020 New Revision: 367991 URL: https://svnweb.freebsd.org/changeset/base/367991 Log: Update RQSFLAG_* definitions. Modified: head/sys/dev/isp/isp.c head/sys/dev/isp/ispmbox.h Modified: head/sys/dev/isp/isp.c

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

2020-11-24 Thread Alexander Motin
Author: mav Date: Tue Nov 24 15:32:25 2020 New Revision: 367986 URL: https://svnweb.freebsd.org/changeset/base/367986 Log: Remove concept of mbox_sleep_ok. It was broken by design and unused for years due to conflicts between different threads, fighting for the same set of mailbox

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

2020-11-24 Thread Alexander Motin
Author: mav Date: Tue Nov 24 14:05:52 2020 New Revision: 367985 URL: https://svnweb.freebsd.org/changeset/base/367985 Log: Remove unneeded locking around xpt_bus_[de]register(). MFC after:2 weeks Modified: head/sys/dev/isp/isp_freebsd.c Modified: head/sys/dev/isp/isp_freebsd.c

svn commit: r367982 - in stable/12/sys: cam cam/ctl dev/iscsi dev/isp dev/mpr dev/mps dev/ocs_fc

2020-11-24 Thread Alexander Motin
Author: mav Date: Tue Nov 24 13:17:12 2020 New Revision: 367982 URL: https://svnweb.freebsd.org/changeset/base/367982 Log: MFC r367044: Introduce support of SCSI Command Priority. SAM-3 specification introduced concept of Task Priority, that was renamed to Command Priority in SAM-4, and

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

2020-11-23 Thread Alexander Motin
Author: mav Date: Tue Nov 24 04:16:49 2020 New Revision: 367979 URL: https://svnweb.freebsd.org/changeset/base/367979 Log: Implement request queue overflow protection. Before this change in case of request queue overflow driver just froze the device queue for 100ms to retry after. It

svn commit: r367974 - in stable/12/sys/dev: ahci mvs siis

2020-11-23 Thread Alexander Motin
Author: mav Date: Tue Nov 24 00:30:47 2020 New Revision: 367974 URL: https://svnweb.freebsd.org/changeset/base/367974 Log: MFC r366922, r367915, r367916: Pass lower 3 bits of sector_count for FPDMA commands. When this code was written those bits were N/A, but now the lowest bit is

Re: svn commit: r367929 - head/sys/dev/isp

2020-11-22 Thread Alexander Motin
On 22.11.2020 10:23, Kyle Evans wrote: > On Sat, Nov 21, 2020 at 11:43 PM Alexander Motin wrote: >> Author: mav >> Date: Sun Nov 22 05:42:52 2020 >> New Revision: 367929 >> URL: https://svnweb.freebsd.org/changeset/base/367929 >> >> Log: >> Fix build

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

2020-11-22 Thread Alexander Motin
Author: mav Date: Sun Nov 22 16:13:09 2020 New Revision: 367937 URL: https://svnweb.freebsd.org/changeset/base/367937 Log: Fix debug build after 367926. Modified: head/sys/dev/isp/isp_freebsd.c Modified: head/sys/dev/isp/isp_freebsd.c

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

2020-11-21 Thread Alexander Motin
Author: mav Date: Sun Nov 22 05:42:52 2020 New Revision: 367929 URL: https://svnweb.freebsd.org/changeset/base/367929 Log: Fix build after 367926. Option ISP_TARGET_MODE is evil. Modified: head/sys/dev/isp/isp.c Modified: head/sys/dev/isp/isp.c

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

2020-11-21 Thread Alexander Motin
Author: mav Date: Sun Nov 22 04:29:55 2020 New Revision: 367926 URL: https://svnweb.freebsd.org/changeset/base/367926 Log: Make handlers and atpds overflows unlikely. - Allocate 256 handlers more than payload commands for management purposes. - Increase maximum number of handlers from

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

2020-11-21 Thread Alexander Motin
Author: mav Date: Sun Nov 22 04:10:13 2020 New Revision: 367925 URL: https://svnweb.freebsd.org/changeset/base/367925 Log: Do not parent all busdma tags to the payload tag. There is not much to inherit any more, may create more problems than solve. Instead parent them all directly to

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

2020-11-21 Thread Alexander Motin
Author: mav Date: Sun Nov 22 02:51:30 2020 New Revision: 367924 URL: https://svnweb.freebsd.org/changeset/base/367924 Log: Remove remnants of execthrottle and maxalloc parameters. The first was obsolete since 26xx, not used on 25xx and not needed on 24xx. The second seems never worked on

svn commit: r367916 - head/sys/dev/siis

2020-11-20 Thread Alexander Motin
Author: mav Date: Sat Nov 21 00:53:31 2020 New Revision: 367916 URL: https://svnweb.freebsd.org/changeset/base/367916 Log: Unlucky change... MFC after:3 days Modified: head/sys/dev/siis/siis.c Modified: head/sys/dev/siis/siis.c

svn commit: r367915 - in head/sys/dev: ahci siis

2020-11-20 Thread Alexander Motin
Author: mav Date: Sat Nov 21 00:51:39 2020 New Revision: 367915 URL: https://svnweb.freebsd.org/changeset/base/367915 Log: Fix stupid math mistake in r366922. MFC after:3 days Modified: head/sys/dev/ahci/ahci.c head/sys/dev/siis/siis.c Modified: head/sys/dev/ahci/ahci.c

svn commit: r367914 - in stable/12: sys/dev/iscsi usr.sbin/iscsid

2020-11-20 Thread Alexander Motin
Author: mav Date: Sat Nov 21 00:40:59 2020 New Revision: 367914 URL: https://svnweb.freebsd.org/changeset/base/367914 Log: MFC r366953: Negotiate iSCSIProtocolLevel of 2 (RFC 7144) in initiator. It does not change anything immediately, but allows further support of Command Priority,

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

2020-11-20 Thread Alexander Motin
Author: mav Date: Fri Nov 20 19:36:34 2020 New Revision: 367909 URL: https://svnweb.freebsd.org/changeset/base/367909 Log: Increase queue depths from 1024/256 to 8192/1024 IOCBs. Qlogic chips store S/G lists in the same queue as requests themselves. In the worst case 1MB I/O may require

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

2020-11-20 Thread Alexander Motin
Author: mav Date: Fri Nov 20 18:02:04 2020 New Revision: 367906 URL: https://svnweb.freebsd.org/changeset/base/367906 Log: Cleanup DMA handling. - Make isp_start() to set all the IOCB fields aside of S/G list, removing extra information from isp_send_cmd(), now only doing S/G lists and

svn commit: r367862 - head/sys/cam

2020-11-19 Thread Alexander Motin
Author: mav Date: Fri Nov 20 05:46:27 2020 New Revision: 367862 URL: https://svnweb.freebsd.org/changeset/base/367862 Log: Microoptimize cam_num_doneqs math in xpt_done(). MFC after:1 week Modified: head/sys/cam/cam_xpt.c Modified: head/sys/cam/cam_xpt.c

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

2020-11-19 Thread Alexander Motin
Author: mav Date: Fri Nov 20 02:03:58 2020 New Revision: 367858 URL: https://svnweb.freebsd.org/changeset/base/367858 Log: Fix r367857 build without ISP_TARGET_MODE. Modified: head/sys/dev/isp/isp_pci.c Modified: head/sys/dev/isp/isp_pci.c

svn commit: r367857 - in head: share/man/man4 sys/dev/isp sys/dev/ispfw sys/modules/ispfw sys/modules/ispfw/isp_1000 sys/modules/ispfw/isp_1040 sys/modules/ispfw/isp_1080 sys/modules/ispfw/isp_1216...

2020-11-19 Thread Alexander Motin
/man4/isp.4 Fri Nov 20 00:30:58 2020(r367856) +++ head/share/man/man4/isp.4 Fri Nov 20 01:15:48 2020(r367857) @@ -1,4 +1,4 @@ -.\" Copyright (c) 2009-2018 Alexander Motin +.\" Copyright (c) 2009-2020 Alexander Motin .\" Copyright (c) 2006 Marcus Alves Grando .

svn commit: r367856 - in stable/12/sbin/nvmecontrol: . modules/wdc

2020-11-19 Thread Alexander Motin
Author: mav Date: Fri Nov 20 00:30:58 2020 New Revision: 367856 URL: https://svnweb.freebsd.org/changeset/base/367856 Log: MFC r367630: Improve nvmecontrol error reporting. Modified: stable/12/sbin/nvmecontrol/comnd.c stable/12/sbin/nvmecontrol/devlist.c

svn commit: r367855 - stable/12/sbin/nvmecontrol/modules/wdc

2020-11-19 Thread Alexander Motin
Author: mav Date: Fri Nov 20 00:30:07 2020 New Revision: 367855 URL: https://svnweb.freebsd.org/changeset/base/367855 Log: MFC r366506, r366511: nvmecontrol: Update wdc module for newer WDC NVMe products Update the to log fetch operation for latest WDC NVMe products. Tested on HGST

svn commit: r367825 - stable/12/sys/dev/nvme

2020-11-18 Thread Alexander Motin
Author: mav Date: Thu Nov 19 02:44:08 2020 New Revision: 367825 URL: https://svnweb.freebsd.org/changeset/base/367825 Log: MFC r367625: Fix panic if NVMe is detached before the intrhook call. Modified: stable/12/sys/dev/nvme/nvme.c stable/12/sys/dev/nvme/nvme_ctrlr.c Directory Properties:

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

2020-11-17 Thread Alexander Motin
Author: mav Date: Wed Nov 18 03:43:03 2020 New Revision: 367784 URL: https://svnweb.freebsd.org/changeset/base/367784 Log: Move ecmd memory allocation itto separate DMA tag. Ecmd memory is not directly related to the request queue, only referenced from it sometimes in target mode.

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

2020-11-17 Thread Alexander Motin
Author: mav Date: Wed Nov 18 02:54:05 2020 New Revision: 367782 URL: https://svnweb.freebsd.org/changeset/base/367782 Log: Remove bus_dma locking/sleeping when not needed. MFC after:1 month Modified: head/sys/dev/isp/isp_pci.c Modified: head/sys/dev/isp/isp_pci.c

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

2020-11-17 Thread Alexander Motin
Author: mav Date: Wed Nov 18 02:12:51 2020 New Revision: 367781 URL: https://svnweb.freebsd.org/changeset/base/367781 Log: Don't allocate full XCMD_SIZE (512 bytes) on stack. We need only 24 bytes (fcp_rsp_iu_t) there for isp_put_fcp_rsp_iu(). MFC after:1 month Modified:

svn commit: r367780 - stable/12/sys/cam/ctl

2020-11-17 Thread Alexander Motin
Author: mav Date: Wed Nov 18 02:05:59 2020 New Revision: 367780 URL: https://svnweb.freebsd.org/changeset/base/367780 Log: MFC r367600: Make CTL nicer to increased MAXPHYS. Before this CTL always allocated MAXPHYS-sized buffers, even for 4KB I/O, that is even more overkill for MAXPHYS of

svn commit: r367768 - in head/sbin/nvmecontrol: . modules/wdc

2020-11-17 Thread Alexander Motin
Author: mav Date: Tue Nov 17 16:34:58 2020 New Revision: 367768 URL: https://svnweb.freebsd.org/changeset/base/367768 Log: Stop using NVME_MAX_XFER_SIZE constant. This constant depends on MAXPHYS and does not respect device capabilities. Use proper dynamic ioctl(NVME_GET_MAX_XFER_SIZE)

svn commit: r367739 - stable/12/sys/dev/nvme

2020-11-16 Thread Alexander Motin
Author: mav Date: Tue Nov 17 00:35:59 2020 New Revision: 367739 URL: https://svnweb.freebsd.org/changeset/base/367739 Log: MFC r367659: Add PMRCAP printing and fix earlier CAP_HI. Modified: stable/12/sys/dev/nvme/nvme.h stable/12/sys/dev/nvme/nvme_ctrlr.c Directory Properties: stable/12/

Re: svn commit: r367359 - stable/12/sys/dev/pci

2020-11-14 Thread Alexander Motin
Nov 13 15:12:44 xxx kernel: pcib29: Timed out waiting for Data Link > Layer Active > Nov 13 15:13:04 xxx kernel: pcib11: Timed out waiting for Data Link > Layer Active > ... > > Flipping the tunable back to 0 workarounds the problem. > > Reproduced both on latest head and stabl

svn commit: r367659 - head/sys/dev/nvme

2020-11-13 Thread Alexander Motin
Author: mav Date: Sat Nov 14 01:45:34 2020 New Revision: 367659 URL: https://svnweb.freebsd.org/changeset/base/367659 Log: Add PMRCAP printing and fix earlier CAP_HI. MFC after:3 days Modified: head/sys/dev/nvme/nvme.h head/sys/dev/nvme/nvme_ctrlr.c Modified:

svn commit: r367630 - in head/sbin/nvmecontrol: . modules/wdc

2020-11-12 Thread Alexander Motin
Author: mav Date: Fri Nov 13 02:05:45 2020 New Revision: 367630 URL: https://svnweb.freebsd.org/changeset/base/367630 Log: Improve nvmecontrol error reporting. MFC after:1 week Sponsored by: iXsystems, Inc. Modified: head/sbin/nvmecontrol/comnd.c head/sbin/nvmecontrol/devlist.c

svn commit: r367625 - head/sys/dev/nvme

2020-11-12 Thread Alexander Motin
Author: mav Date: Thu Nov 12 20:20:43 2020 New Revision: 367625 URL: https://svnweb.freebsd.org/changeset/base/367625 Log: Fix panic if NVMe is detached before the intrhook call. MFC after:1 week Sponsored by: iXsystems, Inc. Modified: head/sys/dev/nvme/nvme.c

svn commit: r367600 - head/sys/cam/ctl

2020-11-11 Thread Alexander Motin
Author: mav Date: Wed Nov 11 21:59:39 2020 New Revision: 367600 URL: https://svnweb.freebsd.org/changeset/base/367600 Log: Make CTL nicer to increased MAXPHYS. Before this CTL always allocated MAXPHYS-sized buffers, even for 4KB I/O, that is even more overkill for MAXPHYS of 1MB. This

svn commit: r367506 - in stable/12/sys: cam dev/ahci dev/siis

2020-11-08 Thread Alexander Motin
Author: mav Date: Mon Nov 9 01:14:22 2020 New Revision: 367506 URL: https://svnweb.freebsd.org/changeset/base/367506 Log: MFC r367261: Add icc (Isochronous Command Completion) ccb_ataio field. Modified: stable/12/sys/cam/cam_ccb.h stable/12/sys/dev/ahci/ahci.c

svn commit: r367505 - stable/12/sys/kern

2020-11-08 Thread Alexander Motin
Author: mav Date: Mon Nov 9 01:13:28 2020 New Revision: 367505 URL: https://svnweb.freebsd.org/changeset/base/367505 Log: MFC r367052: Enable bioq 'car limit' added at r335066 at 128 bios. Without the 'car limit' enabled (before this), running sequential ZFS scrub on HDD without command

svn commit: r367469 - stable/11/sys/dev/ocs_fc

2020-11-07 Thread Alexander Motin
Author: mav Date: Sun Nov 8 00:31:49 2020 New Revision: 367469 URL: https://svnweb.freebsd.org/changeset/base/367469 Log: MFC r367041: Fix incorrect constants of target tag action. ocs_scsi_recv_cmd() receives the flags after ocs_get_flags_fcp_cmd(), which translates them from

svn commit: r367468 - stable/12/sys/dev/ocs_fc

2020-11-07 Thread Alexander Motin
Author: mav Date: Sun Nov 8 00:30:53 2020 New Revision: 367468 URL: https://svnweb.freebsd.org/changeset/base/367468 Log: MFC r367041: Fix incorrect constants of target tag action. ocs_scsi_recv_cmd() receives the flags after ocs_get_flags_fcp_cmd(), which translates them from

svn commit: r367446 - in stable/12/sys: geom kern sys

2020-11-07 Thread Alexander Motin
Author: mav Date: Sat Nov 7 13:16:11 2020 New Revision: 367446 URL: https://svnweb.freebsd.org/changeset/base/367446 Log: MFC r367022: Fix asymmetry in devstat(9) calls by GEOM. Before this GEOM passed bio pointer to transaction end, but not start. It was irrelevant until devstat(9) got

svn commit: r367359 - stable/12/sys/dev/pci

2020-11-04 Thread Alexander Motin
Author: mav Date: Thu Nov 5 02:57:40 2020 New Revision: 367359 URL: https://svnweb.freebsd.org/changeset/base/367359 Log: MFC r364038: Enable hw.pci.enable_aspm tunable by default. While effects on power saving is only a guess, effects on hot-plug are clearly visible. Lets try to

svn commit: r367330 - stable/12/sbin/nvmecontrol

2020-11-04 Thread Alexander Motin
Author: mav Date: Wed Nov 4 14:13:29 2020 New Revision: 367330 URL: https://svnweb.freebsd.org/changeset/base/367330 Log: MFC r367112: Use proper variable for device path. It seems *-passthru commands were broken from the day one, since the device path is fetched into opt.dev variable

svn commit: r367329 - stable/12/sys/dev/nvme

2020-11-04 Thread Alexander Motin
Author: mav Date: Wed Nov 4 14:12:29 2020 New Revision: 367329 URL: https://svnweb.freebsd.org/changeset/base/367329 Log: MFC r367109, r367113: Print NVMe controller capabilities in verbose dmesg. Those values are not reported in controller identification, while sometimes interesting

svn commit: r367261 - in head/sys: cam dev/ahci dev/siis

2020-11-01 Thread Alexander Motin
Author: mav Date: Mon Nov 2 01:01:41 2020 New Revision: 367261 URL: https://svnweb.freebsd.org/changeset/base/367261 Log: Add icc (Isochronous Command Completion) ccb_ataio field. MFC after:1 week Modified: head/sys/cam/cam_ccb.h head/sys/dev/ahci/ahci.c

svn commit: r367124 - stable/12/sys/dev/sound/pci/hda

2020-10-28 Thread Alexander Motin
Author: mav Date: Thu Oct 29 00:30:38 2020 New Revision: 367124 URL: https://svnweb.freebsd.org/changeset/base/367124 Log: MFC r366733: Drop unsolicited responses to the still attaching CODECs. It is reported to fix kernel panics when early unsolicited responses delivered to the CODEC

svn commit: r367113 - head/sys/dev/nvme

2020-10-28 Thread Alexander Motin
Author: mav Date: Wed Oct 28 18:22:25 2020 New Revision: 367113 URL: https://svnweb.freebsd.org/changeset/base/367113 Log: Fix unintentional constant rename in r367109. MFC after:1 week Modified: head/sys/dev/nvme/nvme.h Modified: head/sys/dev/nvme/nvme.h

svn commit: r367112 - head/sbin/nvmecontrol

2020-10-28 Thread Alexander Motin
Author: mav Date: Wed Oct 28 17:28:48 2020 New Revision: 367112 URL: https://svnweb.freebsd.org/changeset/base/367112 Log: Use proper variable for device path. It seems *-passthru commands were broken from the day one, since the device path is fetched into opt.dev variable and not left

svn commit: r367109 - head/sys/dev/nvme

2020-10-28 Thread Alexander Motin
Author: mav Date: Wed Oct 28 15:43:29 2020 New Revision: 367109 URL: https://svnweb.freebsd.org/changeset/base/367109 Log: Print NVMe controller capabilities in verbose dmesg. Those values are not reported in controller identification, while sometimes interesting for development and

svn commit: r367052 - head/sys/kern

2020-10-25 Thread Alexander Motin
Author: mav Date: Mon Oct 26 04:04:06 2020 New Revision: 367052 URL: https://svnweb.freebsd.org/changeset/base/367052 Log: Enable bioq 'car limit' added at r335066 at 128 bios. Without the 'car limit' enabled (before this), running sequential ZFS scrub on HDD without command queuing

svn commit: r367044 - in head/sys: cam cam/ctl dev/iscsi dev/isp dev/mpr dev/mps dev/ocs_fc

2020-10-25 Thread Alexander Motin
Author: mav Date: Sun Oct 25 19:34:02 2020 New Revision: 367044 URL: https://svnweb.freebsd.org/changeset/base/367044 Log: Introduce support of SCSI Command Priority. SAM-3 specification introduced concept of Task Priority, that was renamed to Command Priority in SAM-4, and supported by

svn commit: r367041 - head/sys/dev/ocs_fc

2020-10-25 Thread Alexander Motin
Author: mav Date: Sun Oct 25 16:58:48 2020 New Revision: 367041 URL: https://svnweb.freebsd.org/changeset/base/367041 Log: Fix incorrect constants of target tag action. ocs_scsi_recv_cmd() receives the flags after ocs_get_flags_fcp_cmd(), which translates them from FCP_TASK_ATTR_* to

svn commit: r367022 - in head/sys: geom kern sys

2020-10-24 Thread Alexander Motin
Author: mav Date: Sat Oct 24 21:07:10 2020 New Revision: 367022 URL: https://svnweb.freebsd.org/changeset/base/367022 Log: Fix asymmetry in devstat(9) calls by GEOM. Before this GEOM passed bio pointer to transaction start, but not end. It was irrelevant until devstat(9) got DTrace

svn commit: r366953 - in head: sys/dev/iscsi usr.sbin/iscsid

2020-10-22 Thread Alexander Motin
Author: mav Date: Thu Oct 22 20:26:27 2020 New Revision: 366953 URL: https://svnweb.freebsd.org/changeset/base/366953 Log: Negotiate iSCSIProtocolLevel of 2 (RFC 7144) in initiator. It does not change anything immediately, but allows further support of Command Priority, Status Qualifier

svn commit: r366922 - in head/sys/dev: ahci mvs siis

2020-10-21 Thread Alexander Motin
Author: mav Date: Thu Oct 22 03:30:39 2020 New Revision: 366922 URL: https://svnweb.freebsd.org/changeset/base/366922 Log: Pass lower 3 bits of sector_count for FPDMA commands. When this code was written those bits were N/A, but now the lowest bit is Rebuild Assist Recovery Control

svn commit: r366905 - stable/12/sys/dev/nvme

2020-10-20 Thread Alexander Motin
Author: mav Date: Wed Oct 21 00:46:53 2020 New Revision: 366905 URL: https://svnweb.freebsd.org/changeset/base/366905 Log: MFC r366707: Use RTD3 Entry Latency value as shutdown timeout. This field was not in specs when the driver was written, but now there are SSDs with the reported

svn commit: r366868 - in stable/11/sys/cam: ata scsi

2020-10-19 Thread Alexander Motin
Author: mav Date: Tue Oct 20 02:32:40 2020 New Revision: 366868 URL: https://svnweb.freebsd.org/changeset/base/366868 Log: MFC r366689: Fix sbuf_finish() error code check in user-space. Modified: stable/11/sys/cam/ata/ata_all.c stable/11/sys/cam/scsi/scsi_all.c Directory Properties:

svn commit: r366867 - in stable/12/sys/cam: ata nvme scsi

2020-10-19 Thread Alexander Motin
Author: mav Date: Tue Oct 20 02:28:07 2020 New Revision: 366867 URL: https://svnweb.freebsd.org/changeset/base/366867 Log: MFC r366689: Fix sbuf_finish() error code check in user-space. Modified: stable/12/sys/cam/ata/ata_all.c stable/12/sys/cam/nvme/nvme_all.c

svn commit: r366860 - stable/12/sbin/nvmecontrol

2020-10-19 Thread Alexander Motin
+1,5 @@ .\" +.\" Copyright (c) 2020 Warner Losh .\" Copyright (c) 2018-2019 Alexander Motin .\" Copyright (c) 2012 Intel Corporation .\" All rights reserved. @@ -34,7 +35,7 @@ .\" .\" $FreeBSD$ .\" -.Dd August 5, 2019 +.Dd April 30, 2020 .Dt NVM

svn commit: r366859 - stable/12/sbin/nvmecontrol

2020-10-19 Thread Alexander Motin
Author: mav Date: Mon Oct 19 20:40:03 2020 New Revision: 366859 URL: https://svnweb.freebsd.org/changeset/base/366859 Log: MFC r352671 (by imp): Size is unsigned, so remove the test entirely. The kernel won't crash if you have a bad value and I'd rather not have nvmecontrol know the

svn commit: r366858 - stable/12/sbin/nvmecontrol

2020-10-19 Thread Alexander Motin
Author: mav Date: Mon Oct 19 20:39:00 2020 New Revision: 366858 URL: https://svnweb.freebsd.org/changeset/base/366858 Log: MFC r352665 (by imp): After my comnd changes, the number of threads and size weren't set. In addition, the flags are optional, but were made to be mandatory. Set

svn commit: r366856 - stable/12/sbin/nvmecontrol

2020-10-19 Thread Alexander Motin
Author: mav Date: Mon Oct 19 20:37:04 2020 New Revision: 366856 URL: https://svnweb.freebsd.org/changeset/base/366856 Log: MFC r352212 (by imp): Assume all the short args have optional args so allocate space for the ':'. It's slightly wasteful, but much easier (and the savings in bytes at

svn commit: r366803 - stable/12/sbin/nvmecontrol

2020-10-17 Thread Alexander Motin
Author: mav Date: Sun Oct 18 01:13:41 2020 New Revision: 366803 URL: https://svnweb.freebsd.org/changeset/base/366803 Log: MFC r366730: Fix nvmecontrol logpage -i parameter. Modified: stable/12/sbin/nvmecontrol/logpage.c Directory Properties: stable/12/ (props changed) Modified:

svn commit: r366733 - head/sys/dev/sound/pci/hda

2020-10-15 Thread Alexander Motin
Author: mav Date: Thu Oct 15 17:40:02 2020 New Revision: 366733 URL: https://svnweb.freebsd.org/changeset/base/366733 Log: Drop unsolicited responses to the still attaching CODECs. It is reported to fix kernel panics when early unsolicited responses delivered to the CODEC device not

svn commit: r366730 - head/sbin/nvmecontrol

2020-10-15 Thread Alexander Motin
Author: mav Date: Thu Oct 15 15:36:08 2020 New Revision: 366730 URL: https://svnweb.freebsd.org/changeset/base/366730 Log: Fix nvmecontrol logpage -i parameter. MFC after:3 days Modified: head/sbin/nvmecontrol/logpage.c Modified: head/sbin/nvmecontrol/logpage.c

svn commit: r366707 - head/sys/dev/nvme

2020-10-14 Thread Alexander Motin
Author: mav Date: Wed Oct 14 15:50:28 2020 New Revision: 366707 URL: https://svnweb.freebsd.org/changeset/base/366707 Log: Use RTD3 Entry Latency value as shutdown timeout. This field was not in specs when the driver was written, but now there are SSDs with the reported latency of 10s,

svn commit: r366689 - in head/sys/cam: ata nvme scsi

2020-10-13 Thread Alexander Motin
Author: mav Date: Tue Oct 13 23:29:06 2020 New Revision: 366689 URL: https://svnweb.freebsd.org/changeset/base/366689 Log: Fix sbuf_finish() error code check in user-space. MFC after:1 week Sponsored by: iXsystems, Inc. Modified: head/sys/cam/ata/ata_all.c

svn commit: r366675 - stable/12/sys/kern

2020-10-13 Thread Alexander Motin
Author: mav Date: Tue Oct 13 17:50:01 2020 New Revision: 366675 URL: https://svnweb.freebsd.org/changeset/base/366675 Log: MFC r355083 (by rlibby): sysctl: wire old buf before output with sysctl lock Several sysctl sysctls output to a user buffer while holding a non-sleepable lock that

svn commit: r365634 - in releng/12.2/sys/powerpc: include powernv powerpc ps3 pseries

2020-09-11 Thread Alexander Motin
Author: mav Date: Fri Sep 11 15:30:47 2020 New Revision: 365634 URL: https://svnweb.freebsd.org/changeset/base/365634 Log: MFC r342852 (by cem): powerpc: Fix regression introduced in r342771 In r342771, I introduced a regression in Power by abusing the platform smp_topo() method as a

svn commit: r365632 - in stable/12/sys/powerpc: include powernv powerpc ps3 pseries

2020-09-11 Thread Alexander Motin
Author: mav Date: Fri Sep 11 14:00:10 2020 New Revision: 365632 URL: https://svnweb.freebsd.org/changeset/base/365632 Log: MFC r342852 (by cem): powerpc: Fix regression introduced in r342771 In r342771, I introduced a regression in Power by abusing the platform smp_topo() method as a

svn commit: r364981 - stable/12/sys/cam/scsi

2020-08-30 Thread Alexander Motin
Author: mav Date: Mon Aug 31 00:59:02 2020 New Revision: 364981 URL: https://svnweb.freebsd.org/changeset/base/364981 Log: MFC r364309: Extend EIIOE field handling according to ses4r5 draft. It should not affect any existing systems. Modified: stable/12/sys/cam/scsi/scsi_enc_ses.c

svn commit: r364789 - in stable/12/sys: amd64/acpica arm64/acpica i386/acpica

2020-08-25 Thread Alexander Motin
Author: mav Date: Wed Aug 26 00:28:28 2020 New Revision: 364789 URL: https://svnweb.freebsd.org/changeset/base/364789 Log: MFC r364399: Remove some noisy ACPI tables messages from verbose dmesg. Those messages were printed hundreds of times during boot, often multiple times for each

svn commit: r364601 - stable/12/sys/cam/ctl

2020-08-23 Thread Alexander Motin
Author: mav Date: Mon Aug 24 01:11:29 2020 New Revision: 364601 URL: https://svnweb.freebsd.org/changeset/base/364601 Log: MFC r364463: Fix CTL ioctl port creation error handling. Modified: stable/12/sys/cam/ctl/ctl_frontend_ioctl.c Directory Properties: stable/12/ (props changed)

svn commit: r364471 - stable/12/sys/dev/acpica

2020-08-21 Thread Alexander Motin
Author: mav Date: Sat Aug 22 00:42:33 2020 New Revision: 364471 URL: https://svnweb.freebsd.org/changeset/base/364471 Log: MFC r364407: Unify AcpiGetTable() KPI use in identify, probe and attach. While there, change probe order to not call AcpiGetTable() for every probed ACPI device.

svn commit: r364463 - head/sys/cam/ctl

2020-08-21 Thread Alexander Motin
Author: mav Date: Fri Aug 21 20:10:29 2020 New Revision: 364463 URL: https://svnweb.freebsd.org/changeset/base/364463 Log: Fix CTL ioctl port creation error handling. Submitted by: Bret Ketchum MFC after:3 days Differential Revision:https://reviews.freebsd.org/D26143

svn commit: r364414 - stable/12/sys/cam/nvme

2020-08-19 Thread Alexander Motin
Author: mav Date: Thu Aug 20 02:54:44 2020 New Revision: 364414 URL: https://svnweb.freebsd.org/changeset/base/364414 Log: MFC r364185: Fill device serial_num and device_id in NVMe XPT. It allows to report GEOM::lunid for nda(4) same as for nvd(4). Since NVMe now allows multiple LUs

svn commit: r364413 - stable/12/sys/cam/nvme

2020-08-19 Thread Alexander Motin
Author: mav Date: Thu Aug 20 02:51:18 2020 New Revision: 364413 URL: https://svnweb.freebsd.org/changeset/base/364413 Log: MFC r364178: Report proper stripesize for nda(4). Same as for nvd(4) report NPWG if present, otherise NOIOB. Modified: stable/12/sys/cam/nvme/nvme_da.c Directory

svn commit: r364407 - head/sys/dev/acpica

2020-08-19 Thread Alexander Motin
Author: mav Date: Wed Aug 19 19:55:12 2020 New Revision: 364407 URL: https://svnweb.freebsd.org/changeset/base/364407 Log: Unify AcpiGetTable() KPI use in identify, probe and attach. While there, change probe order to not call AcpiGetTable() for every probed ACPI device. PR:

svn commit: r364399 - in head/sys: amd64/acpica arm64/acpica i386/acpica

2020-08-19 Thread Alexander Motin
Author: mav Date: Wed Aug 19 16:09:36 2020 New Revision: 364399 URL: https://svnweb.freebsd.org/changeset/base/364399 Log: Remove some noisy ACPI tables messages from verbose dmesg. Those messages were printed hundreds of times during boot, often multiple times for each table. We

svn commit: r364309 - head/sys/cam/scsi

2020-08-17 Thread Alexander Motin
Author: mav Date: Mon Aug 17 15:11:46 2020 New Revision: 364309 URL: https://svnweb.freebsd.org/changeset/base/364309 Log: Extend EIIOE field handling according to ses4r5 draft. It should not affect any existing systems. MFC after:2 weeks Modified:

svn commit: r364185 - head/sys/cam/nvme

2020-08-12 Thread Alexander Motin
Author: mav Date: Thu Aug 13 02:32:46 2020 New Revision: 364185 URL: https://svnweb.freebsd.org/changeset/base/364185 Log: Fill device serial_num and device_id in NVMe XPT. It allows to report GEOM::lunid for nda(4) same as for nvd(4). Since NVMe now allows multiple LUs (namespaces)

svn commit: r364184 - in stable/12: sys/cam/ctl sys/cam/scsi usr.sbin/ctladm

2020-08-12 Thread Alexander Motin
== --- stable/12/usr.sbin/ctladm/ctladm.8 Thu Aug 13 00:40:40 2020 (r364183) +++ stable/12/usr.sbin/ctladm/ctladm.8 Thu Aug 13 00:42:09 2020 (r364184) @@ -1,6 +1,6 @@ .\" .\" Copyright (c) 2003 Silicon Graphics International Corp. -.\"

svn commit: r364183 - stable/12/sys/dev/ahci

2020-08-12 Thread Alexander Motin
Author: mav Date: Thu Aug 13 00:40:40 2020 New Revision: 364183 URL: https://svnweb.freebsd.org/changeset/base/364183 Log: MFC r363955: Add Intel Apollo Lake AHCI ID. Modified: stable/12/sys/dev/ahci/ahci_pci.c Directory Properties: stable/12/ (props changed) Modified:

svn commit: r364179 - head/sys/dev/nvme

2020-08-12 Thread Alexander Motin
Author: mav Date: Wed Aug 12 20:05:43 2020 New Revision: 364179 URL: https://svnweb.freebsd.org/changeset/base/364179 Log: Report cpi->hba_* for nda(4) because why not. MFC after:1 week Modified: head/sys/dev/nvme/nvme_sim.c Modified: head/sys/dev/nvme/nvme_sim.c

svn commit: r364178 - head/sys/cam/nvme

2020-08-12 Thread Alexander Motin
Author: mav Date: Wed Aug 12 19:37:57 2020 New Revision: 364178 URL: https://svnweb.freebsd.org/changeset/base/364178 Log: Report proper stripesize for nda(4). Same as for nvd(4) report NPWG if present, otherise NOIOB. MFC after:1 week Modified: head/sys/cam/nvme/nvme_da.c

svn commit: r364177 - head/sys/dev/nvd

2020-08-12 Thread Alexander Motin
. - * Copyright (C) 2018 Alexander Motin + * Copyright (C) 2018-2020 Alexander Motin * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -45,7 +45,10 @@ __FBSDID("$FreeBSD$"); #include #include

  1   2   3   4   5   6   7   8   9   10   >