svn commit: r368756 - head/contrib/jemalloc/src

2020-12-18 Thread Marcin Wojtas
Author: mw Date: Fri Dec 18 10:09:21 2020 New Revision: 368756 URL: https://svnweb.freebsd.org/changeset/base/368756 Log: Fix abort in jemalloc extent coalescing. Fix error in extent_try_coalesce_impl(), which could cause abort to happen when trying to coalesce extents backwards. The

svn commit: r367805 - head/sys/dev/ena

2020-11-18 Thread Marcin Wojtas
Author: mw Date: Wed Nov 18 15:25:38 2020 New Revision: 367805 URL: https://svnweb.freebsd.org/changeset/base/367805 Log: Update ENA driver version to v2.3.0 The v2.3.0 introduces new ena_com layer, ENI metrics updates and SPDX license tags. Submitted by: Michal Krawczyk

svn commit: r367803 - head/sys/dev/ena

2020-11-18 Thread Marcin Wojtas
Author: mw Date: Wed Nov 18 15:20:01 2020 New Revision: 367803 URL: https://svnweb.freebsd.org/changeset/base/367803 Log: Rename descriptions of the supported ENA devices Some of the PCI ID were described as ENA with LLQ support - it's not fully accurate and because of that, their names

svn commit: r367802 - head/sys/dev/ena

2020-11-18 Thread Marcin Wojtas
Author: mw Date: Wed Nov 18 15:17:55 2020 New Revision: 367802 URL: https://svnweb.freebsd.org/changeset/base/367802 Log: Add ENI metrics for the ENA driver The new HAL allows the driver to read extra ENI stats. Exact meaning of each of them can be found in base/ena_defs/ena_admin_defs.h

svn commit: r367801 - in head: share/man/man4 sys/dev/ena sys/modules/ena

2020-11-18 Thread Marcin Wojtas
Author: mw Date: Wed Nov 18 15:07:34 2020 New Revision: 367801 URL: https://svnweb.freebsd.org/changeset/base/367801 Log: Add SPDX license tag to the ENA driver files Refering to guide: https://wiki.freebsd.org/SPDX the SPDX tag should not replace the standard license text, however it

svn commit: r367800 - head/sys/dev/ena

2020-11-18 Thread Marcin Wojtas
Author: mw Date: Wed Nov 18 15:02:12 2020 New Revision: 367800 URL: https://svnweb.freebsd.org/changeset/base/367800 Log: Add Rx offsets support for the ENA driver For the first descriptor in a chain the data may start at an offset. It is optional feature of some devices, so the driver

svn commit: r367799 - in head/sys: contrib/ena-com contrib/ena-com/ena_defs dev/ena

2020-11-18 Thread Marcin Wojtas
Author: mw Date: Wed Nov 18 14:59:22 2020 New Revision: 367799 URL: https://svnweb.freebsd.org/changeset/base/367799 Log: Adjust ENA driver files to latest ena-com changes * Use the new API of ena_trace_* * Fix typo syndrom --> syndrome * Remove validation of the Rx req ID (already

svn commit: r367795 - in head/sys: contrib/ena-com dev/ena

2020-11-18 Thread Marcin Wojtas
Author: mw Date: Wed Nov 18 14:50:12 2020 New Revision: 367795 URL: https://svnweb.freebsd.org/changeset/base/367795 Log: Fix completion descriptors alignment for the ENA The latest generation hardware requires IO CQ (completion queue) descriptors memory to be aligned to a 4K. It needs

Re: svn commit: r366106 - head/sys/arm64/arm64

2020-11-01 Thread Marcin Wojtas
Hi, With this commit SDHCI fails to allocate a bounce buffer for SDMA (sdhci_dma_alloc() routine). The same behavior was observed on LS1046A and Armada 7k8k. Example log: sdhci_xenon0: mem 0x78-0x7802ff irq 38 on simplebus3 getaddr: error 27 sdhci_xenon0-slot0: Can't load DMA memory for

svn commit: r366759 - head/sys/netipsec

2020-10-16 Thread Marcin Wojtas
Author: mw Date: Fri Oct 16 11:27:01 2020 New Revision: 366759 URL: https://svnweb.freebsd.org/changeset/base/366759 Log: Trigger soft lifetime expiration on sequence number This patch adds 80% of UINT32_MAX limit on sequence number. When sequence number reaches limit kernel sends

svn commit: r366758 - head/sys/netipsec

2020-10-16 Thread Marcin Wojtas
Author: mw Date: Fri Oct 16 11:25:45 2020 New Revision: 366758 URL: https://svnweb.freebsd.org/changeset/base/366758 Log: Add support for IPsec ESN and pass relevant information to crypto layer Implement support for including IPsec ESN (Extended Sequence Number) to both encrypt and

svn commit: r366757 - head/sys/netipsec

2020-10-16 Thread Marcin Wojtas
Author: mw Date: Fri Oct 16 11:24:12 2020 New Revision: 366757 URL: https://svnweb.freebsd.org/changeset/base/366757 Log: Implement anti-replay algorithm with ESN support As RFC 4304 describes there is anti-replay algorithm responsibility to provide appropriate value of Extended Sequence

svn commit: r366755 - head/sys/net

