Skip to content

Commit e5d772f

Browse files
committed
tools/testing/nvdimm: Fix support for emulating controller temperature
In addition to populating the value the payload also needs to set the "controller temperature valid" flag. Fixes: cdd77d3 ("nfit, libnvdimm: deprecate the generic SMART ioctl") Signed-off-by: Dan Williams <dan.j.williams@intel.com>
1 parent 39611e8 commit e5d772f

File tree

1 file changed

+2
-1
lines changed
  • tools/testing/nvdimm/test

1 file changed

+2
-1
lines changed

tools/testing/nvdimm/test/nfit.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1323,7 +1323,8 @@ static void smart_init(struct nfit_test *t)
13231323
| ND_INTEL_SMART_ALARM_VALID
13241324
| ND_INTEL_SMART_USED_VALID
13251325
| ND_INTEL_SMART_SHUTDOWN_VALID
1326-
| ND_INTEL_SMART_MTEMP_VALID,
1326+
| ND_INTEL_SMART_MTEMP_VALID
1327+
| ND_INTEL_SMART_CTEMP_VALID,
13271328
.health = ND_INTEL_SMART_NON_CRITICAL_HEALTH,
13281329
.media_temperature = 23 * 16,
13291330
.ctrl_temperature = 25 * 16,

0 commit comments

Comments
 (0)