Commit a4521c71 authored by Marcin Galecki's avatar Marcin Galecki Committed by Jim Harris
Browse files

lib/nvmf: implement WCTEMP and CCTEMP



NVMe 1.3d, section 5.15.3, Figure 112, specifies for Identify
Controller fields WCTEMP and CCTEMP that:
"Implementations compliant to revision 1.2 or later of this
specification shall report a non-zero value in this field."

To conform to the NVMe specification, set WCTEMP to the
recommended value of 0157h (343 K, 70 deg C).
Set CCTEMP to a dummy value of 0175h (373 K, 100 deg C).

Change-Id: Id81841c1bd98c9ce6886781e6994d9395d2d57ce
Signed-off-by: default avatarMarcin Galecki <marcin.galecki@dell.com>
Reviewed-on: https://review.spdk.io/c/spdk/spdk/+/26523


Tested-by: default avatarSPDK Automated Test System <spdkbot@gmail.com>
Reviewed-by: default avatarJim Harris <jim.harris@nvidia.com>
Community-CI: Mellanox Build Bot
Reviewed-by: default avatarBen Walker <ben@nvidia.com>
parent 3b999711
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2939,6 +2939,8 @@ spdk_nvmf_ctrlr_identify_ctrlr(struct spdk_nvmf_ctrlr *ctrlr, struct spdk_nvme_c
	cdata->sgls = ctrlr->cdata.sgls;
	cdata->fuses = ctrlr->cdata.fuses;
	cdata->acwu = 0; /* ACWU is 0-based. */
	cdata->wctemp = 0x0157; /* Recommended value from NVMe 1.3d spec. */
	cdata->cctemp = 0x0175;
	if (subsystem->flags.ana_reporting) {
		cdata->mnan = subsystem->max_nsid;
	}