<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/dev/nvme, branch releng/14.3</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>nvme: Fix hotplug on one of the amazon platforms</title>
<updated>2025-03-30T23:44:57+00:00</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2025-02-25T16:29:14+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=25df691800f08756228d3ac52ac64d80e9fe998d'/>
<id>25df691800f08756228d3ac52ac64d80e9fe998d</id>
<content type='text'>
Amazon EC2 m7i cloud instances use PCI hotplug rather than ACPI
hotplug. The card is removed and detach is called to remove the drive
from the system. The hardware is no longer present at this point, but
the bridge doesn't translate the now-missing hardware reads to all ff's
leading us to conclude the hardware is there and we need to do a proper
shutdown of it. Fix this oversight by asking the bridge if the device is
still present as well. We need both tests since some systems one cane
remove the card w/o a hotplug event and we want to fail-safe in those
cases.

Convert gone to a bool while I'm here and update a comment about
shutting down the controller and why that's important.

Tested by: cperciva
Sponsored by: Netflix

(cherry picked from commit dc95228d98474aba940e3885164912b419c5579d)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Amazon EC2 m7i cloud instances use PCI hotplug rather than ACPI
hotplug. The card is removed and detach is called to remove the drive
from the system. The hardware is no longer present at this point, but
the bridge doesn't translate the now-missing hardware reads to all ff's
leading us to conclude the hardware is there and we need to do a proper
shutdown of it. Fix this oversight by asking the bridge if the device is
still present as well. We need both tests since some systems one cane
remove the card w/o a hotplug event and we want to fail-safe in those
cases.

Convert gone to a bool while I'm here and update a comment about
shutting down the controller and why that's important.

Tested by: cperciva
Sponsored by: Netflix

(cherry picked from commit dc95228d98474aba940e3885164912b419c5579d)
</pre>
</div>
</content>
</entry>
<entry>
<title>nvme: Eliminate intel_log_temp_stats_swapbytes</title>
<updated>2024-08-26T18:31:03+00:00</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2024-04-16T22:36:47+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=1dac1524786b6600a2218adcebf4ad8977aa0341'/>
<id>1dac1524786b6600a2218adcebf4ad8977aa0341</id>
<content type='text'>
We can't post a AER for this page, so there's no need to be able to swap
it to host byte order. It's not one of the standard defined pages that
can post via AER, and the vendor's public docs for this temperature page
don't suggest it's possible to get over or under event changes. Since
nvmecontrol no longer needsd the swap routine, remove it since it's
now unused.

Sponsored by:		Netflix
Reviewed by:		chuck
Differential Revision:	https://reviews.freebsd.org/D44659

(cherry picked from commit 97b77de2d951b4946fb3219a99c98f2dd4c0120f)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We can't post a AER for this page, so there's no need to be able to swap
it to host byte order. It's not one of the standard defined pages that
can post via AER, and the vendor's public docs for this temperature page
don't suggest it's possible to get over or under event changes. Since
nvmecontrol no longer needsd the swap routine, remove it since it's
now unused.

Sponsored by:		Netflix
Reviewed by:		chuck
Differential Revision:	https://reviews.freebsd.org/D44659

(cherry picked from commit 97b77de2d951b4946fb3219a99c98f2dd4c0120f)
</pre>
</div>
</content>
</entry>
<entry>
<title>nvme: Add NVMe over Fabrics fields to nvme_controller_data</title>
<updated>2024-08-26T18:31:00+00:00</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2024-03-23T00:24:52+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=46c77392cbfcccad947f6a7945431956f03acb6a'/>
<id>46c77392cbfcccad947f6a7945431956f03acb6a</id>
<content type='text'>
Reviewed by:	imp
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D44448

(cherry picked from commit 21d3a84db481e84cf240f6802b1a4110854eaec5)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed by:	imp
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D44448

(cherry picked from commit 21d3a84db481e84cf240f6802b1a4110854eaec5)
</pre>
</div>
</content>
</entry>
<entry>
<title>nvme: Add constants for the Controller Attributes field in cdata</title>
<updated>2024-08-26T18:27:59+00:00</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2024-03-23T00:24:31+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=9541862de74e437e01a2e0f3b978f6fb5f0568d4'/>
<id>9541862de74e437e01a2e0f3b978f6fb5f0568d4</id>
<content type='text'>
Reviewed by:	imp
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D44447

(cherry picked from commit 7fa8adb8c5cd46979b76770794ac1b6584e8baa7)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed by:	imp
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D44447

(cherry picked from commit 7fa8adb8c5cd46979b76770794ac1b6584e8baa7)
</pre>
</div>
</content>
</entry>
<entry>
<title>nvme: Add constants and types for the discovery log page</title>
<updated>2024-08-26T18:27:53+00:00</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2024-03-23T00:24:18+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=759864ad7ad6f7ee949f496cc46ff906be9afcea'/>
<id>759864ad7ad6f7ee949f496cc46ff906be9afcea</id>
<content type='text'>
This is used in NVMe over Fabrics to enumerate a list of available
controllers.

