drm/amdgpu: add support for recording ras error address

more than one error address may be recorded in one query

Signed-off-by: Tao Zhou <tao.zhou1@amd.com>
Reviewed-by: Dennis Li <dennis.li@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Tao Zhou
2019-07-22 19:20:29 +08:00
committed by Alex Deucher
parent f1ed4afa13
commit 6f102dba80
2 changed files with 3 additions and 1 deletions

View File

@@ -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;

View File

@@ -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 {