svn commit: r347375 - in head/sys: net netinet

2019-05-08 Thread Gleb Smirnoff
Author: glebius Date: Wed May 8 23:39:24 2019 New Revision: 347375 URL: https://svnweb.freebsd.org/changeset/base/347375 Log: Existense of PCB route caching doesn't allow us to use new fast route lookup KPI in ip_output() like it is already used in ip_forward(). However, when there is no

svn commit: r347371 - head/etc

2019-05-08 Thread Emmanuel Vadot
Author: manu Date: Wed May 8 21:26:11 2019 New Revision: 347371 URL: https://svnweb.freebsd.org/changeset/base/347371 Log: etc/Makefile: Remove empty newline This was commited accidently in r347356 and cause distribution with NO_ROOT set to fail. Reported by: ci, kib MFC after:

svn commit: r347370 - head/release/tools

2019-05-08 Thread Colin Percival
Author: cperciva Date: Wed May 8 21:03:03 2019 New Revision: 347370 URL: https://svnweb.freebsd.org/changeset/base/347370 Log: Bump EC2 AMI filesystem size up to 4000 MB. AMIs have been breaking for the past month due to insufficient disk space. Due to the small amount of overhead in

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

2019-05-08 Thread Warner Losh
Author: imp Date: Wed May 8 20:18:11 2019 New Revision: 347369 URL: https://svnweb.freebsd.org/changeset/base/347369 Log: rename nvme_ctrlr_destroy_qpair to nvme_ctrlr_destroy_qpairs Maintain symmetry with nvme_ctrlr_create_qpairs, making it easier to match init/uninit scenarios.

svn commit: r347368 - head/sys/dev/cpuctl

2019-05-08 Thread Konstantin Belousov
Author: kib Date: Wed May 8 20:01:09 2019 New Revision: 347368 URL: https://svnweb.freebsd.org/changeset/base/347368 Log: x86: Put other CPUs into tight loop when updating Intel microcode from loaded OS. This should prevent at least some theoretical issues whith code execution on HT

svn commit: r347365 - head/sys/dev/dme

2019-05-08 Thread Brooks Davis
Author: brooks Date: Wed May 8 19:05:58 2019 New Revision: 347365 URL: https://svnweb.freebsd.org/changeset/base/347365 Log: Update dme(4) to reflect that it will not be removed due to FCP-101. dme(4) is the built-in NIC on a couple non-expandable mips platforms and thus should remain.

svn commit: r347362 - head/sys/modules/dtb/allwinner

2019-05-08 Thread Emmanuel Vadot
Author: manu Date: Wed May 8 18:56:24 2019 New Revision: 347362 URL: https://svnweb.freebsd.org/changeset/base/347362 Log: dtb: allwinner: Add the pinebook dtb to the build Modified: head/sys/modules/dtb/allwinner/Makefile Modified: head/sys/modules/dtb/allwinner/Makefile

svn commit: r347361 - head/share/man/man3

2019-05-08 Thread Edward Tomasz Napierala
Author: trasz Date: Wed May 8 18:49:59 2019 New Revision: 347361 URL: https://svnweb.freebsd.org/changeset/base/347361 Log: Add usage example to tree(3). Obtained from:OpenBSD MFC after:2 weeks Sponsored by: Klara Inc. Modified: head/share/man/man3/tree.3 Modified:

svn commit: r347360 - head/sys/sys

2019-05-08 Thread Edward Tomasz Napierala
Author: trasz Date: Wed May 8 18:47:00 2019 New Revision: 347360 URL: https://svnweb.freebsd.org/changeset/base/347360 Log: Mark inline functions with __unused; prevents compiler warning when they end up being unused. Reviewed by: kib Obtained from:OpenBSD MFC after:2

svn commit: r347359 - head/contrib/libxo/tests/core/saved

2019-05-08 Thread Li-Wen Hsu
Author: lwhsu Date: Wed May 8 18:46:12 2019 New Revision: 347359 URL: https://svnweb.freebsd.org/changeset/base/347359 Log: Fix expected output after r347207 While phil is working on fixing in libxo general test parts, updating these files to stop the test failure warnings Approved

