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

2019-05-16 Thread Hans Petter Selasky
Author: hselasky Date: Thu May 16 15:42:47 2019 New Revision: 347713 URL: https://svnweb.freebsd.org/changeset/base/347713 Log: MFC r347249: Correctly define the interface state bits in mlx5en(4). While at it remove unused interface state bits. This also fixes and issue during shutdown:

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

2019-05-16 Thread Hans Petter Selasky
Author: hselasky Date: Thu May 16 15:42:00 2019 New Revision: 347712 URL: https://svnweb.freebsd.org/changeset/base/347712 Log: MFC r347248: Enable FPGA and FPGA QP errors for EQ and call the handler in mlx5core. Submitted by: kib@ Sponsored by: Mellanox Technologies Modified: stable

svn commit: r347711 - in stable/12/sys/dev/mlx5: . mlx5_fpga mlx5_fpga_tools

2019-05-16 Thread Hans Petter Selasky
Author: hselasky Date: Thu May 16 15:41:04 2019 New Revision: 347711 URL: https://svnweb.freebsd.org/changeset/base/347711 Log: MFC r347247: Add MLX5_FPGA_RELOAD IOCTL(2) to mlx5fpga. Submitted by: kib@ Sponsored by: Mellanox Technologies Modified: stable/12/sys/dev/mlx5/mlx5_fpga/ml

svn commit: r347710 - in stable/12/sys: compat/linuxkpi/common/include/linux conf dev/mlx5/mlx5_en modules/mlx5en

2019-05-16 Thread Hans Petter Selasky
Author: hselasky Date: Thu May 16 15:40:22 2019 New Revision: 347710 URL: https://svnweb.freebsd.org/changeset/base/347710 Log: MFC r347246: Add support for Dynamic Interrupt Moderation, DIM, in mlx5en(4). Add support for DIM based on Linux, with some minor adaptions specific to FreeBSD

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

2019-05-16 Thread Hans Petter Selasky
Author: hselasky Date: Thu May 16 15:39:07 2019 New Revision: 347709 URL: https://svnweb.freebsd.org/changeset/base/347709 Log: MFC r347190: Use PCIV_INVALID in pci_channel_offline() in the LinuxKPI. Build tested drm-current-kmod prior to commit. Submitted by: slavash@ Spon

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

2019-05-16 Thread Hans Petter Selasky
Author: hselasky Date: Thu May 16 15:37:49 2019 New Revision: 347708 URL: https://svnweb.freebsd.org/changeset/base/347708 Log: MFC r347188: Disabling a PCI device should only disable busmaster in the LinuxKPI. As Linux comment for this function point: Signal to the system that the PCI

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

2019-05-16 Thread Hans Petter Selasky
Author: hselasky Date: Thu May 16 15:36:56 2019 New Revision: 347707 URL: https://svnweb.freebsd.org/changeset/base/347707 Log: MFC r347187: Implement print_hex_dump_debug() function macro in the LinuxKPI. Build tested drm-current-kmod prior to commit. Submitted by: slavash@

svn commit: r347706 - in stable/12/sys/compat/linuxkpi/common: include/linux src

2019-05-16 Thread Hans Petter Selasky
Author: hselasky Date: Thu May 16 15:35:50 2019 New Revision: 347706 URL: https://svnweb.freebsd.org/changeset/base/347706 Log: MFC r347185: Allow controlling pr_debug at runtime in the LinuxKPI. Turning on pr_debug at compile time make it non-optional at runtime. This often means that

Re: svn commit: r347691 - in head/sys: netinet netinet6

2019-05-16 Thread Hans Petter Selasky
On 2019-05-16 15:04, Mark Johnston wrote: Author: markj Date: Thu May 16 13:04:26 2019 New Revision: 347691 URL: https://svnweb.freebsd.org/changeset/base/347691 Log: Revert r347582 for now. The inp lock still needs to be dropped when calling into the driver ioctl handler, as some

svn commit: r347387 - head/sys/compat/linuxkpi/common/src

