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 <[email protected]>
Signed-off-by: Vishal Verma <[email protected]>
---
 tools/testing/nvdimm/test/nfit.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/testing/nvdimm/test/nfit.c b/tools/testing/nvdimm/test/nfit.c
index 1df6131d569f..1bfe669e22f2 100644
--- a/tools/testing/nvdimm/test/nfit.c
+++ b/tools/testing/nvdimm/test/nfit.c
@@ -1256,7 +1256,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
-- 
2.14.3

_______________________________________________
Linux-nvdimm mailing list
[email protected]
https://lists.01.org/mailman/listinfo/linux-nvdimm

Reply via email to