lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