]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
5.10-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Aug 2024 08:39:32 +0000 (10:39 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Aug 2024 08:39:32 +0000 (10:39 +0200)
added patches:
nvme-pci-add-apst-quirk-for-lenovo-n60z-laptop.patch

queue-5.10/nvme-pci-add-apst-quirk-for-lenovo-n60z-laptop.patch [new file with mode: 0644]
queue-5.10/series

diff --git a/queue-5.10/nvme-pci-add-apst-quirk-for-lenovo-n60z-laptop.patch b/queue-5.10/nvme-pci-add-apst-quirk-for-lenovo-n60z-laptop.patch
new file mode 100644 (file)
index 0000000..4deb1f2
--- /dev/null
@@ -0,0 +1,39 @@
+From ab091ec536cb7b271983c0c063b17f62f3591583 Mon Sep 17 00:00:00 2001
+From: WangYuli <wangyuli@uniontech.com>
+Date: Mon, 15 Jul 2024 17:31:44 +0800
+Subject: nvme/pci: Add APST quirk for Lenovo N60z laptop
+
+From: WangYuli <wangyuli@uniontech.com>
+
+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>
+---
+ drivers/nvme/host/pci.c |    7 +++++++
+ 1 file changed, 7 insertions(+)
+
+--- a/drivers/nvme/host/pci.c
++++ b/drivers/nvme/host/pci.c
+@@ -2846,6 +2846,13 @@ static unsigned long check_vendor_combin
+                       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;
+ }
index f22200fab8cc6cea109b66c112d240f8646c077f..08a303d7d2f73d46f2d9029f91c5e33e0a87a771 100644 (file)
@@ -345,3 +345,4 @@ powerpc-avoid-nmi_enter-nmi_exit-in-real-mode-interrupt.patch
 arm64-cpufeature-fix-the-visibility-of-compat-hwcaps.patch
 media-uvcvideo-use-entity-get_cur-in-uvc_ctrl_set.patch
 exec-fix-toctou-between-perm-check-and-set-uid-gid-usage.patch
+nvme-pci-add-apst-quirk-for-lenovo-n60z-laptop.patch