]> git.proxmox.com Git - mirror_ubuntu-artful-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)
committerSeth Forshee <seth.forshee@canonical.com>
Wed, 5 Jul 2017 16:36:03 +0000 (11:36 -0500)
commitfdf1f621a565f3561cea055cbf75a2a02107cdec
treeee10f6b4da01489c9c6aad740292b4afe491c98d
parent24da3c1e93491a69eca1c456fc1371ce2bb4ae1e
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>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/nvme/host/core.c
drivers/nvme/host/nvme.h