svn commit: r353205 - in stable/12/sys/dev/mlx5: . mlx5_core mlx5_en

2019-10-07 Thread Hans Petter Selasky
Author: hselasky Date: Mon Oct 7 09:01:21 2019 New Revision: 353205 URL: https://svnweb.freebsd.org/changeset/base/353205 Log: MFC r352966: Add port module event software counters in mlx5core. While at it, fixup PME based on latest PRM defines. Submitted by: slavash@ Sponsored by:

svn commit: r353207 - in stable/12/sys/dev/mlx5: . mlx5_core

2019-10-07 Thread Hans Petter Selasky
Author: hselasky Date: Mon Oct 7 09:03:51 2019 New Revision: 353207 URL: https://svnweb.freebsd.org/changeset/base/353207 Log: MFC r352967: Make the mlx5_vsc_wait_on_flag(9) function global. Submitted by: kib@ Sponsored by: Mellanox Technologies Modified:

svn commit: r353204 - stable/11/sys/dev/mlx5/mlx5_en

2019-10-07 Thread Hans Petter Selasky
Author: hselasky Date: Mon Oct 7 09:00:08 2019 New Revision: 353204 URL: https://svnweb.freebsd.org/changeset/base/353204 Log: MFC r352965: Correct and update some counter names in mlx5en(4). Sponsored by: Mellanox Technologies Modified: stable/11/sys/dev/mlx5/mlx5_en/en.h Directory

svn commit: r353203 - stable/12/sys/dev/mlx5/mlx5_en

2019-10-07 Thread Hans Petter Selasky
Author: hselasky Date: Mon Oct 7 08:59:09 2019 New Revision: 353203 URL: https://svnweb.freebsd.org/changeset/base/353203 Log: MFC r352965: Correct and update some counter names in mlx5en(4). Sponsored by: Mellanox Technologies Modified: stable/12/sys/dev/mlx5/mlx5_en/en.h Directory

svn commit: r353202 - stable/11/sys/dev/mlx5/mlx5_en

2019-10-07 Thread Hans Petter Selasky
Author: hselasky Date: Mon Oct 7 08:57:39 2019 New Revision: 353202 URL: https://svnweb.freebsd.org/changeset/base/353202 Log: MFC r352964: Export channel IRQ number as part of the "hw_ctx_debug" sysctl(8) in mlx5en(4). Sponsored by: Mellanox Technologies Modified:

svn commit: r353201 - stable/11/sys/dev/mlx5/mlx5_en

2019-10-07 Thread Hans Petter Selasky
Author: hselasky Date: Mon Oct 7 08:56:26 2019 New Revision: 353201 URL: https://svnweb.freebsd.org/changeset/base/353201 Log: Fix compilation after MFC r352962. This is a direct commit. Sponsored by: Mellanox Technologies Modified:

svn commit: r353200 - stable/12/sys/dev/mlx5/mlx5_en

2019-10-07 Thread Hans Petter Selasky
Author: hselasky Date: Mon Oct 7 08:50:22 2019 New Revision: 353200 URL: https://svnweb.freebsd.org/changeset/base/353200 Log: MFC r352964: Export channel IRQ number as part of the "hw_ctx_debug" sysctl(8) in mlx5en(4). Sponsored by: Mellanox Technologies Modified:

svn commit: r353199 - in stable/11/sys/dev/mlx5: . mlx5_core

2019-10-07 Thread Hans Petter Selasky
Author: hselasky Date: Mon Oct 7 08:49:32 2019 New Revision: 353199 URL: https://svnweb.freebsd.org/changeset/base/353199 Log: MFC r352963: Cleanup naming of IRQ vectors in mlx5en. Remove unused IRQ naming functions and arrays. Sponsored by: Mellanox Technologies Modified:

svn commit: r353198 - in stable/12/sys/dev/mlx5: . mlx5_core

2019-10-07 Thread Hans Petter Selasky
Author: hselasky Date: Mon Oct 7 08:48:49 2019 New Revision: 353198 URL: https://svnweb.freebsd.org/changeset/base/353198 Log: MFC r352963: Cleanup naming of IRQ vectors in mlx5en. Remove unused IRQ naming functions and arrays. Sponsored by: Mellanox Technologies Modified:

svn commit: r353197 - in stable/11/sys: conf dev/mlx5 dev/mlx5/mlx5_core dev/mlx5/mlx5_en modules/mlx5

2019-10-07 Thread Hans Petter Selasky
Author: hselasky Date: Mon Oct 7 08:47:08 2019 New Revision: 353197 URL: https://svnweb.freebsd.org/changeset/base/353197 Log: MFC r352962: Add support for Multi-Physical Function Switch, MPFS, in mlx5en. MPFS is a logical switch in the Mellanox device which forward packets based on a

svn commit: r353196 - in stable/12/sys: conf dev/mlx5 dev/mlx5/mlx5_core dev/mlx5/mlx5_en modules/mlx5

2019-10-07 Thread Hans Petter Selasky
Author: hselasky Date: Mon Oct 7 08:46:22 2019 New Revision: 353196 URL: https://svnweb.freebsd.org/changeset/base/353196 Log: MFC r352962: Add support for Multi-Physical Function Switch, MPFS, in mlx5en. MPFS is a logical switch in the Mellanox device which forward packets based on a

svn commit: r353195 - stable/11/sys/dev/mlx5/mlx5_en

2019-10-07 Thread Hans Petter Selasky
Author: hselasky Date: Mon Oct 7 08:45:06 2019 New Revision: 353195 URL: https://svnweb.freebsd.org/changeset/base/353195 Log: MFC r352961: Implement macro for asserting priv lock in mlx5en. Sponsored by: Mellanox Technologies Modified: stable/11/sys/dev/mlx5/mlx5_en/en.h

