From nobody Mon Feb 9 15:41:04 2026 Received: from smtpbgeu2.qq.com (smtpbgeu2.qq.com [18.194.254.142]) (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 B12EC34CDE; Wed, 31 Jul 2024 07:15:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=18.194.254.142 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722410148; cv=none; b=MD5uuH5F0ILaqtX0B28l2c21ozeb1BntbtQArWevgkzSPqtbK40Asm44qqxm8uf70E6Wg5GZ0r/afnGpODErXT6sn6qux7OLxzDs75/vmAMX7jfFEV44kTtD32Ahci9TA1CPupbg67mskjIclqMq9pHo8E/zPJqn+umEmxhw9hg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722410148; c=relaxed/simple; bh=XDH+XoNDRwZetUkmIzIfgIXFNPu4yL0TQBCKwJ0QhjA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=r5HgQq8jAJCpl2E/G5RMEPJ7OXduoaR/ha2OcX5B5EFNnH8WowQfsL8tUmi9UdlVnH54r4st99kBEeMLOHuxpExsGwkDUr/zndBn+ejP+Mc9098rzHQKWYGj4yRoXgAlWdyO9UXiFx2ho1ZpPdIdvXo1lX/seEe7vbwhMUq/1Fo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=uniontech.com; spf=pass smtp.mailfrom=uniontech.com; arc=none smtp.client-ip=18.194.254.142 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=uniontech.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=uniontech.com X-QQ-mid: bizesmtpsz13t1722410123toi7hb X-QQ-Originating-IP: NjX5CDpy6uVrOOnF6b+RGaCU2h4IvTKExtNn+fp+44Q= Received: from localhost.localdomain ( [113.57.152.160]) by bizesmtp.qq.com (ESMTP) with id ; Wed, 31 Jul 2024 15:15:20 +0800 (CST) X-QQ-SSF: 0000000000000000000000000000000 X-QQ-GoodBg: 1 X-BIZMAIL-ID: 9501571679352240106 From: WangYuli To: stable@vger.kernel.org, gregkh@linuxfoundation.org, sashal@kernel.org Cc: keith.busch@intel.com, axboe@fb.com, hch@lst.de, sagi@grimberg.me, linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, xuerpeng@uniontech.com, WangYuli , hmy , Wentao Guan , Keith Busch Subject: [PATCH 5.4/5.10] nvme/pci: Add APST quirk for Lenovo N60z laptop Date: Wed, 31 Jul 2024 15:15:19 +0800 Message-ID: <9243A56C7835B52C+20240731071519.109778-1-wangyuli@uniontech.com> X-Mailer: git-send-email 2.43.4 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtpsz:uniontech.com:qybglogicsvrgz:qybglogicsvrgz8a-1 Content-Type: text/plain; charset="utf-8" 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 Signed-off-by: Wentao Guan Signed-off-by: WangYuli Signed-off-by: Keith Busch --- 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 486e44d20b43..e4776cff4208 100644 --- a/drivers/nvme/host/pci.c +++ b/drivers/nvme/host/pci.c @@ -2821,6 +2821,13 @@ static unsigned long check_vendor_combination_bug(st= ruct pci_dev *pdev) return NVME_QUIRK_SIMPLE_SUSPEND; } =20 + /* + * 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; } =20 --=20 2.43.4