Lines Matching +full:keys +full:- +full:per +full:- +full:group

13 # * intel-speed-select tool from the kernel source tree
14 # (tools/power/x86/intel-speed-select), and available in the PATH.
29 # For TPMI-based CPUs, we only care about powerdomain-0
30 cpus = list(sst_data.keys())
32 match = re.search("powerdomain-(\\d+)", proc)
33 if not match or match.group(1) == "0":
41 "intel-speed-select",
42 "--debug",
43 "--format=json",
44 "perf-profile",
58 logical_thread = int(match.group(1))
59 physical_core = int(match.group(2))
64 "intel-speed-select",
65 "--format=json",
66 "perf-profile",
67 "get-config-current-level",
96 num = match.group(1)
98 for key in linux_data.keys():
99 if re.match(f"^package-{num}:.*", key):
109 print(f"--Checking {redfish_config['Id']}--")
112 int(linux_config["base-frequency(MHz)"]),
127 if "speed-select-base-freq-properties" in linux_config:
128 exp_bf_props = linux_config["speed-select-base-freq-properties"]
129 exp_hp_p1 = int(exp_bf_props["high-priority-base-frequency(MHz)"])
133 map(int, exp_bf_props["high-priority-cpu-list"].split(",")),
136 exp_lp_p1 = int(exp_bf_props["low-priority-base-frequency(MHz)"])
138 compare(actual_hp_p1, exp_hp_p1, "SST-BF High Priority P1 Freq")
139 compare(actual_hp_cores, exp_hp_cores, "SST-BF High Priority Core List")
140 compare(actual_lp_p1, exp_lp_p1, "SST-BF Low Priority P1 Freq")
144 int(linux_config["tjunction-max(C)"]),
147 # There is no equivalent value in linux for the per-level P0_1 freq.
151 int(linux_config["thermal-design-power(W)"]),
156 int(linux_config["enable-cpu-count"]) // 2,
165 linux_config.get("turbo-ratio-limits-sse")
166 or linux_config["turbo-ratio-limits-level-0"]
169 for bucket_key in sorted(linux_turbo.keys()):
173 int(bucket["core-count"]),
174 int(bucket["max-turbo-frequency(MHz)"]),
184 return match.group(1)
192 parser.add_argument("--username", "-u", default="root")
193 parser.add_argument("--password", "-p", default="0penBmc")
211 print(f"----Checking Processor {proc_id}----")
217 # Get subset of intel-speed-select data which applies to this CPU
223 ].split("/")[-1]
227 pkg_data["get-config-current_level"],
231 exp_cur_level_data = pkg_data[f"perf-profile-level-{current_level}"]
233 # Check whether SST-BF is enabled
235 exp_bf_enabled = exp_cur_level_data["speed-select-base-freq"]
238 compare(bf_enabled, exp_bf_enabled, "SST-BF Enabled?")
243 if "speed-select-base-freq-properties" in exp_cur_level_data:
245 "speed-select-base-freq-properties"
246 ]["high-priority-cpu-list"]
260 lambda x: x.startswith("perf-profile-level"), pkg_data.keys()
273 exp_level_data = pkg_data[f"perf-profile-level-{level}"]