2019-05-09 Thread Hans Petter Selasky
Author: hselasky Date: Thu May 9 10:23:42 2019 New Revision: 347387 URL: https://svnweb.freebsd.org/changeset/base/347387 Log: Fix memory leak of PCI BUS structure in the LinuxKPI. MFC after:1 week Sponsored by: Mellanox Technologies Modified: head/sys/compat/linuxkpi/common/src/l

svn commit: r347385 - head/sys/compat/linuxkpi/common/src

2019-05-09 Thread Hans Petter Selasky
Author: hselasky Date: Thu May 9 09:45:19 2019 New Revision: 347385 URL: https://svnweb.freebsd.org/changeset/base/347385 Log: Fix regression issue after r346645 in the LinuxKPI. Make sure LinuxKPI PCI devices get a default BUSDMA tag. Found by: Thomas Laus Sponsored by: Mellanox

svn commit: r347327 - head/sys/conf

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 12:28:11 2019 New Revision: 347327 URL: https://svnweb.freebsd.org/changeset/base/347327 Log: Fix LINT linking issue. Add missing mlxfw symbols to LINT builds. MFC after:3 days Sponsored by: Mellanox Technologies Modified: head/sys/conf/NOTES

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 12:27:16 2019 New Revision: 347326 URL: https://svnweb.freebsd.org/changeset/base/347326 Log: Fix LINT compilation issue. "mdev" is unused when building LINT targets. MFC after:3 days Sponsored by: Mellanox Technologies Modified: head/sys/dev/

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 11:08:21 2019 New Revision: 347322 URL: https://svnweb.freebsd.org/changeset/base/347322 Log: Ensure the flowtable rules are not freed twice in mlx5en(4). This can happen when re-loading the driver. MFC after:3 days Sponsored by: Mellanox Technologi

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 11:09:08 2019 New Revision: 347324 URL: https://svnweb.freebsd.org/changeset/base/347324 Log: Make command workqueue persistant in mlx5core. There is no reason to re-create the command workqueue during healthcare. This also fixes an issue where a previous

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 11:08:48 2019 New Revision: 347323 URL: https://svnweb.freebsd.org/changeset/base/347323 Log: Fix race between driver unload and dumping firmware in mlx5core. Present code uses lock-less accesses to the dump data to prevent top level ioctls from blocking

svn commit: r347325 - in head/sys: dev/mlx4/mlx4_core dev/mlx4/mlx4_ib dev/mlx5/mlx5_core dev/mlx5/mlx5_en dev/mlx5/mlx5_ib sys

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 11:15:07 2019 New Revision: 347325 URL: https://svnweb.freebsd.org/changeset/base/347325 Log: Bump the Mellanox driver version numbers and the FreeBSD version number. MFC after:3 days Sponsored by: Mellanox Technologies Modified: head/sys/dev/mlx4/

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 11:07:42 2019 New Revision: 347320 URL: https://svnweb.freebsd.org/changeset/base/347320 Log: Make sure the flow destination structure does not use values off the stack in mlx5en(4). MFC after:3 days Sponsored by: Mellanox Technologies Modified:

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 11:07:20 2019 New Revision: 347319 URL: https://svnweb.freebsd.org/changeset/base/347319 Log: Flush command workqueue when command completion is triggered in mlx5core. Avoid race for command completion when triggering a command completions event. Serializ

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 11:08:01 2019 New Revision: 347321 URL: https://svnweb.freebsd.org/changeset/base/347321 Log: Undo previous steps upon returning failure in mlx5en(4). Else flowtable resources may not be properly freed. MFC after:3 days Sponsored by: Mellanox Tec

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 11:07:00 2019 New Revision: 347318 URL: https://svnweb.freebsd.org/changeset/base/347318 Log: Make command timeout way shorter in mlx5core. The command timeout is terribly long, whole two hours. Make it 60s so if things do go wrong, the user gets feedback

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 11:06:42 2019 New Revision: 347317 URL: https://svnweb.freebsd.org/changeset/base/347317 Log: Remove non-functional MLX5E_MAX_RX_SEGS macro in mlx5en(4). MFC after:3 days Sponsored by: Mellanox Technologies Modified: head/sys/dev/mlx5/mlx5_en/en.h