2020-10-16 Thread Marcin Wojtas
Author: mw Date: Fri Oct 16 11:22:29 2020 New Revision: 366755 URL: https://svnweb.freebsd.org/changeset/base/366755 Log: Add SADB_SAFLAGS_ESN flag This flag is going to be used by IKE daemon to signal if Extended Sequence Number feature is going to be used. Value for this flag was

svn commit: r366754 - head/sys/crypto/aesni

2020-10-16 Thread Marcin Wojtas
Author: mw Date: Fri Oct 16 11:21:56 2020 New Revision: 366754 URL: https://svnweb.freebsd.org/changeset/base/366754 Log: Add support for ESN in AES-NI crypto driver This patch adds support for IPsec ESN (Extended Sequence Numbers) in encrypt and authenticate mode (eg. AES-CBC and

svn commit: r366753 - head/sys/opencrypto

2020-10-16 Thread Marcin Wojtas
Author: mw Date: Fri Oct 16 11:18:13 2020 New Revision: 366753 URL: https://svnweb.freebsd.org/changeset/base/366753 Log: Add support for ESN in cryptosoft This patch adds support for IPsec ESN (Extended Sequence Numbers) in encrypt and authenticate mode (eg. AES-CBC and SHA256) and

svn commit: r366752 - in head: share/man/man9 sys/opencrypto

2020-10-16 Thread Marcin Wojtas
Author: mw Date: Fri Oct 16 11:06:33 2020 New Revision: 366752 URL: https://svnweb.freebsd.org/changeset/base/366752 Log: Prepare crypto framework for IPsec ESN support This permits requests (netipsec ESP and AH protocol) to provide the IPsec ESN (Extended Sequence Numbers) in a separate

Re: svn commit: r365054 - in head/sys: conf dev/sdhci

2020-09-02 Thread Marcin Wojtas
Hi Justin, Thanks for your input. Please see inline. wt., 1 wrz 2020 o 23:30 Justin Hibbits napisał(a): > > Sep 1, 2020 11:17:35 Marcin Wojtas : > > > Author: mw > > Date: Tue Sep 1 16:17:21 2020 > > New Revision: 365054 > > URL: https://svnweb.freebsd.org/

Re: svn commit: r365054 - in head/sys: conf dev/sdhci

2020-09-02 Thread Marcin Wojtas
Hi Hans, śr., 2 wrz 2020 o 12:47 Hans Petter Selasky napisał(a): > > Does this patch fix the problem: > > Index: sys/conf/files > === > --- sys/conf/files (revision 365234) > +++ sys/conf/files (working copy) > @@ -3058,7

Re: svn commit: r365054 - in head/sys: conf dev/sdhci

2020-09-02 Thread Marcin Wojtas
lude "clknode_if.h" > > Unfortunately yes, fixing it. > On 9/1/20, Marcin Wojtas wrote: > > Author: mw > > Date: Tue Sep 1 16:17:21 2020 > > New Revision: 365054 > > URL: https://svnweb.freebsd.org/changeset/base/365054 > > > > Log: > >

svn commit: r365054 - in head/sys: conf dev/sdhci

2020-09-01 Thread Marcin Wojtas
Author: mw Date: Tue Sep 1 16:17:21 2020 New Revision: 365054 URL: https://svnweb.freebsd.org/changeset/base/365054 Log: Introduce the SDHCI driver for NXP QorIQ Layerscape SoCs Implement support for an eSDHC controller found in NXP QorIQ Layerscape SoCs. This driver has been tested

svn commit: r363759 - head/sys/dev/neta

2020-08-01 Thread Marcin Wojtas
Author: mw Date: Sat Aug 1 09:40:19 2020 New Revision: 363759 URL: https://svnweb.freebsd.org/changeset/base/363759 Log: Fix TX csum handling in if_mvneta The mvneta device requires MVNETA_TX_CMD_L4_CHECKSUM_NONE bit to be set in the tx descriptor is checksum not required. However,

svn commit: r363638 - head/sys/conf

2020-07-28 Thread Marcin Wojtas
Author: mw Date: Tue Jul 28 10:08:07 2020 New Revision: 363638 URL: https://svnweb.freebsd.org/changeset/base/363638 Log: Fix ENA build when integrated into kernel Provide missing rules for ena_datapath.c and ena_netmap.c, which prevented the ENA driver from building. This issue was

svn commit: r362574 - head/sys/dev/uart

2020-06-24 Thread Marcin Wojtas
Author: mw Date: Wed Jun 24 12:15:27 2020 New Revision: 362574 URL: https://svnweb.freebsd.org/changeset/base/362574 Log: Fix AccessWidth and BitWidth parsing in SPCR table The ACPI Specification defines a Generic Address Structure (GAS), which is used to describe UART controller

svn commit: r361583 - head/sys/crypto/aesni

2020-05-28 Thread Marcin Wojtas
Author: mw Date: Thu May 28 09:13:20 2020 New Revision: 361583 URL: https://svnweb.freebsd.org/changeset/base/361583 Log: Change return types of hash update functions in SHA-NI r359374 introduced crypto_apply function which takes as argument a function pointer that is expected to return

svn commit: r361530 - head/sys/dev/ena

