[SWDEV-509287] Fixed metric command issue with min_clk and deep sleep (#131)

Improved deep sleep detection

Change-Id: I4179084da6c2849275957adb7b57797846a0f748
Signed-off-by: gabrpham <Gabriel.Pham@amd.com>
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
Co-authored-by: Maisam Arif <Maisam.Arif@amd.com>
Bu işleme şunda yer alıyor:
Pham, Gabriel
2025-02-26 03:00:04 -06:00
işlemeyi yapan: GitHub
ebeveyn 70fad049df
işleme 71a8f35a7d
2 değiştirilmiş dosya ile 23 ekleme ve 41 silme
+5
Dosyayı Görüntüle
@@ -310,6 +310,11 @@ amdsmi_status_t smi_amdgpu_get_ranges(amd::smi::AMDSmiGPUDevice* device, amdsmi_
return AMDSMI_STATUS_NO_DATA;
}
} else {
// skip this line if it contains a * which indicates the current level
const char *current_indicator = strstr(line.c_str(), "*");
if (current_indicator != nullptr){
continue;
}
if (sscanf(line.c_str(), "%u: %d%c", &dpm_level, &freq, str) <= 2){
ranges.close();
return AMDSMI_STATUS_IO;