svn commit: r353194 - stable/12/sys/dev/mlx5/mlx5_en

2019-10-07 Thread Hans Petter Selasky
Author: hselasky Date: Mon Oct 7 08:44:29 2019 New Revision: 353194 URL: https://svnweb.freebsd.org/changeset/base/353194 Log: MFC r352961: Implement macro for asserting priv lock in mlx5en. Sponsored by: Mellanox Technologies Modified: stable/12/sys/dev/mlx5/mlx5_en/en.h

svn commit: r353193 - stable/11/sys/dev/mlx5/mlx5_core

2019-10-07 Thread Hans Petter Selasky
Author: hselasky Date: Mon Oct 7 08:43:45 2019 New Revision: 353193 URL: https://svnweb.freebsd.org/changeset/base/353193 Log: MFC r352960: Fix for missing cleanup code in error case in mlx5en. Sponsored by: Mellanox Technologies Modified: stable/11/sys/dev/mlx5/mlx5_core/mlx5_main.c

svn commit: r353192 - stable/12/sys/dev/mlx5/mlx5_core

2019-10-07 Thread Hans Petter Selasky
Author: hselasky Date: Mon Oct 7 08:43:03 2019 New Revision: 353192 URL: https://svnweb.freebsd.org/changeset/base/353192 Log: MFC r352960: Fix for missing cleanup code in error case in mlx5en. Sponsored by: Mellanox Technologies Modified: stable/12/sys/dev/mlx5/mlx5_core/mlx5_main.c

svn commit: r353190 - stable/12/sys/dev/mlx5/mlx5_en

2019-10-07 Thread Hans Petter Selasky
Author: hselasky Date: Mon Oct 7 08:41:16 2019 New Revision: 353190 URL: https://svnweb.freebsd.org/changeset/base/353190 Log: MFC r352959: Check return value of mlx5_vector2eqn() function in mlx5en. Sponsored by: Mellanox Technologies Modified:

svn commit: r353191 - stable/11/sys/dev/mlx5/mlx5_en

2019-10-07 Thread Hans Petter Selasky
Author: hselasky Date: Mon Oct 7 08:41:53 2019 New Revision: 353191 URL: https://svnweb.freebsd.org/changeset/base/353191 Log: MFC r352959: Check return value of mlx5_vector2eqn() function in mlx5en. Sponsored by: Mellanox Technologies Modified:

svn commit: r353189 - stable/11/sys/dev/mlx5/mlx5_core

2019-10-07 Thread Hans Petter Selasky
Author: hselasky Date: Mon Oct 7 08:40:34 2019 New Revision: 353189 URL: https://svnweb.freebsd.org/changeset/base/353189 Log: MFC r352958: Make sure the number of IRQ vectors doesn't exceed 256 in mlx5core. The "intr" field in "struct mlx5_ifc_eqc_bits" is only 8 bits wide. Sponsored

svn commit: r353187 - stable/11/sys/dev/mlx5/mlx5_ib

2019-10-07 Thread Hans Petter Selasky
Author: hselasky Date: Mon Oct 7 08:39:12 2019 New Revision: 353187 URL: https://svnweb.freebsd.org/changeset/base/353187 Log: MFC r352957: Update warning and error print formats in mlx5ib. Submitted by: slavash@ Sponsored by: Mellanox Technologies Modified:

svn commit: r353188 - stable/12/sys/dev/mlx5/mlx5_core

2019-10-07 Thread Hans Petter Selasky
Author: hselasky Date: Mon Oct 7 08:39:55 2019 New Revision: 353188 URL: https://svnweb.freebsd.org/changeset/base/353188 Log: MFC r352958: Make sure the number of IRQ vectors doesn't exceed 256 in mlx5core. The "intr" field in "struct mlx5_ifc_eqc_bits" is only 8 bits wide. Sponsored

svn commit: r353186 - stable/12/sys/dev/mlx5/mlx5_ib

2019-10-07 Thread Hans Petter Selasky
Author: hselasky Date: Mon Oct 7 08:38:32 2019 New Revision: 353186 URL: https://svnweb.freebsd.org/changeset/base/353186 Log: MFC r352957: Update warning and error print formats in mlx5ib. Submitted by: slavash@ Sponsored by: Mellanox Technologies Modified:

svn commit: r353185 - stable/11/sys/dev/mlx5/mlx5_ib

2019-10-07 Thread Hans Petter Selasky
Author: hselasky Date: Mon Oct 7 08:36:44 2019 New Revision: 353185 URL: https://svnweb.freebsd.org/changeset/base/353185 Log: MFC r352956: Fix reported max SGE calculation in mlx5ib. Add the 512 bytes limit of RDMA READ and the size of remote address to the max SGE calculation.

svn commit: r353184 - stable/12/sys/dev/mlx5/mlx5_ib

2019-10-07 Thread Hans Petter Selasky
Author: hselasky Date: Mon Oct 7 08:35:48 2019 New Revision: 353184 URL: https://svnweb.freebsd.org/changeset/base/353184 Log: MFC r352956: Fix reported max SGE calculation in mlx5ib. Add the 512 bytes limit of RDMA READ and the size of remote address to the max SGE calculation.

svn commit: r353183 - stable/11/sys/ofed/drivers/infiniband/ulp/ipoib

2019-10-07 Thread Hans Petter Selasky
Author: hselasky Date: Mon Oct 7 08:32:19 2019 New Revision: 353183 URL: https://svnweb.freebsd.org/changeset/base/353183 Log: MFC r352955: Make sure the transmit loop doesn't get starved in ipoib. When the software send queue gets filled up, callbacks to if_transmit will stop. Make

