]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
nvme-pci: disable APST on Samsung SSD 960 EVO + ASUS PRIME B350M-A
authorKai-Heng Feng <kai.heng.feng@canonical.com>
Tue, 9 Jan 2018 06:49:17 +0000 (14:49 +0800)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 14 Mar 2018 10:40:43 +0000 (11:40 +0100)
commit6de4af6408c796e132cb5dd27c7aafa863f1295e
treeb5ad2a554e405b0ad38ec0be4c5349ce07a03a76
parent05bcd5112b285f28123545fcb457ba2ca8cbf14d
nvme-pci: disable APST on Samsung SSD 960 EVO + ASUS PRIME B350M-A

BugLink: https://bugs.launchpad.net/bugs/1705748
The NVMe device in question drops off the PCIe bus after system suspend.
I've tried several approaches to workaround this issue, but none of them
works:
- NVME_QUIRK_DELAY_BEFORE_CHK_RDY
- NVME_QUIRK_NO_DEEPEST_PS
- Disable APST before controller shutdown
- Delay between controller shutdown and system suspend
- Explicitly set power state to 0 before controller shutdown

Fortunately it's a desktop, so disable APST won't hurt the battery.

Also, change the quirk function name to reflect it's for vendor
combination quirks.

Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
(cherry picked from commit 8427bbc224863e14d905c87920d4005cb3e88ac3)
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/nvme/host/pci.c