summaryrefslogtreecommitdiffstats
path: root/tools/testing
diff options
context:
space:
mode:
authorVishal Verma <vishal.l.verma@intel.com>2018-02-08 14:24:05 -0700
committerDan Williams <dan.j.williams@intel.com>2018-04-05 20:12:00 -0700
commitf6adcca02ca26577692a1f2ee892c134b076b339 (patch)
tree8a8d7c0890770709d5c797a567baac3e6a6b2246 /tools/testing
parent4cf260fc409c73f6e40b3e8061a0cb925703d7ee (diff)
downloadlinux-stable-f6adcca02ca26577692a1f2ee892c134b076b339.tar.gz
linux-stable-f6adcca02ca26577692a1f2ee892c134b076b339.tar.bz2
linux-stable-f6adcca02ca26577692a1f2ee892c134b076b339.zip
libnvdimm, testing: update the default smart ctrl_temperature
The default value for smart ctrl_temperature was the same as the threshold for ctrl_temperature. As a result, any arbitrary smart injection to the nfit_test dimm could cause this alarm to trigger and cause an acpi notification. Drop the default value to below the threshold, so that unrelated injections don't trigger notifications. Cc: Dan Williams <dan.j.williams@intel.com> Signed-off-by: Vishal Verma <vishal.l.verma@intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'tools/testing')
-rw-r--r--tools/testing/nvdimm/test/nfit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/nvdimm/test/nfit.c b/tools/testing/nvdimm/test/nfit.c
index e83c24625fe4..cb166be4918d 100644
--- a/tools/testing/nvdimm/test/nfit.c
+++ b/tools/testing/nvdimm/test/nfit.c
@@ -1259,7 +1259,7 @@ static void smart_init(struct nfit_test *t)
| ND_INTEL_SMART_MTEMP_VALID,
.health = ND_INTEL_SMART_NON_CRITICAL_HEALTH,
.media_temperature = 23 * 16,
- .ctrl_temperature = 30 * 16,
+ .ctrl_temperature = 25 * 16,
.pmic_temperature = 40 * 16,
.spares = 75,
.alarm_flags = ND_INTEL_SMART_SPARE_TRIP