2020-05-26 Thread Marcin Wojtas
Author: mw Date: Tue May 26 16:11:46 2020 New Revision: 361530 URL: https://svnweb.freebsd.org/changeset/base/361530 Log: Update ENA driver version to v2.2.0 Driver version upgrade is connected with support for the new device fetures, like Tx drops reporting or disabling meta caching.

svn commit: r361529 - head/sys/dev/ena

2020-05-26 Thread Marcin Wojtas
Author: mw Date: Tue May 26 16:05:42 2020 New Revision: 361529 URL: https://svnweb.freebsd.org/changeset/base/361529 Log: Refactor ena_tx_map_mbuf() function There is no guarantee from bus_dmamap_load_mbuf_sg() for matching mbuf chain segments to dma physical segments. This patch

svn commit: r361528 - head/sys/dev/ena

2020-05-26 Thread Marcin Wojtas
Author: mw Date: Tue May 26 16:02:10 2020 New Revision: 361528 URL: https://svnweb.freebsd.org/changeset/base/361528 Log: Fix double-free bug within ena_detach() There is ena_free_all_io_rings_resources() called twice on device detach: ena_detach(): ena_destroy_device(): /*

svn commit: r361527 - head/sys/dev/ena

2020-05-26 Thread Marcin Wojtas
Author: mw Date: Tue May 26 16:00:30 2020 New Revision: 361527 URL: https://svnweb.freebsd.org/changeset/base/361527 Log: Allow disabling meta caching for ENA Tx path Determined by a flag passed from the device. No metadata is set within ena_tx_csum when caching is disabled.

svn commit: r361526 - head/sys/dev/ena

2020-05-26 Thread Marcin Wojtas
Author: mw Date: Tue May 26 15:58:48 2020 New Revision: 361526 URL: https://svnweb.freebsd.org/changeset/base/361526 Log: Create ENA IO queues with optional backoff If requested size of IO queues is not supported try to decrease it until finding the highest value that can be satisfied.

svn commit: r361525 - head/sys/dev/ena

2020-05-26 Thread Marcin Wojtas
Author: mw Date: Tue May 26 15:57:02 2020 New Revision: 361525 URL: https://svnweb.freebsd.org/changeset/base/361525 Log: Add sysctl node for ENA IO queues number adjustment By default, in ena_attach() the driver attempts to acquire ena_adapter::max_num_io_queues MSI-X vectors for the

svn commit: r361524 - head/sys/dev/ena

2020-05-26 Thread Marcin Wojtas
Author: mw Date: Tue May 26 15:54:32 2020 New Revision: 361524 URL: https://svnweb.freebsd.org/changeset/base/361524 Log: Fix assumptions about number of IO queues in the ENA Make the ena_adapter::num_io_queues a number of effectively used IO queues. While the

svn commit: r361519 - head/sys/dev/ena

2020-05-26 Thread Marcin Wojtas
Author: mw Date: Tue May 26 15:45:54 2020 New Revision: 361519 URL: https://svnweb.freebsd.org/changeset/base/361519 Log: Mark the ENA driver as epoch ready Recent changes to the epoch requires driver to notify that they knows epoch in order to prevent input packet function to enter

svn commit: r361523 - head/sys/dev/ena

2020-05-26 Thread Marcin Wojtas
Author: mw Date: Tue May 26 15:50:30 2020 New Revision: 361523 URL: https://svnweb.freebsd.org/changeset/base/361523 Log: Rework ENA Tx buffer ring size reconfiguration This method has been aligned with the way how the Rx queue size is being updated - so it's now done synchronously

svn commit: r361521 - head/sys/dev/ena

2020-05-26 Thread Marcin Wojtas
Author: mw Date: Tue May 26 15:48:06 2020 New Revision: 361521 URL: https://svnweb.freebsd.org/changeset/base/361521 Log: Rework ENA Rx queue size configuration This patch reworks how the Rx queue size is being reconfigured and how the information from the device is being processed.

svn commit: r361518 - head/sys/dev/ena

2020-05-26 Thread Marcin Wojtas
Author: mw Date: Tue May 26 15:44:08 2020 New Revision: 361518 URL: https://svnweb.freebsd.org/changeset/base/361518 Log: Improve indentation in ena_up() and ena_down() If the conditional check for ENA_FLAG_DEV_UP is negated, the body of the function can have smaller indentation and it

svn commit: r361517 - head/sys/dev/ena

2020-05-26 Thread Marcin Wojtas
Author: mw Date: Tue May 26 15:41:53 2020 New Revision: 361517 URL: https://svnweb.freebsd.org/changeset/base/361517 Log: Expose argument names for non static ENA driver functions As functions which are declared in the header files are intended to be the interface and are going to be

svn commit: r361516 - head/sys/dev/ena

2020-05-26 Thread Marcin Wojtas
Author: mw Date: Tue May 26 15:39:41 2020 New Revision: 361516 URL: https://svnweb.freebsd.org/changeset/base/361516 Log: Use single global lock in the ENA driver Currently, the driver had 2 global locks - one was sx lock used for up/down synchronization and the second one was mutex,

svn commit: r361515 - head/sys/dev/ena

2020-05-26 Thread Marcin Wojtas
Author: mw Date: Tue May 26 15:37:55 2020 New Revision: 361515 URL: https://svnweb.freebsd.org/changeset/base/361515 Log: Add trigger reset function in the ENA driver As the reset triggering is no longer a simple macro that was just setting appropriate flag, the new function for