Re: svn commit: r347334 - head

2019-05-08 Thread Antoine Brodin
On Wed, May 8, 2019 at 5:21 PM Enji Cooper wrote: > > On May 8, 2019, at 08:17, Antoine Brodin wrote: > > > > Author: antoine > > Date: Wed May 8 15:17:36 2019 > > New Revision: 347334 > > URL: https://svnweb.freebsd.org/changeset/base/347334 > > > > Log: > > Add wc(1) to native-xtools so that

svn commit: r347357 - head/sys/sys

2019-05-08 Thread Matt Macy
Author: mmacy Date: Wed May 8 18:10:19 2019 New Revision: 347357 URL: https://svnweb.freebsd.org/changeset/base/347357 Log: Enable sys/disk.h consumers to avoid pulling in networking headers. The networking headers break ZoF. Modified: head/sys/sys/disk.h Modified: head/sys/sys/disk.h

svn commit: r347356 - head/etc

2019-05-08 Thread Emmanuel Vadot
Author: manu Date: Wed May 8 17:46:59 2019 New Revision: 347356 URL: https://svnweb.freebsd.org/changeset/base/347356 Log: pkgbase: Deal with the last etc files Add tags=package=runtime for password related files. Add tags=package=sendmail for rc.sendmail Add tags=package=ipfw for

svn commit: r347355 - in head/sys: kern sys

2019-05-08 Thread Mateusz Guzik
Author: mjg Date: Wed May 8 16:30:38 2019 New Revision: 347355 URL: https://svnweb.freebsd.org/changeset/base/347355 Log: Reduce umtx-related work on exec and exit - there is no need to take the process lock to iterate the thread list after single-threading is enforced - typically

svn commit: r347354 - head/sys/powerpc/booke

2019-05-08 Thread Justin Hibbits
Author: jhibbits Date: Wed May 8 16:15:28 2019 New Revision: 347354 URL: https://svnweb.freebsd.org/changeset/base/347354 Log: powerpc/booke: Rewrite pmap_sync_icache() a bit * Make mmu_booke_sync_icache() use the DMAP on 64-bit prcoesses, no need to map the page into the user's

svn commit: r347351 - in head/sys: conf riscv/conf

2019-05-08 Thread Ruslan Bukin
Author: br Date: Wed May 8 16:06:54 2019 New Revision: 347351 URL: https://svnweb.freebsd.org/changeset/base/347351 Log: Connect Xilinx AXI drivers and Cadence Ethernet MAC to the RISC-V build. Sponsored by: DARPA, AFRL Modified: head/sys/conf/files.riscv head/sys/riscv/conf/GENERIC

svn commit: r347350 - head/sys/powerpc/booke

2019-05-08 Thread Justin Hibbits
Author: jhibbits Date: Wed May 8 16:05:18 2019 New Revision: 347350 URL: https://svnweb.freebsd.org/changeset/base/347350 Log: powerpc/booke: Do as much work outside of TLB locks as possible Reduce the surface area of the TLB locks. Unfortunately the same trick for serializing the

Re: svn commit: r347218 - head/sys/compat/linsysfs

2019-05-08 Thread Warner Losh
On Tue, May 7, 2019 at 4:45 AM Renato Botelho wrote: > On 07/05/19 02:45, Dmitry Chagin wrote: > > вт, 7 мая 2019 г. в 08:32, Rodney W. Grimes : > > > >>> Author: dchagin > >>> Date: Tue May 7 05:08:13 2019 > >>> New Revision: 347218 > >>> URL: https://svnweb.freebsd.org/changeset/base/347218 >

svn commit: r347343 - in head/sys: arm64/conf conf dev/usb/controller

2019-05-08 Thread Emmanuel Vadot
Author: manu Date: Wed May 8 15:42:39 2019 New Revision: 347343 URL: https://svnweb.freebsd.org/changeset/base/347343 Log: Add support for USB 3.0 XHCI via ACPI Ampere eMAG systems have XHCI just described in ACPI, not on PCI. Submitted by: Greg V Reviewed by: andrew MFC after:

