aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/nvdimm
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2018-06-13 14:31:18 -0700
committerDan Williams <dan.j.williams@intel.com>2018-07-14 10:27:00 -0700
commite5d772fbe7685aae0dff99f3b54158a0ec32155e (patch)
tree48a42a0e9abfe525e182afea98fe1cfe72b8e40b /tools/testing/nvdimm
parenttools/testing/nvdimm: Make DSM failure code injection an override (diff)
downloadlinux-dev-e5d772fbe7685aae0dff99f3b54158a0ec32155e.tar.xz
linux-dev-e5d772fbe7685aae0dff99f3b54158a0ec32155e.zip
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: cdd77d3e1930 ("nfit, libnvdimm: deprecate the generic SMART ioctl") Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'tools/testing/nvdimm')
-rw-r--r--tools/testing/nvdimm/test/nfit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/testing/nvdimm/test/nfit.c b/tools/testing/nvdimm/test/nfit.c
index 353a32ed96bc..a012ab765083 100644
--- a/tools/testing/nvdimm/test/nfit.c
+++ b/tools/testing/nvdimm/test/nfit.c
@@ -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,