libhsakmt: add RAS support v2

RAS feature enabling bit and errors return are implemented in
existed topology and event mechanism.

v2: change library interface.

Change-Id: I75807c080b5b26e8115240b05b3d7016cb05a31a
Signed-off-by: Eric Huang <JinhuiEric.Huang@amd.com>
This commit is contained in:
Eric Huang
2018-12-04 14:06:03 -05:00
committed by JinHuiEric Huang
parent bcc348e3b9
commit 8ee93b3187
3 changed files with 16 additions and 4 deletions
+5 -1
View File
@@ -285,7 +285,11 @@ struct kfd_hsa_memory_exception_data {
struct kfd_memory_exception_failure failure;
__u64 va;
__u32 gpu_id;
__u32 pad;
__u32 ErrorType; /* 0 = no RAS error,
1 = ECC_SRAM,
2 = Link_SYNFLOOD (poison),
3 = GPU hang (not attributable to a specific cause),
other values reserved */
};
/* hw exception data */