<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/dev/ena, branch releng/12.4</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F12.4</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F12.4'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2022-07-26T19:33:06Z</updated>
<entry>
<title>ena: Update driver version to v2.6.1</title>
<updated>2022-07-26T19:33:06Z</updated>
<author>
<name>Michal Krawczyk</name>
<email>mk@semihalf.com</email>
</author>
<published>2022-07-04T07:12:57Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1a97579ae67a7df256a45f0647337c30475d376b'/>
<id>urn:sha1:1a97579ae67a7df256a45f0647337c30475d376b</id>
<content type='text'>
Minor version update which improves styling of a printouts, fixes
the KASAN and KMSAN kernel builds and LLQ reconfiguration after the
device reset.

Obtained from: Semihalf
MFC after: 2 weeks
Sponsored by: Amazon, Inc.

(cherry picked from commit 25b64933a48c47baef698a302fa2dc5c6e3013ea)
</content>
</entry>
<entry>
<title>ena: Fix LLQ descriptor reconfiguration</title>
<updated>2022-07-26T19:33:05Z</updated>
<author>
<name>Michal Krawczyk</name>
<email>mk@semihalf.com</email>
</author>
<published>2022-07-05T10:59:25Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=417cd20ee3c470ae76bfc9305eea5600588c28b9'/>
<id>urn:sha1:417cd20ee3c470ae76bfc9305eea5600588c28b9</id>
<content type='text'>
After the device reset, the LLQ configuration descriptor wasn't passed
to the hardware. On a 6-generation AWS instances (like C6gn), it is
required to pass the LLQ descriptor after the device reset, otherwise
the hardware will be missing the LLQ configuration resulting in
performance degradation.

This patch reconfigures the LLQ each time the ena_device_init() is
called. This means that the LLQ descriptor will be passed during the
initial configuration and after a reset.

The ena_map_llq_mem_bar() function call was moved before the
ena_device_init() call, to make sure that the mem bar is available.

Obtained from: Semihalf
MFC after: 2 weeks
Sponsored by: Amazon, Inc.

(cherry picked from commit 3324e304c14d121dc04338a38c7f3277cbfba58b)
</content>
</entry>
<entry>
<title>ena: Align req_id and qid print order</title>
<updated>2022-07-26T19:33:05Z</updated>
<author>
<name>Michal Krawczyk</name>
<email>mk@semihalf.com</email>
</author>
<published>2022-07-04T07:03:54Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e6e5305132d34234b37f14037f7e3e60df3dd95d'/>
<id>urn:sha1:e6e5305132d34234b37f14037f7e3e60df3dd95d</id>
<content type='text'>
In most places, the req_id is printed first, and the qid is printed as a
second. To align the driver, one printout was reworked and the print
order of those variables was changed.

Suggested by: rpokala
Obtained from: Semihalf
MFC after: 2 weeks
Sponsored by: Amazon, Inc.

(cherry picked from commit 38d036e91a8c29bf97b86d441a9d627c5cef2aea)
</content>
</entry>
<entry>
<title>ena: Make first_interrupt a uint8_t</title>
<updated>2022-07-26T19:33:05Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2022-06-30T18:49:46Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=5393b9247fb0262441c21534e2f9d41cff81fc4d'/>
<id>urn:sha1:5393b9247fb0262441c21534e2f9d41cff81fc4d</id>
<content type='text'>
We do not have atomic(9) routines for bools, and it is not guaranteed
that sizeof(bool) is 1.

This fixes the KASAN and KMSAN kernel builds, which fail because the
compiler refuses to silently cast a _Bool * to a uint8_t * when calling
the atomic(9) sanitizer interceptors.

Reviewed by:	Dawid Górecki &lt;dgr@semihalf.com&gt;
MFC after:	2 weeks
Fixes:	0ac122c388d9 ("ena: Use atomic_load/store functions for first_interrupt variable")
Differential Revision:	https://reviews.freebsd.org/D35683

(cherry picked from commit b72f1f4516896ad6da0ea74d146a56045de171f7)
</content>
</entry>
<entry>
<title>ena: Update driver version to v2.6.0</title>
<updated>2022-07-26T19:33:05Z</updated>
<author>
<name>Michal Krawczyk</name>
<email>mk@semihalf.com</email>
</author>
<published>2022-06-10T09:18:14Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7f12992281c7b8e2db59463982195b6ea6b4280d'/>
<id>urn:sha1:7f12992281c7b8e2db59463982195b6ea6b4280d</id>
<content type='text'>
Some of the changes in this release:
* Style fixes
* Fix ENI stats probing
* Add trace for the last Tx cleanup call
* Prevent LLQ initialization if member isn't exposed
* Improve logging