svn commit: r347313 - in head: share/man/man4 sys/dev/mlx5 sys/dev/mlx5/mlx5_core usr.sbin/mlx5tool

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 11:05:09 2019 New Revision: 347313 URL: https://svnweb.freebsd.org/changeset/base/347313 Log: Implement firmware reset from userspace in mlx5tool(8). Submitted by: kib@ MFC after:3 days Sponsored by: Mellanox Technologies Modified: head/share/man

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 11:06:22 2019 New Revision: 347316 URL: https://svnweb.freebsd.org/changeset/base/347316 Log: Fix for compilation warning in mlx5en(4). Function 'mlx5e_alloc_rx_wqe' can never be inlined because it uses alloca (override using the always_inline attribute)

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 11:05:59 2019 New Revision: 347315 URL: https://svnweb.freebsd.org/changeset/base/347315 Log: Rename functions from mlx5_fwdump to mlx5_ctl in mlx5core. Submitted by: kib@ MFC after:3 days Sponsored by: Mellanox Technologies Modified: head/sys/de

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 11:04:40 2019 New Revision: 347312 URL: https://svnweb.freebsd.org/changeset/base/347312 Log: Add Firmware Reset Level, MFRL, register accessors in mlx5core. Submitted by: kib@ MFC after:3 days Sponsored by: Mellanox Technologies Modified: head/s

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 11:05:30 2019 New Revision: 347314 URL: https://svnweb.freebsd.org/changeset/base/347314 Log: Ensure that only one command is specified at a time in mlx5tool(8). Submitted by: kib@ MFC after:3 days Sponsored by: Mellanox Technologies Modified: he

svn commit: r347311 - head/contrib/ofed/libmlx5

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 11:04:09 2019 New Revision: 347311 URL: https://svnweb.freebsd.org/changeset/base/347311 Log: Add ConnectX-6 DX HCA ID to libmlx5. In addition, add "ConnectX family mlx5Gen Virtual Function" device ID. Every new HCA VF will be identified with this device

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 11:03:29 2019 New Revision: 347310 URL: https://svnweb.freebsd.org/changeset/base/347310 Log: Expose per-lane counters before correction mechanism in mlx5en(4). MFC after:3 days Sponsored by: Mellanox Technologies Modified: head/sys/dev/mlx5/mlx5_e

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 11:02:36 2019 New Revision: 347309 URL: https://svnweb.freebsd.org/changeset/base/347309 Log: Add support for extended PCIe counters in mlx5en(4). MFC after:3 days Sponsored by: Mellanox Technologies Modified: head/sys/dev/mlx5/mlx5_en/en.h head/

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:59:16 2019 New Revision: 347308 URL: https://svnweb.freebsd.org/changeset/base/347308 Log: Extend the counters framework in mlx5en(4). Allow more macro arguments and split the variable type and name into separate arguments. This allows simple and power

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:58:41 2019 New Revision: 347307 URL: https://svnweb.freebsd.org/changeset/base/347307 Log: Update performance counter bits in mlx5core. MFC after:3 days Sponsored by: Mellanox Technologies Modified: head/sys/dev/mlx5/mlx5_core/mlx5_diagnostics.c

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:58:06 2019 New Revision: 347306 URL: https://svnweb.freebsd.org/changeset/base/347306 Log: Implement reading PCI power status in mlx5core. Implement a watchdog as part of the healtcare subsystem which reads the PCI power status during startup and upon

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:57:37 2019 New Revision: 347305 URL: https://svnweb.freebsd.org/changeset/base/347305 Log: Move workqueue from mlx5en(4) to mlx5core. This avoids creating more workqueues in mlx5core to do simple firmware command polling tasks. MFC after:3 day

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:57:16 2019 New Revision: 347304 URL: https://svnweb.freebsd.org/changeset/base/347304 Log: Always return success for RoCE modify port in mlx5ib. CM layer calls ib_modify_port() regardless of the link layer. For the Ethernet ports, qkey violation and