svn commit: r347342 - in head/sys/dev: mii xilinx

2019-05-08 Thread Ruslan Bukin
Author: br Date: Wed May 8 15:36:57 2019 New Revision: 347342 URL: https://svnweb.freebsd.org/changeset/base/347342 Log: Add driver for Xilinx AXI Ethernet tri-mode (10/100/1000 Mb/s) MAC found in the U.S. Government Furnished Equipment (GFE) 64-bit RISC-V cores. Sponsored by: DARPA,

svn commit: r347344 - head/sys/dev/xilinx

2019-05-08 Thread Ruslan Bukin
Author: br Date: Wed May 8 15:43:17 2019 New Revision: 347344 URL: https://svnweb.freebsd.org/changeset/base/347344 Log: Add driver for the Xilinx AXI Direct Memory Access (AXI DMA) controller found in the U.S. Government Furnished Equipment (GFE) 64-bit RISC-V cores. Sponsored by:

svn commit: r347337 - head/sys/dev/xdma

2019-05-08 Thread Ruslan Bukin
Author: br Date: Wed May 8 15:22:27 2019 New Revision: 347337 URL: https://svnweb.freebsd.org/changeset/base/347337 Log: o Implement a bounce buffer based on device reserved memory. Grab device reserved physical memory regions from FDT using standard "memory-region" property and use

Re: svn commit: r347334 - head

2019-05-08 Thread Enji Cooper
> On May 8, 2019, at 08:17, Antoine Brodin wrote: > > Author: antoine > Date: Wed May 8 15:17:36 2019 > New Revision: 347334 > URL: https://svnweb.freebsd.org/changeset/base/347334 > > Log: > Add wc(1) to native-xtools so that it can be used in qemu-user jails > > Modified: >

svn commit: r347334 - head

2019-05-08 Thread Antoine Brodin
Author: antoine Date: Wed May 8 15:17:36 2019 New Revision: 347334 URL: https://svnweb.freebsd.org/changeset/base/347334 Log: Add wc(1) to native-xtools so that it can be used in qemu-user jails Modified: head/Makefile.inc1 Modified: head/Makefile.inc1

svn commit: r347329 - head/sys/dev/random

2019-05-08 Thread Conrad Meyer
Author: cem Date: Wed May 8 14:54:32 2019 New Revision: 347329 URL: https://svnweb.freebsd.org/changeset/base/347329 Log: random(4): Don't complain noisily when an entropy source is slow Mjg@ reports that RDSEED (r347239) causes a lot of logspam from this printf, and I don't feel that

Re: svn commit: r347239 - head/sys/dev/random

2019-05-08 Thread Conrad Meyer
Unfortunately, no real knob for it. I have proposed disabling the warning in https://reviews.freebsd.org/D20195 . Sorry about the noise. Best, Conrad On Wed, May 8, 2019 at 2:08 AM Michael Tuexen wrote: > > On 8. May 2019, at 02:45, Conrad Meyer wrote: > > > > Author: cem > > Date: Wed May

svn commit: r347328 - head/sys/tools

2019-05-08 Thread Ed Maste
Author: emaste Date: Wed May 8 13:35:51 2019 New Revision: 347328 URL: https://svnweb.freebsd.org/changeset/base/347328 Log: Avoid literal @generated tag in file-generating scripts We don't want the generator itself tagged as a generated file. Reviewed by: cem Sponsored by: The

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:

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

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:

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: 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

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

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.

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

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: 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: 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:

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: 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:

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:

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:

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: 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:

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

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

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:

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: 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

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:

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

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

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:

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

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:

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

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:

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.

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

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

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:

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:

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:

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

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

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:

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:

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:

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: 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:

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:

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:

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

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:

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:

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:

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:

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

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,

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

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.

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

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:

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

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.

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:

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

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

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

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:

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

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

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

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

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

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:

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: 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

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

  1   2   >