提交 fe6d53c9 编写于 作者: C Christoph Hellwig

nvme: save hmpre and hmmin in struct nvme_ctrl

We'll need the later for the HMB support.
Signed-off-by: NChristoph Hellwig <hch@lst.de>
Reviewed-by: NKeith Busch <keith.busch@intel.com>
Reviewed-by: NSagi Grimberg <sagi@grimberg.me>
Reviewed-by: NJohannes Thumshirn <jthumshirn@suse.de>
上级 b85cf734
...@@ -1633,6 +1633,8 @@ int nvme_init_identify(struct nvme_ctrl *ctrl) ...@@ -1633,6 +1633,8 @@ int nvme_init_identify(struct nvme_ctrl *ctrl)
} }
} else { } else {
ctrl->cntlid = le16_to_cpu(id->cntlid); ctrl->cntlid = le16_to_cpu(id->cntlid);
ctrl->hmpre = le32_to_cpu(id->hmpre);
ctrl->hmmin = le32_to_cpu(id->hmmin);
} }
kfree(id); kfree(id);
......
...@@ -166,6 +166,9 @@ struct nvme_ctrl { ...@@ -166,6 +166,9 @@ struct nvme_ctrl {
/* Power saving configuration */ /* Power saving configuration */
u64 ps_max_latency_us; u64 ps_max_latency_us;
u32 hmpre;
u32 hmmin;
/* Fabrics only */ /* Fabrics only */
u16 sqsize; u16 sqsize;
u32 ioccsz; u32 ioccsz;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册