svn commit: r347301 - in head/sys/ofed: drivers/infiniband/core include/rdma

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:55:47 2019 New Revision: 347301 URL: https://svnweb.freebsd.org/changeset/base/347301 Log: Add new rates to ibcore. Add the new rates that were added to the Infiniband specification as part of HDR and 2x support. Submitted by: slavash@ MFC after

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:56:51 2019 New Revision: 347303 URL: https://svnweb.freebsd.org/changeset/base/347303 Log: Add support for new rates to mlx5ib. Submitted by: slavash@ MFC after: 3 days Sponsored by: Mellanox Technologies Modified: head/sys/dev/mlx5/mlx5_ib

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:55:15 2019 New Revision: 347300 URL: https://svnweb.freebsd.org/changeset/base/347300 Log: Do not add IFM_10G_LR and IFM_40G_ER4 to supported media types by default in mlx5en(4). IFM_10G_LR and IFM_40G_ER4 media should be added only if the device has

svn commit: r347302 - in head/contrib/ofed/libibverbs: . examples

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:56:22 2019 New Revision: 347302 URL: https://svnweb.freebsd.org/changeset/base/347302 Log: Add support for 200Gbit speeds to libibverbs. Submitted by: slavash@ MFC after:3 days Sponsored by: Mellanox Technologies Modified: head/contrib/ofed/li

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:53:25 2019 New Revision: 347295 URL: https://svnweb.freebsd.org/changeset/base/347295 Log: Let rx_out_of_buffer be a 32-bit counter in mlx5en(4). This fixes counting issues when the firmware resets the counter during allocation of the counter set where

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:54:54 2019 New Revision: 347299 URL: https://svnweb.freebsd.org/changeset/base/347299 Log: Add support for 200Gb ethernet speeds to mlx5core. Submitted by: slavash@ MFC after:3 days Sponsored by: Mellanox Technologies Modified: head/sys/dev/ml

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:53:01 2019 New Revision: 347294 URL: https://svnweb.freebsd.org/changeset/base/347294 Log: Add vnic steering drop statistics in mlx5en(4). MFC after:3 days Sponsored by: Mellanox Technologies Modified: head/sys/dev/mlx5/mlx5_core/mlx5_cmd.c he

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:54:24 2019 New Revision: 347298 URL: https://svnweb.freebsd.org/changeset/base/347298 Log: Remove unused speed enums in mlx5core. Submitted by: slavash@ MFC after: 3 days Sponsored by: Mellanox Technologies Modified: head/sys/dev/mlx5/drive

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:54:05 2019 New Revision: 347297 URL: https://svnweb.freebsd.org/changeset/base/347297 Log: Control automatic update of firmware on driver load with a tunable in mlx5core. Submitted by: kib@ MFC after:3 days Sponsored by: Mellanox Technologies M

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:53:47 2019 New Revision: 347296 URL: https://svnweb.freebsd.org/changeset/base/347296 Log: Correct check for the calibration generation in mlx5en(4). If generation is cleared due to hardware clock failure, check for it before the divisor is used. Actu

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:52:11 2019 New Revision: 347292 URL: https://svnweb.freebsd.org/changeset/base/347292 Log: Add mlx5_firmware_update() in mlx5core. Add support for upgrading firmware on mlx5 module load. Submitted by: slavash@ MFC after:3 days Sponsored by: Mel

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:52:32 2019 New Revision: 347293 URL: https://svnweb.freebsd.org/changeset/base/347293 Log: Use software counters for rx_packets and rx_bytes in mlx5en(4). The physical- and virtual- port counters might not reflect the amount of data received after addr

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:51:49 2019 New Revision: 347291 URL: https://svnweb.freebsd.org/changeset/base/347291 Log: Handle IB_EVENT_DEVICE_FATAL event in ipoib. Perform flush if IB_EVENT_DEVICE_FATAL was received. Submitted by: slavash@ MFC after:3 days Sponsored by: M

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:51:29 2019 New Revision: 347290 URL: https://svnweb.freebsd.org/changeset/base/347290 Log: Fix for double bus master disable in mlx5core. mlx5_pci_disable_device is calling pci_disable_device which disables bus master. No need to explicitly call pci_cl

svn commit: r347289 - in head: share/man/man4 usr.sbin/mlx5tool

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:51:07 2019 New Revision: 347289 URL: https://svnweb.freebsd.org/changeset/base/347289 Log: Document userspace firmware flash in mlx5tool(8) and mlx5io(4). Submitted by: kib@ MFC after:3 days Sponsored by: Mellanox Technologies Modified: head/s

