]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
nvme: allocate aligned payloads for all nvme commands
authorDaniel Wagner <dwagner@suse.de>
Thu, 14 Sep 2023 12:33:35 +0000 (14:33 +0200)
committerDaniel Wagner <wagi@monom.org>
Wed, 20 Sep 2023 10:04:25 +0000 (12:04 +0200)
commit1a8bd305c61d7bcc57bbf0eee8a2c4389820527c
tree163d97c42eeb4705b2ae5f589fc4f3adff9e1588
parentfe24b9e9ecc769fa144e80ee8b31c85ff5f8f2e1
nvme: allocate aligned payloads for all nvme commands

The kernel supports since v5.2 direct mapped DMA buffers to userspace.
Up to this point a bounce buffer was involved. Because the buffers are
now directly accessed by the device, the rules of alignment also apply
for the payloads.

Use the newly introduced nvme_alloc helper to allocate correctly aligned
payloads for all nvme commands.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
nvme-print.h
nvme.c
util/cleanup.h