Commit 9f9d4651 authored by Hawking Zhang's avatar Hawking Zhang Committed by Alex Deucher

drm/amdgpu: fallback to old RAS error message for aqua_vanjaram

So driver doesn't generate incorrect message until
the new format is settled down for aqua_vanjaram
Signed-off-by: default avatarHawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: default avatarYang Wang <kevinyang.wang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 6a82822b
...@@ -1053,7 +1053,8 @@ int amdgpu_ras_query_error_status(struct amdgpu_device *adev, ...@@ -1053,7 +1053,8 @@ int amdgpu_ras_query_error_status(struct amdgpu_device *adev,
info->ce_count = obj->err_data.ce_count; info->ce_count = obj->err_data.ce_count;
if (err_data.ce_count) { if (err_data.ce_count) {
if (adev->smuio.funcs && if (!adev->aid_mask &&
adev->smuio.funcs &&
adev->smuio.funcs->get_socket_id && adev->smuio.funcs->get_socket_id &&
adev->smuio.funcs->get_die_id) { adev->smuio.funcs->get_die_id) {
dev_info(adev->dev, "socket: %d, die: %d " dev_info(adev->dev, "socket: %d, die: %d "
...@@ -1073,7 +1074,8 @@ int amdgpu_ras_query_error_status(struct amdgpu_device *adev, ...@@ -1073,7 +1074,8 @@ int amdgpu_ras_query_error_status(struct amdgpu_device *adev,
} }
} }
if (err_data.ue_count) { if (err_data.ue_count) {
if (adev->smuio.funcs && if (!adev->aid_mask &&
adev->smuio.funcs &&
adev->smuio.funcs->get_socket_id && adev->smuio.funcs->get_socket_id &&
adev->smuio.funcs->get_die_id) { adev->smuio.funcs->get_die_id) {
dev_info(adev->dev, "socket: %d, die: %d " dev_info(adev->dev, "socket: %d, die: %d "
......
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