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 erro

svn commit: r368013 - in stable/11: share/man/man4 sys/contrib/ena-com sys/contrib/ena-com/ena_defs sys/dev/ena sys/modules/ena

2020-11-25 Thread Marcin Wojtas
Author: mw Date: Wed Nov 25 09:37:17 2020 New Revision: 368013 URL: https://svnweb.freebsd.org/changeset/base/368013 Log: MFC: Merge ENA v2.3.0 driver r367805 Update ENA driver version to v2.3.0 r367803 Rename descriptions of the supported ENA devices r367802 Add ENI metrics for the ENA

svn commit: r368012 - in stable/12: share/man/man4 sys/contrib/ena-com sys/contrib/ena-com/ena_defs sys/dev/ena sys/modules/ena

2020-11-24 Thread Marcin Wojtas
Author: mw Date: Wed Nov 25 03:24:43 2020 New Revision: 368012 URL: https://svnweb.freebsd.org/changeset/base/368012 Log: MFC: Merge ENA v2.3.0 driver r367805 Update ENA driver version to v2.3.0 r367803 Rename descriptions of the supported ENA devices r367802 Add ENI metrics for the ENA

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 Obtaine

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 w

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 sho

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 mu

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 perf

svn commit: r367798 - vendor-sys/ena-com/2.3.0

2020-11-18 Thread Marcin Wojtas
Author: mw Date: Wed Nov 18 14:55:49 2020 New Revision: 367798 URL: https://svnweb.freebsd.org/changeset/base/367798 Log: Upgrade ENA HAL to v2.3.0 Sponsored by: Amazon, Inc. Added: vendor-sys/ena-com/2.3.0/ - copied from r367796, vendor-sys/ena-com/dist/ ___

svn commit: r367796 - in vendor-sys/ena-com/dist: . ena_defs

2020-11-18 Thread Marcin Wojtas
Author: mw Date: Wed Nov 18 14:54:55 2020 New Revision: 367796 URL: https://svnweb.freebsd.org/changeset/base/367796 Log: Upgrade ENA HAL to the latest version (26/10/20) Add support for the ENI metrics, bug fix for destroying wait event and also other minor bug fixes, improvements, etc.

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 th

svn commit: r367794 - vendor-sys/ena-com/2.2.1

2020-11-18 Thread Marcin Wojtas
Author: mw Date: Wed Nov 18 14:32:48 2020 New Revision: 367794 URL: https://svnweb.freebsd.org/changeset/base/367794 Log: Upgrade ena-com to v2.2.1 An upgrade contains the cdesc allocation alignment fix. Obtained from: Amazon, Inc Added: vendor-sys/ena-com/2.2.1/ - copied from

svn commit: r367793 - vendor-sys/ena-com/dist

2020-11-18 Thread Marcin Wojtas
Author: mw Date: Wed Nov 18 14:30:59 2020 New Revision: 367793 URL: https://svnweb.freebsd.org/changeset/base/367793 Log: ena-com: Fix ena-com to allocate cdesc aligned to 4k The latest generation hardware requires IO CQ (completion queue) descriptors memory to be aligned to a 4K. It need

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 SDMA

svn commit: r366942 - stable/12/sys/dev/uart

2020-10-22 Thread Marcin Wojtas
Author: mw Date: Thu Oct 22 17:31:41 2020 New Revision: 366942 URL: https://svnweb.freebsd.org/changeset/base/366942 Log: MFC r362574 Fix AccessWidth and BitWidth parsing in SPCR table The ACPI Specification defines a Generic Address Structure (GAS), which is used to describe UART co

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 SADB_EX

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 authen

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 t

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 SHA256)

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 combi

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

svn commit: r365381 - in stable/12/sys: contrib/ena-com contrib/ena-com/ena_defs dev/ena

2020-09-06 Thread Marcin Wojtas
Author: mw Date: Sun Sep 6 14:41:35 2020 New Revision: 365381 URL: https://svnweb.freebsd.org/changeset/base/365381 Log: MFC: Merge ENA v2.2.0 driver r361530 Update ENA driver version to v2.2.0 r361529 Refactor ena_tx_map_mbuf() function r361528 Fix double-free bug within ena_detach()

svn commit: r365380 - in stable/12/sys: conf contrib/ena-com dev/ena modules/ena

2020-09-06 Thread Marcin Wojtas
Author: mw Date: Sun Sep 6 14:23:31 2020 New Revision: 365380 URL: https://svnweb.freebsd.org/changeset/base/365380 Log: MFC: ENA netmap support and bug fixes r363638 Fix ENA build when integrated into kernel r354242 Make valdiate_rx_req_id static inline because it uses other static r3

