SWDEV-403153 - Fixed eeprom hex casting
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I46531bd9ae60947539d4b95e5b21c7008ec0b3ea
[ROCm/amdsmi commit: 8b0b0490d1]
Αυτή η υποβολή περιλαμβάνεται σε:
υποβλήθηκε από
Maisam Arif
γονέας
517ea90c12
υποβολή
7dc9618e77
@@ -496,7 +496,7 @@ class AMDSMICommands():
|
||||
ras_info = amdsmi_interface.amdsmi_get_gpu_ras_feature_info(args.gpu)
|
||||
for key, value in ras_info.items():
|
||||
if isinstance(value, int):
|
||||
if value >= 65535:
|
||||
if value == 65535 or value == 0:
|
||||
logging.debug(f"Failed to get ras {key} for gpu {gpu_id}")
|
||||
ras_info[key] = "N/A"
|
||||
continue
|
||||
@@ -953,7 +953,7 @@ class AMDSMICommands():
|
||||
engine_usage['mm_ip_usage'] = engine_usage.pop('mm_activity')
|
||||
|
||||
for key, value in engine_usage.items():
|
||||
if value >= 65535:
|
||||
if value == 65535:
|
||||
engine_usage[key] = "N/A"
|
||||
|
||||
if self.logger.is_human_readable_format():
|
||||
|
||||
@@ -1180,7 +1180,7 @@ def amdsmi_get_gpu_ras_feature_info(
|
||||
)
|
||||
|
||||
return {
|
||||
"eeprom_version": ras_feature.ras_eeprom_version,
|
||||
"eeprom_version": hex(ras_feature.ras_eeprom_version),
|
||||
"parity_schema" : bool(ras_feature.ecc_correction_schema_flag & 1),
|
||||
"single_bit_schema" : bool(ras_feature.ecc_correction_schema_flag & 2),
|
||||
"double_bit_schema" : bool(ras_feature.ecc_correction_schema_flag & 4),
|
||||
|
||||
Αναφορά σε νέο ζήτημα
Block a user