[Mellanox] [Platform API] Update SN2201 dynamic minimum fan speed table (#12602)

- Why I did it
Update SN2201 dynamic minimum fan speed table according to data provided by the thermal team.

- How I did it
Update the thermal table in device_data.py

- How to verify it
Run platform related regression

Signed-off-by: Kebo Liu <kebol@nvidia.com>
This commit is contained in:
Kebo Liu 2022-11-08 19:37:10 +08:00 committed by Ying Xie
parent 1ea37e2723
commit 38bf957072
2 changed files with 6 additions and 2 deletions

View File

@ -156,6 +156,10 @@ DEVICE_DATA = {
}, },
'x86_64-nvidia_sn2201-r0': { 'x86_64-nvidia_sn2201-r0': {
'thermal': { 'thermal': {
'minimum_table': {
"unk_trust": {"-127:30": 13, "31:35": 14, "36:40": 15, "41:120": 16},
"unk_untrust": {"-127:15": 13, "16:20": 14, "21:25": 15, "26:30": 16, "31:35": 17, "36:40": 18, "41:120": 19},
},
"capability": { "capability": {
"comex_amb": False, "comex_amb": False,
"cpu_amb": True "cpu_amb": True

View File

@ -93,10 +93,10 @@ class TestThermal:
assert gearbox_thermal_count == 2 assert gearbox_thermal_count == 2
assert cpu_thermal_count == 2 assert cpu_thermal_count == 2
@mock.patch('sonic_platform.device_data.DeviceDataManager.get_platform_name', mock.MagicMock(return_value='x86_64-nvidia_sn2201-r0'))
@mock.patch('sonic_platform.device_data.DeviceDataManager.get_thermal_capability', mock.MagicMock(return_value={'comex_amb': False, 'cpu_amb': True, 'swb_amb': True}))
def test_chassis_thermal_includes(self): def test_chassis_thermal_includes(self):
from sonic_platform.thermal import THERMAL_NAMING_RULE from sonic_platform.thermal import THERMAL_NAMING_RULE
DeviceDataManager.get_platform_name = mock.MagicMock(return_value='x86_64-nvidia_sn2201-r0')
DeviceDataManager.get_thermal_capability = mock.MagicMock(return_value={'comex_amb': False, 'cpu_amb': True, 'swb_amb': True})
chassis = Chassis() chassis = Chassis()
thermal_list = chassis.get_all_thermals() thermal_list = chassis.get_all_thermals()
assert thermal_list assert thermal_list