Reviewed by:	imp
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D44446

(cherry picked from commit 88ecf154c7c5a2e413a81ae1b0511b0295265b99)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is used in NVMe over Fabrics to enumerate a list of available
controllers.

Reviewed by:	imp
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D44446

(cherry picked from commit 88ecf154c7c5a2e413a81ae1b0511b0295265b99)
</pre>
</div>
</content>
</entry>
<entry>
<title>nvme: Add constants for fields in AER completion dword 0</title>
<updated>2024-08-26T18:27:48+00:00</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2024-03-23T00:24:06+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=41f61bf230243361b8375ce19d45eb01f139014d'/>
<id>41f61bf230243361b8375ce19d45eb01f139014d</id>
<content type='text'>
Reviewed by:	imp
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D44445

(cherry picked from commit b354bb04cb51f373e997cb8911c32dc93243c1d7)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed by:	imp
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D44445

(cherry picked from commit b354bb04cb51f373e997cb8911c32dc93243c1d7)
</pre>
</div>
</content>
</entry>
<entry>
<title>nvme: Add constants for the extended data for Get Log Page command flag</title>
<updated>2024-08-26T18:27:42+00:00</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2024-03-23T00:23:46+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=ae2a9307b5ea306cb4316f35c9c4d1d9105b56f8'/>
<id>ae2a9307b5ea306cb4316f35c9c4d1d9105b56f8</id>
<content type='text'>
nvme(4) doesn't check this flag, but Fabrics implementations may need
to set this flag in the log page attributes cdata field.

Reviewed by:	imp
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D44444

(cherry picked from commit cbda1886ab1cd3ec2847b7da5136d3bb68d56101)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
nvme(4) doesn't check this flag, but Fabrics implementations may need
to set this flag in the log page attributes cdata field.

Reviewed by:	imp
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D44444

(cherry picked from commit cbda1886ab1cd3ec2847b7da5136d3bb68d56101)
</pre>
</div>
</content>
</entry>
<entry>
<title>nvme: Add constants for the PSDT field in cdw0</title>
<updated>2024-08-26T18:27:36+00:00</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2024-03-23T00:23:24+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=da548abbc35c86d4f504c5392ce79ec1c67bd432'/>
<id>da548abbc35c86d4f504c5392ce79ec1c67bd432</id>
<content type='text'>
This is not used in nvme(4) but is used in NVMe over Fabrics
transports which use SGLs to describe buffers instead of PRPs.

While here, adjust the shift value for the FUSE field to be relative
to the 'fuse' member of 'struct nvme_command'.

Reviewed by:	imp
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D44443

(cherry picked from commit b8cb8dd3625d7396ea98152d89e1e64b16e77bc6)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is not used in nvme(4) but is used in NVMe over Fabrics
transports which use SGLs to describe buffers instead of PRPs.

While here, adjust the shift value for the FUSE field to be relative
to the 'fuse' member of 'struct nvme_command'.

Reviewed by:	imp
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D44443

(cherry picked from commit b8cb8dd3625d7396ea98152d89e1e64b16e77bc6)
</pre>
</div>
</content>
</entry>
<entry>
<title>nvme: Add SGL structure and constants for use in NVMe commands</title>
<updated>2024-08-26T18:27:28+00:00</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2024-03-23T00:23:09+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=1e066e46040354f244561894911e0938c9ef4df7'/>
<id>1e066e46040354f244561894911e0938c9ef4df7</id>
<content type='text'>
Fabrics capsules use an SGL structure instead of prp1/2 addresses to
describe the data buffer used for a command.  The SGL structure is
added to a union with the existing prp1/2 fields.

Reviewed by:	imp
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D44442

(cherry picked from commit f21a54d19080510bce279183f4bf07d5315bd179)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fabrics capsules use an SGL structure instead of prp1/2 addresses to
describe the data buffer used for a command.  The SGL structure is
added to a union with the existing prp1/2 fields.

Reviewed by:	imp
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D44442

(cherry picked from commit f21a54d19080510bce279183f4bf07d5315bd179)
</pre>
</div>
</content>
</entry>
<entry>
<title>nvme: Export constants for min and max queue sizes</title>
<updated>2024-08-26T18:27:21+00:00</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2024-03-23T00:21:20+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=94feb210599a358462ad48ccc792ec4d78e03ee3'/>
<id>94feb210599a358462ad48ccc792ec4d78e03ee3</id>
<content type='text'>
These are useful for NVMe over Fabrics.

Reviewed by:	imp
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D44441

(cherry picked from commit 1931b75e004f25cf1d2db809bfd9baba40c04521)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These are useful for NVMe over Fabrics.

Reviewed by:	imp
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D44441

(cherry picked from commit 1931b75e004f25cf1d2db809bfd9baba40c04521)
</pre>
</div>
</content>
</entry>
</feed>
