summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWangYuli <wangyuli@uniontech.com>2024-07-15 17:31:44 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-08-19 05:33:54 +0200
commitdc1d852277d34fcbf4462cf5b8b64b991cfa7cf0 (patch)
treed10e00ff41912a0adfae1ce907a57056cdf75e11
parent368f6985d46657b8b466a421dddcacd4051f7ada (diff)
downloadlinux-stable-dc1d852277d34fcbf4462cf5b8b64b991cfa7cf0.tar.gz
linux-stable-dc1d852277d34fcbf4462cf5b8b64b991cfa7cf0.tar.bz2
linux-stable-dc1d852277d34fcbf4462cf5b8b64b991cfa7cf0.zip
nvme/pci: Add APST quirk for Lenovo N60z laptop
commit ab091ec536cb7b271983c0c063b17f62f3591583 upstream. There is a hardware power-saving problem with the Lenovo N60z board. When turn it on and leave it for 10 hours, there is a 20% chance that a nvme disk will not wake up until reboot. Link: https://lore.kernel.org/all/2B5581C46AC6E335+9c7a81f1-05fb-4fd0-9fbb-108757c21628@uniontech.com Signed-off-by: hmy <huanglin@uniontech.com> Signed-off-by: Wentao Guan <guanwentao@uniontech.com> Signed-off-by: WangYuli <wangyuli@uniontech.com> Signed-off-by: Keith Busch <kbusch@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/nvme/host/pci.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c
index 1a6a628bb6f9..20f5616fd518 100644
--- a/drivers/nvme/host/pci.c
+++ b/drivers/nvme/host/pci.c
@@ -2822,6 +2822,13 @@ static unsigned long check_vendor_combination_bug(struct pci_dev *pdev)
return NVME_QUIRK_SIMPLE_SUSPEND;
}
+ /*
+ * NVMe SSD drops off the PCIe bus after system idle
+ * for 10 hours on a Lenovo N60z board.
+ */
+ if (dmi_match(DMI_BOARD_NAME, "LXKT-ZXEG-N6"))
+ return NVME_QUIRK_NO_APST;
+
return 0;
}