[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>

[ROCm/amdsmi commit: 954d4860c1]
Αυτή η υποβολή περιλαμβάνεται σε:
Pham, Gabriel authored and GitHub committed 2025-09-09 16:11:07 -05:00
1 γονέας 1a36f2ad0b
υποβολή e9ee0bccf2
3 files changed
+8 -21

No files matched your search

@@ -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);
}
}