Added new ecc blocks and adjusted metric --ecc-block filtering

Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: Ib2f69c7d59ee5108024794434fb202b5e4f58738
Šī revīzija ir iekļauta:
Maisam Arif authored and Maisam Arif committed 2024-04-18 15:01:41 -04:00
1 vecāks c551c3caed
revīzija 1bd18c1a65
8 files changed
+132 -50

No files matched your search

+7 -1
Parādīt failu
@@ -300,6 +300,11 @@ class AmdSmiGpuBlock(IntEnum):
MP0 = amdsmi_wrapper.AMDSMI_GPU_BLOCK_MP0
MP1 = amdsmi_wrapper.AMDSMI_GPU_BLOCK_MP1
FUSE = amdsmi_wrapper.AMDSMI_GPU_BLOCK_FUSE
MCA = amdsmi_wrapper.AMDSMI_GPU_BLOCK_MCA
VCN = amdsmi_wrapper.AMDSMI_GPU_BLOCK_VCN
JPEG = amdsmi_wrapper.AMDSMI_GPU_BLOCK_JPEG
IH = amdsmi_wrapper.AMDSMI_GPU_BLOCK_IH
MPIO = amdsmi_wrapper.AMDSMI_GPU_BLOCK_MPIO
RESERVED = amdsmi_wrapper.AMDSMI_GPU_BLOCK_RESERVED
@@ -1906,7 +1911,7 @@ def amdsmi_get_gpu_ras_block_features_enabled(
if gpu_block.name == "RESERVED" or gpu_block.name == "INVALID":
continue
if gpu_block.name == "LAST":
gpu_block.name = "FUSE"
gpu_block.name = "MPIO"
_check_res(
amdsmi_wrapper.amdsmi_get_gpu_ras_block_features_enabled(
processor_handle,
@@ -1959,6 +1964,7 @@ def amdsmi_get_gpu_process_list(
"vram_mem": process_list[index].memory_usage.vram_mem,
},
})
print(result)
return result