svn commit: r347288 - in head: sys/dev/mlx5 sys/dev/mlx5/mlx5_core usr.sbin/mlx5tool

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:50:35 2019 New Revision: 347288 URL: https://svnweb.freebsd.org/changeset/base/347288 Log: Implement userspace firmware update for ConnectX-4/5/6. Submitted by: kib@ MFC after:3 days Sponsored by: Mellanox Technologies Modified: head/sys/dev/m

svn commit: r347287 - in head: share/man/man4 sys/dev/mlx5 sys/dev/mlx5/mlx5_core usr.sbin/mlx5tool

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:50:08 2019 New Revision: 347287 URL: https://svnweb.freebsd.org/changeset/base/347287 Log: Rename mlx5_fwdump_addr to more neutral mlx5_tool_addr in mlx5core. Submitted by: kib@ MFC after:3 days Sponsored by: Mellanox Technologies Modified: he

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:49:36 2019 New Revision: 347286 URL: https://svnweb.freebsd.org/changeset/base/347286 Log: Add mlxfw callbacks in mlx5core. Add mlx5 implementation for the ones defined by the mlxfw shared module to be used while flashing the device firmware. The

svn commit: r347285 - in head: share/man/man4 sys/conf sys/dev/mlxfw sys/modules sys/modules/mlxfw

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:49:05 2019 New Revision: 347285 URL: https://svnweb.freebsd.org/changeset/base/347285 Log: Initial version of Mellanox in-kernel firmware upgrade support. Submitted by: slavash@ MFC after:3 days Sponsored by: Mellanox Technologies Added: head/

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:42:05 2019 New Revision: 347278 URL: https://svnweb.freebsd.org/changeset/base/347278 Log: Fix endless loop in ipoib_poll(). ib_req_notify_cq may return negative value which will indicate a failure. In the case of uncorrectable error, we will end up in

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:34:42 2019 New Revision: 347261 URL: https://svnweb.freebsd.org/changeset/base/347261 Log: Implement fast close of RX channel in mlx5en(4). Instead of waiting for all jobs to be cancelled, simply close the completion queue to prevent more completion ev

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:41:00 2019 New Revision: 347275 URL: https://svnweb.freebsd.org/changeset/base/347275 Log: Enhance MCAM reg to allow query on access reg support in mlx5core. Enhance MCAM to allow the driver to query which access regs are supported. For now, expose the

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:35:14 2019 New Revision: 347262 URL: https://svnweb.freebsd.org/changeset/base/347262 Log: Split mlx5e_update_stats_work() in mlx5en(4). Split the function into the mlx5e_update_stats_locked() core and make mlx5e_update_stats_work() call the _locked he

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:39:01 2019 New Revision: 347270 URL: https://svnweb.freebsd.org/changeset/base/347270 Log: Expose PCAM, MCAM registers infrastructure in mlx5core. PCAM: Ports capabilities mask register. MCAM: Management capabilities mask register. PCAM and MCAM r

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:37:31 2019 New Revision: 347267 URL: https://svnweb.freebsd.org/changeset/base/347267 Log: Make sure the running variable is properly set for ratelimited SQs in mlx5en(4). Else the SQs won't be properly released when closing rate-limited connections l

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:40:13 2019 New Revision: 347273 URL: https://svnweb.freebsd.org/changeset/base/347273 Log: Add reading the mcam_reg in mlx5core. Submitted by: slavash@ MFC after:3 days Sponsored by: Mellanox Technologies Modified: head/sys/dev/mlx5/mlx5_core/

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:44:27 2019 New Revision: 347283 URL: https://svnweb.freebsd.org/changeset/base/347283 Log: Remove redundant line of code in mlx5core. MFC after:3 days Sponsored by: Mellanox Technologies Modified: head/sys/dev/mlx5/mlx5_core/mlx5_cmd.c Modified

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:44:53 2019 New Revision: 347284 URL: https://svnweb.freebsd.org/changeset/base/347284 Log: Convert remaining module parameters into SYSCTLs in mlx5core. MFC after:3 days Sponsored by: Mellanox Technologies Modified: head/sys/dev/mlx5/mlx5_core/m

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:40:41 2019 New Revision: 347274 URL: https://svnweb.freebsd.org/changeset/base/347274 Log: Add MCC (Management Component Control) register definitions in mlx5core. MCC (Management Component Control) allows to control a firmware component update. M

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:43:35 2019 New Revision: 347281 URL: https://svnweb.freebsd.org/changeset/base/347281 Log: Fix typo. Submitted by: kib@ MFC after:3 days Sponsored by: Mellanox Technologies Modified: head/usr.sbin/mlx5tool/mlx5tool.8 Modified: head/usr.sbin/m

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:42:33 2019 New Revision: 347279 URL: https://svnweb.freebsd.org/changeset/base/347279 Log: Fix netstat counters mapping in mlx5en(4). The current mapping of driver counters to netstat counters is wrong. For example, a single jabber packet, will cause t

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:38:06 2019 New Revision: 347268 URL: https://svnweb.freebsd.org/changeset/base/347268 Log: Add Fast teardown support to mlx5core. Today mlx5 devices support two teardown modes: 1- Regular teardown 2- Force teardown This change introduces the enh

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:37:03 2019 New Revision: 347266 URL: https://svnweb.freebsd.org/changeset/base/347266 Log: Implement get and set nic state as global functions in mlx5core. MFC after:3 days Sponsored by: Mellanox Technologies Modified: head/sys/dev/mlx5/mlx5_cor

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:44:02 2019 New Revision: 347282 URL: https://svnweb.freebsd.org/changeset/base/347282 Log: Change implicit and probably erronous EPERM to EIO on command status error in mlx5core. Submitted by: kib@ MFC after:3 days Sponsored by: Mellanox Techno

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:41:44 2019 New Revision: 347277 URL: https://svnweb.freebsd.org/changeset/base/347277 Log: Avoid leaking send queue mbufs during error recovery in mlx5en(4). MFC after:3 days Sponsored by: Mellanox Technologies Modified: head/sys/dev/mlx5/mlx5_e

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:42:51 2019 New Revision: 347280 URL: https://svnweb.freebsd.org/changeset/base/347280 Log: Fix style. Submitted by: kib@ MFC after:3 days Sponsored by: Mellanox Technologies Modified: head/usr.sbin/mlx5tool/mlx5tool.c Modified: head/usr.sbin/

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:41:21 2019 New Revision: 347276 URL: https://svnweb.freebsd.org/changeset/base/347276 Log: Add helper functions to set/query MCC/MCDA/MCQI registers in mlx5core. To be used by the mlx5 callbacks exposed to the mlxfw module. Linux commit: d2ad488b0

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:34:14 2019 New Revision: 347260 URL: https://svnweb.freebsd.org/changeset/base/347260 Log: Correct number of elements for priority to traffic class mappings in mlx5en(4). The number of priorities is always 8, while the number of traffic classes suppor

