[SWDEV-551309] Adjusted rocmsmitst and --resetprofile command (#769)

This commit is contained in:
gabrpham
2025-09-09 14:32:35 -05:00
committed by GitHub
parent ee38e26ab2
commit 5dbca01d2d
3 changed files with 7 additions and 23 deletions
-4
View File
@@ -1301,10 +1301,6 @@ static rsmi_status_t get_power_profiles(uint32_t dv_ind,
}
assert(val_vec.size() <= RSMI_MAX_NUM_POWER_PROFILES);
if (val_vec.size() > RSMI_MAX_NUM_POWER_PROFILES + 1 || val_vec.empty()) {
// Guest may not have power related information.
if (amd::smi::is_vm_guest()) {
return RSMI_STATUS_NOT_SUPPORTED;
}
return RSMI_STATUS_UNEXPECTED_SIZE;
}
// -1 for the header line, below