提交 6f102dba 编写于 作者: T Tao Zhou 提交者: Alex Deucher

drm/amdgpu: add support for recording ras error address

more than one error address may be recorded in one query
Signed-off-by: NTao Zhou <tao.zhou1@amd.com>
Reviewed-by: NDennis Li <dennis.li@amd.com>
Reviewed-by: NHawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 f1ed4afa
...@@ -588,7 +588,7 @@ int amdgpu_ras_error_query(struct amdgpu_device *adev, ...@@ -588,7 +588,7 @@ int amdgpu_ras_error_query(struct amdgpu_device *adev,
struct ras_query_if *info) struct ras_query_if *info)
{ {
struct ras_manager *obj = amdgpu_ras_find_obj(adev, &info->head); struct ras_manager *obj = amdgpu_ras_find_obj(adev, &info->head);
struct ras_err_data err_data = {0, 0}; struct ras_err_data err_data = {0, 0, 0, NULL};
if (!obj) if (!obj)
return -EINVAL; return -EINVAL;
......
...@@ -131,6 +131,8 @@ struct ras_fs_data { ...@@ -131,6 +131,8 @@ struct ras_fs_data {
struct ras_err_data { struct ras_err_data {
unsigned long ue_count; unsigned long ue_count;
unsigned long ce_count; unsigned long ce_count;
unsigned long err_addr_cnt;
uint64_t *err_addr;
}; };
struct ras_err_handler_data { struct ras_err_handler_data {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册