svn commit: r353182 - stable/12/sys/ofed/drivers/infiniband/ulp/ipoib

2019-10-07 Thread Hans Petter Selasky
Author: hselasky Date: Mon Oct 7 08:31:31 2019 New Revision: 353182 URL: https://svnweb.freebsd.org/changeset/base/353182 Log: MFC r352955: Make sure the transmit loop doesn't get starved in ipoib. When the software send queue gets filled up, callbacks to if_transmit will stop. Make

svn commit: r353181 - stable/11/sys/contrib/rdma/krping

2019-10-07 Thread Hans Petter Selasky
Author: hselasky Date: Mon Oct 7 08:28:55 2019 New Revision: 353181 URL: https://svnweb.freebsd.org/changeset/base/353181 Log: MFC r352954: Notify all sleeping threads of device removal in krping. Implement d_purge for krping_cdevsw. Submitted by: slavash@ Sponsored by: Mellanox

svn commit: r353180 - stable/12/sys/contrib/rdma/krping

2019-10-07 Thread Hans Petter Selasky
Author: hselasky Date: Mon Oct 7 08:28:05 2019 New Revision: 353180 URL: https://svnweb.freebsd.org/changeset/base/353180 Log: MFC r352954: Notify all sleeping threads of device removal in krping. Implement d_purge for krping_cdevsw. Submitted by: slavash@ Sponsored by: Mellanox

svn commit: r353179 - in stable/10/sys/dev/usb: . controller

2019-10-07 Thread Hans Petter Selasky
Author: hselasky Date: Mon Oct 7 08:25:25 2019 New Revision: 353179 URL: https://svnweb.freebsd.org/changeset/base/353179 Log: MFC r352556: Add quirk for XHCI(4) controllers to support USB control transfers above 1Kbyte. It might look like some XHCI(4) controllers do not support when

svn commit: r353178 - in stable/11/sys/dev/usb: . controller

2019-10-07 Thread Hans Petter Selasky
Author: hselasky Date: Mon Oct 7 08:24:46 2019 New Revision: 353178 URL: https://svnweb.freebsd.org/changeset/base/353178 Log: MFC r352556: Add quirk for XHCI(4) controllers to support USB control transfers above 1Kbyte. It might look like some XHCI(4) controllers do not support when

svn commit: r353177 - in stable/12/sys/dev/usb: . controller

2019-10-07 Thread Hans Petter Selasky
Author: hselasky Date: Mon Oct 7 08:24:07 2019 New Revision: 353177 URL: https://svnweb.freebsd.org/changeset/base/353177 Log: MFC r352556: Add quirk for XHCI(4) controllers to support USB control transfers above 1Kbyte. It might look like some XHCI(4) controllers do not support when

svn commit: r353175 - stable/10/sys/dev/usb

2019-10-07 Thread Hans Petter Selasky
Author: hselasky Date: Mon Oct 7 08:13:49 2019 New Revision: 353175 URL: https://svnweb.freebsd.org/changeset/base/353175 Log: MFC r352555: Increase the maximum user-space buffer size from 256kBytes to 32MBytes for libusb. This is useful for speeding up large data transfers while reducing

svn commit: r353174 - stable/11/sys/dev/usb

2019-10-07 Thread Hans Petter Selasky
Author: hselasky Date: Mon Oct 7 08:13:10 2019 New Revision: 353174 URL: https://svnweb.freebsd.org/changeset/base/353174 Log: MFC r352555: Increase the maximum user-space buffer size from 256kBytes to 32MBytes for libusb. This is useful for speeding up large data transfers while reducing

svn commit: r353173 - stable/12/sys/dev/usb

2019-10-07 Thread Hans Petter Selasky
Author: hselasky Date: Mon Oct 7 08:12:28 2019 New Revision: 353173 URL: https://svnweb.freebsd.org/changeset/base/353173 Log: MFC r352555: Increase the maximum user-space buffer size from 256kBytes to 32MBytes for libusb. This is useful for speeding up large data transfers while reducing

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

2019-10-07 Thread Hans Petter Selasky
Author: hselasky Date: Mon Oct 7 08:11:12 2019 New Revision: 353171 URL: https://svnweb.freebsd.org/changeset/base/353171 Log: MFC r352554: The maximum TD size is 31 and not 15. Found at: EuroBSDcon 2019 Sponsored by: Mellanox Technologies Modified:

svn commit: r353170 - stable/11/sys/dev/usb/controller

2019-10-07 Thread Hans Petter Selasky
Author: hselasky Date: Mon Oct 7 08:10:26 2019 New Revision: 353170 URL: https://svnweb.freebsd.org/changeset/base/353170 Log: MFC r352554: The maximum TD size is 31 and not 15. Found at: EuroBSDcon 2019 Sponsored by: Mellanox Technologies Modified:

svn commit: r353169 - stable/12/sys/dev/usb/controller

2019-10-07 Thread Hans Petter Selasky
Author: hselasky Date: Mon Oct 7 08:09:39 2019 New Revision: 353169 URL: https://svnweb.freebsd.org/changeset/base/353169 Log: MFC r352554: The maximum TD size is 31 and not 15. Found at: EuroBSDcon 2019 Sponsored by: Mellanox Technologies Modified:

Re: svn commit: r338679 - head/lib/libusb

2019-10-02 Thread Hans Petter Selasky
On 2019-10-02 14:58, Kyle Evans wrote: Sorry, I missed that the (ctx)->debug checks just moved a little further in... debugging a little better, because LIBUSB_DEBUG=0 doesn't seem to do the trick for this person. I believe the prints are off by default, unless you call libusb_set_debug() in

