From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=109.224.244.107 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796062415; b=p3hm45zOvPnr+V0YnyqKIB2fdQR6KETYjzaBUawVcHE7fkTJaAmupj05gRgTul/737ao 2DTLqwVls5FXpyO0qXdt0b3CzX/kdnLl90lb97hNfvoXBIEHR7RlNWk5i+tXRobJcIRvd QbzPPtpRkapTuRCAUBG8qXWnCz5nAQXyO4/7yZnOreubTEL3Zshow2LYP5qVUFXrdDeTp yNOEw4pOTOG6rZVbA/zRqbQgYtfnRpuPeDy7usn93IKRKsOyxgfhDN9IakyU89NUp+zwa NOumXjw6g9Ljt7XPfYLTBfMrPI7IDoJPXYEs00FwMCaF5cjwH+sPPvdFQJcEe3tFuxw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796062415; h=DMARC-Filter:X-Pm-Submission-Id:From:To:Cc:Subject:Date:Message-ID: X-Mailer:MIME-Version:Content-Transfer-Encoding; bh=zrojexcu9GlL+gGwF/rZAtLdlPKfRoSLilrNnrIMwJw=; b=nWxdApUtpZuP1PFPa9WjC6Wu2jZ/pmen29nv3JWRqSBsPjYixUbkyCEDtfJCO5rO+adO Wg2G5wWqn8v1u1yaF1zlDOuUPlYZn6JfIJZtT7xjzjiTkHT8UHCmk2U/+E1ALJ/PMXIuu n1MZ1QhNot9c/LcLeQwksit+loMLIzfl++4F+BJ+y9k+Vimk2EVga3WZgc1JlbPp2+iq9 Wrr5etBdKUiEZkYDmVZX3Y31qZaWCujmdIWK/i+j9ua0Mz5Mh+6fZge2z96J8oDQPc3rR fJ4wbfz5zuQTqfUzFN48HtFqKffW9NFcnjjkosWd0zDYqUpTf3ZLscQ9EPRDUsfACYA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=phorex.org; spf=pass smtp.mailfrom=phorex.org; arc=none smtp.remote-ip=109.224.244.107 Received: from mail-244107.protonmail.ch (mail-244107.protonmail.ch [109.224.244.107]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A876A606A31C; Mon, 30 Nov 2026 18:13:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org A876A606A31C Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=phorex.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=phorex.org X-Pm-Submission-Id: 4jdXFY357Yz1DDqy From: Luke Macken 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 Subject: [PATCH v2] nvme-pci: add NVME_QUIRK_DMAPOOL_ALIGN_512 for UMIS AM6B0 Date: Mon, 30 Nov 2026 11:13:15 -0700 Message-ID: <20261130181315.1552287-1-luke@phorex.org> X-Mailer: git-send-email 2.43.0 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 --- 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