mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Luke Macken <luke@phorex.org>
To: kbusch@kernel.org, axboe@kernel.dk, hch@lst.de, sagi@grimberg.me
Cc: linux-nvme@lists.infradead.org, linux-arm-msm@vger.kernel.org,
	linux-kernel@vger.kernel.org, Luke Macken <luke@phorex.org>
Subject: [PATCH v2] nvme-pci: add NVME_QUIRK_DMAPOOL_ALIGN_512 for UMIS AM6B0
Date: Mon, 30 Nov 2026 11:13:15 -0700	[thread overview]
Message-ID: <20261130181315.1552287-1-luke@phorex.org> (raw)

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


             reply	other threads:[~2026-11-30 18:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-30 18:13 Luke Macken [this message]
2026-12-01  7:59 ` Christoph Hellwig

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261130181315.1552287-1-luke@phorex.org \
    --to=luke@phorex.org \
    --cc=axboe@kernel.dk \
    --cc=hch@lst.de \
    --cc=kbusch@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-nvme@lists.infradead.org \
    --cc=sagi@grimberg.me \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®