Re: svn commit: r338679 - head/lib/libusb

2019-10-02 Thread Hans Petter Selasky
On 2019-10-02 14:55, Kyle Evans wrote: On Fri, Sep 14, 2018 at 8:41 AM Hans Petter Selasky wrote: Author: hselasky Date: Fri Sep 14 13:41:37 2018 New Revision: 338679 URL: https://svnweb.freebsd.org/changeset/base/338679 Log: Improve LibUSB debugging by simultaneously allowing both

svn commit: r353001 - head/sys/dev/mlx5/mlx5_en

2019-10-02 Thread Hans Petter Selasky
Author: hselasky Date: Wed Oct 2 12:45:39 2019 New Revision: 353001 URL: https://svnweb.freebsd.org/changeset/base/353001 Log: Fix build failure for gcc after r352983, due to not using static variable declared by net/sff8472.h . MFC after:3 days Sponsored by: Mellanox Technologies

svn commit: r353000 - head/sys/dev/mlx5/mlx5_core

2019-10-02 Thread Hans Petter Selasky
Author: hselasky Date: Wed Oct 2 12:02:14 2019 New Revision: 353000 URL: https://svnweb.freebsd.org/changeset/base/353000 Log: Fix build failure for 32-bit platforms after r352991, due to incorrect printf() formatter string. MFC after:3 days Sponsored by: Mellanox Technologies

svn commit: r352998 - in head/sys/dev/mlx5: mlx5_core mlx5_en mlx5_ib

2019-10-02 Thread Hans Petter Selasky
Author: hselasky Date: Wed Oct 2 11:15:35 2019 New Revision: 352998 URL: https://svnweb.freebsd.org/changeset/base/352998 Log: Bump driver version for mlx5core, mlx5en(4) and mlx5ib(4). MFC after:3 days Sponsored by: Mellanox Technologies Modified:

svn commit: r352997 - head/sys/dev/mlx5/mlx5_core

2019-10-02 Thread Hans Petter Selasky
Author: hselasky Date: Wed Oct 2 11:06:01 2019 New Revision: 352997 URL: https://svnweb.freebsd.org/changeset/base/352997 Log: Print numeric error_type and module_status in mlx5core in case the strings are not available. Submitted by: kib@ MFC after:3 days Sponsored by: Mellanox

svn commit: r352996 - head/sys/dev/mlx5/mlx5_en

2019-10-02 Thread Hans Petter Selasky
Author: hselasky Date: Wed Oct 2 11:05:05 2019 New Revision: 352996 URL: https://svnweb.freebsd.org/changeset/base/352996 Log: Add print to show user a reason for rejecting buffer size change in mlx5en(4). Submitted by: kib@ MFC after:3 days Sponsored by: Mellanox Technologies

svn commit: r352995 - head/sys/dev/mlx5/mlx5_en

2019-10-02 Thread Hans Petter Selasky
Author: hselasky Date: Wed Oct 2 11:02:54 2019 New Revision: 352995 URL: https://svnweb.freebsd.org/changeset/base/352995 Log: Only update lossy buffers config when manual PFC configuration was done in mlx5en(4). Submitted by: kib@ MFC after:3 days Sponsored by: Mellanox

svn commit: r352994 - head/sys/dev/mlx5/mlx5_core

2019-10-02 Thread Hans Petter Selasky
Author: hselasky Date: Wed Oct 2 11:01:05 2019 New Revision: 352994 URL: https://svnweb.freebsd.org/changeset/base/352994 Log: Improve mlx5_fwdump_prep logging in mlx5core. Submitted by: slavash@ MFC after:3 days Sponsored by: Mellanox Technologies Modified:

svn commit: r352993 - head/sys/dev/mlx5/mlx5_core

2019-10-02 Thread Hans Petter Selasky
Author: hselasky Date: Wed Oct 2 10:59:44 2019 New Revision: 352993 URL: https://svnweb.freebsd.org/changeset/base/352993 Log: Randomize the delay when waiting for VSC flag in mlx5core. The PRM suggests random 0 - 10ms to prevent multiple waiters on the same interval in order to avoid

svn commit: r352992 - head/usr.sbin/mlx5tool

2019-10-02 Thread Hans Petter Selasky
Author: hselasky Date: Wed Oct 2 10:58:27 2019 New Revision: 352992 URL: https://svnweb.freebsd.org/changeset/base/352992 Log: Use size_t for byte_to_write variable when comparing to eeprom_info_out_len which is also size_t in mlx5tool(8). Submitted by: slavash@ MFC after:3 days

svn commit: r352991 - in head/sys/dev/mlx5: . mlx5_core

2019-10-02 Thread Hans Petter Selasky
Author: hselasky Date: Wed Oct 2 10:53:28 2019 New Revision: 352991 URL: https://svnweb.freebsd.org/changeset/base/352991 Log: Wait for FW readiness before initializing command interface in mlx5core. Before attempting to initialize the command interface we must wait till the

svn commit: r352990 - head/sys/dev/mlx5/mlx5_en

2019-10-02 Thread Hans Petter Selasky
Author: hselasky Date: Wed Oct 2 10:46:57 2019 New Revision: 352990 URL: https://svnweb.freebsd.org/changeset/base/352990 Log: Fix regression issue about bad refcounting of unlimited send tags in mlx5en(4) after r348254. The unlimited send tags are shared amount multiple connections and

svn commit: r352989 - head/sys/dev/mlx5/mlx5_en

2019-10-02 Thread Hans Petter Selasky
Author: hselasky Date: Wed Oct 2 10:43:49 2019 New Revision: 352989 URL: https://svnweb.freebsd.org/changeset/base/352989 Log: Seal transmit path with regards to using destroyed mutex in mlx5en(4). It may happen during link down that the running state may be observed non-zero in the

