forked from sonic-net/sonic-buildimage
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add dynamic minimum fan speed support #9
Closed
Closed
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
45f1229
[thermal control] Fix pmon docker stop issue on 3800
Junchao-Mellanox 23bf172
[thermal fix] Fix QA test issue
Junchao-Mellanox a1aaa93
Fix thermal control issues
stephenxs 7f341f9
[thermal fix] change psu._get_power_available_status to psu.get_power…
Junchao-Mellanox 3206e95
[thermal fix] adjust log for PSU absence and power absence
Junchao-Mellanox 4e689ac
[thermal fix] add unit test for loading thermal policy file with dupl…
Junchao-Mellanox 0b45c45
[thermal] fix fan.get_presence for non-removable SKU
Junchao-Mellanox bdfc652
[thermal fix] fix issue: fan direction is based on drawer
Junchao-Mellanox 80e0b88
Fix issue: when fan is not present, should not read fan direction fro…
Junchao-Mellanox 5b46d6f
[thermal fix] add unit test for get_direction for absent FAN
Junchao-Mellanox 2d42cd3
Unplugable PSU has no FAN, no need add a FAN object for this PSU
Junchao-Mellanox 6f80098
1. Enable thermal alogrithm by default; 2. set cooling level before s…
Junchao-Mellanox d891200
start thermal algorithm should also check thermal zone temperature
Junchao-Mellanox 71c3665
Should write string to file
Junchao-Mellanox f409195
We should force enable or disable thermal algo when thermal control d…
Junchao-Mellanox 12a9d8f
Change thermal algorithm status should also change thermal zone policy
Junchao-Mellanox 527679a
Merge remote-tracking branch 'origin/master' into thermal-algo-fix
Junchao-Mellanox 766aff0
Add fan speed dynamic minimum value
Junchao-Mellanox 1bcec63
Add unit test for DynamicMinCoolingLevelPolicy
Junchao-Mellanox c6ed366
If current cooling state below minimum cooling state, set it to minim…
Junchao-Mellanox 5541d71
Fix review comment by Kebo
Junchao-Mellanox File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
134 changes: 134 additions & 0 deletions
134
platform/mellanox/mlnx-platform-api/sonic_platform/device_data.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,134 @@ | ||
DEVICE_DATA = { | ||
'ACS-MSN2700': { | ||
'thermal': { | ||
'minimum_table': { | ||
"p2c_trust": {"-127:40":13, "41:120":15}, | ||
"p2c_untrust": {"-127:25":13, "26:30":14 , "31:35":15, "36:120":16}, | ||
"c2p_trust": {"-127:20":13, "21:25":14 , "26:30":15, "31:120":16}, | ||
"c2p_untrust": {"-127:20":13, "21:25":14 , "26:30":15, "31:120":16}, | ||
"unk_trust": {"-127:20":13, "21:25":14 , "26:30":15, "31:120":16}, | ||
"unk_untrust": {"-127:20":13, "21:25":14 , "26:30":15, "31:120":16} | ||
} | ||
} | ||
}, | ||
'LS-SN2700': { | ||
'thermal': { | ||
'minimum_table': { | ||
"p2c_trust": {"-127:40":13, "41:120":15}, | ||
"p2c_untrust": {"-127:25":13, "26:30":14 , "31:35":15, "36:120":16}, | ||
"c2p_trust": {"-127:20":13, "21:25":14 , "26:30":15, "31:120":16}, | ||
"c2p_untrust": {"-127:20":13, "21:25":14 , "26:30":15, "31:120":16}, | ||
"unk_trust": {"-127:20":13, "21:25":14 , "26:30":15, "31:120":16}, | ||
"unk_untrust": {"-127:20":13, "21:25":14 , "26:30":15, "31:120":16} | ||
} | ||
} | ||
}, | ||
'ACS-MSN2740': { | ||
'thermal': { | ||
'minimum_table': { | ||
"p2c_trust": {"-127:120":13}, | ||
"p2c_untrust": {"-127:35":13, "36:40":14 , "41:120":15}, | ||
"c2p_trust": {"-127:120":13}, | ||
"c2p_untrust": {"-127:15":13, "16:30":14 , "31:35":15, "36:120":17}, | ||
"unk_trust": {"-127:120":13}, | ||
"unk_untrust": {"-127:15":13, "16:30":14 , "31:35":15, "36:120":17}, | ||
} | ||
} | ||
}, | ||
'ACS-MSN2410': { | ||
'thermal': { | ||
'minimum_table': { | ||
"p2c_trust": {"-127:40":13, "41:120":15}, | ||
"p2c_untrust": {"-127:25":13, "26:30":14 , "31:35":15, "36:120":16}, | ||
"c2p_trust": {"-127:20":13, "21:25":14 , "26:30":15, "31:120":16}, | ||
"c2p_untrust": {"-127:20":13, "21:25":14 , "26:30":15, "31:120":16}, | ||
"unk_trust": {"-127:20":13, "21:25":14 , "26:30":15, "31:120":16}, | ||
"unk_untrust": {"-127:20":13, "21:25":14 , "26:30":15, "31:120":16} | ||
} | ||
} | ||
}, | ||
'Mellanox-SN2700': { | ||
'thermal': { | ||
'minimum_table': { | ||
"p2c_trust": {"-127:40":13, "41:120":15}, | ||
"p2c_untrust": {"-127:25":13, "26:30":14 , "31:35":15, "36:120":16}, | ||
"c2p_trust": {"-127:20":13, "21:25":14 , "26:30":15, "31:120":16}, | ||
"c2p_untrust": {"-127:20":13, "21:25":14 , "26:30":15, "31:120":16}, | ||
"unk_trust": {"-127:20":13, "21:25":14 , "26:30":15, "31:120":16}, | ||
"unk_untrust": {"-127:20":13, "21:25":14 , "26:30":15, "31:120":16} | ||
} | ||
} | ||
}, | ||
'Mellanox-SN2700-D48C8': { | ||
'thermal': { | ||
'minimum_table': { | ||
"p2c_trust": {"-127:40":13, "41:120":15}, | ||
"p2c_untrust": {"-127:25":13, "26:30":14 , "31:35":15, "36:120":16}, | ||
"c2p_trust": {"-127:20":13, "21:25":14 , "26:30":15, "31:120":16}, | ||
"c2p_untrust": {"-127:20":13, "21:25":14 , "26:30":15, "31:120":16}, | ||
"unk_trust": {"-127:20":13, "21:25":14 , "26:30":15, "31:120":16}, | ||
"unk_untrust": {"-127:20":13, "21:25":14 , "26:30":15, "31:120":16} | ||
} | ||
} | ||
}, | ||
'ACS-MSN2100': { | ||
'thermal': { | ||
'minimum_table': { | ||
"p2c_trust": {"-127:120":12}, | ||
"p2c_untrust": {"-127:15":12, "16:25":13, "26:30":14, "31:35":15, "36:120":16}, | ||
"c2p_trust": {"-127:40":12, "41:120":13}, | ||
"c2p_untrust": {"-127:40":12, "41:120":13}, | ||
"unk_trust": {"-127:40":12, "41:120":13}, | ||
"unk_untrust": {"-127:15":12, "16:25":13, "26:30":14, "31:35":15, "36:120":16} | ||
} | ||
} | ||
}, | ||
'ACS-MSN2010': { | ||
'thermal': { | ||
'minimum_table': { | ||
"p2c_trust": {"-127:120":12}, | ||
"p2c_untrust": {"-127:15":12, "16:20":13, "21:30":14, "31:35":15, "36:120":16}, | ||
"c2p_trust": {"-127:120":12}, | ||
"c2p_untrust": {"-127:20":12, "21:25":13 , "26:30":14, "31:35":15, "36:120":16}, | ||
"unk_trust": {"-127:120":12}, | ||
"unk_untrust": {"-127:15":12, "16:20":13 , "21:30":14, "31:35":15, "36:120":16} | ||
} | ||
} | ||
}, | ||
'ACS-MSN3700': { | ||
'thermal': { | ||
'minimum_table': { | ||
"p2c_trust": {"-127:25":12, "26:40":13 , "41:120":14}, | ||
"p2c_untrust": {"-127:15":12, "16:30":13 , "31:35":14, "36:40":15, "41:120":16}, | ||
"c2p_trust": {"-127:25":12, "26:40":13 , "41:120":14}, | ||
"c2p_untrust": {"-127:25":12, "26:40":13 , "41:120":14}, | ||
"unk_trust": {"-127:25":12, "26:40":13 , "41:120":14}, | ||
"unk_untrust": {"-127:15":12, "16:30":13 , "31:35":14, "36:40":15, "41:120":16}, | ||
} | ||
} | ||
}, | ||
'ACS-MSN3800': { | ||
'thermal': { | ||
'minimum_table': { | ||
"p2c_trust": {"-127:35":12, "36:120":13}, | ||
"p2c_untrust": {"-127:0":12, "1:10":13 , "11:15":14, "16:20":15, "21:35":16, "36:120":17}, | ||
"c2p_trust": {"-127:30":12, "31:40":13 , "41:120":14}, | ||
"c2p_untrust": {"-127:20":12, "21:30":13 , "31:35":14, "36:40":15, "41:120":16}, | ||
"unk_trust": {"-127:30":12, "31:40":13 , "41:120":14}, | ||
"unk_untrust": {"-127:0":12, "1:10":13 , "11:15":14, "16:20":15, "21:35":16, "36:120":17}, | ||
} | ||
} | ||
}, | ||
'Mellanox-SN3800-D112C8': { | ||
'thermal': { | ||
'minimum_table': { | ||
"p2c_trust": {"-127:35":12, "36:120":13}, | ||
"p2c_untrust": {"-127:0":12, "1:10":13 , "11:15":14, "16:20":15, "21:35":16, "36:120":17}, | ||
"c2p_trust": {"-127:30":12, "31:40":13 , "41:120":14}, | ||
"c2p_untrust": {"-127:20":12, "21:30":13 , "31:35":14, "36:40":15, "41:120":16}, | ||
"unk_trust": {"-127:30":12, "31:40":13 , "41:120":14}, | ||
"unk_untrust": {"-127:0":12, "1:10":13 , "11:15":14, "16:20":15, "21:35":16, "36:120":17}, | ||
} | ||
} | ||
}, | ||
} | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know we don't have the table for 4700 yet, what's the behavior on 4700 w/o this table?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minimum FAN speed of 4700 is 60%
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should follow up when can we have the table for 4700.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure