[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20230727101928.1366179-1-aichao@kylinos.cn>
Date: Thu, 27 Jul 2023 18:19:28 +0800
From: Ai Chao <aichao@...inos.cn>
To: kbusch@...nel.org, axboe@...com, hch@....de, sagi@...mberg.me
Cc: linux-nvme@...ts.infradead.org, linux-kernel@...r.kernel.org,
Ai Chao <aichao@...inos.cn>
Subject: [PATCH] nvme-pci: add quirk to disable APST feature for BIWIN AP443 256GB SSD
Add quirk to disable APST feature for BIWIN AP443 256GB SSD.
It drops off the PCIe bus on a Lenovo board, board name
is LXKT-ZXFG-N6 or LXKT-ZXE-N70.
Signed-off-by: Ai Chao <aichao@...inos.cn>
---
drivers/nvme/host/pci.c | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c
index 7f25c0fe3a0b..240e8e946e01 100644
--- a/drivers/nvme/host/pci.c
+++ b/drivers/nvme/host/pci.c
@@ -2897,7 +2897,18 @@ static unsigned long check_vendor_combination_bug(struct pci_dev *pdev)
if ((dmi_match(DMI_BOARD_VENDOR, "LENOVO")) &&
dmi_match(DMI_BOARD_NAME, "LNVNB161216"))
return NVME_QUIRK_SIMPLE_SUSPEND;
- }
+ } else if (pdev->vendor == 0x1dee && pdev->device == 0x5216) {
+ /*
+ * BIWIN AP443 256GB SSD drops off the PCIe bus on a
+ * Lenovo or KaiTian board, board name is LXKT-ZXFG-N6
+ * or LXKT-ZXE-N70
+ */
+ if ((dmi_match(DMI_BOARD_VENDOR, "LENOVO") ||
+ dmi_match(DMI_BOARD_VENDOR, "KaiTian")) &&
+ (dmi_match(DMI_BOARD_NAME, "LXKT-ZXEG-N6") ||
+ dmi_match(DMI_BOARD_NAME, "LXKT-ZXE-N70")))
+ return NVME_QUIRK_NO_APST;
+ }
return 0;
}
--
2.25.1
No virus found
Checked by Hillstone Network AntiVirus
Powered by blists - more mailing lists