Skip to content

Commit

Permalink
nvme: save hmpre and hmmin in struct nvme_ctrl
Browse files Browse the repository at this point in the history
We'll need the later for the HMB support.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
  • Loading branch information
Christoph Hellwig committed Jun 13, 2017
1 parent b85cf73 commit fe6d53c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/nvme/host/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1633,6 +1633,8 @@ int nvme_init_identify(struct nvme_ctrl *ctrl)
}
} else {
ctrl->cntlid = le16_to_cpu(id->cntlid);
ctrl->hmpre = le32_to_cpu(id->hmpre);
ctrl->hmmin = le32_to_cpu(id->hmmin);
}

kfree(id);
Expand Down
3 changes: 3 additions & 0 deletions drivers/nvme/host/nvme.h
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@ struct nvme_ctrl {
/* Power saving configuration */
u64 ps_max_latency_us;

u32 hmpre;
u32 hmmin;

/* Fabrics only */
u16 sqsize;
u32 ioccsz;
Expand Down

0 comments on commit fe6d53c

Please sign in to comment.