summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd
diff options
context:
space:
mode:
authorStanley.Yang <Stanley.Yang@amd.com>2021-12-03 13:08:41 +0800
committerAlex Deucher <alexander.deucher@amd.com>2021-12-07 13:07:55 -0500
commitaed1faab9d9563ca5ac5139b0170486027ec74a7 (patch)
tree317d566869c7716c9b3786a1ecc6d5395ece64f5 /drivers/gpu/drm/amd
parent27cc310f13529bcf24518854b10f098de7fd7d6d (diff)
downloadlinux-aed1faab9d9563ca5ac5139b0170486027ec74a7.tar.bz2
drm/amdgpu: only skip get ecc info for aldebaran
skip get ecc info for aldebarn through check ip version do not affect other asic type Signed-off-by: Stanley.Yang <Stanley.Yang@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
index 28678c8f4eb2..1043d41b6807 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
@@ -898,7 +898,8 @@ static void amdgpu_ras_get_ecc_info(struct amdgpu_device *adev, struct ras_err_d
int ret = 0;
/* skip get ecc info during gpu recovery */
- if (atomic_read(&ras->in_recovery) == 1)
+ if (atomic_read(&ras->in_recovery) == 1 &&
+ adev->ip_versions[MP1_HWIP][0] == IP_VERSION(13, 0, 2))
return;
/*