svn commit: r365379 - in stable/12: share/man/man4 sys/contrib/ena-com sys/contrib/ena-com/ena_defs sys/dev/ena sys/modules/ena

2020-09-06 Thread Marcin Wojtas
Author: mw Date: Sun Sep 6 14:13:51 2020 New Revision: 365379 URL: https://svnweb.freebsd.org/changeset/base/365379 Log: MFC: Merge ENA v2.0.0 driver r348416 Update ENA version to v2.0.0 r348414 Fix ENA manual issues r348413 Improve ENA reset handling r348412 Fix NULL pointer derefer

svn commit: r365326 - stable/12/sys/sys

2020-09-04 Thread Marcin Wojtas
Author: mw Date: Fri Sep 4 11:22:18 2020 New Revision: 365326 URL: https://svnweb.freebsd.org/changeset/base/365326 Log: MFC: r346593 Add barrier in buf ring peek function to prevent race in ARM and ARM64. Obtained from: Semihalf Sponsored by: Amazon, Inc. Modified: stable/12/sys

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
> #include "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 w

svn commit: r364458 - stable/11/sys/conf

2020-08-21 Thread Marcin Wojtas
Author: mw Date: Fri Aug 21 16:17:18 2020 New Revision: 364458 URL: https://svnweb.freebsd.org/changeset/base/364458 Log: MFC: r363638 Fix ENA build when integrated into kernel Obtained from: Semihalf Sponsored by: Amazon, Inc. Modified: stable/11/sys/conf/files Modified: stable/

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, mvneta

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 sho

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 register

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: r361539 - in releng/11.4: share/man/man4 sys/contrib/ena-com sys/contrib/ena-com/ena_defs sys/dev/ena sys/modules/ena

2020-05-26 Thread Marcin Wojtas
Author: mw Date: Tue May 26 22:41:12 2020 New Revision: 361539 URL: https://svnweb.freebsd.org/changeset/base/361539 Log: MF11: r361467-361468,361534 This patch upgrades the ENA driver to version 2.2.0. Approved by: re (gjb) Sponsored by: Amazon, Inc. Added: releng/11.4/sys/dev/en

svn commit: r361534 - in stable/11/sys: contrib/ena-com contrib/ena-com/ena_defs dev/ena

