svn commit: r368769 - head/sys/net

2020-12-18 Thread Alexander V. Chernikov
Author: melifaro Date: Fri Dec 18 22:00:57 2020 New Revision: 368769 URL: https://svnweb.freebsd.org/changeset/base/368769 Log: Switch direct rt fields access in rtsock.c to newly-create field acessors. rtsock code was build around the assumption that each rtentry record in the system

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: r368651 - head/sys/netpfil/ipfw

2020-12-14 Thread Alexander V. Chernikov
Author: melifaro Date: Mon Dec 14 22:54:32 2020 New Revision: 368651 URL: https://svnweb.freebsd.org/changeset/base/368651 Log: Fix LINT-NOINET6 build after r368571. Reported by: mjg Modified: head/sys/netpfil/ipfw/ip_fw_table_algo.c Modified: head/sys/netpfil/ipfw/ip_fw_table_algo.c

svn commit: r368648 - in head/sys: amd64/conf arm64/conf i386/conf powerpc/conf riscv/conf

2020-12-14 Thread Alexander V. Chernikov
Author: melifaro Date: Mon Dec 14 22:23:08 2020 New Revision: 368648 URL: https://svnweb.freebsd.org/changeset/base/368648 Log: Enable ROUTE_MPATH support in GENERIC kernels. Ability to load-balance traffic over multiple path is a must-have thing for routers. It may be used by the

Re: svn commit: r364761 - in head: share/mk sys/conf sys/modules/cloudabi32 sys/modules/cloudabi64 sys/modules/linux sys/modules/linux64

2020-12-14 Thread Alexander Richardson
On Sun, 13 Dec 2020 at 19:22, Ryan Libby wrote: > > On Tue, Aug 25, 2020 at 6:30 AM Alex Richardson > wrote: > > > > Author: arichardson > > Date: Tue Aug 25 13:30:03 2020 > > New Revision: 364761 > > URL: https://svnweb.freebsd.org/changeset/base/364761 > > > > Log: > > Pass

Re: svn commit: r368609 - in head/sys: kern sys

2020-12-13 Thread Alexander Richardson
On Sun, 13 Dec 2020 at 18:06, Mateusz Guzik wrote: > > Author: mjg > Date: Sun Dec 13 18:06:24 2020 > New Revision: 368609 > URL: https://svnweb.freebsd.org/changeset/base/368609 > > Log: > fd: fix fdrop prediction when closing a fd > > Most of the time this is the last reference, contrary to

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: r368572 - head/sys/netpfil/ipfw

2020-12-11 Thread Alexander V. Chernikov
Author: melifaro Date: Sat Dec 12 01:05:31 2020 New Revision: 368572 URL: https://svnweb.freebsd.org/changeset/base/368572 Log: Fix NOINET6 build broken by r368571. Modified: head/sys/netpfil/ipfw/ip_fw_table_algo.c Modified: head/sys/netpfil/ipfw/ip_fw_table_algo.c

svn commit: r368571 - head/sys/netpfil/ipfw

2020-12-11 Thread Alexander V. Chernikov
Author: melifaro Date: Fri Dec 11 23:57:30 2020 New Revision: 368571 URL: https://svnweb.freebsd.org/changeset/base/368571 Log: ipfw kfib algo: Use rt accessors instead of accessing rib/rtentry directly. This removes assumptions on prefix storage and rtentry layout from an external

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)

Re: svn commit: r368329 - head/stand/kshim

2020-12-04 Thread Alexander Richardson
On Fri, 4 Dec 2020 at 16:06, Hans Petter Selasky wrote: > > On 12/4/20 4:59 PM, Alexander Richardson wrote: > > On Fri, 4 Dec 2020 at 14:51, Hans Petter Selasky > > wrote: > >> > >> Author: hselasky > >> Date: Fri Dec 4 14:50:55 2

Re: svn commit: r368329 - head/stand/kshim

2020-12-04 Thread Alexander Richardson
On Fri, 4 Dec 2020 at 14:51, Hans Petter Selasky wrote: > > Author: hselasky > Date: Fri Dec 4 14:50:55 2020 > New Revision: 368329 > URL: https://svnweb.freebsd.org/changeset/base/368329 > > Log: > Fix definition of int64_t and uint64_t when long is 64-bit. This gets the > kernel > shim

svn commit: r368317 - head/sys/net/route

2020-12-03 Thread Alexander V. Chernikov
Author: melifaro Date: Thu Dec 3 22:23:57 2020 New Revision: 368317 URL: https://svnweb.freebsd.org/changeset/base/368317 Log: Add IPv4/IPv6 rtentry prefix accessors. Multiple consumers like ipfw, netflow or new route lookup algorithms need to get the prefix data out of struct rtentry.

