Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fe6d53c9 authored by Christoph Hellwig's avatar Christoph Hellwig
Browse files

nvme: save hmpre and hmmin in struct nvme_ctrl



We'll need the later for the HMB support.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarKeith Busch <keith.busch@intel.com>
Reviewed-by: default avatarSagi Grimberg <sagi@grimberg.me>
Reviewed-by: default avatarJohannes Thumshirn <jthumshirn@suse.de>
parent b85cf734
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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);
+3 −0
Original line number Diff line number Diff line
@@ -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;