svn commit: r352988 - head/sys/dev/mlx5/mlx5_en

2019-10-02 Thread Hans Petter Selasky
Author: hselasky Date: Wed Oct 2 10:26:26 2019 New Revision: 352988 URL: https://svnweb.freebsd.org/changeset/base/352988 Log: Remove unused cpu field from channel structure in mlx5en(4). MFC after:3 days Sponsored by: Mellanox Technologies Modified:

svn commit: r352987 - head/sys/dev/mlx5/mlx5_en

2019-10-02 Thread Hans Petter Selasky
Author: hselasky Date: Wed Oct 2 10:25:47 2019 New Revision: 352987 URL: https://svnweb.freebsd.org/changeset/base/352987 Log: Remove mkey_be from channel structure in mlx5en(4). Use value from priv structure instead. This saves some space in the channel structure. MFC after:3

svn commit: r352986 - head/sys/dev/mlx5/mlx5_core

2019-10-02 Thread Hans Petter Selasky
Author: hselasky Date: Wed Oct 2 10:24:13 2019 New Revision: 352986 URL: https://svnweb.freebsd.org/changeset/base/352986 Log: Return an error from ioctl(MLX5_FW_RESET) if reset was rejected in mlx5core. Submitted by: kib@ MFC after:3 days Sponsored by: Mellanox Technologies

svn commit: r352985 - in head/sys/dev/mlx5: . mlx5_en

2019-10-02 Thread Hans Petter Selasky
Author: hselasky Date: Wed Oct 2 10:22:15 2019 New Revision: 352985 URL: https://svnweb.freebsd.org/changeset/base/352985 Log: Add sysctl(8) to get and set forward error correction, FEC, configuration in mlx5en(4). MFC after:3 days Sponsored by: Mellanox Technologies Modified:

svn commit: r352984 - head/usr.sbin/mlx5tool

2019-10-02 Thread Hans Petter Selasky
Author: hselasky Date: Wed Oct 2 10:19:17 2019 New Revision: 352984 URL: https://svnweb.freebsd.org/changeset/base/352984 Log: Add the ability to query the EEPROM information in mlx5tool(8). Submitted by: slavash@ MFC after:3 days Sponsored by: Mellanox Technologies Modified:

svn commit: r352983 - in head: share/man/man4 sys/dev/mlx5 sys/dev/mlx5/mlx5_core sys/dev/mlx5/mlx5_en

2019-10-02 Thread Hans Petter Selasky
Author: hselasky Date: Wed Oct 2 10:14:55 2019 New Revision: 352983 URL: https://svnweb.freebsd.org/changeset/base/352983 Log: Move EEPROM information query from a sysctl in mlx5en(4) to an ioctl in mlx5core. The EEPROM information is not only a property of the mlx5en(4) driver.

svn commit: r352982 - head/sys/dev/mlx5/mlx5_en

2019-10-02 Thread Hans Petter Selasky
Author: hselasky Date: Wed Oct 2 10:08:04 2019 New Revision: 352982 URL: https://svnweb.freebsd.org/changeset/base/352982 Log: Add support for buffer parameter manipulations in mlx5en(4). The following sysctls are added: dev.mce.N.conf.qos.cable_length dev.mce.N.conf.qos.buffers_size

svn commit: r352981 - in head/sys: conf dev/mlx5 dev/mlx5/mlx5_core dev/mlx5/mlx5_en modules/mlx5en

2019-10-02 Thread Hans Petter Selasky
Author: hselasky Date: Wed Oct 2 10:05:34 2019 New Revision: 352981 URL: https://svnweb.freebsd.org/changeset/base/352981 Log: Import Linux code to query/set buffer state in mlx5en(4). Submitted by: kib@ MFC after:3 days Sponsored by: Mellanox Technologies Added:

svn commit: r352980 - head/sys/dev/mlx5/mlx5_en

2019-10-02 Thread Hans Petter Selasky
Author: hselasky Date: Wed Oct 2 09:59:42 2019 New Revision: 352980 URL: https://svnweb.freebsd.org/changeset/base/352980 Log: Add mlx5e_dbg() compatibility macro. Submitted by: kib@ MFC after:3 days Sponsored by: Mellanox Technologies Modified: head/sys/dev/mlx5/mlx5_en/en.h

svn commit: r352978 - head/sys/dev/mlx5

2019-10-02 Thread Hans Petter Selasky
Author: hselasky Date: Wed Oct 2 09:57:12 2019 New Revision: 352978 URL: https://svnweb.freebsd.org/changeset/base/352978 Log: Add definition for the Port Buffer Status Register in mlx5core. Submitted by: kib@ MFC after:3 days Sponsored by: Mellanox Technologies Modified:

svn commit: r352979 - head/sys/dev/mlx5

2019-10-02 Thread Hans Petter Selasky
Author: hselasky Date: Wed Oct 2 09:58:00 2019 New Revision: 352979 URL: https://svnweb.freebsd.org/changeset/base/352979 Log: Update definitons for PPTB and PBMC registers layouts in mlx5core. Submitted by: kib@ MFC after:3 days Sponsored by: Mellanox Technologies Modified:

svn commit: r352977 - head/sys/dev/mlx5

2019-10-02 Thread Hans Petter Selasky
Author: hselasky Date: Wed Oct 2 09:56:27 2019 New Revision: 352977 URL: https://svnweb.freebsd.org/changeset/base/352977 Log: Sort the ports registers definitions numerically in mlx5core. Submitted by: kib@ MFC after:3 days Sponsored by: Mellanox Technologies Modified:

svn commit: r352976 - head/sys/dev/mlx5/mlx5_en