2020-05-26 Thread Marcin Wojtas
Author: mw Date: Tue May 26 17:54:11 2020 New Revision: 361534 URL: https://svnweb.freebsd.org/changeset/base/361534 Log: MFC: Merge ENA v2.2.0 driver r361530 Update ENA driver version to v2.2.0 r361529 Refactor ena_tx_map_mbuf() function r361528 Fix double-free bug within ena_detach()

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 ens

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(): /* Fi

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. Submitte

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 pur

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

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 instea

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

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 ma

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 used

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, whic

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 triggerin

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

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. * Don'

svn commit: r361510 - vendor-sys/ena-com/2.2.0

2020-05-26 Thread Marcin Wojtas
Author: mw Date: Tue May 26 15:12:09 2020 New Revision: 361510 URL: https://svnweb.freebsd.org/changeset/base/361510 Log: Create 2.0.0 tag in ena-com Tag is added after updating the ENA HAL to the newest in r361508. Obtained from: Semihalf Sponsored by: Amazon, Inc. Added: vendo

svn commit: r361508 - in vendor-sys/ena-com/dist: . ena_defs

2020-05-26 Thread Marcin Wojtas
Author: mw Date: Tue May 26 15:04:49 2020 New Revision: 361508 URL: https://svnweb.freebsd.org/changeset/base/361508 Log: Upgrade ENA HAL to the version from 20.04.2020 This version of the HAL supports newest generation ENA HW, random RSS generation upon device initialization and also inc

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 bei

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 brings

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: r361468 - in stable/11/sys: contrib/ena-com dev/ena modules/ena

2020-05-25 Thread Marcin Wojtas
Author: mw Date: Mon May 25 17:47:31 2020 New Revision: 361468 URL: https://svnweb.freebsd.org/changeset/base/361468 Log: MFC: ENA netmap support and bug fixes r360777 Optimize ENA Rx refill for low memory conditions r358289 Rework and simplify Tx DMA mapping in ENA r354242 Make valdiat

svn commit: r361467 - in stable/11: share/man/man4 sys/contrib/ena-com sys/contrib/ena-com/ena_defs sys/dev/ena sys/modules/ena

2020-05-25 Thread Marcin Wojtas
Author: mw Date: Mon May 25 17:41:20 2020 New Revision: 361467 URL: https://svnweb.freebsd.org/changeset/base/361467 Log: MFC: Merge ENA v2.0.0 driver r348416 Update ENA version to v2.0.0 r348414 Fix ENA manual issues r348413 Improve ENA reset handling r348412 Fix NULL pointer derefer

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

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. Suppor

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 OUT

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 d

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 us

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

Re: svn commit: r360985 - stable/12/sys/dev/ena

2020-05-12 Thread Marcin Wojtas
wt., 12 maj 2020 o 20:44 Marcin Wojtas napisał(a): > > Author: mw > Date: Tue May 12 18:44:41 2020 > New Revision: 360985 > URL: https://svnweb.freebsd.org/changeset/base/360985 > > Log: > MFC r360777: Optimize ENA Rx refill for low memory conditions > > Somet

svn commit: r360985 - stable/12/sys/dev/ena

2020-05-12 Thread Marcin Wojtas
Author: mw Date: Tue May 12 18:44:41 2020 New Revision: 360985 URL: https://svnweb.freebsd.org/changeset/base/360985 Log: MFC r360777: Optimize ENA Rx refill for low memory conditions Sometimes, especially when there is not much memory in the system left, allocating mbuf jumbo clusters (l

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 16

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 t

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 a

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 chec

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. Submitte

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 A

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. Configuration

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

2019-10-31 Thread Marcin Wojtas
Author: mw Date: Thu Oct 31 15:59:29 2019 New Revision: 354223 URL: https://svnweb.freebsd.org/changeset/base/354223 Log: Add support for ENA NETMAP Tx Two new tables are added to ena_tx_buffer structure: * netmap_map_seg stores DMA mapping structures, * netmap_buf_idx stores buff index

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 times

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 wri

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 space.

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 associated

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

svn commit: r345873 - stable/11/sys/arm64/arm64

2019-09-03 Thread Marcin Wojtas
Author: mw Date: Thu Apr 4 12:02:41 2019 New Revision: 345873 URL: https://svnweb.freebsd.org/changeset/base/345873 Log: MFC r345373: Add bus_release_resource() method to nexus on arm64 Submitted by: Michal Krawczyk Obtained from: Semihalf Sponsored by: Amazon, Inc. Modified: stabl

svn commit: r345874 - stable/12/sys/arm64/arm64

2019-09-03 Thread Marcin Wojtas
Author: mw Date: Thu Apr 4 12:02:48 2019 New Revision: 345874 URL: https://svnweb.freebsd.org/changeset/base/345874 Log: MFC r345373: Add bus_release_resource() method to nexus on arm64 Submitted by: Michal Krawczyk Obtained from: Semihalf Sponsored by: Amazon, Inc. Modified: stabl

svn commit: r345872 - stable/12/sys/dev/ena

2019-09-03 Thread Marcin Wojtas
Author: mw Date: Thu Apr 4 09:08:09 2019 New Revision: 345872 URL: https://svnweb.freebsd.org/changeset/base/345872 Log: MFC r345371: Prevent double activation of admin interrupt in ENA Submitted by: Michal Krawczyk Obtained from: Semihalf Sponsored by: Amazon, Inc. Modified: stabl

svn commit: r345871 - stable/11/sys/dev/ena

2019-09-03 Thread Marcin Wojtas
Author: mw Date: Thu Apr 4 09:06:56 2019 New Revision: 345871 URL: https://svnweb.freebsd.org/changeset/base/345871 Log: MFC r345371: Prevent double activation of admin interrupt in ENA Submitted by: Michal Krawczyk Obtained from: Semihalf Sponsored by: Amazon, Inc. Modified: stabl

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 buffer

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 userspac

svn commit: r345793 - stable/11/sys/kern

2019-09-03 Thread Marcin Wojtas
Author: mw Date: Tue Apr 2 08:43:19 2019 New Revision: 345793 URL: https://svnweb.freebsd.org/changeset/base/345793 Log: MFC r344676: Prevent detaching driver if the attach is not finished Submitted by: Rafal Kozik Obtained from: Semihalf Sponsored by: Amazon, Inc. Modified: stable

svn commit: r345792 - stable/12/sys/kern

2019-09-03 Thread Marcin Wojtas
Author: mw Date: Tue Apr 2 08:35:24 2019 New Revision: 345792 URL: https://svnweb.freebsd.org/changeset/base/345792 Log: MFC r344676: Prevent detaching driver if the attach is not finished Submitted by: Rafal Kozik Obtained from: Semihalf Sponsored by: Amazon, Inc. Modified: stable

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

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.

  1   2   3   >