fix for cpu enable apb error

Signed-off-by: Deepak Mewar <deepak.mewar@amd.com>
Change-Id: I092b88484046671857c4adbbbeaba78180b103ab


[ROCm/amdsmi commit: 1ac1ee4b9a]
Αυτή η υποβολή περιλαμβάνεται σε:
Deepak Mewar
2024-03-11 12:44:14 +00:00
γονέας 51d25d8feb
υποβολή 16b0ff1657
@@ -3325,18 +3325,13 @@ class AMDSMICommands():
cpu_args_enabled = False
cpu_attributes = ["cpu_pwr_limit", "cpu_xgmi_link_width", "cpu_lclk_dpm_level", "cpu_pwr_eff_mode",
"cpu_gmi3_link_width", "cpu_pcie_link_rate", "cpu_df_pstate_range",
"cpu_disable_apb", "soc_boost_limit"]
"cpu_enable_apb", "cpu_disable_apb", "soc_boost_limit"]
for attr in cpu_attributes:
if hasattr(args, attr):
if getattr(args, attr) is not None:
cpu_args_enabled = True
break
# Check if CPU set argument with store_true has been passed
if hasattr(args, "cpu_enable_apb"):
if getattr(args, attr):
cpu_args_enabled = True
# Check if a Core argument has been set
core_args_enabled = False
core_attributes = ["core_boost_limit"]