Skip to contentSkip to conversation

drm/amdgpu: only skip get ecc info for aldebaran

PATCH In review Stanley.Yang 2 participants 2 messages Dec 3, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 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

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +2 -1
index 641f9b447997..7c18732f68a9 100644
@@ -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;
 
 	/*
Signature · 1 line
2.17.1
Reviewed-by on v1 1/1
#1 lore raw

[AMD Official Use Only]

Regards,
Hawking
-----Original Message-----
From: Stanley.Yang <[email protected]>
Sent: Friday, December 3, 2021 13:30
To: [email protected]; Zhang, Hawking <[email protected]>; Clements, John <[email protected]>; Zhou1, Tao <[email protected]>; Li, Candice <[email protected]>; Chai, Thomas <[email protected]>
Cc: Yang, Stanley <[email protected]>
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

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +2 -1
index 641f9b447997..7c18732f68a9 100644
@@ -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