svn commit: r347258 - in head/sys/dev: mlx4/mlx4_ib mlx5/mlx5_ib

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:33:09 2019 New Revision: 347258 URL: https://svnweb.freebsd.org/changeset/base/347258 Log: Make sure to error out when arming the CQ fails in mlx4ib and mlx5ib. MFC after:3 days Sponsored by: Mellanox Technologies Modified: head/sys/dev/mlx4/mlx

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:39:25 2019 New Revision: 347271 URL: https://svnweb.freebsd.org/changeset/base/347271 Log: Implement PCAM, MCAM access register commands in mlx5core. Introduced registers will expose capabilities of new registers and features related to port/management

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:39:53 2019 New Revision: 347272 URL: https://svnweb.freebsd.org/changeset/base/347272 Log: Query and cache PCAM, MCAM registers on initialization in mlx5core. On load_one, we now cache our capabilities registers internally, similar to QUERY_HCA_CAP. Ca

svn commit: r347257 - head/sys/ofed/drivers/infiniband/core

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:32:45 2019 New Revision: 347257 URL: https://svnweb.freebsd.org/changeset/base/347257 Log: Make sure to error out when arming the CQ fails in ibcore. MFC after:3 days Sponsored by: Mellanox Technologies Modified: head/sys/ofed/drivers/infiniband

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:38:31 2019 New Revision: 347269 URL: https://svnweb.freebsd.org/changeset/base/347269 Log: Add sysctl(8) to control fast unload support in mlx5core. MFC after:3 days Sponsored by: Mellanox Technologies Modified: head/sys/dev/mlx5/mlx5_core/mlx5_

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:36:32 2019 New Revision: 347265 URL: https://svnweb.freebsd.org/changeset/base/347265 Log: Ticks are integer type in FreeBSD. MFC after:3 days Sponsored by: Mellanox Technologies Modified: head/sys/dev/mlx5/mlx5_core/mlx5_health.c Modified: hea

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:35:55 2019 New Revision: 347264 URL: https://svnweb.freebsd.org/changeset/base/347264 Log: Configure firmware to use RX hash format in mini CQE in mlx5en(4). When using CQE zipping, one can choose between RX hash and Checksum. This will indicate the pa

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:35:35 2019 New Revision: 347263 URL: https://svnweb.freebsd.org/changeset/base/347263 Log: Disable CQE zipping by default in mlx5en(4). After doing performance measurements, it seems like CQE zipping doesn't have any significant benefit. Moreover, we

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:33:29 2019 New Revision: 347259 URL: https://svnweb.freebsd.org/changeset/base/347259 Log: Remove unused module parameter in mlx5ib. MFC after:3 days Sponsored by: Mellanox Technologies Modified: head/sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c Modifie

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:29:45 2019 New Revision: 347251 URL: https://svnweb.freebsd.org/changeset/base/347251 Log: Import Linux code to implement mlx5_ib_disassociate_ucontext() in mlx5ib. Submitted by: kib@ MFC after:3 days Sponsored by: Mellanox Technologies Modified

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:26:33 2019 New Revision: 347248 URL: https://svnweb.freebsd.org/changeset/base/347248 Log: Enable FPGA and FPGA QP errors for EQ and call the handler in mlx5core. Submitted by: kib@ MFC after:3 days Sponsored by: Mellanox Technologies Modified:

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:32:03 2019 New Revision: 347255 URL: https://svnweb.freebsd.org/changeset/base/347255 Log: Fix tx_jumbo_packets counter in mlx5en(4). Instead of reading Ethernet RFC 2819 pXtoYoctets counters from hardware which counts RX octets, count tx_stat_pXtoYoct

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:30:47 2019 New Revision: 347253 URL: https://svnweb.freebsd.org/changeset/base/347253 Log: Protect from infinite sw-reset loop in mlx5core. Avoid an infinite software firmware reset loop that may be caused by a hardware bug by limiting the maximum numb

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:30:18 2019 New Revision: 347252 URL: https://svnweb.freebsd.org/changeset/base/347252 Log: Disable all MSIX interrupts before shutdown in mlx5. Make sure the interrupt handlers don't race with the fast unload one code in the shutdown handler. MFC

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:32:22 2019 New Revision: 347256 URL: https://svnweb.freebsd.org/changeset/base/347256 Log: Destroy port stats debug context in correct order in mlx5en(4). Destroy children nodes before parent nodes. MFC after:3 days Sponsored by: Mellanox Technol

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:31:32 2019 New Revision: 347254 URL: https://svnweb.freebsd.org/changeset/base/347254 Log: Update Ethernet extended counters in mlx5en(4). Expose all Ethernet extended counters those counters via debug_stats sysctl: dev.mce.X.debug_stats Submitt

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:28:18 2019 New Revision: 347250 URL: https://svnweb.freebsd.org/changeset/base/347250 Log: Add temperature warning event to log in mlx5core. Temperature warning event is sent by FW to indicate high temperature as detected by one of the sensors on the b

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

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:27:29 2019 New Revision: 347249 URL: https://svnweb.freebsd.org/changeset/base/347249 Log: Correctly define the interface state bits in mlx5en(4). While at it remove unused interface state bits. This also fixes and issue during shutdown: There is

