Commit 6f102dba authored by Tao Zhou's avatar Tao Zhou Committed by 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: default avatarTao Zhou <tao.zhou1@amd.com>
Reviewed-by: default avatarDennis Li <dennis.li@amd.com>
Reviewed-by: default avatarHawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent f1ed4afa
......@@ -588,7 +588,7 @@ int amdgpu_ras_error_query(struct amdgpu_device *adev,
struct ras_query_if *info)
{
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)
return -EINVAL;
......
......@@ -131,6 +131,8 @@ struct ras_fs_data {
struct ras_err_data {
unsigned long ue_count;
unsigned long ce_count;
unsigned long err_addr_cnt;
uint64_t *err_addr;
};
struct ras_err_handler_data {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment