public inbox for stable@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 5.15+] nvme/pci: Add APST quirk for Lenovo N60z laptop
@ 2024-07-31  7:18 WangYuli
  2024-08-15  8:32 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: WangYuli @ 2024-07-31  7:18 UTC (permalink / raw)
  To: stable, gregkh, sashal
  Cc: keith.busch, axboe, hch, sagi, linux-nvme, linux-kernel, xuerpeng,
	WangYuli, hmy, Wentao Guan, Keith Busch

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>
---
 drivers/nvme/host/pci.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c
index 5a3ba7e39054..d73b8eb76b8f 100644
--- a/drivers/nvme/host/pci.c
+++ b/drivers/nvme/host/pci.c
@@ -2968,6 +2968,13 @@ static unsigned long check_vendor_combination_bug(struct pci_dev *pdev)
 			return NVME_QUIRK_FORCE_NO_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;
 }
 
-- 
2.43.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 5.15+] nvme/pci: Add APST quirk for Lenovo N60z laptop
  2024-07-31  7:18 [PATCH 5.15+] nvme/pci: Add APST quirk for Lenovo N60z laptop WangYuli
@ 2024-08-15  8:32 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2024-08-15  8:32 UTC (permalink / raw)
  To: WangYuli
  Cc: stable, sashal, keith.busch, axboe, hch, sagi, linux-nvme,
	linux-kernel, xuerpeng, hmy, Wentao Guan, Keith Busch

On Wed, Jul 31, 2024 at 03:18:27PM +0800, WangYuli wrote:
> 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>
> ---
>  drivers/nvme/host/pci.c | 7 +++++++
>  1 file changed, 7 insertions(+)

All now queued up, thanks.

greg k-h

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-08-15  8:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-31  7:18 [PATCH 5.15+] nvme/pci: Add APST quirk for Lenovo N60z laptop WangYuli
2024-08-15  8:32 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox