]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-apple: don't limit DMA segement size
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Wed, 12 Oct 2022 11:46:06 +0000 (12:46 +0100)
committerChristoph Hellwig <hch@lst.de>
Wed, 19 Oct 2022 08:36:39 +0000 (10:36 +0200)
commitd256fe11b8282ec35d51d7c0c9d0d48c8c77b6af
tree463ce10fcf03e774d9395b66f60c09ab98bcf7db
parentee56409c38a14ee53a7feadd34f57a29e3110564
nvme-apple: don't limit DMA segement size

NVMe uses PRPs for data transfers and has no specific limit for a single
DMA segement.  Limiting the size will cause problems because the block
layer assumes PRP-ish devices using a virt boundary mask don't have a
segment limit.  And while this is true, we also really need to tell the
DMA mapping layer about it, otherwise dma-debug will trip over it.

Fixes: bf8fc3444d45 ("nvme-apple: Add initial Apple SoC NVMe driver")
Suggested-by: Sven Peter <sven@svenpeter.dev>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
[hch: rewrote the commit message based on the PCIe commit]
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Eric Curtin <ecurtin@redhat.com>
Reviewed-by: Sven Peter <sven@svenpeter.dev>
drivers/nvme/host/apple.c