[PATCH Review 1/1] drm/amdgpu: only skip get ecc info for aldebaran

Zhang, Hawking Hawking.Zhang at amd.com
Fri Dec 3 05:32:34 UTC 2021


[AMD Official Use Only]

Reviewed-by: Hawking Zhang <Hawking.Zhang at amd.com>

Regards,
Hawking
-----Original Message-----
From: Stanley.Yang <Stanley.Yang at amd.com> 
Sent: Friday, December 3, 2021 13:30
To: amd-gfx at lists.freedesktop.org; Zhang, Hawking <Hawking.Zhang at amd.com>; Clements, John <John.Clements at amd.com>; Zhou1, Tao <Tao.Zhou1 at amd.com>; Li, Candice <Candice.Li at amd.com>; Chai, Thomas <YiPeng.Chai at amd.com>
Cc: Yang, Stanley <Stanley.Yang at amd.com>
Subject: [PATCH Review 1/1] 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 at amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
index 641f9b447997..7c18732f68a9 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
@@ -896,7 +896,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;
 
 	/*
--
2.17.1


More information about the amd-gfx mailing list