configurations: update harma_mb.json

update Harma MB threshold and power state

1. Add CPU, DIMM temperature LCR threshold
2. Update the power state for most sensors

Change-Id: I3816ca4e213cfa75eef12dea8960e1b36e1195d6
Signed-off-by: Daniel Hsu <Daniel-Hsu@quantatw.com>
diff --git a/configurations/harma_mb.json b/configurations/harma_mb.json
index 5dc49b7..97a29cd 100644
--- a/configurations/harma_mb.json
+++ b/configurations/harma_mb.json
@@ -13,16 +13,16 @@
             "ScaleFactor": 0.333333333,
             "Thresholds": [
                 {
-                    "Direction": "greater than",
-                    "Name": "upper critical",
-                    "Severity": 1,
-                    "Value": 3.4
-                },
-                {
                     "Direction": "less than",
                     "Name": "lower critical",
                     "Severity": 1,
                     "Value": 2.0
+                },
+                {
+                    "Direction": "greater than",
+                    "Name": "upper critical",
+                    "Severity": 1,
+                    "Value": 3.4
                 }
             ],
             "Type": "ADC"
@@ -255,13 +255,6 @@
             "PowerState": "On",
             "Thresholds": [
                 {
-                    "Direction": "greater than",
-                    "Label": "in1",
-                    "Name": "upper critical",
-                    "Severity": 1,
-                    "Value": 13.2
-                },
-                {
                     "Direction": "less than",
                     "Label": "in1",
                     "Name": "lower critical",
@@ -270,6 +263,13 @@
                 },
                 {
                     "Direction": "greater than",
+                    "Label": "in1",
+                    "Name": "upper critical",
+                    "Severity": 1,
+                    "Value": 13.2
+                },
+                {
+                    "Direction": "greater than",
                     "Label": "curr1",
                     "Name": "upper critical",
                     "Severity": 1,
@@ -300,13 +300,6 @@
             "PowerState": "On",
             "Thresholds": [
                 {
-                    "Direction": "greater than",
-                    "Label": "in1",
-                    "Name": "upper critical",
-                    "Severity": 1,
-                    "Value": 13.2
-                },
-                {
                     "Direction": "less than",
                     "Label": "in1",
                     "Name": "lower critical",
@@ -315,6 +308,13 @@
                 },
                 {
                     "Direction": "greater than",
+                    "Label": "in1",
+                    "Name": "upper critical",
+                    "Severity": 1,
+                    "Value": 13.2
+                },
+                {
+                    "Direction": "greater than",
                     "Label": "curr1",
                     "Name": "upper critical",
                     "Severity": 1,
@@ -418,6 +418,13 @@
                     "Value": 65.0
                 },
                 {
+                    "Direction": "less than",
+                    "Label": "temp1",
+                    "Name": "lower critical",
+                    "Severity": 1,
+                    "Value": -1.0
+                },
+                {
                     "Direction": "greater than",
                     "Label": "temp1",
                     "Name": "upper critical",
@@ -504,6 +511,13 @@
                     "Value": 105.0
                 },
                 {
+                    "Direction": "less than",
+                    "Label": "temp1",
+                    "Name": "lower critical",
+                    "Severity": 1,
+                    "Value": -1.0
+                },
+                {
                     "Direction": "greater than",
                     "Label": "temp1",
                     "Name": "upper critical",
@@ -511,6 +525,13 @@
                     "Value": 105.0
                 },
                 {
+                    "Direction": "less than",
+                    "Label": "temp2",
+                    "Name": "lower critical",
+                    "Severity": 1,
+                    "Value": -1.0
+                },
+                {
                     "Direction": "greater than",
                     "Label": "temp2",
                     "Name": "upper critical",
@@ -601,6 +622,13 @@
                     "Value": 120.0
                 },
                 {
+                    "Direction": "less than",
+                    "Label": "temp1",
+                    "Name": "lower critical",
+                    "Severity": 1,
+                    "Value": -1.0
+                },
+                {
                     "Direction": "greater than",
                     "Label": "temp1",
                     "Name": "upper critical",
@@ -608,6 +636,13 @@
                     "Value": 105.0
                 },
                 {
+                    "Direction": "less than",
+                    "Label": "temp2",
+                    "Name": "lower critical",
+                    "Severity": 1,
+                    "Value": -1.0
+                },
+                {
                     "Direction": "greater than",
                     "Label": "temp2",
                     "Name": "upper critical",
@@ -674,17 +709,17 @@
                 },
                 {
                     "Direction": "greater than",
-                    "Label": "temp1",
-                    "Name": "upper critical",
-                    "Severity": 1,
-                    "Value": 80.0
-                },
-                {
-                    "Direction": "greater than",
                     "Label": "pin",
                     "Name": "upper critical",
                     "Severity": 1,
                     "Value": 950.0
+                },
+                {
+                    "Direction": "greater than",
+                    "Label": "temp1",
+                    "Name": "upper critical",
+                    "Severity": 1,
+                    "Value": 80.0
                 }
             ],
             "Type": "MP5990",
@@ -698,18 +733,19 @@
             "Address": "0x6a",
             "Bus": 23,
             "Name": "MB_E1S0_TEMP_C",
+            "PowerState": "On",
             "Thresholds": [
                 {
-                    "Direction": "greater than",
-                    "Name": "upper critical",
-                    "Severity": 1,
-                    "Value": 70
-                },
-                {
                     "Direction": "less than",
                     "Name": "lower critical",
                     "Severity": 1,
                     "Value": 5.0
+                },
+                {
+                    "Direction": "greater than",
+                    "Name": "upper critical",
+                    "Severity": 1,
+                    "Value": 70.0
                 }
             ],
             "Type": "NVME1000"
@@ -718,18 +754,19 @@
             "Address": "0x6a",
             "Bus": 22,
             "Name": "MB_E1S1_TEMP_C",
+            "PowerState": "On",
             "Thresholds": [
                 {
-                    "Direction": "greater than",
-                    "Name": "upper critical",
-                    "Severity": 1,
-                    "Value": 70
-                },
-                {
                     "Direction": "less than",
                     "Name": "lower critical",
                     "Severity": 1,
                     "Value": 5.0
+                },
+                {
+                    "Direction": "greater than",
+                    "Name": "upper critical",
+                    "Severity": 1,
+                    "Value": 70.0
                 }
             ],
             "Type": "NVME1000"
@@ -741,6 +778,12 @@
             "PowerState": "On",
             "Thresholds": [
                 {
+                    "Direction": "less than",
+                    "Name": "lower critical",
+                    "Severity": 1,
+                    "Value": -1.0
+                },
+                {
                     "Direction": "greater than",
                     "Name": "upper critical",
                     "Severity": 1,
@@ -756,6 +799,12 @@
             "PowerState": "On",
             "Thresholds": [
                 {
+                    "Direction": "less than",
+                    "Name": "lower critical",
+                    "Severity": 1,
+                    "Value": -1.0
+                },
+                {
                     "Direction": "greater than",
                     "Name": "upper critical",
                     "Severity": 1,
@@ -853,6 +902,13 @@
                     "Value": 14.0
                 },
                 {
+                    "Direction": "less than",
+                    "Label": "temp1",
+                    "Name": "lower critical",
+                    "Severity": 1,
+                    "Value": -1.0
+                },
+                {
                     "Direction": "greater than",
                     "Label": "temp1",
                     "Name": "upper critical",
@@ -860,6 +916,13 @@
                     "Value": 80.0
                 },
                 {
+                    "Direction": "less than",
+                    "Label": "temp2",
+                    "Name": "lower critical",
+                    "Severity": 1,
+                    "Value": -1.0
+                },
+                {
                     "Direction": "greater than",
                     "Label": "temp2",
                     "Name": "upper critical",
@@ -867,6 +930,13 @@
                     "Value": 80.0
                 },
                 {
+                    "Direction": "less than",
+                    "Label": "temp3",
+                    "Name": "lower critical",
+                    "Severity": 1,
+                    "Value": -1.0
+                },
+                {
                     "Direction": "greater than",
                     "Label": "temp3",
                     "Name": "upper critical",
@@ -874,6 +944,13 @@
                     "Value": 80.0
                 },
                 {
+                    "Direction": "less than",
+                    "Label": "temp4",
+                    "Name": "lower critical",
+                    "Severity": 1,
+                    "Value": -1.0
+                },
+                {
                     "Direction": "greater than",
                     "Label": "temp4",
                     "Name": "upper critical",
@@ -881,6 +958,13 @@
                     "Value": 80.0
                 },
                 {
+                    "Direction": "less than",
+                    "Label": "temp5",
+                    "Name": "lower critical",
+                    "Severity": 1,
+                    "Value": -1.0
+                },
+                {
                     "Direction": "greater than",
                     "Label": "temp5",
                     "Name": "upper critical",
@@ -888,6 +972,13 @@
                     "Value": 80.0
                 },
                 {
+                    "Direction": "less than",
+                    "Label": "temp6",
+                    "Name": "lower critical",
+                    "Severity": 1,
+                    "Value": -1.0
+                },
+                {
                     "Direction": "greater than",
                     "Label": "temp6",
                     "Name": "upper critical",
@@ -895,6 +986,13 @@
                     "Value": 80.0
                 },
                 {
+                    "Direction": "less than",
+                    "Label": "temp7",
+                    "Name": "lower critical",
+                    "Severity": 1,
+                    "Value": -1.0
+                },
+                {
                     "Direction": "greater than",
                     "Label": "temp7",
                     "Name": "upper critical",
@@ -902,6 +1000,13 @@
                     "Value": 80.0
                 },
                 {
+                    "Direction": "less than",
+                    "Label": "temp8",
+                    "Name": "lower critical",
+                    "Severity": 1,
+                    "Value": -1.0
+                },
+                {
                     "Direction": "greater than",
                     "Label": "temp8",
                     "Name": "upper critical",
@@ -932,9 +1037,15 @@
             "Address": "0x4C",
             "Bus": 7,
             "Name": "MB_CPU_TEMP_C",
-            "PowerState": "On",
+            "PowerState": "BiosPost",
             "Thresholds": [
                 {
+                    "Direction": "less than",
+                    "Name": "lower critical",
+                    "Severity": 1,
+                    "Value": -1.0
+                },
+                {
                     "Direction": "greater than",
                     "Name": "upper critical",
                     "Severity": 1,
@@ -949,16 +1060,16 @@
             "Name": "MB_OUTLET_TEMP_C",
             "Thresholds": [
                 {
-                    "Direction": "greater than",
-                    "Name": "upper critical",
-                    "Severity": 1,
-                    "Value": 80.0
-                },
-                {
                     "Direction": "less than",
                     "Name": "lower critical",
                     "Severity": 1,
                     "Value": 5.0
+                },
+                {
+                    "Direction": "greater than",
+                    "Name": "upper critical",
+                    "Severity": 1,
+                    "Value": 80.0
                 }
             ],
             "Type": "TMP75"
@@ -969,16 +1080,16 @@
             "Name": "MB_INLET_TEMP_C",
             "Thresholds": [
                 {
-                    "Direction": "greater than",
-                    "Name": "upper critical",
-                    "Severity": 1,
-                    "Value": 60.0
-                },
-                {
                     "Direction": "less than",
                     "Name": "lower critical",
                     "Severity": 1,
                     "Value": 5.0
+                },
+                {
+                    "Direction": "greater than",
+                    "Name": "upper critical",
+                    "Severity": 1,
+                    "Value": 60.0
                 }
             ],
             "Type": "TMP75"