From 4565e23acaef1073f8e8024070c604a7a75a0fb9 Mon Sep 17 00:00:00 2001 From: "Pham, Gabriel" Date: Wed, 6 Aug 2025 12:24:02 -0500 Subject: [PATCH] [SWDEV-542706] Corrected get_od_clk_volt_info (#604) Signed-off-by: gabrpham_amdeng [ROCm/amdsmi commit: b916ceedb64998d2599c7131baf16673bbf97931] --- projects/amdsmi/rocm_smi/src/rocm_smi.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/projects/amdsmi/rocm_smi/src/rocm_smi.cc b/projects/amdsmi/rocm_smi/src/rocm_smi.cc index bf061e7cbc..db95372899 100644 --- a/projects/amdsmi/rocm_smi/src/rocm_smi.cc +++ b/projects/amdsmi/rocm_smi/src/rocm_smi.cc @@ -1635,6 +1635,7 @@ static rsmi_status_t get_od_clk_volt_info(uint32_t dv_ind, }; // track the number of keys found, if this goes down to 0 then that means that there is no valid data + const uint8_t kNumStructuredKeysToCheck = 6; uint8_t structured_key_counter = kNumStructuredKeysToCheck; // Validates 'OD_SCLK' is in the structure if (txt_power_dev_od_voltage.contains_structured_key(kTAG_OD_SCLK,