svn commit: r347247 - in head/sys/dev/mlx5: . mlx5_fpga mlx5_fpga_tools

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:25:14 2019 New Revision: 347247 URL: https://svnweb.freebsd.org/changeset/base/347247 Log: Add MLX5_FPGA_RELOAD IOCTL(2) to mlx5fpga. Submitted by: kib@ MFC after:3 days Sponsored by: Mellanox Technologies Modified: head/sys/dev/mlx5/mlx5_fpga

svn commit: r347246 - in head/sys: compat/linuxkpi/common/include/linux conf dev/mlx5/mlx5_en modules/mlx5en

2019-05-08 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 8 10:23:33 2019 New Revision: 347246 URL: https://svnweb.freebsd.org/changeset/base/347246 Log: Add support for Dynamic Interrupt Moderation, DIM, in mlx5en(4). Add support for DIM based on Linux, with some minor adaptions specific to FreeBSD. Linux co

Re: svn commit: r346645 - in head/sys: compat/linuxkpi/common/include/linux compat/linuxkpi/common/src sys

2019-05-08 Thread Hans Petter Selasky
On 2019-05-08 03:24, Tycho Nightingale wrote: Hi, On May 7, 2019, at 9:13 PM, Conrad Meyer wrote: Hi Tycho, On Wed, Apr 24, 2019 at 1:31 PM Tycho Nightingale wrote: Author: tychon Date: Wed Apr 24 20:30:45 2019 New Revision: 346645 URL: https://svnweb.freebsd.org/changeset/base/346645 L