svn commit: r368199 - head/sys/kern

2020-11-30 Thread Alexander V. Chernikov
Author: melifaro Date: Mon Nov 30 21:59:52 2020 New Revision: 368199 URL: https://svnweb.freebsd.org/changeset/base/368199 Log: Move inner loop logic out of sysctl_sysctl_next_ls(). Refactor sysctl_sysctl_next_ls(): * Move huge inner loop out of sysctl_sysctl_next_ls() into a separate

svn commit: r368198 - head/sys/net

2020-11-30 Thread Alexander V. Chernikov
Author: melifaro Date: Mon Nov 30 21:42:55 2020 New Revision: 368198 URL: https://svnweb.freebsd.org/changeset/base/368198 Log: Renumber NHR_* flags after NHR_IFAIF removal in r368127. Suggested by: rpokala Modified: head/sys/net/route.h Modified: head/sys/net/route.h

svn commit: r368164 - in head/sys: conf net net/route netinet netinet6

2020-11-29 Thread Alexander V. Chernikov
Author: melifaro Date: Sun Nov 29 19:43:33 2020 New Revision: 368164 URL: https://svnweb.freebsd.org/changeset/base/368164 Log: Remove RADIX_MPATH config option. ROUTE_MPATH is the new config option controlling new multipath routing implementation. Remove the last pieces of

svn commit: r368150 - head/sys/net/route

2020-11-29 Thread Alexander V. Chernikov
Author: melifaro Date: Sun Nov 29 13:54:49 2020 New Revision: 368150 URL: https://svnweb.freebsd.org/changeset/base/368150 Log: Introduce rib_walk_ext_internal() to allow iteration with rnh pointer. This solves the case when rib is not yet attached/detached to/from the system rib array.

svn commit: r368149 - head/sys/net/route

2020-11-29 Thread Alexander V. Chernikov
Author: melifaro Date: Sun Nov 29 13:52:06 2020 New Revision: 368149 URL: https://svnweb.freebsd.org/changeset/base/368149 Log: Add nhop_ref_any() to unify referencing nhop or nexthop group. It allows code within routing subsystem to transparently reference nexthops and nexthop groups,

svn commit: r368147 - in head/sys: net netinet netinet6

2020-11-29 Thread Alexander V. Chernikov
Author: melifaro Date: Sun Nov 29 13:41:49 2020 New Revision: 368147 URL: https://svnweb.freebsd.org/changeset/base/368147 Log: Refactor fib4/fib6 functions. No functional changes. * Make lookup path of fib<4|6>_lookup_debugnet() separate functions (fib<46>_lookup_rt()). These will

svn commit: r368146 - head/sys/net/route

2020-11-29 Thread Alexander V. Chernikov
Author: melifaro Date: Sun Nov 29 13:27:24 2020 New Revision: 368146 URL: https://svnweb.freebsd.org/changeset/base/368146 Log: Add tracking for rib/nhops/nhgrp objects and provide cumulative number accessors. The resulting KPI can be used by routing table consumers to estimate the

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: r368128 - head/sys/net/route

2020-11-28 Thread Alexander V. Chernikov
Author: melifaro Date: Sat Nov 28 15:46:40 2020 New Revision: 368128 URL: https://svnweb.freebsd.org/changeset/base/368128 Log: Add nhgrp_get_idx() as a counterpart for nhop_get_idx(). It allows the routing-related code to reference nexthop groups by index instead of storing a pointer.

svn commit: r368127 - head/sys/net

2020-11-28 Thread Alexander V. Chernikov
Author: melifaro Date: Sat Nov 28 15:11:59 2020 New Revision: 368127 URL: https://svnweb.freebsd.org/changeset/base/368127 Log: Cleanup nexthops request flags: * remove NHR_IFAIF as it was used by previous version of nexthop KPI * update NHR_REF description Modified: head/sys/net/route.h

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

svn commit: r367941 - in head/sys: net net/route netinet netinet6

2020-11-22 Thread Alexander V. Chernikov
Author: melifaro Date: Sun Nov 22 20:21:10 2020 New Revision: 367941 URL: https://svnweb.freebsd.org/changeset/base/367941 Log: Refactor rib iterator functions. * Make rib_walk() order of arguments consistent with the rest of RIB api * Add rib_walk_ext() allowing to exec callback

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: r367491 - in head: . sys/net/route

2020-11-08 Thread Alexander V. Chernikov
Author: melifaro Date: Sun Nov 8 18:27:49 2020 New Revision: 367491 URL: https://svnweb.freebsd.org/changeset/base/367491 Log: Switch net.add_addr_allfibs default to 0. The goal of the fib support is to provide multiple independent routing tables, isolated from each other.

