提交 e5d772fb 编写于 作者: D 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: NDan Williams <dan.j.williams@intel.com>
上级 39611e83
......@@ -1323,7 +1323,8 @@ static void smart_init(struct nfit_test *t)
| ND_INTEL_SMART_ALARM_VALID
| ND_INTEL_SMART_USED_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,
.media_temperature = 23 * 16,
.ctrl_temperature = 25 * 16,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册