From d6cde5bf087dccb27081e6583b52b960c32fc97f Mon Sep 17 00:00:00 2001 From: Eric Huang Date: Thu, 28 Mar 2019 14:41:23 -0400 Subject: [PATCH] libhsakmt: update kfd_ioctl.h regarding RAS interface It is aligned with RAS changes in KFD. Change-Id: I52816da01a4001158a40a1207d1fbe6ec3271343 Signed-off-by: Eric Huang --- include/linux/kfd_ioctl.h | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/include/linux/kfd_ioctl.h b/include/linux/kfd_ioctl.h index 485be6456a..62c7ee41e2 100644 --- a/include/linux/kfd_ioctl.h +++ b/include/linux/kfd_ioctl.h @@ -273,6 +273,11 @@ struct kfd_ioctl_dbg_trap_args { #define KFD_HW_EXCEPTION_GPU_HANG 0 #define KFD_HW_EXCEPTION_ECC 1 +/* For kfd_hsa_memory_exception_data.ErrorType */ +#define KFD_MEM_ERR_NO_RAS 0 +#define KFD_MEM_ERR_SRAM_ECC 1 +#define KFD_MEM_ERR_POISON_CONSUMED 2 +#define KFD_MEM_ERR_GPU_HANG 3 struct kfd_ioctl_create_event_args { __u64 event_page_offset; /* from KFD */ @@ -313,10 +318,11 @@ struct kfd_hsa_memory_exception_data { __u64 va; __u32 gpu_id; __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 */ + * 1 = ECC_SRAM, + * 2 = Link_SYNFLOOD (poison), + * 3 = GPU hang (not attributable to a specific cause), + * other values reserved + */ }; /* hw exception data */