svn commit: r361514 - head/sys/dev/ena

2020-05-26 Thread Marcin Wojtas
Author: mw Date: Tue May 26 15:35:22 2020 New Revision: 361514 URL: https://svnweb.freebsd.org/changeset/base/361514 Log: Provide ENA driver version in a sysctl node Usage example: $ sysctl hw.ena.driver_version Submitted by: Maciej Bielski Obtained from: Semihalf Sponsored by:

svn commit: r361513 - head/sys/dev/ena

2020-05-26 Thread Marcin Wojtas
Author: mw Date: Tue May 26 15:33:43 2020 New Revision: 361513 URL: https://svnweb.freebsd.org/changeset/base/361513 Log: Remove unused argument from static function in ena.c The function ena_enable_msix_and_set_admin_interrupts takes two arguments while the second is not used and so can

svn commit: r361512 - head/sys/dev/ena

2020-05-26 Thread Marcin Wojtas
Author: mw Date: Tue May 26 15:31:28 2020 New Revision: 361512 URL: https://svnweb.freebsd.org/changeset/base/361512 Log: Enable Tx drops reporting in the ENA driver Tx drops statistics are fetched from HW every ena_keepalive_wd() call and are observable using one of the commands: *

svn commit: r361511 - in head/sys: contrib/ena-com contrib/ena-com/ena_defs dev/ena

2020-05-26 Thread Marcin Wojtas
Author: mw Date: Tue May 26 15:29:19 2020 New Revision: 361511 URL: https://svnweb.freebsd.org/changeset/base/361511 Log: Adjust ENA driver to the new HAL * Removed adaptive interrupt moderation (not suported on FreeBSD). * Use ena_com_free_q_entries instead of ena_com_free_desc. *

svn commit: r361507 - head/sys/netipsec

2020-05-26 Thread Marcin Wojtas
Author: mw Date: Tue May 26 14:16:26 2020 New Revision: 361507 URL: https://svnweb.freebsd.org/changeset/base/361507 Log: Fix AES-CTR compatibility issue in ipsec r361390 decreased blocksize of AES-CTR from 16 to 1. Because of that ESP payload is no longer aligned to 16 bytes before

svn commit: r361506 - head/sys/arm/mv

2020-05-26 Thread Marcin Wojtas
Author: mw Date: Tue May 26 14:10:53 2020 New Revision: 361506 URL: https://svnweb.freebsd.org/changeset/base/361506 Log: Restore XHCI operation on Armada 38x r347343 split generic xhci driver into three files. Include generic_xhci_fdt.c when building kernel for Armada SoCs. This

Re: svn commit: r361460 - in head/sys: arm64/conf arm64/qoriq conf

2020-05-25 Thread Marcin Wojtas
Hi Justin, pon., 25 maj 2020 o 18:18 Justin Hibbits napisał(a): > > Hi Marcin, > > On Mon, 25 May 2020 14:55:37 +0000 (UTC) > Marcin Wojtas wrote: > > > Author: mw > > Date: Mon May 25 14:55:37 2020 > > New Revision: 361460 > > URL: https://svnweb.fre

svn commit: r361464 - in head/sys: conf dev/ahci

2020-05-25 Thread Marcin Wojtas
Author: mw Date: Mon May 25 16:00:08 2020 New Revision: 361464 URL: https://svnweb.freebsd.org/changeset/base/361464 Log: Introduce a driver for NXP LS1046A SoC AHCI. Implement support for AHCI controller found in NXP QorIQ Layerscape SoCs. Submitted by: Artur Rojek Reviewed by:

svn commit: r361463 - in head/sys: conf dev/iicbus/rtc modules/i2c modules/i2c/rx8803

2020-05-25 Thread Marcin Wojtas
Author: mw Date: Mon May 25 15:40:02 2020 New Revision: 361463 URL: https://svnweb.freebsd.org/changeset/base/361463 Log: Introduce support for Epson RX-8803 RTC. This patch introduces support for Epson RX-8803 RTC controller accessible over I2C bus. It has a resolution of 1 sec.

svn commit: r361462 - in head/sys: conf dev/iicbus/gpio modules/i2c modules/i2c/tca6416

2020-05-25 Thread Marcin Wojtas
Author: mw Date: Mon May 25 15:31:43 2020 New Revision: 361462 URL: https://svnweb.freebsd.org/changeset/base/361462 Log: Add TCA6416 GPIO expander support. Add basic TCA6416 GPIO expander support over I2C bus. The driver handles enabling and disabling pins, setting pin mode to IN and

svn commit: r361461 - in head/sys: arm/freescale/vybrid arm64/conf conf

2020-05-25 Thread Marcin Wojtas
Author: mw Date: Mon May 25 15:21:38 2020 New Revision: 361461 URL: https://svnweb.freebsd.org/changeset/base/361461 Log: Introduce VF610 I2C controller support. NXP LS1046A contains I2C controller compatible with Vybrid VF610. Existing Vybrid MVF600 driver can be used to support it. For

svn commit: r361460 - in head/sys: arm64/conf arm64/qoriq conf

