From nobody Fri Dec 19 12:34:36 2025 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 CF31613D617 for ; Wed, 3 Jul 2024 10:17:42 +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=1720001865; cv=none; b=lO8Z5nLJoRIel4pFohymBy33pOiTXpzj9iQDtjn1WmSFyYTIA/sy5HWGeuPCoDKXvcENbU3zECQxYZRsZ8L26Ls1NypQJBtA5PAGCTeQ1ddEmDwxOObgezflaVCC7v9mS+fMLF5kZ/L1cd5WmzTc/aRh+uGuNBdfzTTcIuosLh4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720001865; c=relaxed/simple; bh=6WuPAlyUok+Ywgl4GD7bxUpIkyzl2YUP0LlK/hYR204=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=LlURf9dN6sviidLO6lw5VD4Ogc84P6nNbwfoXsRKtDjMbeIbBx5wFK4gaEzrQQ/HS9Gd/VyILyOthirmQpVUiBHSi1rzRHBbS7uqqNCPiObqaftVCvfDnx/GXfIequh1TIKn36RFtOYUNlnyjf7Tm0y/jRd2kKLsiDjdvGL143Y= 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: bizesmtpsz12t1720001725tyek6r X-QQ-Originating-IP: 0CPp79MTsHqkM18lAy7D0pnMC3EqUbGTyZ/+H3IFfbo= Received: from localhost.localdomain ( [113.57.152.160]) by bizesmtp.qq.com (ESMTP) with id ; Wed, 03 Jul 2024 18:15:23 +0800 (CST) X-QQ-SSF: 0000000000000000000000000000000 X-QQ-GoodBg: 1 X-BIZMAIL-ID: 5959315883507809437 From: WangYuli To: kbusch@kernel.org, axboe@fb.com, hch@lst.de, sagi@grimberg.me, guanwentao@uniontech.com, huanglin@uniontech.com Cc: linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, WangYuli Subject: [PATCH v2] nvme/pci: Add DEEPEST_PS quirk for Lenovo N60z laptop Date: Wed, 3 Jul 2024 18:15:13 +0800 Message-ID: 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" There is a hardware power-saving problem with the Lenovo N60z board. When turn it on and leave it for 30 minutes, there is a 20% chance that a nvme disk will not wake up until reboot. Signed-off-by: hmy Signed-off-by: Wentao Guan Signed-off-by: WangYuli --- 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 282d808400c5..4c840d468fce 100644 --- a/drivers/nvme/host/pci.c +++ b/drivers/nvme/host/pci.c @@ -2903,6 +2903,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 30 minuites on a Lenovo N60z board. + */ + if (dmi_match(DMI_BOARD_NAME, "LXKT-ZXEG-N6")) + return NVME_QUIRK_NO_DEEPEST_PS; + return 0; } =20 --=20 2.43.4