[PATCH] nvme-pci: don't use dma_alloc_noncontiguous with 0 merge boundary

Keith Busch kbusch at kernel.org
Wed Dec 4 09:26:05 PST 2024


On Wed, Dec 04, 2024 at 09:42:40AM +0900, Christoph Hellwig wrote:
> Only call into nvme_alloc_host_mem_single which uses
> dma_alloc_noncontiguous when there is non-null dma merge boundary.
> Without this we'll call into dma_alloc_noncontiguous for device using
> dma-direct, which can work fine as long as the preferred size is below the
> MAX_ORDER of the page allocator, but blows up with a warning if it is
> too large.

Thanks, applied to nvme-6.13 with the mentioned spelling fix.



More information about the Linux-nvme mailing list