mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2] nvme-pci: add NVME_QUIRK_DMAPOOL_ALIGN_512 for UMIS AM6B0
@ 2026-11-30 18:13 Luke Macken
  2026-12-01  7:59 ` Christoph Hellwig
  0 siblings, 1 reply; 2+ messages in thread
From: Luke Macken @ 2026-11-30 18:13 UTC (permalink / raw)
  To: kbusch, axboe, hch, sagi
  Cc: linux-nvme, linux-arm-msm, linux-kernel, Luke Macken

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@phorex.org>
---
Changes in v2:
- Shorter commit log (Christoph), no code change.

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

 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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH v2] nvme-pci: add NVME_QUIRK_DMAPOOL_ALIGN_512 for UMIS AM6B0
  2026-11-30 18:13 [PATCH v2] nvme-pci: add NVME_QUIRK_DMAPOOL_ALIGN_512 for UMIS AM6B0 Luke Macken
@ 2026-12-01  7:59 ` Christoph Hellwig
  0 siblings, 0 replies; 2+ messages in thread
From: Christoph Hellwig @ 2026-12-01  7:59 UTC (permalink / raw)
  To: Luke Macken; +Cc: kbusch, axboe, sagi, linux-nvme, linux-arm-msm, linux-kernel

Looks good:

Reviewed-by: Christoph Hellwig <hch@lst.de>


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-12-01  7:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-30 18:13 [PATCH v2] nvme-pci: add NVME_QUIRK_DMAPOOL_ALIGN_512 for UMIS AM6B0 Luke Macken
2026-12-01  7:59 ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®