2020-05-25 Thread Marcin Wojtas
Author: mw Date: Mon May 25 14:55:37 2020 New Revision: 361460 URL: https://svnweb.freebsd.org/changeset/base/361460 Log: Add GPIO support for QorIQ boards. This patch adds a GPIO controller support targeted for NXP LS1046A SoC. The driver implements the following features: * setting

svn commit: r361459 - in head/sys: arm64/conf arm64/qoriq/clk conf

2020-05-25 Thread Marcin Wojtas
Author: mw Date: Mon May 25 14:45:18 2020 New Revision: 361459 URL: https://svnweb.freebsd.org/changeset/base/361459 Log: Add LS1046A clockgen driver. Driver provides probe and attach functions for LS1046A clockgen and passes configuration information to QorIQ clockgen class. It may be

svn commit: r361458 - in head/sys/arm64/qoriq: . clk

2020-05-25 Thread Marcin Wojtas
Author: mw Date: Mon May 25 14:31:32 2020 New Revision: 361458 URL: https://svnweb.freebsd.org/changeset/base/361458 Log: Add QorIQ platform clockgen driver. This patch adds classes and functions that can be used with various NXP QorIQ Layerscape SoCs. As for the clock topology -

svn commit: r360777 - head/sys/dev/ena

2020-05-07 Thread Marcin Wojtas
Author: mw Date: Thu May 7 11:28:39 2020 New Revision: 360777 URL: https://svnweb.freebsd.org/changeset/base/360777 Log: Optimize ENA Rx refill for low memory conditions Sometimes, especially when there is not much memory in the system left, allocating mbuf jumbo clusters (like 9KB or

svn commit: r359667 - in head/sys: dev/hwpmc sys

2020-04-06 Thread Marcin Wojtas
Author: mw Date: Mon Apr 6 19:45:26 2020 New Revision: 359667 URL: https://svnweb.freebsd.org/changeset/base/359667 Log: Add hwpmc support for Intel Atom Goldmont microarchitecture Recognize new micro-architecture in hwpmc_intel driver. Based on Intel document 325462-071US. Tested with

svn commit: r358289 - head/sys/dev/ena

2020-02-24 Thread Marcin Wojtas
Author: mw Date: Mon Feb 24 15:35:31 2020 New Revision: 358289 URL: https://svnweb.freebsd.org/changeset/base/358289 Log: Rework and simplify Tx DMA mapping in ENA Driver working in LLQ mode in some cases can send only few last segments of the mbuf using DMA engine, and the rest of them

svn commit: r357676 - head/sys/dev/neta

2020-02-08 Thread Marcin Wojtas
Author: mw Date: Sat Feb 8 13:33:47 2020 New Revision: 357676 URL: https://svnweb.freebsd.org/changeset/base/357676 Log: Implement jumbo frame support in mvneta driver This patch introduces processing of the frames up to 9kB by the mvneta driver. Some versions of this NIC limit TX

svn commit: r357675 - head/sys/dev/neta

2020-02-08 Thread Marcin Wojtas
Author: mw Date: Sat Feb 8 13:25:39 2020 New Revision: 357675 URL: https://svnweb.freebsd.org/changeset/base/357675 Log: Destroy RX DMA tag on detach in mvneta driver This patch fixes deinitialization sequence of the mvneta driver by adding missing bus_dma_tag_destroy call.

Re: svn commit: r354218 - head/sys/dev/ena

2019-10-31 Thread Marcin Wojtas
Hi John, Sure, will be happy to test. Please let me know and cc m...@semihalf.com. Best regards, Marcin pt., 1 lis 2019 o 01:04 John Baldwin napisał(a): > On 10/31/19 8:38 AM, Marcin Wojtas wrote: > > Author: mw > > Date: Thu Oct 31 15:38:17 2019 > > New Revision:

svn commit: r354225 - head/sys/dev/ena

2019-10-31 Thread Marcin Wojtas
Author: mw Date: Thu Oct 31 16:03:43 2019 New Revision: 354225 URL: https://svnweb.freebsd.org/changeset/base/354225 Log: Update ENA version to v2.1.0 In this release the netmap support was introduced. Moreover, it is also now possible to use the LLQ mode of the driver on the arm64

svn commit: r354224 - head/sys/dev/ena

2019-10-31 Thread Marcin Wojtas
Author: mw Date: Thu Oct 31 16:02:42 2019 New Revision: 354224 URL: https://svnweb.freebsd.org/changeset/base/354224 Log: Add support for ENA NETMAP partial initialization In NETMAP mode not all queues need to be allocated to NETMAP. Some of them could be left to the kernel.

svn commit: r354222 - head/sys/dev/ena

2019-10-31 Thread Marcin Wojtas
Author: mw Date: Thu Oct 31 15:57:44 2019 New Revision: 354222 URL: https://svnweb.freebsd.org/changeset/base/354222 Log: Add support for ENA NETMAP Rx Most of code used for Rx ring initialization could be reused in NETMAP. Reset of NETMAP ring and new alloc method was added. Driver

svn commit: r354221 - in head/sys: contrib/ena-com dev/ena modules/ena

