From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 2600222FDFF; Mon, 2 Jun 2025 14:19:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748873982; cv=none; b=hjMilp2aHR4JgYT9khsohFAwEVWrLRLQoq6xBldqi3K6WFTTMwN4oVh7GD73Lv6U9gfb78esUswG9ktElIiQcixXbQ2mudboTT3yZJWwCVRuY23MKvmPGF8GGdRIcj4ddqsA0F4DV3WAvIkF+GDcNpkhN+SM8kBK7XkbrFTcbAQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748873982; c=relaxed/simple; bh=LvGQOZw0W+EyW0JZeIPoIWG72+4w62UZjnFoyNrQEio=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=H770x9fIhxkaC5V6Nek0qWeHub5bFsoeOwH/rNZdPUjDNyByVAjA7MrvWOtRkGMwrnYodr0SLa1S5auWOR2jTCcaKgFrakARgP+G+1ucqQfNAAnPN0ZSmL003MomTW2Kj/AxVUVTVIEkimgyVw9si+/me/wPwzz6ADQ8WP9rf+E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=xTfVwzPK; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="xTfVwzPK" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1EF91C4CEF2; Mon, 2 Jun 2025 14:19:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1748873981; bh=LvGQOZw0W+EyW0JZeIPoIWG72+4w62UZjnFoyNrQEio=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xTfVwzPK91WH2fHEvgv+JxGVFev4asaTk+iBFgUOtesTSRQNgVA3hFumHtrM+ipB/ y0cStuqrfgleLdcVgHJ+fQL/KXpY6SCHPzIT7FA4lu/qpfrZLd3ckSofNg7T9dH2vv 3SU1KTouoGexS+zZoNykOQjDxbPr83bgKApp0lnE= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Wentao Guan , WangYuli , Sagi Grimberg , Christoph Hellwig , Sasha Levin Subject: [PATCH 6.6 318/444] nvme-pci: add quirks for device 126f:1001 Date: Mon, 2 Jun 2025 15:46:22 +0200 Message-ID: <20250602134353.844646682@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250602134340.906731340@linuxfoundation.org> References: <20250602134340.906731340@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Wentao Guan [ Upstream commit 5b960f92ac3e5b4d7f60a506a6b6735eead1da01 ] This commit adds NVME_QUIRK_NO_DEEPEST_PS and NVME_QUIRK_BOGUS_NID for device [126f:1001]. It is similar to commit e89086c43f05 ("drivers/nvme: Add quirks for device 126f:2262") Diff is according the dmesg, use NVME_QUIRK_IGNORE_DEV_SUBNQN. dmesg | grep -i nvme0: nvme nvme0: pci function 0000:01:00.0 nvme nvme0: missing or invalid SUBNQN field. nvme nvme0: 12/0/0 default/read/poll queues Link:https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e89086c43f0500bc7c4ce225495b73b8ce234c1f Signed-off-by: Wentao Guan Signed-off-by: WangYuli Reviewed-by: Sagi Grimberg Signed-off-by: Christoph Hellwig Signed-off-by: Sasha Levin --- drivers/nvme/host/pci.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c index 1e5c8220e365c..91c2dacb90430 100644 --- a/drivers/nvme/host/pci.c +++ b/drivers/nvme/host/pci.c @@ -3429,6 +3429,9 @@ static const struct pci_device_id nvme_id_table[] = { .driver_data = NVME_QUIRK_BOGUS_NID, }, { PCI_DEVICE(0x1217, 0x8760), /* O2 Micro 64GB Steam Deck */ .driver_data = NVME_QUIRK_DMAPOOL_ALIGN_512, }, + { PCI_DEVICE(0x126f, 0x1001), /* Silicon Motion generic */ + .driver_data = NVME_QUIRK_NO_DEEPEST_PS | + NVME_QUIRK_IGNORE_DEV_SUBNQN, }, { PCI_DEVICE(0x126f, 0x2262), /* Silicon Motion generic */ .driver_data = NVME_QUIRK_NO_DEEPEST_PS | NVME_QUIRK_BOGUS_NID, }, -- 2.39.5