From 7ada0bba5a46f74e42ce8ba5585abf6cc2cb103d Mon Sep 17 00:00:00 2001 From: Maisam Arif Date: Fri, 13 Oct 2023 21:31:17 -0500 Subject: [PATCH] Fixed ecc_correction_schema call in python interface Signed-off-by: Maisam Arif Change-Id: I16e2bf566342a8272c07f30b8db4df4acb9c3649 [ROCm/amdsmi commit: 2076b2a736f7cad1ff3dad487e6a7eed7723f20f] --- projects/amdsmi/py-interface/amdsmi_interface.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/projects/amdsmi/py-interface/amdsmi_interface.py b/projects/amdsmi/py-interface/amdsmi_interface.py index b39b94d1b1..ff92663772 100644 --- a/projects/amdsmi/py-interface/amdsmi_interface.py +++ b/projects/amdsmi/py-interface/amdsmi_interface.py @@ -891,10 +891,10 @@ def amdsmi_get_gpu_ras_feature_info( return { "eeprom_version": ras_feature.ras_eeprom_version, - "parity_schema" : bool(ras_feature.ecc_correction_schema_flags & 1), - "single_bit_schema" : bool(ras_feature.ecc_correction_schema_flags & 2), - "double_bit_schema" : bool(ras_feature.ecc_correction_schema_flags & 4), - "poison_schema" : bool(ras_feature.ecc_correction_schema_flags & 8) + "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), + "poison_schema" : bool(ras_feature.ecc_correction_schema_flag & 8) }