2019-10-02 Thread Hans Petter Selasky
Author: hselasky Date: Wed Oct 2 09:49:44 2019 New Revision: 352976 URL: https://svnweb.freebsd.org/changeset/base/352976 Log: Unify prints in mlx5en(4). All prints in mlx5en(4) should use on of the macros: mlx5_en_err/dbg/warn Submitted by: slavash@ MFC after:3 days

svn commit: r352975 - head/sys/dev/mlx5/mlx5_core

2019-10-02 Thread Hans Petter Selasky
Author: hselasky Date: Wed Oct 2 09:48:01 2019 New Revision: 352975 URL: https://svnweb.freebsd.org/changeset/base/352975 Log: Unify prints in mlx5core. All prints in mlx5core should use on of the macros: mlx5_core_err/dbg/warn Submitted by: slavash@ MFC after:3 days

svn commit: r352974 - head/sys/dev/mlx5/mlx5_core

2019-10-02 Thread Hans Petter Selasky
Author: hselasky Date: Wed Oct 2 09:46:14 2019 New Revision: 352974 URL: https://svnweb.freebsd.org/changeset/base/352974 Log: Add proper print in case of 0x0 health syndrome in mlx5core. In case of health counter fails to increment it indicates a bad device health. In case when the

svn commit: r352973 - head/sys/dev/mlx5/mlx5_core

2019-10-02 Thread Hans Petter Selasky
Author: hselasky Date: Wed Oct 2 09:45:07 2019 New Revision: 352973 URL: https://svnweb.freebsd.org/changeset/base/352973 Log: Add missing blank line at the end of the print in mlx5core. Submitted by: slavash@ MFC after:3 days Sponsored by: Mellanox Technologies Modified:

svn commit: r352972 - in head/sys: conf dev/mlx5/mlx5_core modules/mlx5

2019-10-02 Thread Hans Petter Selasky
Author: hselasky Date: Wed Oct 2 09:43:48 2019 New Revision: 352972 URL: https://svnweb.freebsd.org/changeset/base/352972 Log: Remove no longer needed fwdump register tables from mlx5core. Submitted by: kib@ MFC after:3 days Sponsored by: Mellanox Technologies Deleted:

svn commit: r352971 - in head/sys/dev/mlx5: . mlx5_core

2019-10-02 Thread Hans Petter Selasky
Author: hselasky Date: Wed Oct 2 09:40:23 2019 New Revision: 352971 URL: https://svnweb.freebsd.org/changeset/base/352971 Log: Read rege map from crdump scan space in mlx5core. Submitted by: kib@ MFC after:3 days Sponsored by: Mellanox Technologies Modified:

svn commit: r352970 - head/sys/dev/mlx5

2019-10-02 Thread Hans Petter Selasky
Author: hselasky Date: Wed Oct 2 09:34:34 2019 New Revision: 352970 URL: https://svnweb.freebsd.org/changeset/base/352970 Log: Define MLX5_VSC_DOMAIN_SCAN_CRSPACE. Submitted by: kib@ MFC after:3 days Sponsored by: Mellanox Technologies Modified: head/sys/dev/mlx5/mlx5_ifc.h

svn commit: r352969 - head/sys/dev/mlx5/mlx5_core

2019-10-02 Thread Hans Petter Selasky
Author: hselasky Date: Wed Oct 2 09:33:38 2019 New Revision: 352969 URL: https://svnweb.freebsd.org/changeset/base/352969 Log: Use the MLX5_VSC_DOMAIN_SEMAPHORES constant instead of hand-rolled symbol in mlx5core. Submitted by: kib@ MFC after:3 days Sponsored by: Mellanox

svn commit: r352968 - in head/sys/dev/mlx5: . mlx5_core

2019-10-02 Thread Hans Petter Selasky
Author: hselasky Date: Wed Oct 2 09:32:41 2019 New Revision: 352968 URL: https://svnweb.freebsd.org/changeset/base/352968 Log: Move mlx5_ifc_vsc_space_bits and mlx5_ifc_vsc_addr_bits to mlx5_ifc.h. Submitted by: kib@ MFC after:3 days Sponsored by: Mellanox Technologies Modified:

svn commit: r352967 - in head/sys/dev/mlx5: . mlx5_core

2019-10-02 Thread Hans Petter Selasky
Author: hselasky Date: Wed Oct 2 09:31:36 2019 New Revision: 352967 URL: https://svnweb.freebsd.org/changeset/base/352967 Log: Make the mlx5_vsc_wait_on_flag(9) function global. Submitted by: kib@ MFC after:3 days Sponsored by: Mellanox Technologies Modified:

svn commit: r352966 - in head/sys/dev/mlx5: . mlx5_core mlx5_en

2019-10-02 Thread Hans Petter Selasky
Author: hselasky Date: Wed Oct 2 09:29:55 2019 New Revision: 352966 URL: https://svnweb.freebsd.org/changeset/base/352966 Log: Add port module event software counters in mlx5core. While at it, fixup PME based on latest PRM defines. Submitted by: slavash@ MFC after:3 days

svn commit: r352965 - head/sys/dev/mlx5/mlx5_en

2019-10-02 Thread Hans Petter Selasky
Author: hselasky Date: Wed Oct 2 09:27:56 2019 New Revision: 352965 URL: https://svnweb.freebsd.org/changeset/base/352965 Log: Correct and update some counter names in mlx5en(4). MFC after:3 days Sponsored by: Mellanox Technologies Modified: head/sys/dev/mlx5/mlx5_en/en.h

svn commit: r352964 - head/sys/dev/mlx5/mlx5_en

