From nobody Sun Feb 8 16:46:26 2026 Received: from smtpbguseast1.qq.com (smtpbguseast1.qq.com [54.204.34.129]) (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 A379B1A71E0; Wed, 31 Jul 2024 07:18:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=54.204.34.129 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722410342; cv=none; b=eIMDXOWKRSaNNAJ2cbfI0/PQRep3TrOuqqkmm2inqjOXFPsJAJ+jSV4iTQs6f5URfVfy0tlGn2tff7LZ7sjkNJckiKkIAmQL3DL22lQx03UGU6izOlnhchxYyOzi28eNr7QS7021OdENn1uHsduA/5TsAyD5a/GMnDno4uNjgfU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722410342; c=relaxed/simple; bh=SMivB/R5w7b87D6n0/gTww/ilT/MBruZU7ZTcYg57dA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=oFCq7GMlrfjS0ttnJIXZcwJCot2xctbrNCis48UxYj+4s6t5vQfZmDYOIpuTvI9sDHXG15NOGSBjLjCadVlm45RCALHsvx0+rKPLcz0G2emAdIQ00HA44xVmzi+4D+YP2GCWAeQHWnnw1/4IywBc2+injDPsqczHC/ellBLND34= 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=54.204.34.129 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: bizesmtpsz5t1722410311try9sf4 X-QQ-Originating-IP: C5w+M+Kj2iBjfhCctdGi3rxO6aiEPtaKJp8lEDpKgyA= Received: from localhost.localdomain ( [113.57.152.160]) by bizesmtp.qq.com (ESMTP) with id ; Wed, 31 Jul 2024 15:18:29 +0800 (CST) X-QQ-SSF: 0000000000000000000000000000000 X-QQ-GoodBg: 1 X-BIZMAIL-ID: 14924432582986564659 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.15+] nvme/pci: Add APST quirk for Lenovo N60z laptop Date: Wed, 31 Jul 2024 15:18:27 +0800 Message-ID: <722C75CD96F242C0+20240731071827.112255-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 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(st= ruct pci_dev *pdev) return NVME_QUIRK_FORCE_NO_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