[SWDEV-551309] Adjusted amdsmitst and reset command (#654)

* Adjusted amdsmitst and reset command to account for separation of power profile and perf level behavior
* Updated test to reset power profile to previous user setting
* Removed performance level from reset_profile_results in reset --profile command
* Updated Changelog with change to reset profile behavior

---------

Signed-off-by: gabrpham_amdeng <Gabriel.Pham@amd.com>
这个提交包含在:
Pham, Gabriel 编写, GitHub 于 2025-09-09 16:11:07 -05:00 提交
1 父节点 fd5eb4e963
当前提交 954d4860c1
3 个文件已更改
+8 -21

没有与搜索条件相匹配的文件

@@ -162,16 +162,11 @@ void TestPowerReadWrite::Run(void) {
ASSERT_EQ(status.current, new_prof);
// Reset the state of perf level and power profile after testing
ret = amdsmi_set_gpu_perf_level(processor_handles_[dv_ind], AMDSMI_DEV_PERF_LEVEL_AUTO);
CHK_ERR_ASRT(ret)
CHK_ERR_ASRT(ret);
ret = amdsmi_get_gpu_perf_level(processor_handles_[dv_ind], &pfl);
CHK_ERR_ASRT(ret)
ASSERT_EQ(pfl, AMDSMI_DEV_PERF_LEVEL_AUTO);
ret = amdsmi_get_gpu_power_profile_presets(processor_handles_[dv_ind], 0, &status);
CHK_ERR_ASRT(ret)
ASSERT_EQ(status.current, orig_profile);
ret = amdsmi_set_gpu_power_profile(processor_handles_[dv_ind], 0, orig_profile);
CHK_ERR_ASRT(ret);
}
}