2019-10-02 Thread Hans Petter Selasky
Author: hselasky Date: Wed Oct 2 09:27:08 2019 New Revision: 352964 URL: https://svnweb.freebsd.org/changeset/base/352964 Log: Export channel IRQ number as part of the "hw_ctx_debug" sysctl(8) in mlx5en(4). MFC after:3 days Sponsored by: Mellanox Technologies Modified:

svn commit: r352963 - in head/sys/dev/mlx5: . mlx5_core

2019-10-02 Thread Hans Petter Selasky
Author: hselasky Date: Wed Oct 2 09:23:33 2019 New Revision: 352963 URL: https://svnweb.freebsd.org/changeset/base/352963 Log: Cleanup naming of IRQ vectors in mlx5en. Remove unused IRQ naming functions and arrays. MFC after:3 days Sponsored by: Mellanox Technologies Modified:

svn commit: r352962 - in head/sys: conf dev/mlx5 dev/mlx5/mlx5_core dev/mlx5/mlx5_en modules/mlx5

2019-10-02 Thread Hans Petter Selasky
Author: hselasky Date: Wed Oct 2 09:22:22 2019 New Revision: 352962 URL: https://svnweb.freebsd.org/changeset/base/352962 Log: Add support for Multi-Physical Function Switch, MPFS, in mlx5en. MPFS is a logical switch in the Mellanox device which forward packets based on a hardware

svn commit: r352961 - head/sys/dev/mlx5/mlx5_en

2019-10-02 Thread Hans Petter Selasky
Author: hselasky Date: Wed Oct 2 09:16:17 2019 New Revision: 352961 URL: https://svnweb.freebsd.org/changeset/base/352961 Log: Implement macro for asserting priv lock in mlx5en. MFC after:3 days Sponsored by: Mellanox Technologies Modified: head/sys/dev/mlx5/mlx5_en/en.h

svn commit: r352960 - head/sys/dev/mlx5/mlx5_core

2019-10-02 Thread Hans Petter Selasky
Author: hselasky Date: Wed Oct 2 09:15:07 2019 New Revision: 352960 URL: https://svnweb.freebsd.org/changeset/base/352960 Log: Fix for missing cleanup code in error case in mlx5en. MFC after:3 days Sponsored by: Mellanox Technologies Modified:

svn commit: r352959 - head/sys/dev/mlx5/mlx5_en

2019-10-02 Thread Hans Petter Selasky
Author: hselasky Date: Wed Oct 2 09:14:01 2019 New Revision: 352959 URL: https://svnweb.freebsd.org/changeset/base/352959 Log: Check return value of mlx5_vector2eqn() function in mlx5en. MFC after:3 days Sponsored by: Mellanox Technologies Modified:

svn commit: r352958 - head/sys/dev/mlx5/mlx5_core

2019-10-02 Thread Hans Petter Selasky
Author: hselasky Date: Wed Oct 2 09:12:53 2019 New Revision: 352958 URL: https://svnweb.freebsd.org/changeset/base/352958 Log: Make sure the number of IRQ vectors doesn't exceed 256 in mlx5core. The "intr" field in "struct mlx5_ifc_eqc_bits" is only 8 bits wide. MFC after:3 days

svn commit: r352957 - head/sys/dev/mlx5/mlx5_ib

2019-10-02 Thread Hans Petter Selasky
Author: hselasky Date: Wed Oct 2 09:11:01 2019 New Revision: 352957 URL: https://svnweb.freebsd.org/changeset/base/352957 Log: Update warning and error print formats in mlx5ib. Submitted by: slavash@ MFC after:3 days Sponsored by: Mellanox Technologies Modified:

svn commit: r352956 - head/sys/dev/mlx5/mlx5_ib

2019-10-02 Thread Hans Petter Selasky
Author: hselasky Date: Wed Oct 2 09:09:28 2019 New Revision: 352956 URL: https://svnweb.freebsd.org/changeset/base/352956 Log: Fix reported max SGE calculation in mlx5ib. Add the 512 bytes limit of RDMA READ and the size of remote address to the max SGE calculation. Submitted by:

svn commit: r352955 - head/sys/ofed/drivers/infiniband/ulp/ipoib

2019-10-02 Thread Hans Petter Selasky
Author: hselasky Date: Wed Oct 2 09:06:13 2019 New Revision: 352955 URL: https://svnweb.freebsd.org/changeset/base/352955 Log: Make sure the transmit loop doesn't get starved in ipoib. When the software send queue gets filled up, callbacks to if_transmit will stop. Make sure the

svn commit: r352954 - head/sys/contrib/rdma/krping

2019-10-02 Thread Hans Petter Selasky
Author: hselasky Date: Wed Oct 2 09:03:48 2019 New Revision: 352954 URL: https://svnweb.freebsd.org/changeset/base/352954 Log: Notify all sleeping threads of device removal in krping. Implement d_purge for krping_cdevsw. Submitted by: slavash@ MFC after:3 days Sponsored by:

svn commit: r352556 - in head/sys/dev/usb: . controller

2019-09-20 Thread Hans Petter Selasky
Author: hselasky Date: Fri Sep 20 11:28:45 2019 New Revision: 352556 URL: https://svnweb.freebsd.org/changeset/base/352556 Log: Add quirk for XHCI(4) controllers to support USB control transfers above 1Kbyte. It might look like some XHCI(4) controllers do not support when the USB control

svn commit: r352555 - head/sys/dev/usb

2019-09-20 Thread Hans Petter Selasky
Author: hselasky Date: Fri Sep 20 11:00:02 2019 New Revision: 352555 URL: https://svnweb.freebsd.org/changeset/base/352555 Log: Increase the maximum user-space buffer size from 256kBytes to 32MBytes for libusb. This is useful for speeding up large data transfers while reducing the interrupt