2019-10-31 Thread Marcin Wojtas
Author: mw Date: Thu Oct 31 15:51:18 2019 New Revision: 354221 URL: https://svnweb.freebsd.org/changeset/base/354221 Log: Introduce NETMAP support in ENA Mock implementation of NETMAP routines is located in ena_netmap.c/.h files. All code is protected under the DEV_NETMAP macro. Makefile

svn commit: r354220 - in head/sys: dev/ena modules/ena

2019-10-31 Thread Marcin Wojtas
Author: mw Date: Thu Oct 31 15:44:26 2019 New Revision: 354220 URL: https://svnweb.freebsd.org/changeset/base/354220 Log: Split Rx/Tx from initialization code in ENA driver Move Rx/Tx routines to separate file. Some functions: * ena_restore_device, * ena_destroy_device, * ena_up,

svn commit: r354219 - head/sys/dev/ena

2019-10-31 Thread Marcin Wojtas
Author: mw Date: Thu Oct 31 15:39:54 2019 New Revision: 354219 URL: https://svnweb.freebsd.org/changeset/base/354219 Log: Fix ENA keep-alive timeout due to prolonged reset When the ENA_FLAG_DEVICE_RUNNING flag is disabled, the AENQ handlers aren't executed. To fix that, the watchdog

svn commit: r354218 - head/sys/dev/ena

2019-10-31 Thread Marcin Wojtas
Author: mw Date: Thu Oct 31 15:38:17 2019 New Revision: 354218 URL: https://svnweb.freebsd.org/changeset/base/354218 Log: Add WC support for arm64 in the ENA driver As the pmamp_change_attr() is public on arm64 since r351131, it can be used on the arm64 to map memory range as with the

svn commit: r354217 - head/sys/arm64/arm64

2019-10-31 Thread Marcin Wojtas
Author: mw Date: Thu Oct 31 15:16:10 2019 New Revision: 354217 URL: https://svnweb.freebsd.org/changeset/base/354217 Log: Fix pmap_change_attr() on arm64 to allow KV addresses Altough in the comment above the pmap_change_attr() it was mentioned that VA could be in KV or DMAP memory

svn commit: r346259 - head/sys/dev/tpm

2019-09-03 Thread Marcin Wojtas
Author: mw Date: Tue Apr 16 02:28:35 2019 New Revision: 346259 URL: https://svnweb.freebsd.org/changeset/base/346259 Log: tpm: Prevent session hijack Check caller thread id before allowing to read the buffer to make sure that it can only be accessed by the thread that did the

svn commit: r346261 - head/sys/dev/tpm

2019-09-03 Thread Marcin Wojtas
Author: mw Date: Tue Apr 16 02:46:21 2019 New Revision: 346261 URL: https://svnweb.freebsd.org/changeset/base/346261 Log: Improve tpm20 style No functional changes to the code are applied. Submitted by: Kornel Duleba Obtained from: Semihalf Sponsored by: Stormshield Modified:

svn commit: r345842 - head/sys/dev/tpm

2019-09-03 Thread Marcin Wojtas
Author: mw Date: Wed Apr 3 08:22:58 2019 New Revision: 345842 URL: https://svnweb.freebsd.org/changeset/base/345842 Log: Add a cv_wait to the TPM2.0 harvesting function Harvesting has to compete for the TPM chip with userspace. Before this change the callout could hijack an unread

svn commit: r345830 - in head: lib/libsecureboot lib/libsecureboot/h share/mk stand stand/common sys/conf sys/security/mac_veriexec_parser tools/build/options

2019-09-03 Thread Marcin Wojtas
Author: mw Date: Wed Apr 3 03:57:37 2019 New Revision: 345830 URL: https://svnweb.freebsd.org/changeset/base/345830 Log: Create kernel module to parse Veriexec manifest based on envs The current approach of injecting manifest into mac_veriexec is to verify the integrity of it in

svn commit: r350761 - in head/stand: efi/loader i386/loader

2019-08-08 Thread Marcin Wojtas
Author: mw Date: Thu Aug 8 17:03:30 2019 New Revision: 350761 URL: https://svnweb.freebsd.org/changeset/base/350761 Log: Verify files loaded in chain command. The chain command can be used to chain load another binary. If veriexec is enabled we should verify it first. Note that on EFI

svn commit: r350759 - head/sys/security/mac_veriexec_parser

2019-08-08 Thread Marcin Wojtas
Author: mw Date: Thu Aug 8 16:51:49 2019 New Revision: 350759 URL: https://svnweb.freebsd.org/changeset/base/350759 Log: Fix mac_veriexec_parser build after r347938 In r347938 the definition of mac_veriexec_metadata_add_file so adjust the argument list accordingly. Submitted by:

svn commit: r348416 - in head/sys: dev/ena modules/ena

2019-05-30 Thread Marcin Wojtas
Author: mw Date: Thu May 30 13:52:32 2019 New Revision: 348416 URL: https://svnweb.freebsd.org/changeset/base/348416 Log: Update ENA version to v2.0.0 ENAv2 introduces many new features, bug fixes and improvements. Main new features are LLQ (Low Latency Queues) and independent queues

svn commit: r348414 - head/share/man/man4

2019-05-30 Thread Marcin Wojtas
Author: mw Date: Thu May 30 13:50:45 2019 New Revision: 348414 URL: https://svnweb.freebsd.org/changeset/base/348414 Log: Fix ENA manual issues The issues were pointed in community review: https://reviews.freebsd.org/D10427#inline-67587 Also, fix other issues found by the igor tool.