svn commit: r347190 - head/sys/compat/linuxkpi/common/include/linux

2019-05-06 Thread Hans Petter Selasky
Author: hselasky Date: Mon May 6 16:22:45 2019 New Revision: 347190 URL: https://svnweb.freebsd.org/changeset/base/347190 Log: Use PCIV_INVALID in pci_channel_offline() in the LinuxKPI. Build tested drm-current-kmod prior to commit. MFC after:1 week Submitted by:

svn commit: r347188 - head/sys/compat/linuxkpi/common/include/linux

2019-05-06 Thread Hans Petter Selasky
Author: hselasky Date: Mon May 6 16:17:38 2019 New Revision: 347188 URL: https://svnweb.freebsd.org/changeset/base/347188 Log: Disabling a PCI device should only disable busmaster in the LinuxKPI. As Linux comment for this function point: Signal to the system that the PCI device is not i

svn commit: r347187 - head/sys/compat/linuxkpi/common/include/linux

2019-05-06 Thread Hans Petter Selasky
Author: hselasky Date: Mon May 6 16:10:26 2019 New Revision: 347187 URL: https://svnweb.freebsd.org/changeset/base/347187 Log: Implement print_hex_dump_debug() function macro in the LinuxKPI. Build tested drm-current-kmod prior to commit. MFC after:1 week Submitted by:

svn commit: r347185 - in head/sys/compat/linuxkpi/common: include/linux src

2019-05-06 Thread Hans Petter Selasky
Author: hselasky Date: Mon May 6 16:00:20 2019 New Revision: 347185 URL: https://svnweb.freebsd.org/changeset/base/347185 Log: Allow controlling pr_debug at runtime in the LinuxKPI. Turning on pr_debug at compile time make it non-optional at runtime. This often means that the amount of t

svn commit: r347089 - in head/sys: compat/linuxkpi/common/include/linux compat/linuxkpi/common/src sys

2019-05-04 Thread Hans Petter Selasky
Author: hselasky Date: Sat May 4 09:47:01 2019 New Revision: 347089 URL: https://svnweb.freebsd.org/changeset/base/347089 Log: Fix regression issue after r346645 in the LinuxKPI. The S/G list must be mapped AS-IS without any optimisations. This also implies that sg_dma_len() must be equa

svn commit: r347088 - head/sys/compat/linuxkpi/common/src

2019-05-04 Thread Hans Petter Selasky
Author: hselasky Date: Sat May 4 09:30:03 2019 New Revision: 347088 URL: https://svnweb.freebsd.org/changeset/base/347088 Log: Fix regression issue after r346645 in the LinuxKPI. Properly handle error case when mapping DMA address fails. Sponsored by: Mellanox Technologies Modif

<    8   9   10   11   12   13   14   15   16   17   >