[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>
Dieser Commit ist enthalten in:
1 Ursprung
fd5eb4e963
Commit
954d4860c1
3 Dateien geändert
+8
-21
Keine Dateien entsprechen Ihrer Suche
@@ -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);
|
||||
}
|
||||
}
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren