[PATCH v2] nvme-pci: add NVME_QUIRK_DMAPOOL_ALIGN_512 for UMIS AM6B0

From: Luke Macken

Date: Mon Nov 30 2026 - 13:13:37 EST


The UMIS AM6B0 accesses memory past the end of a PRP list that
completely fills a 256 byte small pool block. When that block is the
last one in its dmapool page, the access lands on the next page. If that
page isn't mapped, no IOMMU fault is logged and my ThinkPad T14s Gen 7
(arm-smmu-v3) hangs:

rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 2-...0: (1 GPs behind) idle=e86c/1/0x4000000000000000 softirq=36187/36189 fqs=12506

Filling the block requires a slightly larger write, and those became
possible with commit 2e8e30b3cf9f ("Revert "nvme-pci: clamp
max_hw_sectors based on DMA optimized limitation"").

Do what we do for other disks and use 512 byte aligned small pool blocks
for this controller.

Assisted-by: LLM
Signed-off-by: Luke Macken <luke@xxxxxxxxxx>
---
Changes in v2:
- Shorter commit log (Christoph), no code change.

v1: https://lore.kernel.org/r/20261128061928.337587-1-luke@xxxxxxxxxx

drivers/nvme/host/pci.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c
index 252536fae854..cb05a0f77e15 100644
--- a/drivers/nvme/host/pci.c
+++ b/drivers/nvme/host/pci.c
@@ -4485,6 +4485,8 @@ static const struct pci_device_id nvme_id_table[] = {
.driver_data = NVME_QUIRK_DISABLE_WRITE_ZEROES, },
{ PCI_DEVICE(0x1cc4, 0x6302), /* UMIS RPJTJ256MGE1QDY 256G */
.driver_data = NVME_QUIRK_DISABLE_WRITE_ZEROES, },
+ { PCI_DEVICE(0x1cc4, 0x6b04), /* UMIS AM6B0 */
+ .driver_data = NVME_QUIRK_DMAPOOL_ALIGN_512, },
{ PCI_DEVICE(0x2646, 0x2262), /* KINGSTON SKC2000 NVMe SSD */
.driver_data = NVME_QUIRK_NO_DEEPEST_PS, },
{ PCI_DEVICE(0x2646, 0x2263), /* KINGSTON A2000 NVMe SSD */

base-commit: b2e0423d643818158371825a998401cfd257c74d
--
2.43.0