Obtained from: Semihalf
MFC after: 2 weeks
Sponsored by: Amazon, Inc.

(cherry picked from commit 79e1500276a993c8be857a6e32f0c05ec8f3cdc8)
</content>
</entry>
<entry>
<title>ena: Fix invalid KASSERT test in netmap code</title>
<updated>2022-07-26T19:33:04Z</updated>
<author>
<name>Michal Krawczyk</name>
<email>mk@semihalf.com</email>
</author>
<published>2022-06-10T09:18:13Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b672b9ef77d7e2a1f711ef16af3cf3d0b6f9ad26'/>
<id>urn:sha1:b672b9ef77d7e2a1f711ef16af3cf3d0b6f9ad26</id>
<content type='text'>
The KASSERT was originally added to ensure that the netmap Rx ring is
not NULL, however, it was checking for the opposite.

Obtained from: Semihalf
MFC after: 2 weeks
Sponsored by: Amazon, Inc.

(cherry picked from commit 79770fdad6c18d968cc122c4294820931cc542e0)
</content>
</entry>
<entry>
<title>ena: Align names of constants</title>
<updated>2022-07-26T19:33:04Z</updated>
<author>
<name>Dawid Gorecki</name>
<email>dgr@semihalf.com</email>
</author>
<published>2022-06-10T09:18:13Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4568630d8905315f000fa38a906d8d607ed50e45'/>
<id>urn:sha1:4568630d8905315f000fa38a906d8d607ed50e45</id>
<content type='text'>
Most of the constants in ena.h file were prefixed with ENA_*, while
others did not have this prefix. Align the constants by prefixing the
remaining constants with ENA.

Obtained from: Semihalf
MFC after: 2 weeks
Sponsored by: Amazon, Inc.

(cherry picked from commit 8f15f8a72b5474b81c5951d4039d203b2d80e2e3)
</content>
</entry>
<entry>
<title>ena: Remove write-only datapath variable</title>
<updated>2022-07-26T19:33:04Z</updated>
<author>
<name>Michal Krawczyk</name>
<email>mk@semihalf.com</email>
</author>
<published>2022-06-10T09:18:11Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=aabc314c3fff131510452cd0c95932ffe73d46bb'/>
<id>urn:sha1:aabc314c3fff131510452cd0c95932ffe73d46bb</id>
<content type='text'>
The ena_qid variable value is never used. It can be safely removed.
That also silences the compilation warning.

Obtained from: Semihalf
MFC after: 2 weeks
Sponsored by: Amazon, Inc.

(cherry picked from commit d5d5ea87236d8f839cad84296f23d285a696195c)
</content>
</entry>
<entry>
<title>ena: Fix styling issues</title>
<updated>2022-07-26T19:33:04Z</updated>
<author>
<name>Dawid Gorecki</name>
<email>dgr@semihalf.com</email>
</author>
<published>2022-06-10T09:18:11Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=26d0d8bd1b3e9ff8e57b90bd3ea8340c8c163a92'/>
<id>urn:sha1:26d0d8bd1b3e9ff8e57b90bd3ea8340c8c163a92</id>
<content type='text'>
Align code style with FreeBSD style(9) guidelines.

Obtained from: Semihalf
MFC after: 2 weeks
Sponsored by: Amazon, Inc.

(cherry picked from commit 82e558eacf222ac497bc11fa9f2c7778e97fbc7a)
</content>
</entry>
<entry>
<title>ena: Use device_set_desc in probe</title>
<updated>2022-07-26T19:33:04Z</updated>
<author>
<name>Dawid Gorecki</name>
<email>dgr@semihalf.com</email>
</author>
<published>2022-06-10T09:18:10Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c093a162a2acf70c7ac909a9d9193255fbf2a5f6'/>
<id>urn:sha1:c093a162a2acf70c7ac909a9d9193255fbf2a5f6</id>
<content type='text'>
During probe the driver created a temporary buffer to which the value of
DEVICE_DESC constant was printed. This buffer was then copied to the
device structure using device_set_desc_copy. Since the value of this
string is exactly the same for every device using the ENA driver, using
sprintf is unnecessary, and device_set_desc can be used instead.

Obtained from: Semihalf
MFC after: 2 weeks
Sponsored by: Amazon, Inc.

(cherry picked from commit 755e60ca046390bdcfc097b6a8f1a032d47a7b65)
</content>
</entry>
</feed>