svn commit: r352554 - head/sys/dev/usb/controller

2019-09-20 Thread Hans Petter Selasky
Author: hselasky Date: Fri Sep 20 10:56:13 2019 New Revision: 352554 URL: https://svnweb.freebsd.org/changeset/base/352554 Log: The maximum TD size is 31 and not 15. Found at: EuroBSDcon 2019 MFC after:1 week Sponsored by: Mellanox Technologies Modified:

Re: svn commit: r352451 - head/stand/libsa

2019-09-18 Thread Hans Petter Selasky
On 2019-09-18 10:37, Warner Losh wrote: On Wed, Sep 18, 2019, 12:18 AM Conrad Meyer wrote: Well, hang on; it's also perfectly legal for a malloc implementation to return NULL for requests of zero bytes. You can access exactly the number of bytes requested in the allocation; and free(NULL)

svn commit: r352481 - stable/11/sys/net

2019-09-18 Thread Hans Petter Selasky
Author: hselasky Date: Wed Sep 18 07:32:15 2019 New Revision: 352481 URL: https://svnweb.freebsd.org/changeset/base/352481 Log: MFC r352137: Callout drain does not have to be followed by a callout stop call. Fix bogus code. Sponsored by: Mellanox Technologies Modified:

svn commit: r352480 - stable/12/sys/net

2019-09-18 Thread Hans Petter Selasky
Author: hselasky Date: Wed Sep 18 07:31:31 2019 New Revision: 352480 URL: https://svnweb.freebsd.org/changeset/base/352480 Log: MFC r352137: Callout drain does not have to be followed by a callout stop call. Fix bogus code. Sponsored by: Mellanox Technologies Modified:

svn commit: r352479 - stable/11/sys/compat/linuxkpi/common/src

2019-09-18 Thread Hans Petter Selasky
Author: hselasky Date: Wed Sep 18 07:29:33 2019 New Revision: 352479 URL: https://svnweb.freebsd.org/changeset/base/352479 Log: MFC r352207: Use true and false when dealing with bool type in the LinuxKPI. No functional change. Sponsored by: Mellanox Technologies Modified:

svn commit: r352478 - stable/12/sys/compat/linuxkpi/common/src

2019-09-18 Thread Hans Petter Selasky
Author: hselasky Date: Wed Sep 18 07:28:54 2019 New Revision: 352478 URL: https://svnweb.freebsd.org/changeset/base/352478 Log: MFC r352207: Use true and false when dealing with bool type in the LinuxKPI. No functional change. Sponsored by: Mellanox Technologies Modified:

svn commit: r352477 - stable/12/sys/compat/linuxkpi/common/src

2019-09-18 Thread Hans Petter Selasky
@@ /*- - * Copyright (c) 2017 Hans Petter Selasky + * Copyright (c) 2017-2019 Hans Petter Selasky * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -323,24 +323,26 @@ linux_cancel_work_sync(struct work_struct *work) [WORK_ST_CANCEL

svn commit: r352476 - stable/11/sys/compat/linuxkpi/common/src

2019-09-18 Thread Hans Petter Selasky
@@ /*- - * Copyright (c) 2017 Hans Petter Selasky + * Copyright (c) 2017-2019 Hans Petter Selasky * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -323,24 +323,26 @@ linux_cancel_work_sync(struct work_struct *work) [WORK_ST_CANCEL

svn commit: r352474 - stable/11/sys/compat/linuxkpi/common/include/linux

2019-09-18 Thread Hans Petter Selasky
Author: hselasky Date: Wed Sep 18 07:24:33 2019 New Revision: 352474 URL: https://svnweb.freebsd.org/changeset/base/352474 Log: MFC r352205: Fix broken DECLARE_TASKLET() macro after r347852. Sponsored by: Mellanox Technologies Modified:

svn commit: r352472 - stable/12/sys/compat/linuxkpi/common/include/linux

2019-09-18 Thread Hans Petter Selasky
Author: hselasky Date: Wed Sep 18 07:21:08 2019 New Revision: 352472 URL: https://svnweb.freebsd.org/changeset/base/352472 Log: MFC r352205: Fix broken DECLARE_TASKLET() macro after r347852. Sponsored by: Mellanox Technologies Modified:

svn commit: r352330 - stable/11/sys/compat/linuxkpi/common/include/linux

2019-09-14 Thread Hans Petter Selasky
Author: hselasky Date: Sat Sep 14 13:33:52 2019 New Revision: 352330 URL: https://svnweb.freebsd.org/changeset/base/352330 Log: MFC r351693: Use DEVICE memory instead of UNCACHEABLE on aarch64 in ioremap() in the LinuxKPI. This fixes system hangs on reading device registers on aarch64.

svn commit: r352328 - stable/12/sys/compat/linuxkpi/common/include/linux

2019-09-14 Thread Hans Petter Selasky
Author: hselasky Date: Sat Sep 14 13:32:54 2019 New Revision: 352328 URL: https://svnweb.freebsd.org/changeset/base/352328 Log: MFC r351693: Use DEVICE memory instead of UNCACHEABLE on aarch64 in ioremap() in the LinuxKPI. This fixes system hangs on reading device registers on aarch64.

svn commit: r352326 - stable/11/sys/dev/sound/pcm

2019-09-14 Thread Hans Petter Selasky
Author: hselasky Date: Sat Sep 14 13:31:07 2019 New Revision: 352326 URL: https://svnweb.freebsd.org/changeset/base/352326 Log: MFC r351847: Decrease the default audio playback latency to a maximum of 21.3ms. This significantly improves the audio playback response time. Discussed with:

<    4   5   6   7   8   9   10   11   12   13   >