]> www.infradead.org Git - users/jedix/linux-maple.git/commit
nvme-pci: use dma_alloc_noncontigous if possible
authorChristoph Hellwig <hch@lst.de>
Fri, 1 Nov 2024 04:40:05 +0000 (05:40 +0100)
committerKeith Busch <kbusch@kernel.org>
Tue, 5 Nov 2024 15:54:34 +0000 (07:54 -0800)
commit63a5c7a4b4c49ad86c362e9f555e6f343804ee1d
tree4e023d40faa748b488cd690b62d2b7014a964193
parent3c2fb1ca8086eb139b2a551358137525ae8e0d7a
nvme-pci: use dma_alloc_noncontigous if possible

Use dma_alloc_noncontigous to allocate a single IOVA-contigous segment
when backed by an IOMMU.  This allow to easily use bigger segments and
avoids running into segment limits if we can avoid it.

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