svn commit: r367490 - head/sys/net/route

2020-11-08 Thread Alexander V. Chernikov
Author: melifaro Date: Sun Nov 8 18:11:12 2020 New Revision: 367490 URL: https://svnweb.freebsd.org/changeset/base/367490 Log: Temporarily revert setting net.add_addr_allfibs to 0. It accidentally sweeped in r367486. Revert to allow for proper commit message & warning. Modified:

svn commit: r367486 - head/sys/net/route

2020-11-08 Thread Alexander V. Chernikov
Author: melifaro Date: Sun Nov 8 13:30:44 2020 New Revision: 367486 URL: https://svnweb.freebsd.org/changeset/base/367486 Log: Fix build broken by r367484: add route_ifaddrs.c. Pointy hat to: melifaro Reported by: jenkins Added: head/sys/net/route/route_ifaddrs.c (contents, props

svn commit: r367484 - in head/sys: conf net

2020-11-08 Thread Alexander V. Chernikov
Author: melifaro Date: Sun Nov 8 11:12:00 2020 New Revision: 367484 URL: https://svnweb.freebsd.org/changeset/base/367484 Log: Move all ifaddr route creation business logic to net/route/route_ifaddr.c Differential Revision:https://reviews.freebsd.org/D26318 Modified:

svn commit: r367481 - in head: share/man/man4 sys/compat/linux

2020-11-08 Thread Alexander Leidinger
Author: netchild Date: Sun Nov 8 09:50:58 2020 New Revision: 367481 URL: https://svnweb.freebsd.org/changeset/base/367481 Log: - add more linux socket options (sorted by value) - map those IPv4 / IPv6 socket options which exist in FreeBSD + most of them visually verified to have the

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: r367402 - stable/12/sys/netinet6

2020-11-05 Thread Alexander V. Chernikov
Author: melifaro Date: Thu Nov 5 22:41:54 2020 New Revision: 367402 URL: https://svnweb.freebsd.org/changeset/base/367402 Log: MFC r367114. Fix use-after-free in icmp6_notify_error(). Reported by: Maxime Villard Modified: stable/12/sys/netinet6/icmp6.c Directory Properties:

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: r367114 - head/sys/netinet6

2020-10-28 Thread Alexander V. Chernikov
Author: melifaro Date: Wed Oct 28 20:22:20 2020 New Revision: 367114 URL: https://svnweb.freebsd.org/changeset/base/367114 Log: Fix use-after-free in icmp6_notify_error(). Reported by: Maxime Villard Reviewed by: markj MFC after:3 days Modified: head/sys/netinet6/icmp6.c

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

Re: svn commit: r366993 - head/sys/net

2020-10-27 Thread Alexander Richardson
On Sat, 24 Oct 2020 at 13:52, Alexey Dokuchaev wrote: > > On Sat, Oct 24, 2020 at 10:23:22AM +, Hans Petter Selasky wrote: > > New Revision: 366993 > > URL: https://svnweb.freebsd.org/changeset/base/366993 > > > > Log: > > Run code through "clang-format -style=file" with some additional

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

Re: svn commit: r366993 - head/sys/net

2020-10-24 Thread Alexander Richardson
On Sat, 24 Oct 2020, 16:27 Warner Losh, wrote: > > > On Sat, Oct 24, 2020, 7:38 AM Alexander V. Chernikov > wrote: > >> 24.10.2020, 14:08, "Hans Petter Selasky" : >> > On 2020-10-24 14:52, Alexey Dokuchaev wrote: >> >> On Sat, Oct 24,

Re: svn commit: r366993 - head/sys/net

2020-10-24 Thread Alexander V . Chernikov
24.10.2020, 14:08, "Hans Petter Selasky" : > On 2020-10-24 14:52, Alexey Dokuchaev wrote: >>  On Sat, Oct 24, 2020 at 10:23:22AM +, Hans Petter Selasky wrote: >>>  New Revision: 366993 >>>  URL: https://svnweb.freebsd.org/changeset/base/366993 >>> >>>  Log: >>> Run code through

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: r366917 - in head: sbin/ifconfig sys/net tests/sys/net

2020-10-21 Thread Alexander V. Chernikov
Author: melifaro Date: Wed Oct 21 21:28:20 2020 New Revision: 366917 URL: https://svnweb.freebsd.org/changeset/base/366917 Log: Add support for stacked VLANs (IEEE 802.1ad, AKA Q-in-Q). 802.1ad interfaces are created with ifconfig using the "vlanproto" parameter. Eg., the following

  1   2   3   4   5   6   7   8   9   10   >