Commit e5d772fb authored by Dan Williams's avatar Dan Williams

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: cdd77d3e ("nfit, libnvdimm: deprecate the generic SMART ioctl")
Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
parent 39611e83
...@@ -1323,7 +1323,8 @@ static void smart_init(struct nfit_test *t) ...@@ -1323,7 +1323,8 @@ static void smart_init(struct nfit_test *t)
| ND_INTEL_SMART_ALARM_VALID | ND_INTEL_SMART_ALARM_VALID
| ND_INTEL_SMART_USED_VALID | ND_INTEL_SMART_USED_VALID
| ND_INTEL_SMART_SHUTDOWN_VALID | ND_INTEL_SMART_SHUTDOWN_VALID
| ND_INTEL_SMART_MTEMP_VALID, | ND_INTEL_SMART_MTEMP_VALID
| ND_INTEL_SMART_CTEMP_VALID,
.health = ND_INTEL_SMART_NON_CRITICAL_HEALTH, .health = ND_INTEL_SMART_NON_CRITICAL_HEALTH,
.media_temperature = 23 * 16, .media_temperature = 23 * 16,
.ctrl_temperature = 25 * 16, .ctrl_temperature = 25 * 16,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment