Skip to content

Commit 4d01052

Browse files
committed
hw-mgmt: thermal-control: Fix overlapping range keys in configs
Fix overlapping range keys in thermal config JSONs - psu_fan_pwm_decode: "11:21" -> "11:20" (20 files, overlap with "21:30") - dmin P2C untrusted: "36:120": 60 -> "41:120": 60 (6 files, overlap with "36:40") Signed-off-by: Oleksandr Shamray <oleksandrs@nvidia.com>
1 parent 81b8f6c commit 4d01052

20 files changed

+26
-26
lines changed

usr/etc/hw-management-thermal/tc_config_default.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"sensor_read_error" : {"-127:120": 100}
2929
}
3030
},
31-
"psu_fan_pwm_decode" : {"0:10": 10, "11:21": 20, "21:30": 30, "31:40": 40, "41:50": 50, "51:60": 60, "61:70": 70, "71:80": 80, "81:90": 90, "91:100": 100},
31+
"psu_fan_pwm_decode" : {"0:10": 10, "11:20": 20, "21:30": 30, "31:40": 40, "41:50": 50, "51:60": 60, "61:70": 70, "71:80": 80, "81:90": 90, "91:100": 100},
3232
"fan_trend" : {
3333
"C2P": {
3434
"0" : {"rpm_min":0, "rpm_max":0, "slope": 150, "pwm_min" : 101, "pwm_max_reduction" : 10},

usr/etc/hw-management-thermal/tc_config_mqm8700.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"sensor_read_error" : {"-127:120": 70}
1616
},
1717
"P2C": {
18-
"untrusted": {"-127:15": 20, "16:30": 30, "31:35": 40, "36:40": 50, "36:120": 60},
18+
"untrusted": {"-127:15": 20, "16:30": 30, "31:35": 40, "36:40": 50, "41:120": 60},
1919
"fan_err": {
2020
"tacho": {"-127:25": 20, "26:40": 30, "41:120": 40},
2121
"direction": {"-127:25": 20, "26:40": 30, "41:120": 40},
@@ -28,7 +28,7 @@
2828
"sensor_read_error" : {"-127:120": 60}
2929
}
3030
},
31-
"psu_fan_pwm_decode" : {"0:10": 10, "11:21": 20, "21:30": 30, "31:40": 40, "41:50": 50, "51:60": 60, "61:70": 60, "71:80": 60, "81:90": 60, "91:100": 60},
31+
"psu_fan_pwm_decode" : {"0:10": 10, "11:20": 20, "21:30": 30, "31:40": 40, "41:50": 50, "51:60": 60, "61:70": 60, "71:80": 60, "81:90": 60, "91:100": 60},
3232
"fan_trend" : {
3333
"C2P": {
3434
"0" : {"rpm_min":5400, "rpm_max":23000, "slope": 221, "pwm_min" : 20, "pwm_max_reduction" : 10},

usr/etc/hw-management-thermal/tc_config_mqm9700.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"sensor_read_error" : {"-127:120": 60}
2929
}
3030
},
31-
"psu_fan_pwm_decode" : {"0:10": 10, "11:21": 20, "21:30": 30, "31:40": 40, "41:50": 50, "51:60": 60, "61:70": 70, "71:80": 80, "81:90": 90, "91:100": 100},
31+
"psu_fan_pwm_decode" : {"0:10": 10, "11:20": 20, "21:30": 30, "31:40": 40, "41:50": 50, "51:60": 60, "61:70": 70, "71:80": 80, "81:90": 90, "91:100": 100},
3232
"fan_trend" : {
3333
"C2P": {
3434
"0" : {"rpm_min":6150, "rpm_max":29700, "slope": 294.6, "pwm_min" : 20, "pwm_max_reduction" : 3},

usr/etc/hw-management-thermal/tc_config_mqm9701.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"sensor_read_error" : {"-127:120": 60}
3030
}
3131
},
32-
"psu_fan_pwm_decode" : {"0:10": 10, "11:21": 20, "21:30": 30, "31:40": 40, "41:50": 50, "51:60": 60, "61:70": 70, "71:80": 80, "81:90": 90, "91:100": 100},
32+
"psu_fan_pwm_decode" : {"0:10": 10, "11:20": 20, "21:30": 30, "31:40": 40, "41:50": 50, "51:60": 60, "61:70": 70, "71:80": 80, "81:90": 90, "91:100": 100},
3333
"fan_trend" : {
3434
"C2P": {
3535
"0" : {"rpm_min":6150, "rpm_max":29700, "slope": 294.6, "pwm_min" : 20, "pwm_max_reduction" : 3},

usr/etc/hw-management-thermal/tc_config_msb7xxx.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"sensor_read_error" : {"-127:25": 30, "26:30": 40, "31:35": 50, "36:120": 60}
2929
}
3030
},
31-
"psu_fan_pwm_decode" : {"0:10": 10, "11:21": 20, "21:30": 30, "31:40": 40, "41:50": 50, "51:100": 60},
31+
"psu_fan_pwm_decode" : {"0:10": 10, "11:20": 20, "21:30": 30, "31:40": 40, "41:50": 50, "51:100": 60},
3232
"fan_trend" : {
3333
"C2P": {
3434
"0" : {"rpm_min":6300, "rpm_max":21000, "slope": 207.1, "pwm_min" : 30, "pwm_max_reduction" : 10},

usr/etc/hw-management-thermal/tc_config_msn2201.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"sensor_read_error":{"-127:20": 20, "21:30": 30, "31:40": 40, "41:120": 50}
2929
}
3030
},
31-
"psu_fan_pwm_decode" : {"0:10": 10, "11:21": 20, "21:30": 30, "31:40": 40, "41:50": 50, "51:60": 60, "61:70": 70, "71:80": 80, "81:90": 90, "91:100": 100},
31+
"psu_fan_pwm_decode" : {"0:10": 10, "11:20": 20, "21:30": 30, "31:40": 40, "41:50": 50, "51:60": 60, "61:70": 70, "71:80": 80, "81:90": 90, "91:100": 100},
3232
"fan_trend" : {
3333
"C2P": {
3434
"0" : {"rpm_min":1983, "rpm_max":22000, "slope": 227, "pwm_min" : 10, "pwm_max_reduction" : 10},

usr/etc/hw-management-thermal/tc_config_msn2410.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"sensor_read_error" : {"-127:25": 30, "26:30": 40, "31:35": 50, "36:120": 60}
2929
}
3030
},
31-
"psu_fan_pwm_decode" : {"0:10": 10, "11:21": 20, "21:30": 30, "31:40": 40, "41:50": 50, "51:100": 60},
31+
"psu_fan_pwm_decode" : {"0:10": 10, "11:20": 20, "21:30": 30, "31:40": 40, "41:50": 50, "51:100": 60},
3232
"fan_trend" : {
3333
"C2P": {
3434
"0" : {"rpm_min":6300, "rpm_max":21000, "slope": 207.1, "pwm_min" : 30, "pwm_max_reduction" : 10},

usr/etc/hw-management-thermal/tc_config_msn2700.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"sensor_read_error" : {"-127:25": 30, "26:30": 40, "31:35": 50, "36:120": 60}
2929
}
3030
},
31-
"psu_fan_pwm_decode" : {"0:10": 10, "11:21": 20, "21:30": 30, "31:40": 40, "41:50": 50, "51:100": 60},
31+
"psu_fan_pwm_decode" : {"0:10": 10, "11:20": 20, "21:30": 30, "31:40": 40, "41:50": 50, "51:100": 60},
3232
"fan_trend" : {
3333
"C2P": {
3434
"0" : {"rpm_min":6300, "rpm_max":21000, "slope": 207.1, "pwm_min" : 30, "pwm_max_reduction" : 10},

usr/etc/hw-management-thermal/tc_config_msn27002.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"sensor_read_error" : {"-127:25": 30, "26:30": 40, "31:35": 50, "36:120": 60}
2929
}
3030
},
31-
"psu_fan_pwm_decode" : {"0:10": 10, "11:21": 20, "21:30": 30, "31:40": 40, "41:50": 50, "51:100": 60},
31+
"psu_fan_pwm_decode" : {"0:10": 10, "11:20": 20, "21:30": 30, "31:40": 40, "41:50": 50, "51:100": 60},
3232
"fan_trend" : {
3333
"C2P": {
3434
"0" : {"rpm_min":6300, "rpm_max":21000, "slope": 207.1, "pwm_min" : 30, "pwm_max_reduction" : 10},

usr/etc/hw-management-thermal/tc_config_msn3420.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"sensor_read_error" : {"-127:120": 70}
1616
},
1717
"P2C": {
18-
"untrusted": {"-127:15": 20, "16:30": 30, "31:35": 40, "36:40": 50, "36:120": 60},
18+
"untrusted": {"-127:15": 20, "16:30": 30, "31:35": 40, "36:40": 50, "41:120": 60},
1919
"fan_err": {
2020
"tacho": {"-127:35": 20, "36:120": 30},
2121
"present": {"-127:35": 20, "36:120": 30},
@@ -28,7 +28,7 @@
2828
"sensor_read_error" : {"-127:120": 60}
2929
}
3030
},
31-
"psu_fan_pwm_decode" : {"0:10": 10, "11:21": 20, "21:30": 30, "31:40": 40, "41:50": 50, "51:60": 60, "61:70": 60, "71:80": 60, "81:90": 60, "91:100": 60},
31+
"psu_fan_pwm_decode" : {"0:10": 10, "11:20": 20, "21:30": 30, "31:40": 40, "41:50": 50, "51:60": 60, "61:70": 60, "71:80": 60, "81:90": 60, "91:100": 60},
3232
"fan_trend" : {
3333
"C2P": {
3434
"0" : {"rpm_min":5400, "rpm_max":23000, "slope": 221, "pwm_min" : 25, "pwm_max_reduction" : 10},

0 commit comments

Comments
 (0)