]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: set dma alignment to dword
authorKeith Busch <kbusch@kernel.org>
Wed, 4 May 2022 18:43:25 +0000 (11:43 -0700)
committerChristoph Hellwig <hch@lst.de>
Mon, 16 May 2022 06:06:58 +0000 (08:06 +0200)
commitfe9046264212eec47f1f519d9b3c30f122645ba9
tree90dbc30b1de3b9229abce329ef8e4de58a9ace3c
parente638b6994c7cf203b74d44093427b8c0c7b3e8b1
nvme: set dma alignment to dword

The nvme specification only requires qword alignment for segment
descriptors, and the driver already guarantees that. The spec has always
allowed user data to be dword aligned, which is what the queue's
attribute is for, so relax the alignment requirement to that value.

While we could allow byte alignment for some controllers when using
SGLs, we still need to support PRP, and that only allows dword.

Fixes: cede20516bfd ("nvme: set dma alignment to qword")
Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c