svn commit: r348413 - head/sys/dev/ena

2019-05-30 Thread Marcin Wojtas
Author: mw Date: Thu May 30 13:45:41 2019 New Revision: 348413 URL: https://svnweb.freebsd.org/changeset/base/348413 Log: Improve ENA reset handling For easier debugging, the reset is being triggered and the reset reason is being set only in case it is done for the first time. Such

svn commit: r348412 - head/sys/dev/ena

2019-05-30 Thread Marcin Wojtas
Author: mw Date: Thu May 30 13:42:52 2019 New Revision: 348412 URL: https://svnweb.freebsd.org/changeset/base/348412 Log: Fix NULL pointer dereference in ena_up() If the call to ena_up() in ena_restore_device() fails, next usage of `ifconfig up` will cause NULL pointer dereference.

svn commit: r348411 - head/sys/dev/ena

2019-05-30 Thread Marcin Wojtas
Author: mw Date: Thu May 30 13:41:39 2019 New Revision: 348411 URL: https://svnweb.freebsd.org/changeset/base/348411 Log: Unify new line characters in the ENA driver Some messages were missing new line character and traces were not having unified behavior. To fix that, each trace and

svn commit: r348410 - head/sys/dev/ena

2019-05-30 Thread Marcin Wojtas
Author: mw Date: Thu May 30 13:40:51 2019 New Revision: 348410 URL: https://svnweb.freebsd.org/changeset/base/348410 Log: Fix Tx offloads for fragmented pkt headers in ENA If the headers of the packets are split into multiple segments of the mbuf chain, the previous version of

svn commit: r348409 - head/sys/dev/ena

2019-05-30 Thread Marcin Wojtas
Author: mw Date: Thu May 30 13:39:25 2019 New Revision: 348409 URL: https://svnweb.freebsd.org/changeset/base/348409 Log: Split ENA reset routine into restore and destroy stages For alignment with Linux driver and better handling ena_detach(), the reset is now calling

svn commit: r348408 - head/sys/dev/ena

2019-05-30 Thread Marcin Wojtas
Author: mw Date: Thu May 30 13:37:15 2019 New Revision: 348408 URL: https://svnweb.freebsd.org/changeset/base/348408 Log: Use bitfield for storing global ENA device states As the ENA can have multiple states turned on/off, it is more convenient to store them in single bitfield instead of

svn commit: r348407 - head/sys/dev/ena

2019-05-30 Thread Marcin Wojtas
Author: mw Date: Thu May 30 13:35:43 2019 New Revision: 348407 URL: https://svnweb.freebsd.org/changeset/base/348407 Log: Fix error handling when ENA reset fails Before the patch, error handling was not releasing all resources and was not issuing device reset if the reset task failed.

svn commit: r348406 - head/sys/dev/ena

2019-05-30 Thread Marcin Wojtas
Author: mw Date: Thu May 30 13:35:02 2019 New Revision: 348406 URL: https://svnweb.freebsd.org/changeset/base/348406 Log: Fill bdf field of the host_info structure in ENA The host info bdf field is the abbreviation for the bus, device, function of the PCI on which the device is being

svn commit: r348405 - head/sys/dev/ena

2019-05-30 Thread Marcin Wojtas
Author: mw Date: Thu May 30 13:33:31 2019 New Revision: 348405 URL: https://svnweb.freebsd.org/changeset/base/348405 Log: Add additional doorbells on ENA Tx path The new ENA HAL is introducing API, which can determine on Tx path if the doorbell is needed. That way, it can tell the

svn commit: r348404 - head/sys/dev/ena

2019-05-30 Thread Marcin Wojtas
Author: mw Date: Thu May 30 13:31:35 2019 New Revision: 348404 URL: https://svnweb.freebsd.org/changeset/base/348404 Log: Limit maximum size of Rx refill threshold in ENA The Rx ring size can be as high as 8k. Because of that we want to limit the cleanup threshold by maximum value of

svn commit: r348403 - head/sys/dev/ena

2019-05-30 Thread Marcin Wojtas
Author: mw Date: Thu May 30 13:30:52 2019 New Revision: 348403 URL: https://svnweb.freebsd.org/changeset/base/348403 Log: Add support for the LLQv2 and WC in ENA LLQ (Low Latency Queue) is the feature, that allows pushing header directly to the device through PCI before even DMA is

svn commit: r348402 - head/sys/dev/ena

2019-05-30 Thread Marcin Wojtas
Author: mw Date: Thu May 30 13:29:24 2019 New Revision: 348402 URL: https://svnweb.freebsd.org/changeset/base/348402 Log: Lock optimization in ENA Handle IO interrupts using filter routine. That way, the main cleanup task could be moved to the separate thread using taskqueue. The

svn commit: r348401 - head/sys/dev/ena

2019-05-30 Thread Marcin Wojtas
Author: mw Date: Thu May 30 13:28:03 2019 New Revision: 348401 URL: https://svnweb.freebsd.org/changeset/base/348401 Log: Add tuneable drbr ring size and hw queues depth for ENA The driver now supports per adapter tuning of buffer ring size and HW Rx ring size. It can be achieved

