From 25a7ea7c06c16bc53ce2e1eb09dab099ee231548 Mon Sep 17 00:00:00 2001 From: "Bill(Shuzhou) Liu" Date: Tue, 30 Jan 2024 11:12:00 -0600 Subject: [PATCH] UMC ECC count return not supported The current code assume err_count sysfs only have 2 lines, which is changed for umc_err_count by adding extra line for defer errors. The code is changed to relax such check. Change-Id: I7129bfcf9ef47346bca3c5a9535bc8c16c670f88 [ROCm/amdsmi commit: b125f3ee8ffea8d030b8d6f45e011dbd5eeb190d] --- projects/amdsmi/rocm_smi/src/rocm_smi.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/amdsmi/rocm_smi/src/rocm_smi.cc b/projects/amdsmi/rocm_smi/src/rocm_smi.cc index f9845a9dfc..6326abdee9 100755 --- a/projects/amdsmi/rocm_smi/src/rocm_smi.cc +++ b/projects/amdsmi/rocm_smi/src/rocm_smi.cc @@ -736,7 +736,7 @@ rsmi_dev_ecc_count_get(uint32_t dv_ind, rsmi_gpu_block_t block, DEVICE_MUTEX ret = GetDevValueVec(type, dv_ind, &val_vec); - if (val_vec.size() != 2 ) ret = RSMI_STATUS_FILE_ERROR; + if (val_vec.size() < 2 ) ret = RSMI_STATUS_FILE_ERROR; if (ret == RSMI_STATUS_FILE_ERROR || val_vec.size() != 2) { ss << __PRETTY_FUNCTION__ << " | ======= end ======="