]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
nvme: explicitly disable APST on quirked devices
authorKai-Heng Feng <kai.heng.feng@canonical.com>
Thu, 29 Jun 2017 09:59:22 +0000 (17:59 +0800)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Fri, 14 Jul 2017 13:24:24 +0000 (10:24 -0300)
commita7f8e59e078894bbcd9bae3648e6eb86a1cecc23
treecbdeafec30d34c0688991e5ee02ef12fcc16579b
parent4e7cd63b8e733ad663ae459c5a912fa29132309c
nvme: explicitly disable APST on quirked devices

BugLink: https://bugs.launchpad.net/bugs/1699004
A user reports APST is enabled, even when the NVMe is quirked or with
option "default_ps_max_latency_us=0".

The current logic will not set APST if the device is quirked. But the
NVMe in question will enable APST automatically.

Separate the logic "apst is supported" and "to enable apst", so we can
use the latter one to explicitly disable APST at initialiaztion.

BugLink: https://bugs.launchpad.net/bugs/1699004
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Reviewed-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Keith Busch <keith.busch@intel.com>
(backported from commit 76a5af841755a0427229a6a77ca83781d61e5b2a)
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Acked-by: Seth Forshee <seth.forshee@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
drivers/nvme/host/core.c
drivers/nvme/host/nvme.h