svn commit: r348400 - head/sys/dev/ena

2019-05-30 Thread Marcin Wojtas
Author: mw Date: Thu May 30 13:26:18 2019 New Revision: 348400 URL: https://svnweb.freebsd.org/changeset/base/348400 Log: Fix error in validate_tx_req_id() in ENA If the requested ID was out of range, the tx_info structure was NULL and the function was trying to access the field of the

svn commit: r348399 - head/sys/dev/ena

2019-05-30 Thread Marcin Wojtas
Author: mw Date: Thu May 30 13:24:47 2019 New Revision: 348399 URL: https://svnweb.freebsd.org/changeset/base/348399 Log: Change attach order to prevent crash upon failure in ENA The if_detach was causing crash if the MSI-x configuration in the attach failed. To prevent this issue, the

svn commit: r348398 - head/sys/dev/ena

2019-05-30 Thread Marcin Wojtas
Author: mw Date: Thu May 30 13:22:53 2019 New Revision: 348398 URL: https://svnweb.freebsd.org/changeset/base/348398 Log: Change order of ifp release on ENA detach In rare case, when the ifconfig is called just before kldunload, it is possible, that ena_up routine will be called after

svn commit: r348397 - head/sys/dev/ena

2019-05-30 Thread Marcin Wojtas
Author: mw Date: Thu May 30 13:22:12 2019 New Revision: 348397 URL: https://svnweb.freebsd.org/changeset/base/348397 Log: Check for number of MSI-x upon partial allocation in ENA The ENA driver needs at least 2 MSI-x - one for admin queue, and one for IO queues pair. If there were not

svn commit: r348396 - head/sys/dev/ena

2019-05-30 Thread Marcin Wojtas
Author: mw Date: Thu May 30 13:20:42 2019 New Revision: 348396 URL: https://svnweb.freebsd.org/changeset/base/348396 Log: Set error value when allocation of IO irq fails in ENA bus_alloc_resource_any() is not returning error value in case of an error. If the function call fails, the

svn commit: r348394 - head/sys/dev/ena

2019-05-30 Thread Marcin Wojtas
Author: mw Date: Thu May 30 13:18:23 2019 New Revision: 348394 URL: https://svnweb.freebsd.org/changeset/base/348394 Log: Fix DMA synchronization in the ENA driver Tx and Rx paths The DMA in FreeBSD requires explicit synchronization. ENA driver was only doing PREREAD and PREWRITE

svn commit: r348395 - head/sys/dev/ena

2019-05-30 Thread Marcin Wojtas
Author: mw Date: Thu May 30 13:19:32 2019 New Revision: 348395 URL: https://svnweb.freebsd.org/changeset/base/348395 Log: Set vaddr and paddr as NULL when DMA alloc fails in ENA To prevent errors from assigning values from the DMA structure in case of an error, zero the vaddr and paddr

svn commit: r348393 - head/sys/dev/ena

2019-05-30 Thread Marcin Wojtas
Author: mw Date: Thu May 30 13:16:56 2019 New Revision: 348393 URL: https://svnweb.freebsd.org/changeset/base/348393 Log: Check for missing MSI-x and Tx completions in ENA If the first MSI-x won't be executed, then the timer service will detect that and trigger device reset. The

svn commit: r348392 - head/sys/dev/ena

2019-05-30 Thread Marcin Wojtas
Author: mw Date: Thu May 30 13:15:38 2019 New Revision: 348392 URL: https://svnweb.freebsd.org/changeset/base/348392 Log: Fill number of CPUs field on ENA host_info structure The new ena_com allows the number of CPUs to be passed to the device in the host info structure as a hint.

svn commit: r348391 - head/sys/dev/ena

2019-05-30 Thread Marcin Wojtas
Author: mw Date: Thu May 30 13:14:58 2019 New Revision: 348391 URL: https://svnweb.freebsd.org/changeset/base/348391 Log: Print ENA Tx error conditionally Information about Tx error should be only displayed, if packet preparation failed due to error other than out of memory.

svn commit: r348390 - head/sys/dev/ena

2019-05-30 Thread Marcin Wojtas
Author: mw Date: Thu May 30 13:13:15 2019 New Revision: 348390 URL: https://svnweb.freebsd.org/changeset/base/348390 Log: Trigger reset in ENA if there are too many Rx descriptors Whenever the driver will receive too many descriptors from the device, it should trigger the device reset,

svn commit: r348389 - head/sys/dev/ena

2019-05-30 Thread Marcin Wojtas
Author: mw Date: Thu May 30 13:12:14 2019 New Revision: 348389 URL: https://svnweb.freebsd.org/changeset/base/348389 Log: Remove RSS support in ENA Receive Side Scaling is optional feature that could be enabled in kernel configuration by defining flag RSS. Kernel uses hash to store

svn commit: r348388 - head/sys/dev/ena

2019-05-30 Thread Marcin Wojtas
Author: mw Date: Thu May 30 13:09:53 2019 New Revision: 348388 URL: https://svnweb.freebsd.org/changeset/base/348388 Log: Add notification AENQ handler for ENA Notification AENQ handler is responsible for handling requests from ENA device. Missing Tx threshold, Tx timeout and keep alive

  1   2   3   >