Skip to content

Commit 827e664

Browse files
authoredMar 18, 2019
Merge pull request #449 from PavamanSubramaniyam/EnergyScale_P9_platforms
Adding power limit support for P9 platforms
2 parents bfb9290 + 120b8db commit 827e664

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed
 

‎OpTestConfiguration.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ def get_parser():
263263

264264
hostgroup.add_argument("--platform",
265265
help="Platform (used for EnergyScale tests)",
266-
choices=['unknown','habanero','firestone','garrison','firenze','p9dsu'])
266+
choices=['unknown','habanero','firestone','garrison','firenze','p9dsu','witherspoon'])
267267

268268
osgroup = parser.add_argument_group('OS Images', 'OS Images to boot/install')
269269
osgroup.add_argument("--os-cdrom", help="OS CD/DVD install image", default=None)

‎common/OpTestConstants.py

+8
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ class OpTestConstants():
4242
FIRESTONE = "firestone"
4343
PALMETTO = "palmetto"
4444
GARRISON = 'garrison'
45+
P9DSU = "p9dsu"
46+
WITHERSPOON = "witherspoon"
47+
4548

4649
# Platform power limits in watts for different platforms taken from MRW xml file
4750
HABANERO_POWER_LIMIT_LOW = "1000"
@@ -50,6 +53,11 @@ class OpTestConstants():
5053
FIRESTONE_POWER_LIMIT_HIGH = "1820"
5154
GARRISON_POWER_LIMIT_LOW = "1240"
5255
GARRISON_POWER_LIMIT_HIGH = "2880"
56+
P9DSU_POWER_LIMIT_LOW = "1550"
57+
P9DSU_POWER_LIMIT_HIGH = "1650"
58+
WITHERSPOON_POWER_LIMIT_LOW = "1550"
59+
WITHERSPOON_POWER_LIMIT_HIGH = "3050"
60+
5361

5462
PRIMARY_SIDE = "0x0080"
5563
GOLDEN_SIDE = "0x0180"

‎testcases/OpTestEnergyScale.py

+6
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,12 @@ def get_platform_power_limits(self, i_platform):
8080
elif BMC_CONST.GARRISON in l_platform:
8181
l_power_limit_high = BMC_CONST.GARRISON_POWER_LIMIT_HIGH
8282
l_power_limit_low = BMC_CONST.GARRISON_POWER_LIMIT_LOW
83+
elif BMC_CONST.WITHERSPOON in l_platform:
84+
l_power_limit_high = BMC_CONST.WITHERSPOON_POWER_LIMIT_HIGH
85+
l_power_limit_low = BMC_CONST.WITHERSPOON_POWER_LIMIT_LOW
86+
elif BMC_CONST.P9DSU in l_platform:
87+
l_power_limit_high = BMC_CONST.P9DSU_POWER_LIMIT_HIGH
88+
l_power_limit_low = BMC_CONST.P9DSU_POWER_LIMIT_LOW
8389
else:
8490
l_msg = "New platform, add power limit support to this platform and retry"
8591
raise OpTestError(l_msg)

0 commit comments

Comments
 (0)
Please sign in to comment.