summaryrefslogtreecommitdiffstats
path: root/drivers/nvme/host/nvme.h
diff options
context:
space:
mode:
authorKai-Heng Feng2017-06-26 22:39:54 +0200
committerJens Axboe2017-06-28 16:14:13 +0200
commit76a5af841755a0427229a6a77ca83781d61e5b2a (patch)
treed7593e41bbe6f81829faf3ac1e35c97b16c8bc20 /drivers/nvme/host/nvme.h
parentnvme: use a single NVME_AQ_DEPTH and relax it to 32 (diff)
downloadkernel-qcow2-linux-76a5af841755a0427229a6a77ca83781d61e5b2a.tar.gz
kernel-qcow2-linux-76a5af841755a0427229a6a77ca83781d61e5b2a.tar.xz
kernel-qcow2-linux-76a5af841755a0427229a6a77ca83781d61e5b2a.zip
nvme: explicitly disable APST on quirked devices
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> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/nvme/host/nvme.h')
-rw-r--r--drivers/nvme/host/nvme.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/nvme/host/nvme.h b/drivers/nvme/host/nvme.h
index 1363ccbacf0a..b74f954eac66 100644
--- a/drivers/nvme/host/nvme.h
+++ b/drivers/nvme/host/nvme.h
@@ -167,6 +167,7 @@ struct nvme_ctrl {
/* Power saving configuration */
u64 ps_max_latency_us;
+ bool apst_enabled;
u32 hmpre;
u32 hmmin;