Skip to content

Commit 085ec7d

Browse files
Jarosław Janikgregkh
authored andcommitted
nvme-pci: disable APST for Samsung NVMe SSD 960 EVO + ASUS PRIME Z370-A
[ Upstream commit 467c77d ] Yet another "incompatible" Samsung NVMe SSD 960 EVO and Asus motherboard combination. 960 EVO device disappears from PCIe bus within few minutes after boot-up when APST is in use and never gets back. Forcing NVME_QUIRK_NO_APST is the only way to make this drive work with this particular motherboard. NVME_QUIRK_NO_DEEPEST_PS doesn't work, upgrading motherboard's BIOS didn't help either. Since this is a desktop motherboard, the only drawback of not using APST is increased device temperature. Signed-off-by: Jarosław Janik <jaroslaw.janik@gmail.com> Signed-off-by: Keith Busch <keith.busch@intel.com> Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Sasha Levin <alexander.levin@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 7e5487b commit 085ec7d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

drivers/nvme/host/pci.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2314,10 +2314,13 @@ static unsigned long check_vendor_combination_bug(struct pci_dev *pdev)
23142314
} else if (pdev->vendor == 0x144d && pdev->device == 0xa804) {
23152315
/*
23162316
* Samsung SSD 960 EVO drops off the PCIe bus after system
2317-
* suspend on a Ryzen board, ASUS PRIME B350M-A.
2317+
* suspend on a Ryzen board, ASUS PRIME B350M-A, as well as
2318+
* within few minutes after bootup on a Coffee Lake board -
2319+
* ASUS PRIME Z370-A
23182320
*/
23192321
if (dmi_match(DMI_BOARD_VENDOR, "ASUSTeK COMPUTER INC.") &&
2320-
dmi_match(DMI_BOARD_NAME, "PRIME B350M-A"))
2322+
(dmi_match(DMI_BOARD_NAME, "PRIME B350M-A") ||
2323+
dmi_match(DMI_BOARD_NAME, "PRIME Z370-A")))
23212324
return NVME_QUIRK_NO_APST;
23222325
}
23232326

0 commit comments

Comments
 (0)