nvme: set dma alignment to qword
authorKeith Busch <kbusch@kernel.org>
Thu, 21 May 2020 02:22:53 +0000 (19:22 -0700)
committerChristoph Hellwig <hch@lst.de>
Wed, 27 May 2020 05:12:40 +0000 (07:12 +0200)
commit3b2a1ebceba3e03b17ef0970bb7757a3a64cdc8b
tree9e63c3314af9b9cbc2e0128c171de8b933c60569
parent1cdf9f7670a7d74e27177d5c390c2f8b3b9ba338
nvme: set dma alignment to qword

The default dma alignment mask is 511, which is much larger than any nvme
controller requires. NVMe controllers accept qword aligned DMA addresses,
so set the request_queue constraints to that. This can help avoid bounce
buffers on user passthrough commands.

Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c