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 BB046145B26; Thu, 11 Apr 2024 10:29:40 +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=1712831380; cv=none; b=oVnTr13Soi3pz191aK6mg8wQhHNqYFEGHyffZDKN0HwQtX7nAoHoQuWW4Cr8IfGPllL6Hbprua1FkibGcpP1otYMTFyrr0pWA1ZzEDvQkP+h4kXLkb/ZBMAHCJTGv30KdO62I5BtNk+ckHmy3or/yQWTpYuS6wEWBrw0LPIRyxg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712831380; c=relaxed/simple; bh=U9qdlr5Pzlzi+vRbqwJJlNc+RAsY3SRQL3p/hCv+cO8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=qGVckOvPzRoCTi7MNAlQdyiGU0YlxV12H2z1uUmFMS8iatDnXoEHvBFREC8LJlebRH7zZbBNXR/wG3ND+gVCZQwWAcygp44Qb20f8rXQz/LZ+tGA5wsUdKhb/OLH+jtUnONrjdHMVrtI/xpzOOHdsTxu13vxeHeVpPUbdx8xSaQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Hc+93Ti7; 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="Hc+93Ti7" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3D23AC433C7; Thu, 11 Apr 2024 10:29:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1712831380; bh=U9qdlr5Pzlzi+vRbqwJJlNc+RAsY3SRQL3p/hCv+cO8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Hc+93Ti7IVBN9PQdiLlhLP57Bm1hzQ2XOmpba/P14vy9zap0fxJQ0AjwFjcVbdvjh /+2iPjXyDhv6GNwaI0vJnhSSD8jWLC9xqSUGMnQR2DAz4LKISRq9BuY3s3zjw8Fb7s ur9Ooj3ku5jdEk+Gihdgj/tiM2PTkUc6u4jRFwbM= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Jiawei Fu , Christoph Hellwig , Sagi Grimberg , Keith Busch , Sasha Levin Subject: [PATCH 6.6 101/114] drivers/nvme: Add quirks for device 126f:2262 Date: Thu, 11 Apr 2024 11:57:08 +0200 Message-ID: <20240411095419.940538805@linuxfoundation.org> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240411095416.853744210@linuxfoundation.org> References: <20240411095416.853744210@linuxfoundation.org> User-Agent: quilt/0.67 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: Jiawei Fu (iBug) [ Upstream commit e89086c43f0500bc7c4ce225495b73b8ce234c1f ] This commit adds NVME_QUIRK_NO_DEEPEST_PS and NVME_QUIRK_BOGUS_NID for device [126f:2262], which appears to be a generic VID:PID pair used for many SSDs based on the Silicon Motion SM2262/SM2262EN controller. Two of my SSDs with this VID:PID pair exhibit the same behavior: * They frequently have trouble exiting the deepest power state (5), resulting in the entire disk unresponsive. Verified by setting nvme_core.default_ps_max_latency_us=10000 and observing them behaving normally. * They produce all-zero nguid and eui64 with `nvme id-ns` command. The offending products are: * HP SSD EX950 1TB * HIKVISION C2000Pro 2TB Signed-off-by: Jiawei Fu Reviewed-by: Christoph Hellwig Reviewed-by: Sagi Grimberg Signed-off-by: Keith Busch 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 f8e92404a6591..b985142fb84b9 100644 --- a/drivers/nvme/host/pci.c +++ b/drivers/nvme/host/pci.c @@ -3361,6 +3361,9 @@ static const struct pci_device_id nvme_id_table[] = { NVME_QUIRK_BOGUS_NID, }, { PCI_VDEVICE(REDHAT, 0x0010), /* Qemu emulated controller */ .driver_data = NVME_QUIRK_BOGUS_NID, }, + { PCI_DEVICE(0x126f, 0x2262), /* Silicon Motion generic */ + .driver_data = NVME_QUIRK_NO_DEEPEST_PS | + NVME_QUIRK_BOGUS_NID, }, { PCI_DEVICE(0x126f, 0x2263), /* Silicon Motion unidentified */ .driver_data = NVME_QUIRK_NO_NS_DESC_LIST | NVME_QUIRK_BOGUS_NID, }, -- 2.43.0