From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bali.collaboradmins.com (bali.collaboradmins.com [148.251.105.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C156B2D238F; Fri, 20 Mar 2026 19:30:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.251.105.195 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774035049; cv=none; b=alFxqsB0bFFP7LuAWmIMCanMiLuVtlsymR/fljAGV0e2lBbUhWXHRD7yPIKawZQpydeja52B2DR/SpGt9CiMTedhxk4aKboUXvR/Ouz113pcOWmlCL2rfrqrE1mjBS5AiCb+aVzegg0rW7F3wz3pVvlkqdqFIbtPC2NzBu2b4og= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774035049; c=relaxed/simple; bh=mV/PuKi79vs/DLWR1rcZUS+2XIjd7LWrXdurOUeDB0o=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=GC8W+uRYoGg6lAE5kJrNrY3UxqWmQSJTapjzMWJ4NcvORglNQkxWtPWvGWMztQ8Hq7cgKEWkC+DWy7EEsIgc/Lr5rKfWKzAHFe8qZ2Ek4tV0c6vdbMtNXVR/rqiRbcSHVyOIaxh5aqWJ3DxVtk3Aq8ojHhpE9CNQoA91jGKbz7E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=gg6cvlfm; arc=none smtp.client-ip=148.251.105.195 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="gg6cvlfm" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1774035045; bh=mV/PuKi79vs/DLWR1rcZUS+2XIjd7LWrXdurOUeDB0o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gg6cvlfm+9izCqjlakRWquFyhpMjPSLyvI8La4UYLYDAy5KvqGkPC9259TCgtBAoU ZuWIRqPUhvkxdriApq/mMyt5Sk+3o7q/Z0mYlKqCB3woV2nydQeslPzKmc7Oq+emty j4H1oh/7XBTxgT/P+aDYK43KpXcdjFIInhHacPsN37k7UPHf4SsDOuPRaKmTEyxqOm YMORUr1Mx3cOTF1ag+hmdXmwLNbupxiyZza3wzJ5lfbt7EgyOUcZ4a6Th2Conl2Vci TM4UeaEjW9enu74Mka9v6p0xK6x3ltP82TiVbinWI/pKVvG1FEyiP7ZQppI0pnFZ3D 6b5NCD1zYbhbQ== Received: from localhost.localdomain (unknown [84.18.237.101]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: bbeckett) by bali.collaboradmins.com (Postfix) with ESMTPSA id 7C6B017E05B5; Fri, 20 Mar 2026 20:30:45 +0100 (CET) From: Bob Beckett To: Keith Busch , Jens Axboe , Christoph Hellwig , Sagi Grimberg Cc: kernel@collabora.com, Robert Beckett , stable@vger.kernel.org, linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] nvme-pci: add NVME_QUIRK_DISABLE_WRITE_ZEROES for Kingston OM3SGP4 Date: Fri, 20 Mar 2026 19:22:09 +0000 Message-ID: <20260320192217.365936-2-bob.beckett@collabora.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20260320192217.365936-1-bob.beckett@collabora.com> References: <20260320192217.365936-1-bob.beckett@collabora.com> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Robert Beckett The Kingston OM3SGP42048K2-A00 (PCI ID 2646:502f) firmware has a race condition when processing concurrent write zeroes and DSM (discard) commands, causing spurious "LBA Out of Range" errors and IOMMU page faults at address 0x0. The issue is reliably triggered by running two concurrent mkfs commands on different partitions of the same drive, which generates interleaved write zeroes and discard operations. Disable write zeroes for this device, matching the pattern used for other Kingston OM* drives that have similar firmware issues. Cc: stable@vger.kernel.org Signed-off-by: Robert Beckett Assisted-by: claude-opus-4-6-v1 --- 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 b78ba239c8ea..db5fc9bf6627 100644 --- a/drivers/nvme/host/pci.c +++ b/drivers/nvme/host/pci.c @@ -4178,6 +4178,8 @@ static const struct pci_device_id nvme_id_table[] = { .driver_data = NVME_QUIRK_DISABLE_WRITE_ZEROES, }, { PCI_DEVICE(0x2646, 0x501E), /* KINGSTON OM3PGP4xxxxQ OS21011 NVMe SSD */ .driver_data = NVME_QUIRK_DISABLE_WRITE_ZEROES, }, + { PCI_DEVICE(0x2646, 0x502F), /* KINGSTON OM3SGP4xxxxK NVMe SSD */ + .driver_data = NVME_QUIRK_DISABLE_WRITE_ZEROES, }, { PCI_DEVICE(0x1f40, 0x1202), /* Netac Technologies Co. NV3000 NVMe SSD */ .driver_data = NVME_QUIRK_BOGUS_NID, }, { PCI_DEVICE(0x1f40, 0x5236), /* Netac Technologies Co. NV7000 NVMe SSD */ -- 2.48.1