ROCm SMI Python CLI: --rasinject partial support

This implementation is copied directly from the previous rocm_smi.py
script; This feature is experimental and will be updated or removed with
feauture releases.

Signed-off-by: Elena Saknovitch
Change-Id: I5cd38266946302bc4123aeafaa825e13f704235e
这个提交包含在:
Elena Sakhnovitch 编写, Elena Sakhnovitch 于 2020-10-22 17:22:13 -04:00 提交
1 父节点 1982fdc4fb
当前提交 4117719edd
2 个文件已更改
+90 -11

没有与搜索条件相匹配的文件

+13 -5
查看文件
@@ -291,14 +291,22 @@ class rsmi_ras_err_state_t(c_int):
# Error type list correlates to rsmi_ras_err_state_t
rsmi_ras_err_stale_readable = ['no errors', 'ECC disabled',\
'unknown type err', 'single correctable err',\
'multiple uncorrectable err',\
'page isolated, treat as uncorrectable err',\
rsmi_ras_err_stale_readable = ['no errors', 'ECC disabled',
'unknown type err', 'single correctable err',
'multiple uncorrectable err',
'page isolated, treat as uncorrectable err',
'ECC enabled', 'status invalid']
rsmi_ras_err_stale_machine = ['none', 'disabled', 'unknown error',\
rsmi_ras_err_stale_machine = ['none', 'disabled', 'unknown error',
'sing', 'mult', 'position', 'enabled']
validRasTypes = ['ue', 'ce']
validRasActions = ['disable', 'enable', 'inject']
validRasBlocks = ['fuse', 'mp1', 'mp0', 'sem', 'smn', 'df', 'xgmi_wafl', 'hdp', 'pcie_bif',
'athub', 'mmhub', 'gfx', 'sdma', 'umc']
class rsmi_memory_type_t(c_int):
RSMI_MEM_TYPE_FIRST = 0